@font-face { font-family: "DejaVu Sans"; src: url("/assets/fonts/DejaVuSans.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DejaVu Sans"; src: url("/assets/fonts/DejaVuSans-Bold.ttf"); font-weight: 700; font-display: swap; }
:root {
  --bg: #faf8f4; --card: #ffffff; --text: #1d1d1b; --muted: #5c5a55;
  --line: #ddd7cb; --accent: #1f5e4a; --on-accent: #ffffff; --accent-soft: #e4efe9;
  --danger: #a3262a; --tag-bg: #efeae0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 "DejaVu Sans", Verdana, sans-serif; padding-bottom: 88px; }
.top, main, .foot { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 24px; }
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 19px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 17px; margin: 20px 0 8px; }
a { color: var(--accent); }
.muted, .hint { color: var(--muted); }
.hint { font-size: 16px; margin: 6px 0 0; }
.lead { margin: 12px 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); align-items: center; justify-content: center; font-size: 16px; }
label { display: block; margin: 14px 0 6px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8a8578; border-radius: 8px; font: inherit; color: var(--text); background: #fff; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#f-time-other { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { min-height: 44px; min-width: 56px; padding: 0 14px; border: 1px solid var(--accent); background: #fff; color: var(--accent); border-radius: 22px; font: inherit; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; position: sticky; top: 0; background: var(--card); z-index: 2; }
.tab { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 22px; background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.dishes { list-style: none; margin: 0; padding: 0; }
.dish { display: grid; grid-template-columns: 56px 1fr; gap: 8px 12px; align-items: start; padding: 12px 8px; margin: 0 -8px; border-top: 1px solid var(--line); border-radius: 8px; }
.dish.on { background: var(--accent-soft); }
.dish .stepper { grid-column: 2; }
.ph { width: 56px; height: 56px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; overflow: hidden; position: relative; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.name { font-weight: 700; }
.desc { color: var(--muted); font-size: 16px; }
.meta { font-size: 16px; }
.demo { display: inline-block; background: var(--tag-bg); color: var(--muted); padding: 0 8px; border-radius: 10px; font-size: 16px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); background: #fff; color: var(--accent); font-family: inherit; font-weight: 700; font-size: 22px; line-height: 1; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.qty { min-width: 36px; text-align: center; font-weight: 700; }
.rows { list-style: none; padding: 0; margin: 0 0 12px; }
.rows li { padding: 10px 0; border-top: 1px solid var(--line); }
.rows .r-name { font-weight: 700; }
.rows .r-line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sum { margin: 0; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 700; text-align: right; }
.sum .total { border-top: 2px solid var(--text); margin-top: 6px; padding-top: 10px; font-size: 20px; }
.sum .total dt { color: var(--text); font-weight: 700; }
.error { color: var(--danger); font-weight: 700; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 10px; font-family: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
#submit { width: 100%; margin-top: 16px; }
#submit:disabled { opacity: .6; }
pre { white-space: pre-wrap; font-family: inherit; font-size: 16px; line-height: 1.45; background: var(--bg); padding: 12px; border-radius: 8px; }
.foot { padding-bottom: 24px; font-size: 16px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; z-index: 5; }
.bar-label { color: var(--muted); font-size: 16px; }
.bar-total { font-size: 20px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* --- выбор даты (занятые дни не рисуются) --- */
.date-btn { width: 100%; text-align: left; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid #c9cfd6; border-radius: 10px; background: #fff; color: #1b1f24; cursor: pointer; }
.date-btn.is-empty { color: #6b747e; }
.date-btn:focus-visible { outline: 3px solid #1a6cc4; outline-offset: 2px; }

.cal { margin-top: 10px; border: 1px solid #d5dae0; border-radius: 12px; background: #fff;
  padding: 12px; box-shadow: 0 8px 24px rgba(20,26,32,.10); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-weight: 600; text-transform: capitalize; }
.cal-prev, .cal-next { width: 44px; height: 44px; font-size: 22px; line-height: 1;
  border: 1px solid #c9cfd6; border-radius: 10px; background: #f6f8fa; cursor: pointer; color: #1b1f24; }
.cal-week, .cal-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: 12px; color: #6b747e; padding: 6px 0; }
.cal-day { min-height: 44px; border: 1px solid #d5dae0; border-radius: 8px; background: #fff;
  font: inherit; font-size: 15px; color: #1b1f24; cursor: pointer; }
.cal-day:hover { background: #eef4fc; border-color: #1a6cc4; }
.cal-day.is-sel { background: #1a6cc4; color: #fff; border-color: #1a6cc4; }
.cal-pad, .cal-off { min-height: 44px; }
.cal-hint { margin: 10px 0 0; font-size: 13px; color: #5a636c; }
@media print { .cal { display: none; } }
