:root {
  --bg: #fbf6ee;
  --card: #ffffff;
  --ink: #1f1a14;
  --muted: #5a5047;
  --line: #d9cdbd;
  --accent: #b4410f;
  --accent-ink: #ffffff;
  --accent-dark: #8a3009;
  --ok: #17663a;
  --ok-bg: #e4f4e9;
  --warn: #7a4a00;
  --warn-bg: #fff1d6;
  --bad: #9b1c1c;
  --bad-bg: #fde7e7;
  --focus: #0b57d0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
header.top { background: var(--ink); color: #fff; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: .2px; color: #fff; text-decoration: none; }
.badge { font-size: .85rem; background: #fff; color: var(--ink); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
h1 { font-size: 2rem; line-height: 1.15; margin: 20px 0 8px; }
h2 { font-size: 1.4rem; margin: 0 0 10px; }
h3 { font-size: 1.1rem; margin: 16px 0 6px; }
p { margin: 0 0 12px; }
.lead { font-size: 1.15rem; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 16px 0; }
.price { font-size: 2rem; font-weight: 800; color: var(--accent); }
ul.plain { padding-left: 20px; margin: 0 0 12px; }
ul.plain li { margin-bottom: 6px; }
a { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

label, .label { display: block; font-weight: 700; margin: 14px 0 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #8c7e6d; border-radius: 10px; padding: 12px; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input.invalid, textarea.invalid { border-color: var(--bad); }
.err { color: var(--bad); font-weight: 600; margin-top: 4px; min-height: 0; }
.err:empty { display: none; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row.two { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 2fr 1.5fr 1fr; } }

.chips, .days, .times { display: flex; flex-wrap: wrap; gap: 10px; }
button, .btn {
  font: inherit; font-weight: 700; cursor: pointer; min-height: 48px; padding: 10px 18px;
  border-radius: 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
button:hover, .btn:hover { background: #f1e8da; }
button[aria-pressed=true], button.on { background: var(--ink); color: #fff; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: 1.15rem; min-height: 56px; }
button.primary:hover, .btn.primary:hover { background: var(--accent-dark); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.big { width: 100%; }
.chip { min-height: 48px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 12px; padding: 14px 16px; margin: 14px 0; font-weight: 600; }
.notice.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #9fd3b0; }
.notice.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #e7c379; }
.notice.bad { background: var(--bad-bg); color: var(--bad); border: 1px solid #e5a3a3; }
.notice:empty { display: none; }
.soon { text-align: center; padding: 28px 18px; }
.soon h2 { font-size: 1.8rem; }

.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.thumb { position: relative; }
.thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.thumb button { position: absolute; top: -8px; right: -8px; min-height: 32px; width: 32px; padding: 0; border-radius: 50%; font-size: 1rem; background: #fff; }
input[type=file] { width: 100%; font: inherit; padding: 8px 0; }

.link-box { word-break: break-all; background: #f4ece0; border-radius: 10px; padding: 12px; font-weight: 600; }

.status-pill { display: inline-block; padding: 4px 14px; border-radius: 999px; font-weight: 800; font-size: 1rem; }
.status-pill.pending { background: var(--warn-bg); color: var(--warn); }
.status-pill.accepted, .status-pill.done { background: var(--ok-bg); color: var(--ok); }
.status-pill.declined, .status-pill.cancelled { background: var(--bad-bg); color: var(--bad); }

table.lines { width: 100%; border-collapse: collapse; margin: 8px 0; }
table.lines th, table.lines td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lines td.num, table.lines th.num { text-align: right; white-space: nowrap; }
table.lines tr.total td { font-weight: 800; border-bottom: 0; }
.scope { white-space: pre-wrap; background: #f4ece0; border-radius: 10px; padding: 12px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checkline { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; font-weight: 600; }
.checkline input { width: 28px; height: 28px; flex: none; margin-top: 2px; }
footer.site { color: var(--muted); font-size: .9rem; padding: 24px 16px 40px; text-align: center; }
.hidden { display: none !important; }
@media (min-width: 900px) { body { font-size: 19px; } h1 { font-size: 2.6rem; } }
.card-sum { margin-top: 12px; }
