:root {
  --brand: #14614f;
  --brand-2: #6cb33f;
  --brand-soft: #e8f3ee;
  --bg: #f6f8f7;
  --card: #ffffff;
  --text: #1c2420;
  --muted: #66716b;
  --line: #e3e8e5;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --warn-soft: #fff6dd;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 14px 18px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--brand); color: #fff; text-decoration: none; transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.danger.ghost { background: transparent; color: var(--danger); border-color: #f2c4bf; }
.btn.sm { padding: 8px 12px; font-size: 14px; border-radius: 10px; }

label { display: block; font-weight: 500; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 0; border-color: transparent; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
input.ltr, .ltr { direction: ltr; text-align: right; }

.alert { padding: 12px 14px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 15px; }
.alert.info { background: var(--brand-soft); color: var(--brand); }
.alert.warn { background: var(--warn-soft); color: #7a5b00; }

/* ---------- booking page ---------- */
.profile { text-align: center; padding: 34px 0 10px; }
.profile .photo { width: 128px; height: 128px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; position: relative;
  background: linear-gradient(145deg, var(--brand-soft), #d3e8dd); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--brand-soft), 0 8px 24px rgba(20,97,79,.18);
  display: grid; place-items: center; color: var(--brand); font-size: 40px; font-weight: 700; }
.profile .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.profile h1 { font-size: 28px; margin: 0; }
.profile .subtitle { margin: 2px 0 6px; color: var(--brand); font-weight: 500; letter-spacing: .04em; unicode-bidi: plaintext; }
.profile p { margin: 0; }
.desc { white-space: pre-line; color: #3b4741; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border: 0; }
.hours .today { font-weight: 700; color: var(--brand); }
.hours .closed { color: var(--danger); }

.topbar { display: flex; align-items: center; gap: 8px; padding: 14px 0; }
.topbar h2 { margin: 0; font-size: 20px; flex: 1; }
.back { background: none; border: 0; font-size: 24px; cursor: pointer; padding: 4px 8px; color: var(--text); }
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--brand); }

.svc { display: block; width: 100%; text-align: right; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  font: inherit; cursor: pointer; color: inherit; }
.svc:hover { border-color: var(--brand-2); }
.svc .meta { color: var(--muted); font-size: 14px; }
.svc b { font-size: 17px; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.day { flex: none; width: 64px; padding: 10px 0; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; font: inherit; color: inherit; scroll-snap-align: start; }
.day small { display: block; color: var(--muted); font-size: 12px; }
.day b { font-size: 20px; display: block; }
.day.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.day.sel small { color: #d6ece3; }
.month-label { font-weight: 600; margin: 4px 0 8px; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time { padding: 11px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; color: inherit; direction: ltr; }
.time:hover { border-color: var(--brand-2); }
.time.sel { background: var(--brand); color: #fff; border-color: var(--brand); }

.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }

.otp { letter-spacing: 10px; font-size: 26px; text-align: center; direction: ltr; }
.big-ok { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
  font-size: 38px; margin: 10px auto; }
footer { padding: 30px 0 40px; text-align: center; color: var(--muted); font-size: 13px; }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.intro { padding: 16px 18px; margin-bottom: 16px; background: linear-gradient(180deg, var(--brand-soft), #fff 70%); border-color: #cfe5da; }
.intro h3 { font-size: 19px; color: var(--brand); }
.intro .desc { font-size: 15px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; background: #fff; color: var(--brand); border: 1px solid #cfe5da; white-space: nowrap; }
