:root { --bg:#faf7f2; --card:#fff; --ink:#2b2118; --mut:#8a7a6a; --acc:#d35400; --line:#eee4d8; }
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--ink); }
.wrap { max-width:760px; margin:0 auto; padding:16px; }
a { color:var(--acc); }
.muted { color:var(--mut); font-size:.92em; }
.empty { background:#fff3e6; border:1px dashed #e0b98a; padding:12px; border-radius:10px; color:#7a5a35; margin:12px 0; }

/* ── лендинг ── */
.hero { background:linear-gradient(135deg,#3d2b1f,#6b4423); color:#fff; text-align:center; padding:34px 16px 28px; }
.hero h1 { font-size:1.7em; } .hero p { opacity:.85; margin-top:8px; }
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; margin-top:14px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; text-decoration:none; color:var(--ink); transition:.15s; }
.card:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.08); }
.card h3 { font-size:1.05em; margin-bottom:6px; }

/* ── меню ресторана ── */
.rest-head { background:linear-gradient(135deg,#3d2b1f,#6b4423); color:#fff; padding:26px 16px 22px; text-align:center; }
.rest-head h1 { font-size:1.6em; } .rest-head .muted { color:rgba(255,255,255,.8); margin-top:4px; }
.cats { position:sticky; top:0; background:var(--bg); display:flex; gap:8px; overflow-x:auto; padding:10px 12px; z-index:5; }
.cat { border:1px solid var(--line); background:var(--card); padding:8px 14px; border-radius:20px; cursor:pointer; font-size:.95em; white-space:nowrap; }
.cat.on { background:var(--acc); color:#fff; border-color:var(--acc); }
.cat-block { margin-top:14px; }
.cat-block h2 { font-size:1.2em; margin:10px 2px; }
.dish { display:flex; gap:12px; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:12px; margin-bottom:10px; }
.dish-photo { width:96px; height:96px; object-fit:cover; border-radius:12px; flex-shrink:0; background:#f0e8dd; }
.dish-info { flex:1; min-width:0; }
.dish-top { display:flex; justify-content:space-between; gap:8px; align-items:baseline; }
.dish-top h3 { font-size:1.02em; }
.price { color:var(--acc); font-weight:700; white-space:nowrap; }
.desc { color:#5b4a3a; font-size:.93em; margin-top:4px; }
.comp { color:var(--mut); font-size:.85em; margin-top:4px; }
.badge { display:inline-block; background:#ffe0cc; color:#b34a00; font-size:.75em; padding:2px 8px; border-radius:10px; margin-top:6px; font-weight:600; }

/* ── нижняя панель: QR + корзина ── */
.bottom-bar { position:fixed; bottom:0; left:0; right:0; padding:10px 16px; background:rgba(255,255,255,.97); border-top:1px solid var(--line); display:flex; gap:10px; z-index:6; }
.bb-btn { flex:1; background:var(--acc); color:#fff; border:0; padding:12px 14px; border-radius:24px; font-size:.98em; cursor:pointer; }
.bb-cart { background:#2d5a27; }
.modal { position:fixed; inset:0; background:rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; z-index:10; padding:16px; }
.modal-box { background:#fff; border-radius:16px; padding:22px; text-align:center; max-width:380px; width:100%; max-height:88vh; overflow-y:auto; }
.modal-box img { width:240px; height:240px; border-radius:12px; margin:12px auto; display:block; }
.qr-url { word-break:break-all; font-size:.8em; color:var(--mut); margin-bottom:12px; }
.btn-close { background:#eee; border:0; padding:10px 22px; border-radius:20px; cursor:pointer; font-size:.95em; margin-top:10px; }

/* ── корзина ── */
.add { display:inline-block; margin-top:8px; background:#fff7ee; border:1px solid var(--acc); color:var(--acc); padding:6px 14px; border-radius:16px; cursor:pointer; font-size:.9em; }
.cart-box { text-align:left; }
.cart-row { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); font-size:.95em; }
.cart-name { flex:1; min-width:0; }
.cart-qty { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.qty { width:30px; height:30px; border-radius:50%; border:1px solid var(--line); background:#fff; cursor:pointer; font-size:1em; }
.cart-price { min-width:70px; text-align:right; font-weight:600; }
.cart-total { font-size:1.05em; margin:12px 0 8px; text-align:right; }
.cart-box input { width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; margin-top:8px; font:inherit; }

/* ── кухня ── */
.kpi { margin:10px 0; font-size:.95em; }
.k-order { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; margin-bottom:12px; }
.k-order.k-new { border-color:var(--acc); box-shadow:0 0 0 2px rgba(211,84,0,.15); }
.k-head { font-weight:600; margin-bottom:6px; display:flex; flex-wrap:wrap; gap:8px; }
.k-items { margin:6px 0; }
.k-item { padding:3px 0; font-size:.95em; }
.k-comment { background:#fff7ee; border-radius:8px; padding:6px 10px; margin:6px 0; font-size:.9em; }
.k-total { font-size:1em; margin:6px 0; }
.k-actions { margin-top:8px; display:flex; gap:8px; flex-wrap:wrap; }

/* ── админка ── */
.admin h2 { margin:22px 0 8px; } .admin h3 { margin:18px 0 8px; }
.tbl { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; margin:8px 0 18px; }
.tbl th, .tbl td { text-align:left; padding:9px 10px; border-bottom:1px solid var(--line); font-size:.92em; vertical-align:top; }
.tbl th { background:#f4ece1; }
.thumb { width:52px; height:52px; object-fit:cover; border-radius:8px; }
.btn { background:var(--acc); color:#fff; border:0; padding:10px 18px; border-radius:10px; cursor:pointer; font-size:.95em; text-decoration:none; display:inline-block; }
.btn.small { padding:4px 10px; font-size:.83em; border-radius:8px; margin:1px; }
.btn.danger { background:#c0392b; }
.form { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:18px; max-width:520px; }
.form label { display:block; font-size:.9em; margin-bottom:10px; }
.form input, .form textarea { width:100%; padding:9px; border:1px solid var(--line); border-radius:8px; font:inherit; margin-top:3px; background:#fffdf9; }
.form textarea { min-height:60px; }
.auth { max-width:340px; margin:60px auto; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:24px; }
.auth input { width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; margin:8px 0 12px; }
.foot { text-align:center; color:var(--mut); font-size:.85em; padding:26px 12px 90px; }
