/* Тема AnjiLee: белый и зелёный, как в логотипе. Основные цвета меняются здесь. */
:root {
  --bg: #f5f6f2;
  --card: #ffffff;
  --ink: #23291f;
  --muted: #7d8577;
  --line: #e6e9e1;
  --accent: #667562;
  --accent-dark: #525f4e;
  --accent-soft: #e9eee6;
  --green: #3f9a5a;
  --red: #c94a3d;
}

[x-cloak] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .45; cursor: default; }
input, textarea, select { font: inherit; color: var(--ink); }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.accent { color: var(--accent); }

.app { max-width: 560px; margin: 0 auto; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 6px; }
.logo { height: 54px; width: auto; display: block; }
.status { text-align: right; font-size: 13px; font-weight: 600; }
.status p { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.status .muted { font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-open { background: var(--green); }
.dot-closed { background: var(--red); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); white-space: nowrap;
  transition: background .15s, color .15s;
}
.chip-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Меню */
.menu { padding: 6px 16px 32px; }
.menu.with-bar { padding-bottom: 110px; }
.section { padding-top: 16px; }
.section > h2 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }

/* Карточка бизнес-ланча */
.lunch {
  padding: 18px; border-radius: 22px; color: #fff;
  background: linear-gradient(140deg, #7b8a76 0%, #667562 55%, #56644f 100%);
  box-shadow: 0 10px 28px rgba(86, 100, 79, .3);
}
.lunch-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lunch-hours { font-size: 13px; font-weight: 700; opacity: .85; letter-spacing: .02em; }
.lunch h2 { font-size: 24px; font-weight: 800; margin-top: 2px; }
.lunch-price { text-align: right; }
.lunch-price s { display: block; font-size: 14px; opacity: .7; }
.lunch-price b { font-size: 28px; font-weight: 800; white-space: nowrap; }
.lunch-note { margin-top: 10px; font-size: 14px; opacity: .92; }
.lunch-badge {
  display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); font-size: 12.5px; font-weight: 600;
}
.lunch .btn-light {
  width: 100%; margin-top: 14px; background: #fff; color: var(--accent-dark); box-shadow: none;
}
.lunch .btn-light:active:not(:disabled) { background: #eef1ec; }

/* Список блюд */
.list { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(30, 40, 25, .05), 0 4px 14px rgba(30, 40, 25, .04); }
.dish { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.dish + .dish { border-top: 1px solid var(--line); }
.d-emoji {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 28px; background: var(--accent-soft);
}
.d-emoji img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.d-emoji { overflow: hidden; }
.d-info { flex: 1; min-width: 0; }
.d-info h3 { font-size: 15px; font-weight: 650; line-height: 1.25; }
.price { display: block; margin-top: 3px; font-size: 15px; }
.price .old { margin-right: 6px; color: var(--muted); font-weight: 500; font-size: 13px; }

.add {
  flex: none; width: 38px; height: 38px; border-radius: 12px; font-size: 22px; font-weight: 600; line-height: 1;
  background: var(--accent-soft); color: var(--accent);
}
.add:active { transform: scale(.93); }
.stepper { flex: none; display: flex; align-items: center; border-radius: 12px; background: var(--accent); color: #fff; }
.stepper button { width: 32px; height: 38px; font-size: 20px; font-weight: 600; color: #fff; }
.stepper span { min-width: 16px; text-align: center; font-weight: 700; }
.stepper.small { background: var(--accent-soft); color: var(--accent); }
.stepper.small button { width: 28px; height: 30px; font-size: 17px; color: var(--accent); }

.banner { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #fff4d6; color: #6b4e00; font-size: 14px; }
.contacts { margin-top: 22px; padding: 10px; text-align: center; color: var(--muted); font-size: 13.5px; }
.contacts p + p { margin-top: 4px; }

.skeleton .sk { height: 74px; margin-bottom: 10px; border-radius: 18px; background: #e8ebe4; animation: pulse 1.2s ease-in-out infinite; }
.skeleton .tall { height: 190px; margin-top: 16px; }
@keyframes pulse { 50% { opacity: .5; } }
.error-box { text-align: center; padding: 40px 10px; color: var(--muted); }
.error-box .btn { margin-top: 14px; display: inline-flex; }

/* Кнопки */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; border-radius: 16px; font-weight: 700;
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 20px rgba(86, 100, 79, .28);
}
.btn:active:not(:disabled) { background: var(--accent-dark); }
.btn-big { width: 100%; justify-content: space-between; padding: 15px 20px; font-size: 16px; }
.btn-big:disabled { opacity: .5; }

.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, rgba(245, 246, 242, 0));
}
.cartbar .btn { max-width: 528px; margin: 0 auto; }

/* Шторки */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(20, 25, 18, .45); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: 560px; margin: 0 auto; max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 18px 16px max(18px, env(safe-area-inset-bottom));
}
.slide-in { animation: up .25s ease-out; }
.slide-out { animation: up .2s ease-in reverse; }
@keyframes up { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sheet-head h2 { font-size: 20px; font-weight: 800; }
.close { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--muted); }

.pick { margin-top: 12px; }
.pick h4 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px;
  background: var(--card); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; text-align: left;
}
.opt-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.sheet .btn-big { margin-top: 16px; }

.lines { list-style: none; margin: 0 0 14px; padding: 0; }
.lines li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.l-emoji { font-size: 22px; }
.l-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.l-name small { display: block; font-weight: 500; font-size: 12px; line-height: 1.3; margin-top: 2px; }
.l-sum { min-width: 64px; text-align: right; font-size: 14px; }

.seg { display: flex; gap: 4px; padding: 4px; margin-top: 12px; background: #e7eae2; border-radius: 14px; }
.seg button { flex: 1; padding: 9px 6px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(30, 40, 25, .12); }

.hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.warn { color: var(--red); font-weight: 600; }
.field { display: block; margin-top: 12px; }
.field > span { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field i { font-style: normal; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); outline: none; font-size: 15px; resize: none;
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 360px) { .two { grid-template-columns: 1fr; } }

.totals { margin: 16px 0 12px; padding: 12px 14px; background: var(--card); border-radius: 14px; font-size: 14px; }
.totals p { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 17px; font-weight: 800; }
.err { margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: #fde4e1; color: #a12a1f; font-size: 14px; }

.sheet-success { text-align: center; padding: 30px 10px 40px; }
.big-emoji { font-size: 64px; }
.sheet-success h2 { margin-top: 8px; font-size: 22px; font-weight: 800; }
.sheet-success p { margin-top: 6px; color: var(--muted); }
