:root {
  --brand: #7a5140;
  --bg: #fbf5f1;
  --card: #fffdfb;
  --ink: #3b2a22;
  --muted: #7d675c;
  --line: #ecd9d1;
  --soft: #f6dfda;
  --ok: #5b7a5f;
  --warn: #b4532a;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.embed { background: transparent; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }

.wrap { max-width: 640px; margin: 0 auto; padding: 28px 16px 60px; }
.brand { text-align: center; margin-bottom: 24px; }
.brand h1 { font-size: 36px; }
.brand p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps span { flex: 1; height: 3px; border-radius: 3px; background: var(--line); transition: background .3s; }
.steps span.on { background: var(--brand); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-title h2 { font-size: 26px; flex: 1; }
.back { border: 0; background: none; color: var(--muted); padding: 4px 0; font-size: 14px; }
.back:hover { color: var(--ink); }

.cat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.cat:first-child { margin-top: 0; }
.svc {
  width: 100%; text-align: left; display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.svc:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.svc .info { flex: 1; }
.svc .name { font-weight: 600; }
.svc .desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.svc .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.svc .price { font-weight: 600; white-space: nowrap; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 16px;
  transition: all .15s;
}
.pill:hover { border-color: var(--brand); }
.pill.sel { background: var(--brand); border-color: var(--brand); color: #fff; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-weight: 600; }
.cal-nav { border: 1px solid var(--line); background: var(--card); width: 34px; height: 34px; border-radius: 50%; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-size: 11.5px; color: var(--muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .05em; }
.cal button {
  aspect-ratio: 1; border: 0; background: none; border-radius: 50%; font-size: 14.5px; color: #c5beb7;
  max-width: 44px; width: 100%; justify-self: center; cursor: default;
}
.cal button.open { color: var(--ink); background: var(--soft); cursor: pointer; font-weight: 500; }
.cal button.open:hover { outline: 1.5px solid var(--brand); }
.cal button.sel { background: var(--brand); color: #fff; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 6px; }
.times .pill { padding: 10px 6px; text-align: center; }
.day-label { margin: 20px 0 8px; font-weight: 600; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

.summary { background: var(--soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 14.5px; }
.summary .line { display: flex; justify-content: space-between; padding: 3px 0; gap: 12px; }
.summary .line span:first-child { color: var(--muted); }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 600; }
.summary .total span:first-child { color: var(--ink); }
.policy { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin-bottom: 18px; }
.check input { margin-top: 3px; accent-color: var(--brand); }

.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  width: 100%; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--brand); color: #fff;
  font-weight: 600; font-size: 15.5px; transition: opacity .15s;
}
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: none; color: var(--warn); border: 1px solid var(--line); }
.note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; }
.err { background: #fbece6; color: var(--warn); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 20px 0; text-align: center; }
.center { text-align: center; }
.big-check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center;
  margin: 0 auto 14px; font-size: 26px;
}
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.field .checks label { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; margin: 0; }
.field .checks input, .check input, .checks input { width: auto; padding: 0; accent-color: var(--brand); }

.promo { background: var(--soft); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; text-align: center; }
.was { color: var(--muted); font-weight: 400; margin-right: 6px; }
.sale-tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--ok); background: #e7efe8; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
