/* Шрифты лежат на нашем сервере: без запросов к Google и блокировки отрисовки */
/* Onest и Montserrat — в них есть все кыргызские буквы. Файлы обычные, не вариативные: старый
   встроенный браузер Android (Chrome 79) в вариативных шрифтах рисует ү поверх соседних букв */
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 400; src: url('/vendor/fonts/onest-cyrillic-ext-400-normal.woff2') format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 400; src: url('/vendor/fonts/onest-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 400; src: url('/vendor/fonts/onest-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 500; src: url('/vendor/fonts/onest-cyrillic-ext-500-normal.woff2') format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 500; src: url('/vendor/fonts/onest-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 500; src: url('/vendor/fonts/onest-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 600; src: url('/vendor/fonts/onest-cyrillic-ext-600-normal.woff2') format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 600; src: url('/vendor/fonts/onest-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 600; src: url('/vendor/fonts/onest-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 700; src: url('/vendor/fonts/onest-cyrillic-ext-700-normal.woff2') format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 700; src: url('/vendor/fonts/onest-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 700; src: url('/vendor/fonts/onest-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 800; src: url('/vendor/fonts/onest-cyrillic-ext-800-normal.woff2') format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 800; src: url('/vendor/fonts/onest-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 800; src: url('/vendor/fonts/onest-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 600; src: url('/vendor/fonts/montserrat-cyrillic-ext-600-normal.woff2') format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 600; src: url('/vendor/fonts/montserrat-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 600; src: url('/vendor/fonts/montserrat-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 700; src: url('/vendor/fonts/montserrat-cyrillic-ext-700-normal.woff2') format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 700; src: url('/vendor/fonts/montserrat-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 700; src: url('/vendor/fonts/montserrat-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 800; src: url('/vendor/fonts/montserrat-cyrillic-ext-800-normal.woff2') format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 800; src: url('/vendor/fonts/montserrat-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 800; src: url('/vendor/fonts/montserrat-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #f6f1ea;
  --surface: #ffffff;
  --surface-2: #fbf8f4;
  --text: #221b16;
  --muted: #8b7d71;
  --line: #ebe2d7;
  --espresso: #1f1915;
  --espresso-2: #2c241e;
  --accent: #ff6a2b;
  --accent-2: #ff9f43;
  --accent-dark: #e4541a;
  --accent-soft: #fff0e6;
  --grad: linear-gradient(135deg, #ff6a2b 0%, #ff9f43 100%);
  --ok: #1f9d63;
  --ok-soft: #e2f5eb;
  --warn: #c7820b;
  --warn-soft: #fdf3dc;
  --danger: #d93f3f;
  --danger-soft: #fde6e6;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(50, 30, 15, 0.04), 0 8px 28px rgba(50, 30, 15, 0.07);
  --shadow-lg: 0 20px 60px rgba(30, 18, 8, 0.18);
  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', 'Onest', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15110e;
    --surface: #211b17;
    --surface-2: #1b1612;
    --text: #f5eee8;
    --muted: #a8998c;
    --line: #342b25;
    --espresso: #0e0b09;
    --espresso-2: #1b1612;
    --accent-soft: #3a2116;
    --accent-dark: #ff8a55;
    --ok: #3fc483;
    --ok-soft: #173326;
    --warn: #eaae3c;
    --warn-soft: #362a12;
    --danger-soft: #3a1a1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent-dark); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 106, 43, 0.28);
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); box-shadow: 0 8px 24px rgba(255, 106, 43, 0.38); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: default; filter: grayscale(0.3); }
.btn.secondary { background: var(--accent-soft); color: var(--accent-dark); box-shadow: none; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.btn.dark { background: var(--espresso); color: #fff; box-shadow: 0 10px 30px rgba(20, 12, 6, 0.3); }
.btn.block { width: 100%; padding: 16px; font-size: 16px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ---------- Шапка меню ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  color: #fff;
  padding: 26px 0 64px;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 340px; height: 340px; right: -90px; top: -150px;
  background: radial-gradient(circle, rgba(255, 106, 43, 0.75), transparent 65%);
}
.hero::after {
  width: 260px; height: 260px; left: -100px; bottom: -160px;
  background: radial-gradient(circle, rgba(255, 159, 67, 0.4), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero h1 { margin: 10px 0 6px; font-size: clamp(26px, 7vw, 40px); line-height: 1.1; }
.hero .subtitle { color: rgba(255, 255, 255, 0.65); font-size: 15px; }
.table-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.table-chip:empty { display: none; }
.glass-btn {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background 0.2s;
}
.glass-btn:hover { background: rgba(255, 255, 255, 0.2); }

.search-box { margin-top: -30px; position: relative; z-index: 2; }
.search-box input {
  width: 100%;
  border: 0;
  background: var(--surface);
  border-radius: 18px;
  padding: 17px 18px 17px 50px;
  box-shadow: var(--shadow-lg);
  outline: none;
  font-weight: 600;
}
.search-box input::placeholder { color: var(--muted); font-weight: 500; }
.search-box::before {
  content: '\f52a'; font-family: 'bootstrap-icons'; position: absolute; left: 34px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--muted);
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  margin-top: 8px;
}
.tabs .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  border: 0;
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}
.tab.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(255, 106, 43, 0.3); }

.category-title {
  font-size: 20px; margin: 26px 0 14px; scroll-margin-top: 74px;
  display: flex; align-items: center; gap: 10px;
}
.category-title span { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Карточки блюд ---------- */
.grid-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) { .grid-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .grid-items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.item {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  contain: layout paint;
}
.item.anim { animation: fadeUp 0.35s ease-out both; }
@media (hover: hover) { .item:hover { transform: translateY(-2px); } }
.item.in-cart { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

.item-media { position: relative; aspect-ratio: 1 / 0.82; overflow: hidden; }
.item-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
@media (hover: hover) { .item:hover .item-media img { transform: scale(1.04); } }
.item-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
}
.ph-0 { background: linear-gradient(135deg, #ffe3cf, #ffc59e); }
.ph-1 { background: linear-gradient(135deg, #e0f2dc, #b8e0b0); }
.ph-2 { background: linear-gradient(135deg, #fde7c8, #f9cf8a); }
.ph-3 { background: linear-gradient(135deg, #e4e6fb, #c2c7f2); }
.ph-4 { background: linear-gradient(135deg, #fbe1e6, #f3b8c4); }
.ph-5 { background: linear-gradient(135deg, #d9f0f3, #a9dce3); }
@media (prefers-color-scheme: dark) {
  .item-placeholder { filter: saturate(0.8) brightness(0.55); }
}
.in-cart-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 13px;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 106, 43, 0.45);
  animation: pop 0.25s ease-out;
}
@keyframes pop { from { transform: scale(0.4); } }

.item-body { flex: 1; display: flex; flex-direction: column; padding: 12px 12px 12px; min-width: 0; }
.item-name { font-weight: 800; font-size: 15px; line-height: 1.25; }
.item-desc {
  color: var(--muted); font-size: 13px; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 52px; }
.item-price { font-weight: 800; font-size: 16px; white-space: nowrap; }

.add-btn {
  width: 40px; height: 40px; border-radius: 13px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 24px; font-weight: 600; line-height: 1;
  box-shadow: 0 6px 14px rgba(255, 106, 43, 0.35);
  transition: transform 0.12s;
}
.add-btn:active { transform: scale(0.9); }

.qty { display: inline-flex; align-items: center; background: var(--accent-soft); border-radius: 13px; padding: 2px; }
.qty button {
  width: 34px; height: 36px; border: 0; background: transparent; cursor: pointer;
  font-size: 20px; font-weight: 700; color: var(--accent-dark); border-radius: 11px;
}
.qty button:hover { background: rgba(255, 106, 43, 0.12); }
.qty span { min-width: 20px; text-align: center; font-weight: 800; }

/* ---------- Корзина ---------- */
.cart-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  z-index: 10;
  pointer-events: none;
  animation: fadeUp 0.25s ease-out;
}
.cart-bar .btn {
  pointer-events: auto;
  max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between;
  padding: 10px 10px 10px 18px; border-radius: 20px;
}
.cart-bar .count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); border-radius: 10px; min-width: 30px; height: 30px; padding: 0 8px; font-size: 14px; margin-right: 6px;
}
.cart-bar .total { background: rgba(255, 255, 255, 0.12); padding: 10px 14px; border-radius: 14px; }
.spacer { height: 110px; }

.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(15, 10, 6, 0.5); z-index: 20;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade 0.2s;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  background: var(--bg);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@media (min-width: 600px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 28px; }
}
.sheet::before {
  content: ''; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 12px;
}
@keyframes up { from { transform: translateY(60px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sheet-head h2 { margin: 0; font-size: 22px; }
.close-x {
  border: 0; background: var(--surface); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; cursor: pointer;
  box-shadow: var(--shadow); line-height: 1;
}

.cart-lines { background: var(--surface); border-radius: var(--radius); padding: 4px 14px; box-shadow: var(--shadow); }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 48px; height: 48px; border-radius: 12px; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .name { flex: 1; font-weight: 700; min-width: 0; }
.cart-line .name .muted { font-weight: 500; font-size: 13px; }
.cart-line .sum { font-weight: 800; min-width: 70px; text-align: right; }

.field { margin-top: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 43, 0.12); }

.pay-info { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 14px; }
.pay-info .bi { font-size: 20px; flex: none; }
.no-flexgap .pay-info .bi { margin-right: 10px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-option {
  border: 2px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; background: var(--surface);
  text-align: left; transition: all 0.2s;
}
.pay-option .ic { font-size: 22px; display: block; margin-bottom: 6px; }
.pay-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.pay-option b { display: block; font-size: 14px; }
.pay-option small { color: var(--muted); font-size: 12px; }

.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); font-weight: 700; margin: 20px 0 14px; }
.total-row b { font-family: var(--font-display); font-size: 24px; color: var(--text); font-weight: 600; }

/* ---------- Статус / оплата ---------- */
.page-narrow { max-width: 480px; margin: 0 auto; padding: 24px 16px 40px; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: 14px;
}
.center { text-align: center; }
.big-icon { font-size: 56px; line-height: 1; }
.muted { color: var(--muted); }

.status-hero {
  position: relative; overflow: hidden;
  background: var(--espresso); color: #fff; border-radius: 28px; padding: 30px 22px 24px; text-align: center;
}
.status-hero::before {
  content: ''; position: absolute; width: 300px; height: 300px; left: 50%; top: -170px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 106, 43, 0.6), transparent 65%); pointer-events: none;
}
.status-hero > * { position: relative; }
.status-hero h2 { margin: 16px 0 6px; font-size: 22px; }
.status-hero .muted { color: rgba(255, 255, 255, 0.65); }
.status-icon {
  width: 92px; height: 92px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}
.status-icon.pulse::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--accent);
  animation: ring 1.6s ease-out infinite;
}
@keyframes ring { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

.steps { display: flex; justify-content: space-between; margin: 26px 0 0; position: relative; }
.steps::before { content: ''; position: absolute; top: 16px; left: 12%; right: 12%; height: 3px; background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.steps .progress { position: absolute; top: 16px; left: 12%; height: 3px; background: var(--grad); border-radius: 3px; transition: width 0.5s; }
.step { position: relative; flex: 1; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.45); font-weight: 700; }
.step .dot {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px; background: var(--espresso-2);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center; font-size: 15px; position: relative;
}
.step.done .dot { background: var(--accent); border-color: var(--accent); }
.step.current .dot { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(255, 106, 43, 0.25); }
.step.done, .step.current { color: #fff; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }

.line-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.line-row:last-child { border-bottom: 0; }
.line-row .q { color: var(--muted); font-weight: 700; margin-right: 4px; }

/* Оплата по QR */
.pay-amount {
  position: relative; overflow: hidden; text-align: center;
  background: var(--espresso); color: #fff; border-radius: 28px; padding: 22px 20px 20px;
}
.pay-amount::before {
  content: ''; position: absolute; width: 300px; height: 300px; left: 50%; top: -180px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 106, 43, 0.6), transparent 65%); pointer-events: none;
}
.pay-amount > * { position: relative; }
.pay-amount .meta { color: rgba(255, 255, 255, 0.6); font-size: 13px; font-weight: 600; }
.pay-amount .label { margin-top: 14px; color: rgba(255, 255, 255, 0.7); font-weight: 700; font-size: 14px; }
.pay-amount .sum { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 10vw, 42px); margin: 2px 0 14px; }
.pay-qr { background: #fff; border-radius: 20px; padding: 14px; display: inline-block; box-shadow: inset 0 0 0 1px var(--line); }
.pay-qr img { display: block; width: min(68vw, 280px); height: auto; }
.pay-note {
  display: flex; align-items: center; gap: 10px; text-align: left; margin-top: 14px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 10px 10px 10px 14px;
  font-weight: 700; white-space: pre-line;
}
.pay-note span { flex: 1; }
.icon-copy { border: 0; background: var(--accent-soft); color: var(--accent-dark); width: 38px; height: 38px; border-radius: 11px; cursor: pointer; flex: none; }
.pay-steps { margin: 10px 0 0; padding-left: 20px; line-height: 1.6; color: var(--muted); }
.pay-steps li { margin: 4px 0; }
.pay-steps b { color: var(--text); }
.receipt-pick {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  border: 2px dashed var(--line); border-radius: 16px; padding: 14px; transition: border-color 0.2s, background 0.2s;
}
.receipt-pick:hover { border-color: var(--accent); }
.receipt-pick > .bi { font-size: 26px; color: var(--accent); }
.receipt-pick span { display: flex; flex-direction: column; }
.receipt-pick small { color: var(--muted); font-size: 12px; }
.receipt-pick.picked { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.receipt-pick.picked > .bi { color: var(--ok); }

.card-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-note { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; font-weight: 600; margin-top: 14px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 12px; }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty .big-icon { margin-bottom: 10px; }

/* Скелетон загрузки */
.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Уведомления ---------- */
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  background: var(--espresso); color: #fff; padding: 13px 16px; border-radius: 16px; box-shadow: var(--shadow-lg);
  transition: opacity 0.3s, transform 0.3s; font-weight: 700; font-size: 14px; animation: drop 0.3s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }
.toast.hide { opacity: 0; transform: translateY(-10px); }

/* ---------- Лендинг ---------- */
.landing { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--espresso); position: relative; overflow: hidden; color: #fff; }
.landing::before { content: ''; position: absolute; width: 520px; height: 520px; top: -200px; right: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 43, 0.6), transparent 65%); }
.landing::after { content: ''; position: absolute; width: 420px; height: 420px; bottom: -220px; left: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 159, 67, 0.35), transparent 65%); }
.landing-box { position: relative; z-index: 1; max-width: 420px; text-align: center; }
.landing-box h1 { font-size: clamp(26px, 7vw, 36px); margin: 22px 0 12px; line-height: 1.15; }
.landing-box p { color: rgba(255, 255, 255, 0.7); }
.qr-art {
  width: 140px; height: 140px; margin: 0 auto; border-radius: 30px; background: #fff; padding: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(255, 255, 255, 0.06);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px;
}
.qr-art i { background: var(--espresso); border-radius: 4px; }
.qr-art i.o { background: transparent; }
.qr-art i.a { background: var(--accent); }
.landing-box a { color: rgba(255, 255, 255, 0.55); font-size: 14px; }

/* ---------- Иконки Bootstrap ---------- */
.bi { line-height: 1; vertical-align: -0.125em; }
.btn .bi, .glass-btn .bi { font-size: 1.05em; }
.big-icon { color: var(--accent); }
.item-placeholder .bi { font-size: 44px; color: rgba(60, 35, 15, 0.55); }
.cart-thumb .bi { font-size: 22px; color: rgba(60, 35, 15, 0.55); }
.status-icon .bi { font-size: 40px; color: var(--accent-2); }
.step .dot .bi { font-size: 15px; color: #fff; }
.pay-option .ic { color: var(--accent); }
.pay-option .ic .bi { font-size: 24px; }
.table-chip .bi { color: var(--accent-2); }
.add-btn .bi { font-size: 20px; vertical-align: -0.15em; }
.qty button .bi { font-size: 16px; vertical-align: -0.1em; }
.close-x { display: inline-flex; align-items: center; justify-content: center; }
.close-x .bi { font-size: 16px; }
.toast { display: flex; align-items: center; gap: 10px; }
.toast .bi { font-size: 18px; flex: none; }
.secure .bi { color: var(--ok); }
.demo-note .bi { margin-right: 4px; }
.text-accent { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Переключатель языка КЫР / РУС ---------- */
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; gap: 2px; flex: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.lang-switch button {
  border: 0; background: none; cursor: pointer; border-radius: 999px;
  padding: 6px 11px; font-size: 12px; font-weight: 800; letter-spacing: 0.03em; color: var(--muted);
}
.lang-switch button.active { background: var(--grad); color: #fff; box-shadow: 0 4px 10px rgba(255, 106, 43, 0.3); }
.lang-switch.glass { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.lang-switch.glass button { color: rgba(255, 255, 255, 0.7); }
.lang-switch.glass button.active { color: #fff; }

.hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.page-top { max-width: 480px; margin: 0 auto; padding: 16px 16px 0; display: flex; justify-content: flex-end; }
.page-top + .page-narrow { padding-top: 10px; }
.landing-lang { position: absolute; top: 18px; right: 18px; z-index: 2; }

/* ---------- Звёзды и отзывы ---------- */
.stars { display: inline-flex; gap: 2px; color: #ffb52e; font-size: 15px; vertical-align: middle; }
.stars.lg { font-size: 22px; gap: 4px; }
.star-input { display: flex; gap: 6px; margin: 10px 0 12px; }
.star-input button {
  border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  width: 48px; height: 48px; border-radius: 14px; cursor: pointer; font-size: 22px; color: var(--muted);
  transition: transform 0.12s, background 0.2s, color 0.2s;
}
.star-input button:active { transform: scale(0.9); }
.star-input button.on { color: #ffb52e; background: #fff5e0; box-shadow: inset 0 0 0 1px #ffd98a; }
@media (prefers-color-scheme: dark) { .star-input button.on { background: #3a2e14; box-shadow: inset 0 0 0 1px #6b5420; } }
.review-ask textarea { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 12px; outline: none; }
.review-ask textarea:focus { border-color: var(--accent); }

.rating-hero .sum { margin: 6px 0 4px; }
.dist { margin: 16px auto 0; max-width: 300px; }
.dist-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; margin: 5px 0; }
.dist-row .bi { color: #ffb52e; font-size: 11px; }
.dist-bar { flex: 1; height: 7px; border-radius: 9px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.dist-bar div { height: 100%; background: linear-gradient(90deg, #ffb52e, var(--accent)); border-radius: 9px; }
.dist-row span:last-child { min-width: 22px; text-align: right; opacity: 0.7; }
.review .review-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.review .review-head .muted { font-size: 12px; }
.review p { margin: 8px 0 0; line-height: 1.5; white-space: pre-line; }

/* ---------- Бронирование ---------- */
.back-link { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.page-top:has(.back-link) { justify-content: space-between; align-items: center; }
.guests-stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 14px; padding: 4px; }
.guests-stepper button { width: 44px; height: 40px; border: 0; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); font-size: 18px; cursor: pointer; }
.guests-stepper span { min-width: 44px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.line-row .muted .bi { margin-right: 4px; }

/* ---------- Главная и меню ---------- */
.landing-actions { display: grid; gap: 10px; margin-top: 26px; }
.landing-actions .btn { color: #fff; }
.btn.ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.btn.ghost-light .bi-star-fill { color: #ffb52e; }
.landing-box p a { color: rgba(255, 255, 255, 0.55); }
.rating-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; text-decoration: none;
  color: #fff; font-weight: 800; font-size: 14px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15); padding: 5px 12px; border-radius: 999px;
}
.rating-chip .bi { color: #ffb52e; }
.rating-chip span { opacity: 0.6; font-weight: 600; }
.menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
@media (max-width: 420px) { .menu-links { grid-template-columns: 1fr; } }

/* Запасные отступы для старых браузеров без gap во flex (класс ставит legacy.js) */
.no-flexgap .btn > .bi,
.no-flexgap .badge > .bi,
.no-flexgap .chip > .bi,
.no-flexgap .glass-btn > .bi,
.no-flexgap .toast > .bi { margin-right: 6px; }
.no-flexgap .nav-btn .ic { margin-right: 12px; }
.no-flexgap .order-actions > * + *,
.no-flexgap .chips > * + *,
.no-flexgap .tabs .wrap > * + * { margin-left: 8px; }
