
:root,
[data-theme="light"] {
  --bg: #eaf4fb;
  --sheet: #ffffff;
  --surface: #ffffff;
  --surface-2: #e4eff8;
  --ink: #0f2740;
  --muted: #647c91;
  --line: rgba(15, 39, 64, 0.09);
  --accent: #1468c4;
  --accent-2: #0c4f9e;
  --accent-ink: #ffffff;
  --ink-navy: #0b2b47;
  --accent-soft: #dceeff;
  --sale: #ff6b5b;
  --mint: #16895a;
  --mint-bg: #d9f3e6;
  --danger: #d8402f;
  --input-bg: #f1f8fd;
  --shadow: 0 8px 28px rgba(31, 92, 140, 0.12);
  --shadow-sm: 0 2px 10px rgba(31, 92, 140, 0.08);
  --ambient-1: rgba(20, 104, 196, 0.26);
  --ambient-2: rgba(12, 79, 158, 0.18);
  --ambient-3: rgba(22, 137, 90, 0.12);
  --ambient-base: #eaf4fb;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a1622;
  --sheet: #10233a;
  --surface: #142b44;
  --surface-2: #1c3956;
  --ink: #eaf4fb;
  --muted: #8ba6bc;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #2f7fd6;
  --accent-2: #5b9eea;
  --accent-ink: #ffffff;
  --ink-navy: #08233a;
  --accent-soft: #163a5e;
  --mint: #4fd39a;
  --mint-bg: rgba(79, 211, 154, 0.14);
  --danger: #ff7a6b;
  --input-bg: #0d1f33;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-sm: none;
  --ambient-1: rgba(20, 104, 196, 0.55);
  --ambient-2: rgba(12, 79, 158, 0.6);
  --ambient-3: rgba(6, 26, 59, 0.75);
  --ambient-base: #061a3b;
  color-scheme: dark;
}
:root {
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo: 'Unbounded', 'Onest', sans-serif;
  --r-sm: 14px;
  --r: 22px;
  --r-lg: 28px;
  --nav-h: 66px;
  --top-h: 0px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease, color 0.25s ease;
}
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.main { flex: 1; outline: none; }
.hide-sm { display: inline; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.page { padding-bottom: 40px; }

#progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: var(--accent-2); transform-origin: left; transform: scaleX(0); opacity: 0;
  pointer-events: none;
}

.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--sheet);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 14px;
  transition: transform 0.3s var(--ease), background 0.25s;
}
.top.is-hidden { transform: translateY(-105%); }
.top__grid {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo seg actions" "search search search";
}
.logo { grid-area: logo; display: flex; align-items: center; gap: 9px; font-family: var(--font-logo); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; }
.logo em { font-style: normal; color: var(--accent-2); }
.logo__mark {
  width: 40px; height: 40px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-size: 1.2rem; overflow: hidden;
}
.logo__mark img { width: 100%; height: 100%; object-fit: cover; }
.logo__text { display: none; }

.seg {
  grid-area: seg; position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-2); border-radius: 999px; padding: 4px; --i: 0;
}
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2);
  border-radius: 999px; background: var(--accent);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.38s var(--ease), opacity 0.2s;
}
.seg.no-active .seg__thumb { opacity: 0; }
.seg a {
  position: relative; z-index: 1; text-align: center; padding: 10px 8px;
  font-weight: 700; font-size: 0.95rem; color: var(--muted); transition: color 0.25s;
}
.seg a.is-on { color: var(--accent-ink); }

.hsearch { grid-area: search; position: relative; }
.hsearch i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hsearch input {
  width: 100%; height: 48px; border: 2px solid transparent; border-radius: 999px;
  background: var(--surface-2); padding: 0 18px 0 44px; font-size: 1rem; font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.hsearch input::placeholder { color: var(--muted); }
.hsearch input:focus { outline: none; border-color: var(--accent-2); background: var(--sheet); }
.hsearch input::-webkit-search-cancel-button { display: none; }

.hdr-addr { grid-area: addr; display: none; }
.addr-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; max-width: 250px;
  border-radius: 999px; background: var(--accent-soft); font-weight: 600; font-size: 0.9rem;
}
.addr-btn i { color: var(--accent-2); }
.addr-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-btn:hover { background: var(--accent); color: var(--accent-ink); }

.hdr-actions { grid-area: actions; display: flex; align-items: center; gap: 8px; }
.round-btn {
  position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--ink);
  display: inline-grid; place-items: center; font-size: 1.15rem; transition: background 0.2s, transform 0.15s;
}
.round-btn:hover { background: var(--accent-soft); }
.round-btn:active { transform: scale(0.94); }
.hdr-cart, .hdr-account { display: none; }
.avatar-btn { overflow: hidden; font-weight: 800; font-size: 0.88rem; background: var(--accent); color: var(--accent-ink); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.login-btn { height: 44px; padding: 0 22px; align-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cart-badge {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--sale); color: #fff; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center;
}
[data-theme="dark"] .ico-sun, [data-theme="light"] .ico-moon { display: inline; }
[data-theme="dark"] .ico-moon, [data-theme="light"] .ico-sun { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem;
  transition: transform 0.15s, filter 0.15s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(0.96); }
.btn-secondary, .btn-dark { background: var(--surface-2); color: var(--ink); }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--muted); padding: 0 12px; height: 38px; border: 0; }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.h1 { font-size: clamp(2.05rem, 8.4vw, 2.7rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; margin: 26px 0 16px; }
.sec-title { font-size: 1.4rem; margin: 26px 0 12px; }
.page-title { padding: 24px 0 4px; }
.page-title h1 { font-size: clamp(1.9rem, 7.5vw, 2.4rem); line-height: 1.05; letter-spacing: -0.035em; display: flex; align-items: center; gap: 10px; }
.page-title h1 i { color: var(--accent-2); }
.page-title p { color: var(--muted); margin-top: 6px; }

.promos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 18px -16px 0; padding: 2px 16px 6px; }
.promos::-webkit-scrollbar { display: none; }
.promo {
  position: relative; flex: 0 0 min(78%, 320px); scroll-snap-align: start; overflow: hidden;
  height: 118px; padding: 16px 18px; border-radius: var(--r);
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  color: #0b2b47; transition: transform 0.2s;
}
.promo:active { transform: scale(0.98); }
.promo b { font-size: 1.12rem; line-height: 1.12; letter-spacing: -0.02em; position: relative; z-index: 1; max-width: 70%; }
.promo span { position: relative; z-index: 1; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.75); font-size: 0.8rem; font-weight: 700; }
.promo i { position: absolute; right: -6px; bottom: -18px; font-size: 5.6rem; opacity: 0.32; transform: rotate(-10deg); }
.promo--sky { background: linear-gradient(120deg, #3e86d6, #0c4f9e); }
.promo--mint { background: linear-gradient(120deg, #c5f0da, #86dcb3); }
.promo--sand { background: linear-gradient(120deg, #ffe7b8, #ffc98a); }
.promo--lilac { background: linear-gradient(120deg, #e1dbff, #b9aef5); }

.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px -16px 0; padding: 8px 16px 10px; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 82px; display: flex; flex-direction: column; align-items: center; gap: 8px; scroll-snap-align: start; text-align: center; }
.cat__ico {
  width: 68px; height: 68px; border-radius: 24px; display: grid; place-items: center;
  background: var(--sheet); color: var(--accent-2); font-size: 1.85rem; box-shadow: var(--shadow-sm);
  overflow: hidden; transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.cat__ico img { width: 100%; height: 100%; object-fit: cover; }
.cat__label { font-size: 0.82rem; font-weight: 600; line-height: 1.15; color: var(--muted); transition: color 0.2s; max-width: 82px; }
.cat:active .cat__ico { transform: scale(0.92); }
.cat.is-on .cat__ico { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); transform: translateY(-2px); }
.cat.is-on .cat__ico:has(i) { background: var(--accent); color: var(--accent-ink); }
.cat.is-on .cat__label { color: var(--ink); font-weight: 700; }

.pills { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.pills__scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding: 4px 16px 8px 2px; flex: 1; min-width: 0; }
.pills__scroll::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0;
  border-radius: 999px; background: var(--sheet); font-weight: 600; font-size: 0.93rem; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: background 0.2s, color 0.2s, transform 0.15s;
}
.pill i { color: var(--accent-2); }
.pill:active { transform: scale(0.95); }
.pill.is-on { background: var(--ink-navy); color: #fff; }
.pill.is-on i { color: var(--accent); }
[data-theme="dark"] .pill.is-on { background: var(--accent); color: var(--accent-ink); }
[data-theme="dark"] .pill.is-on i { color: var(--accent-ink); }
.pill--icon { width: 46px; padding: 0; justify-content: center; margin-top: 4px; list-style: none; cursor: pointer; }
.pill--icon::-webkit-details-marker { display: none; }
.dd { position: relative; flex: none; }
.dd[open] .pill--icon { background: var(--accent); }
.dd__menu {
  position: absolute; top: calc(100% + 6px); right: 0; left: auto; z-index: 30; min-width: 250px;
  max-width: calc(100vw - 32px); padding: 8px;
  background: var(--sheet); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  animation: pop-in 0.22s var(--ease);
}
.dd__menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-radius: 12px; font-weight: 500; }
.dd__menu a:hover { background: var(--surface-2); }
.dd__menu a.is-active { font-weight: 800; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

.vgrid { display: grid; gap: 26px 18px; grid-template-columns: 1fr; margin: 12px 0 8px; }
.vcard { position: relative; }
.vcard__media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1.9 / 1;
  border-radius: var(--r-lg); overflow: hidden; color: rgba(255, 255, 255, 0.85); font-size: 4rem;
  transition: transform 0.3s var(--ease);
}
.vcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard__media img.vcard__cat-ico { position: static; width: 44%; height: 44%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.2)); }
.vcard:active .vcard__media { transform: scale(0.985); }
.vbadge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 12px; border-radius: 11px;
  background: var(--sale); color: #fff; font-weight: 800; font-size: 0.86rem; letter-spacing: -0.01em;
}
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 42px; height: 42px; border: 0; background: transparent;
  color: #fff; font-size: 1.5rem; display: grid; place-items: center; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}
.fav-btn.is-on { color: #ff5470; animation: heart 0.4s var(--ease); }
@keyframes heart { 40% { transform: scale(1.3); } }
.dish-fav-btn {
  position: absolute; top: 6px; right: 6px; z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(15, 39, 64, 0.38); color: #fff; font-size: 1.08rem; display: grid; place-items: center;
  backdrop-filter: blur(2px);
}
.dish-fav-btn.is-on { color: #ff5470; background: rgba(255, 255, 255, 0.92); animation: heart 0.4s var(--ease); }
.vcard__body { display: block; padding: 12px 6px 0; }
.vcard__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vcard__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard__rate { font-weight: 700; white-space: nowrap; }
.vcard__rate i { color: var(--accent-2); font-size: 0.8rem; }
.vcard__meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 3px; color: var(--muted); font-size: 0.93rem; font-weight: 500; }
.vcard__meta span:last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard__meta i { margin-right: 4px; color: var(--accent-2); }

.tone-terracotta { background: linear-gradient(135deg, #ffb8a3, #ff8d7a); }
.tone-gold       { background: linear-gradient(135deg, #ffe08a, #ffc25c); }
.tone-teal       { background: linear-gradient(135deg, #a5e8d0, #55c9a4); }
.tone-plum       { background: linear-gradient(135deg, #cdbcf6, #a08cec); }
.tone-ocean      { background: linear-gradient(135deg, #4a8fd9, #0c4f9e); }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 12px; color: var(--muted); font-weight: 600; }
.back-link:hover { color: var(--ink); }
.vhero { position: relative; height: clamp(210px, 56vw, 340px); margin: 0 -16px; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; display: grid; place-items: center; font-size: 6rem; color: rgba(255, 255, 255, 0.8); }
.vhero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vhero__back {
  position: absolute; top: 14px; left: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #0f2740; display: grid; place-items: center; font-size: 1.15rem; box-shadow: var(--shadow-sm);
}
.vinfo { margin-top: 18px; }
.vinfo h1 { font-size: clamp(2rem, 8vw, 2.7rem); line-height: 1.03; letter-spacing: -0.035em; }
.vinfo__tagline { color: var(--muted); margin-top: 6px; font-weight: 500; }
.vinfo__desc { margin-top: 10px; max-width: 640px; color: var(--muted); }
.facts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 2px 16px 4px; }
.facts::-webkit-scrollbar { display: none; }
.fact { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--sheet); font-size: 0.86rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.fact i { color: var(--accent-2); }
.fact small { color: var(--muted); font-weight: 500; }

.notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 16px 18px; background: var(--accent-soft); border-radius: var(--r); }
.notice > i { font-size: 1.5rem; color: var(--accent-2); }
.notice__text { flex: 1 1 220px; }
.notice .btn-dark { background: var(--sheet); }

.menu-nav {
  position: sticky; top: var(--top-h); z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 12px -16px 0; padding: 10px 16px; background: var(--bg); transition: top 0.3s var(--ease);
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav a { flex: none; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--sheet); display: inline-flex; align-items: center; font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-sm); transition: background 0.2s, color 0.2s; }
.menu-nav a.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.menu-section { scroll-margin-top: calc(var(--top-h) + 64px); }

.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dish { background: var(--sheet); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.dish__media { position: relative; aspect-ratio: 4 / 3; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-size: 2.6rem; }
.dish__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dish__tag { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--sale); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: 9px; }
.dish__body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.dish__price { font-weight: 800; font-size: 1.1rem; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; letter-spacing: -0.02em; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 0.82rem; font-weight: 500; }
.price-discount { color: var(--sale); }
.dish__name { font-weight: 600; line-height: 1.25; }
.dish__desc { color: var(--muted); font-size: 0.82rem; }
.dish__foot { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 10px; }
.add-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; font-size: 1.15rem; transition: transform 0.15s; }
.add-btn:active { transform: scale(0.9); }
.qty { display: inline-flex; align-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 999px; height: 42px; }
.qty form { display: flex; }
.qty button { width: 40px; height: 42px; border: 0; background: transparent; font-size: 1.15rem; font-weight: 700; border-radius: 999px; color: inherit; }
.qty output { min-width: 20px; text-align: center; font-weight: 800; }

.cart-layout { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 18px 0 30px; align-items: start; }
.card-block { background: var(--sheet); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cart-line:last-child { border-bottom: 0; }
.cart-line__info { flex: 1 1 140px; min-width: 0; }
.cart-line__info h4 { font-size: 0.98rem; letter-spacing: -0.01em; }
.cart-line__price { font-size: 0.82rem; color: var(--muted); }
.cart-line__options { font-size: 0.8rem; color: var(--muted); margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line__total { font-weight: 800; min-width: 80px; text-align: right; }
.product-photo { width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-2); font-size: 1.3rem; flex: none; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.qty-stepper { display: flex; align-items: center; background: var(--surface-2); border-radius: 999px; }
.qty-stepper form { display: flex; }
.qty-stepper button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.15rem; border-radius: 50%; }
.qty-stepper output { min-width: 22px; text-align: center; font-weight: 800; }
.summary-card { background: var(--sheet); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--muted); font-size: 0.93rem; }
.summary-row.total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.warn-line { font-size: 0.85rem; color: var(--danger); margin: 10px 0; display: flex; gap: 6px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="file"], textarea, select {
  width: 100%; padding: 14px 16px; border: 2px solid transparent; border-radius: 16px;
  background: var(--input-bg); color: var(--ink); font-size: 1rem; transition: border-color 0.2s, background 0.2s;
}
.form-control:focus, input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-2); }
textarea.form-control { resize: vertical; min-height: 80px; }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }
.field-hint { color: var(--muted); font-size: 0.78rem; margin-top: 4px; }
.radio-card { display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 8px; border-radius: 16px; background: var(--input-bg); cursor: pointer; font-weight: 500; transition: box-shadow 0.2s, background 0.2s; }
.radio-card input { width: auto; accent-color: var(--accent-2); }
.radio-card:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent-2); background: var(--accent-soft); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.badge-accent { background: var(--mint-bg); color: var(--mint); }
.badge-warn { background: var(--accent-soft); color: var(--ink); }
.badge-danger { background: rgba(255, 107, 91, 0.16); color: var(--danger); }
.status-track { display: flex; justify-content: space-between; margin: 24px 0; position: relative; }
.status-track::before { content: ""; position: absolute; top: 15px; left: 9%; right: 9%; height: 4px; border-radius: 2px; background: var(--surface-2); }
.status-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.status-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; transition: background 0.4s, color 0.4s; }
.status-step.done .status-dot { background: var(--accent); color: var(--accent-ink); }
.status-step.now .status-dot { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(93, 180, 238, 0.6); } 70% { box-shadow: 0 0 0 12px rgba(93, 180, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 180, 238, 0); } }
.status-step .label { font-size: 0.72rem; color: var(--muted); text-align: center; line-height: 1.15; }
.status-step.done .label { color: var(--ink); font-weight: 700; }

.empty-state { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty-state i { font-size: 2.8rem; display: inline-block; margin-bottom: 10px; color: var(--accent-2); }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 20px 0 40px; }
.step-card { background: var(--sheet); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.step-number { width: 46px; height: 46px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.step-card p { color: var(--muted); margin-top: 8px; }

.auth-container { display: flex; justify-content: center; padding: 26px 0 40px; }
.auth-card { width: 100%; max-width: 440px; padding: 30px 24px; text-align: center; }
.auth-icon { width: 64px; height: 64px; border-radius: 22px; background: var(--accent); color: var(--accent-ink); font-size: 1.8rem; display: grid; place-items: center; margin: 0 auto 16px; }
.auth-card h1 { font-size: 1.8rem; }
.auth-sub { color: var(--muted); font-size: 0.92rem; margin: 8px 0 22px; }
.auth-card form { text-align: left; }
.auth-switch { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.auth-switch a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent-2); text-underline-offset: 3px; }
.profile-layout { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 18px 0 30px; align-items: start; }
.avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar-preview { width: 70px; height: 70px; border-radius: 22px; overflow: hidden; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; flex: none; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.partner-cta { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--accent-soft); margin-top: 16px; }
.partner-cta i { font-size: 1.6rem; color: var(--accent-2); }

.verify-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verify-row__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.verify-row__label { font-size: 0.8rem; color: var(--muted); }
.verify-row__value { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verify-code-form { display: flex; gap: 8px; margin: 10px 0 0; }
.verify-code-form input { max-width: 140px; letter-spacing: 0.3em; text-align: center; }
.lang-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-switch form { display: contents; }
.lang-btn { height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-weight: 700; transition: background .2s, color .2s; }
.lang-btn.is-on { background: var(--accent); color: var(--accent-ink); }
.lang-switch--compact { justify-content: center; margin-bottom: 18px; }
.lang-switch--compact .lang-btn { height: 34px; padding: 0 14px; font-size: 0.82rem; }

.order-list { display: flex; flex-direction: column; gap: 10px; padding: 10px 0 40px; }
.order-list--compact { padding: 0; gap: 0; }
.order-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--sheet); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform 0.15s; }
.order-row:active { transform: scale(0.99); }
.order-row--done { opacity: 0.62; filter: grayscale(0.35); }
.order-row--done:active { opacity: 0.8; }
.order-list--compact .order-row { background: transparent; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
.order-row__vendor { width: 50px; height: 50px; border-radius: 16px; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; flex: none; color: var(--accent-2); font-size: 1.2rem; }
.order-row__vendor img { width: 100%; height: 100%; object-fit: cover; }
.order-row__info { flex: 1; min-width: 0; }
.order-row__info h4 { font-size: 1rem; letter-spacing: -0.01em; }
.order-row__meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.order-row__status { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.order-row__total { font-weight: 800; font-size: 0.92rem; }
.order-row__arrow { color: var(--muted); }

.site-footer { display: none; margin-top: 24px; padding: 28px 0; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { display: inline-flex; align-items: center; gap: 6px; }
.site-footer a:hover { color: var(--ink); }

.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--sheet); border-radius: 24px 24px 0 0; box-shadow: 0 -8px 28px rgba(31, 92, 140, 0.13);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px)); --i: 0;
}
.bnav__thumb {
  position: absolute; top: 9px; left: 4px; width: calc((100% - 8px) / 5); height: 32px; display: flex; justify-content: center; pointer-events: none;
  transform: translateX(calc(var(--i) * 100%)); transition: transform 0.4s var(--ease), opacity 0.2s;
}
.bnav__thumb::before { content: ""; width: 58px; height: 32px; border-radius: 16px; background: var(--accent); }
.bnav.no-active .bnav__thumb { opacity: 0; }
.bnav__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px 2px; color: var(--muted); font-size: 0.66rem; font-weight: 600; transition: color 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bnav__item i { font-size: 1.35rem; height: 32px; display: grid; place-items: center; margin-top: -5px; transition: color 0.2s, transform 0.3s var(--ease); }
.bnav__item.is-active { color: var(--ink); font-weight: 800; }
.bnav__item.is-active i { color: var(--accent-ink); transform: translateY(-1px); }
.bnav__badge { position: absolute; top: -1px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sale); color: #fff; font-size: 0.65rem; font-weight: 800; display: grid; place-items: center; }

.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; padding: 0 20px;
  border-radius: 20px; background: var(--ink-navy); color: #fff; font-weight: 700; box-shadow: var(--shadow);
  animation: rise 0.4s var(--ease);
}
[data-theme="dark"] .cartbar { background: var(--accent); color: var(--accent-ink); }
.cartbar[hidden] { display: none; }
.cartbar span { display: inline-flex; align-items: center; gap: 10px; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }

.fab-up {
  position: fixed; right: 14px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 54;
  width: 50px; height: 50px; border: 0; border-radius: 50%; background: var(--sheet); color: var(--ink); font-size: 1.3rem;
  box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: scale(0.7) translateY(10px); pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease), bottom 0.3s var(--ease);
}
.fab-up.is-shown { opacity: 1; transform: none; pointer-events: auto; }
body.has-cartbar .fab-up { bottom: calc(var(--nav-h) + 78px + env(safe-area-inset-bottom, 0px)); }

dialog.modal {
  border: 0; border-radius: var(--r-lg); padding: 22px; width: min(92vw, 460px);
  background: var(--sheet); color: var(--ink); box-shadow: var(--shadow);
}
dialog.modal::backdrop { background: rgba(10, 22, 34, 0.5); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: modal-in 0.22s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.modal__head h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.modal__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; flex: none; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.modal--map { width: min(94vw, 560px); }
.modal--options { max-height: 82vh; display: flex; flex-direction: column; }
.modal--options .opt-form { display: flex; flex-direction: column; min-height: 0; }
.opt-form__scroll { overflow-y: auto; margin: 4px -4px 0; padding: 0 4px; }
.opt-group { margin-top: 18px; }
.opt-group:first-child { margin-top: 10px; }
.opt-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-weight: 700; }
.opt-group__head small { font-weight: 500; color: var(--muted); }
.radio-card { justify-content: space-between; }
.radio-card span:first-of-type { flex: 1; }
.opt-delta { color: var(--muted); font-weight: 500; font-size: 0.86rem; flex: none; }
.opt-form__foot { justify-content: space-between; align-items: center; flex: none; }
.opt-form__foot .btn { flex: 1; margin-left: 12px; }
.picker-map { width: 100%; height: 320px; border-radius: var(--r); overflow: hidden; margin-top: 4px; background: var(--surface-2); }
.map-pick-btn.is-done { background: var(--mint-bg); color: var(--mint); box-shadow: none; }
.order-map { width: 100%; height: 220px; border-radius: var(--r); overflow: hidden; margin-top: 10px; }

#flash .msg { margin: 10px 16px 0; }
.msg { padding: 13px 18px; border-radius: 16px; font-size: 0.92rem; font-weight: 500; display: flex; align-items: center; gap: 10px; background: var(--accent-soft); }
#toasts { position: fixed; z-index: 150; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 13px 18px; border-radius: 18px; font-weight: 600; font-size: 0.92rem;
  background: var(--ink-navy); color: #fff; box-shadow: var(--shadow);
  transform: translateY(-16px) scale(0.96); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.25s;
}
[data-theme="dark"] .toast { background: var(--accent); color: var(--accent-ink); }
.toast.is-in { transform: none; opacity: 1; }
.toast i { font-size: 1.1rem; color: var(--accent); }
[data-theme="dark"] .toast i { color: var(--accent-ink); }
.toast.error i { color: #ff9b8f; }

@media (min-width: 640px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  :root { --nav-h: 0px; }
  body { font-size: 15.5px; }
  .container { padding: 0 24px; }
  .top { border-radius: 0; padding: 12px 24px; box-shadow: 0 1px 0 var(--line); }
  .top.is-hidden { transform: none; }
  .top__grid {
    max-width: 1280px; margin: 0 auto; gap: 16px;
    grid-template-columns: auto minmax(220px, 300px) minmax(180px, 1fr) auto auto;
    grid-template-areas: "logo seg search addr actions";
  }
  .logo__text { display: inline; font-size: 1.1rem; }
  .hdr-addr { display: block; }
  .hdr-cart, .hdr-account { display: inline-grid; }
  .login-btn.hdr-account { display: inline-flex; }
  .round-btn { width: 48px; height: 48px; }
  .bnav, .cartbar, .fab-up { display: none; }
  .site-footer { display: block; }
  .h1 { font-size: 2.9rem; margin-top: 34px; }
  .promos { margin: 18px 0 0; padding: 2px 0 6px; overflow: visible; }
  .promo { flex: 1 1 0; min-width: 0; height: 128px; }
  .cats, .facts, .menu-nav { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .cats { gap: 14px; }
  .pills__scroll { margin-right: 0; padding-right: 0; }
  .vhero { margin: 18px 0 0; border-radius: var(--r-lg); height: 340px; }
  .vhero__back { display: none; }
  .cart-layout { grid-template-columns: 1.6fr 1fr; gap: 22px; }
  .summary-card { position: sticky; top: 90px; }
  .profile-layout { grid-template-columns: 1.3fr 1fr; gap: 20px; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .card-block { padding: 26px; }
  #toasts { align-items: flex-end; left: auto; right: 24px; top: 84px; }
}
@media (min-width: 1000px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); }
  body.has-cartbar { padding-bottom: calc(var(--nav-h) + 76px + env(safe-area-inset-bottom, 0px)); }
  .hide-sm { display: none; }
}
@media (max-width: 380px) {
  .dish-grid { grid-template-columns: 1fr; }
  .seg a { padding: 10px 4px; font-size: 0.88rem; }
}

body { position: relative; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(80% 55% at 12% -10%, var(--ambient-1) 0%, transparent 72%),
    radial-gradient(85% 60% at 110% 15%, var(--ambient-2) 0%, transparent 72%),
    radial-gradient(95% 70% at 45% 125%, var(--ambient-3) 0%, transparent 72%),
    var(--ambient-base);
}

#splash {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 70% at 50% 15%, #1468c4 0%, #0c4f9e 32%, #0a2f66 60%, #061a3b 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash__streak {
  position: absolute; width: 180%; height: 46%; left: -40%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,0.14), rgba(255,255,255,0) 70%);
  filter: blur(2px); animation: splash-drift 9s ease-in-out infinite;
}
.splash__streak--a { top: -8%; transform: rotate(-8deg); }
.splash__streak--b { top: 32%; left: -55%; width: 200%; animation-duration: 12s; animation-direction: reverse; opacity: 0.7; }
@keyframes splash-drift {
  0%, 100% { transform: translateX(0) rotate(-8deg); }
  50% { transform: translateX(4%) rotate(-5deg); }
}
.splash__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.splash__mark { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 22px; }
.splash__mark img { width: 100%; height: 100%; border-radius: 28px; position: relative; z-index: 1; box-shadow: 0 10px 40px rgba(0,0,0,0.35); }
.splash__glow {
  position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.55), rgba(255,255,255,0) 70%);
  animation: splash-pulse 2.2s ease-in-out infinite;
}
@keyframes splash-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50% { opacity: 0.9; transform: scale(1.08); }
}
.splash__word { font-family: var(--font-logo); line-height: 1.05; margin-bottom: 10px; }
.splash__word strong { display: block; font-weight: 800; font-size: 2rem; color: #fff; letter-spacing: -0.01em; }
.splash__word em { display: block; font-style: normal; font-weight: 600; font-size: 1.5rem; color: #bcdcff; }
.splash__tag { color: rgba(255,255,255,0.78); font-size: 0.95rem; margin-bottom: 26px; }
.splash__dots { display: flex; gap: 8px; }
.splash__dots span { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0.4; animation: splash-bounce 1.1s ease-in-out infinite; }
.splash__dots span:nth-child(2) { animation-delay: 0.15s; }
.splash__dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes splash-bounce {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-5px); }
}
.splash__skyline { position: absolute; left: 0; bottom: 0; width: 100%; height: 16vh; min-height: 90px; max-height: 190px; fill: rgba(3, 14, 34, 0.55); }
@media (min-width: 720px) {
  .splash__mark { width: 128px; height: 128px; }
  .splash__word strong { font-size: 2.5rem; }
  .splash__word em { font-size: 1.85rem; }
  .splash__tag { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
