/* ===== LM Beauty Studio — нежный кремово-золотой стиль, mobile first ===== */
:root {
  --cream: #f6efe7;
  --paper: #fffcf8;
  --sand: #efe5d9;
  --line: #e6dacb;
  --taupe: #9a8877;
  --ink: #3b302a;
  --ink-2: #6b5c50;
  --gold: #b48d57;
  --gold-2: #d4b98d;
  --gold-soft: #f3e9da;
  --ok: #6f8f6a;
  --err: #b5543c;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r: 18px;
  --shadow: 0 8px 28px rgba(90, 70, 50, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }

/* ---------- логотип ---------- */
.hero {
  text-align: center; padding: 40px 16px 8px;
  background: radial-gradient(120% 70% at 50% 0%, #fffaf3 0%, var(--cream) 75%);
}
.logo {
  width: 172px; height: 172px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(160deg, #fdf9f3, #efe3d3);
  box-shadow: inset 0 0 0 2px var(--gold-2), inset 0 0 0 8px #fbf6ef,
              inset 0 0 0 9px rgba(180, 141, 87, .35), var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: rise .8s cubic-bezier(.2, .8, .2, 1) both;
}
.logo.sm { width: 44px; height: 44px; margin: 0; animation: none;
  box-shadow: inset 0 0 0 1px var(--gold-2), var(--shadow); }
.logo-lm { font-family: var(--serif); font-size: 68px; line-height: .85; font-weight: 500;
  letter-spacing: -3px; padding-right: 3px;
  background: linear-gradient(170deg, #c9a46c 10%, #9c7440 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.sm .logo-lm { font-size: 20px; letter-spacing: -1px; padding-right: 1px; }
.logo-sub { font-size: 9.5px; letter-spacing: .34em; padding-left: .34em; color: var(--ink-2); margin-top: 8px; font-weight: 600; }
.logo-line { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--gold); }
.logo-line span { width: 30px; height: 1px; background: var(--gold-2); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ink-2); margin: 0 0 12px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2);
  text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper);
}
.chip-link svg { color: var(--gold); flex: none; }

/* ---------- шаги ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 150px; }
.step { margin-top: 30px; scroll-margin-top: 16px; transition: opacity .4s, filter .4s; }
.step.locked { opacity: .38; pointer-events: none; filter: saturate(.4); }
.step-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 19px; }
.step-h h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; margin: 0; }

.list { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .12s;
  animation: rise .45s cubic-bezier(.2, .8, .2, 1) both;
}
.opt:active { transform: scale(.985); }
.opt.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--serif); font-size: 26px; color: var(--gold);
  background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-2);
}
.opt-main { flex: 1; min-width: 0; }
.opt-title { font-weight: 600; font-size: 15.5px; }
.opt-sub { font-size: 13px; color: var(--taupe); margin-top: 2px; }
.opt-price { font-family: var(--serif); font-size: 21px; white-space: nowrap; }
.opt-price small { font-family: var(--sans); font-size: 12px; color: var(--taupe); }
.check {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); flex: none;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.opt.on .check { background: var(--gold); border-color: var(--gold); }
.opt.on .check::after {
  content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: translate(0, -1px) rotate(45deg);
}

/* даты */
.dates {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none;
}
.dates::-webkit-scrollbar { display: none; }
.day {
  flex: none; scroll-snap-align: start; width: 60px; padding: 10px 0 9px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; gap: 3px; transition: .2s;
}
.day small { font-size: 11px; color: var(--taupe); text-transform: uppercase; letter-spacing: .06em; }
.day b { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1; }
.day.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.on small { color: #e9dccb; }
.day:disabled { opacity: .35; background: transparent; cursor: default; }

/* время */
.slot-group { margin-bottom: 16px; }
.slot-group h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--taupe); font-weight: 600; margin: 0 0 8px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  padding: 12px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  font-weight: 600; font-variant-numeric: tabular-nums; transition: .2s;
}
.slot.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.empty {
  padding: 20px; text-align: center; color: var(--taupe); background: var(--paper);
  border: 1px dashed var(--line); border-radius: var(--r); font-size: 14px;
}

/* поля */
.field { margin-bottom: 12px; }
.field label, .lbl {
  display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--taupe); margin: 0 0 6px; font-weight: 600;
}
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--paper); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
select {
  padding-right: 36px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b48d57' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180, 141, 87, .15); }
input[type=checkbox] { width: auto; -webkit-appearance: auto; appearance: auto; accent-color: var(--gold); }
textarea { resize: vertical; }

/* кнопки */
.btn {
  border: 0; border-radius: 14px; padding: 14px 22px; background: var(--ink); color: #fff;
  font-weight: 600; letter-spacing: .02em; transition: opacity .2s, transform .12s; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn.gold { background: var(--gold); }
.btn.line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.wa { background: #4caf7a; }
.btn.small { padding: 8px 12px; font-size: 13.5px; border-radius: 11px; font-weight: 600; }
.btn.block { width: 100%; }

/* нижняя панель */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 252, 248, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.bar.show { transform: none; }
.bar-in { max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.bar-info { flex: 1; min-width: 0; }
.bar-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-info span { font-size: 13px; color: var(--taupe); }

.msg { padding: 12px 14px; border-radius: 14px; margin-top: 12px; font-size: 14px; }
.msg.ok { background: #edf3ea; color: var(--ok); }
.msg.err { background: #f8e8e2; color: var(--err); }

footer { text-align: center; margin-top: 48px; color: var(--taupe); font-size: 13px; }
footer .logo-line { justify-content: center; margin-bottom: 10px; }
footer a { color: var(--ink-2); }

/* окно «Вы записаны» */
.sheet-bg {
  position: fixed; inset: 0; z-index: 20; background: rgba(59, 48, 42, .35);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .25s;
}
.sheet {
  background: var(--paper); width: 100%; max-width: 560px; border-radius: 28px 28px 0 0;
  padding: 30px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center;
  animation: up .45s cubic-bezier(.2, .8, .2, 1);
}
.sheet h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 0 0 6px; }
.sheet p { color: var(--ink-2); margin: 0 0 18px; }
.done-icon {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-2);
}
.ticket { text-align: left; background: var(--cream); border-radius: var(--r); padding: 4px 16px; margin-bottom: 16px; }
.ticket div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ticket div:last-child { border: 0; }
.ticket span { color: var(--taupe); }
.ticket b { text-align: right; font-weight: 600; }
.sheet .btns { display: grid; gap: 8px; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 600px) {
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===================== АДМИНКА ===================== */
.adm { max-width: 760px; margin: 0 auto; padding: 0 16px 60px; }
.adm-top {
  position: sticky; top: 0; z-index: 5; background: rgba(246, 239, 231, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  margin: 0 -16px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line);
}
.adm-head { display: flex; align-items: center; gap: 12px; }
.adm-head h1 { flex: 1; margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.seg { display: flex; gap: 4px; margin-top: 10px; background: var(--sand); padding: 4px; border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 10px; border-radius: 11px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(90, 70, 50, .1); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-top: 12px; }
.card h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 4px; }
.card h2 .muted { font-family: var(--sans); font-size: 13px; }
.muted { color: var(--taupe); }
.daynav { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.daynav input { flex: 1; text-align: center; }
.daynav .btn { padding: 12px 14px; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid2 .full { grid-column: 1 / -1; }

.bk { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; flex-wrap: wrap; }
.bk:first-of-type { border-top: 0; }
.bk-time { font-family: var(--serif); font-size: 22px; line-height: 1; min-width: 56px; }
.bk-time small { display: block; font-family: var(--sans); font-size: 12px; color: var(--taupe); margin-top: 4px; }
.bk-main { flex: 1; min-width: 0; word-break: break-word; }
.bk-main b { font-weight: 600; }
.bk-main .muted { font-size: 13.5px; margin-top: 2px; }
.bk-act { display: flex; gap: 6px; width: 100%; padding-left: 68px; }
.bk-act select { flex: 1; padding: 9px 34px 9px 12px; font-size: 14px; border-radius: 11px; }
.bk-act a, .bk-act button { flex: none; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); vertical-align: 2px; margin-left: 4px; }
.bk.st-cancelled { opacity: .45; }
.bk.st-cancelled .bk-main b { text-decoration: line-through; }
.bk.st-done .bk-time { color: var(--taupe); }

.ecard .lbl { margin-top: 10px; }
.ecard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 10px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.wds { display: flex; gap: 5px; }
.wd { flex: 1; max-width: 52px; }
.wd input { display: none; }
.wd span {
  display: grid; place-items: center; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--taupe); cursor: pointer; transition: .2s;
}
.wd input:checked + span { background: var(--gold); border-color: var(--gold); color: #fff; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }

#toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px;
  opacity: 0; transition: .25s; pointer-events: none; z-index: 30; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--err); }
.login { max-width: 380px; margin: 0 auto; padding: 48px 16px; text-align: center; }
.login form { text-align: left; margin-top: 24px; }

/* ===================== v3: фото, виды услуг, кабинет ===================== */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xs { width: 22px; height: 22px; font-size: 12px; }
.avatar.sm { width: 40px; height: 40px; font-size: 18px; }
.avatar.lg { width: 84px; height: 84px; font-size: 36px; }
.stack { display: flex; flex: none; }
.stack .avatar + .avatar { margin-left: -16px; box-shadow: 0 0 0 2px var(--paper), inset 0 0 0 1px var(--gold-2); }
.opt.static { cursor: default; }
.opt.static:active { transform: none; }
.cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 700; margin: 22px 2px 8px; }
.cat:first-child { margin-top: 0; }
.opt-title .pill, .pill { font-style: normal; }
.small-text { font-size: 13px; line-height: 1.45; }
.center { text-align: center; }

/* шапка кабинета */
.adm-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-title b { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-title small { font-size: 12px; color: var(--taupe); }
.seg button.hidden { display: none; }

/* неделя */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.cal-head b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.cal-head .btn { width: 40px; padding: 8px 0; font-size: 18px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; touch-action: pan-y; }
.wd-cell {
  border: 1px solid var(--line); background: var(--paper); border-radius: 14px; padding: 8px 0 7px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: .2s;
}
.wd-cell small { font-size: 10.5px; color: var(--taupe); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.wd-cell b { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.05; }
.wd-cell .cnt { min-width: 20px; height: 18px; border-radius: 9px; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; background: var(--gold-soft); color: var(--gold); }
.wd-cell .cnt.zero { background: transparent; color: var(--line); }
.wd-cell .cnt.new { background: var(--gold); color: #fff; }
.wd-cell.today { border-color: var(--gold-2); }
.wd-cell.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.wd-cell.on small { color: #e9dccb; }
.wd-cell.on .cnt.zero { color: #6b5c50; }

.view-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.seg.mini { margin: 0; flex: 1; }
.seg.mini button { padding: 7px 8px; font-size: 13px; }
.mchips { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.mchips button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none;
  border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 5px 12px 5px 6px; font-size: 13.5px; font-weight: 600;
}
.mchips button:first-child { padding-left: 12px; }
.mchips button.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.daysum { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 16px 2px 8px; flex-wrap: wrap; }
.daysum b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.daysum span { font-size: 13px; color: var(--taupe); font-weight: 600; }

/* расписание по часам */
.tl { position: relative; display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 8px 10px 0; }
.tl-hours { position: relative; width: 46px; flex: none; }
.tl-hour { position: absolute; left: 0; right: 0; height: 0; }
.tl-hour span { position: absolute; top: -8px; right: 6px; font-size: 11px; color: var(--taupe); font-variant-numeric: tabular-nums; }
.tl-cols { flex: 1; display: flex; gap: 6px; min-width: 0; }
.tl-col { flex: 1; min-width: 0; }
.tl-colhead { height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; }
.tl-body {
  position: relative; border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(60 * 1.3px));
}
.tl-closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, rgba(239,229,217,.7) 0 5px, transparent 5px 10px); }
.tl-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, rgba(239,229,217,.9) 0 5px, transparent 5px 10px); display: flex; justify-content: center; padding-top: 30px; }
.tl-off span { font-size: 12px; color: var(--taupe); background: var(--paper); padding: 4px 10px; border-radius: 99px; height: fit-content; }
.tl-bk {
  position: absolute; left: 4px; right: 0; border: 0; text-align: left; overflow: hidden;
  border-radius: 10px; padding: 5px 8px; display: flex; flex-direction: column; gap: 1px;
  background: var(--gold-soft); border-left: 3px solid var(--gold); color: var(--ink); font-size: 13px; line-height: 1.25;
  box-shadow: 0 1px 3px rgba(90, 70, 50, .08);
}
.tl-bk b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-t { font-size: 11.5px; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-s { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tl-bk.st-new { background: #fff3df; border-left-color: #d79a3d; }
.tl-bk.st-confirmed { background: var(--gold-soft); }
.tl-bk.st-done { background: #edf3ea; border-left-color: var(--ok); }
.tl-bk.st-noshow { background: #f6e9e4; border-left-color: var(--err); opacity: .75; }
.tl.multi .tl-bk b { font-size: 13px; }
.tl-now { position: absolute; left: 40px; right: 6px; height: 2px; background: var(--err); margin-top: 10px; pointer-events: none; }
.tl-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--err); }
.pill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; background: #d79a3d; color: #fff; vertical-align: 1px; text-transform: uppercase; }

/* список */
.list-day { padding: 14px 14px 6px; }
.li { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; padding: 11px 0; border-top: 1px solid var(--line); }
.list-day h2 + .li { border-top: 0; }
.li-time { font-family: var(--serif); font-size: 21px; min-width: 52px; line-height: 1; }
.li-time small { display: block; font-family: var(--sans); font-size: 11.5px; color: var(--taupe); margin-top: 3px; }
.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.li-main b { font-weight: 600; }
.li-main span { font-size: 13px; color: var(--taupe); }
.li-st { font-size: 11.5px; font-weight: 600; color: var(--taupe); white-space: nowrap; }
.li.st-new .li-st { color: #d79a3d; }
.li.st-done .li-st { color: var(--ok); }
.li.st-cancelled, .li.st-noshow { opacity: .45; }
.li.st-cancelled b { text-decoration: line-through; }

/* кнопка + */
.fab {
  position: fixed; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 8;
  width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--gold); color: #fff;
  font-size: 30px; line-height: 1; box-shadow: 0 8px 22px rgba(180, 141, 87, .45);
}
#tab-bookings { padding-bottom: 90px; }

/* выезжающие окна в кабинете */
.sheet.left { text-align: left; max-height: 92vh; overflow-y: auto; padding-top: 10px; }
.sheet.left h2 { font-size: 28px; }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.bk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.bk-when { color: var(--taupe); font-size: 14px; }
.bk-time-big { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.status-dot { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); white-space: nowrap; }
.status-dot.st-new { background: #fff3df; color: #c0852b; }
.status-dot.st-done { background: #edf3ea; color: var(--ok); }
.status-dot.st-noshow, .status-dot.st-cancelled { background: #f6e9e4; color: var(--err); }
.btns2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.st-pick button { border: 1px solid var(--line); background: var(--paper); border-radius: 11px; padding: 9px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.st-pick button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-pick button.on.st-done { background: var(--ok); border-color: var(--ok); }
.st-pick button.on.st-noshow, .st-pick button.on.st-cancelled { background: var(--err); border-color: var(--err); }
.st-pick button.on.st-new { background: #d79a3d; border-color: #d79a3d; }
details.move { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
details.move summary { font-weight: 600; cursor: pointer; }
.btn.danger { color: var(--err); }

/* профиль */
.photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.photo-btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick input { display: none; }
.pick span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--taupe); cursor: pointer; transition: .2s; }
.pick input:checked + span { background: var(--gold); border-color: var(--gold); color: #fff; }
.ecard-foot > span { display: flex; gap: 6px; }

/* календарь выходных */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.cal-wh { text-align: center; font-size: 11px; color: var(--taupe); font-weight: 700; padding: 4px 0; }
.cd {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  font-weight: 600; font-size: 15px; position: relative; display: grid; place-items: center; transition: .15s;
}
.cd i { position: absolute; bottom: 5px; left: 50%; margin-left: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.cd.off { background: var(--gold); border-color: var(--gold); color: #fff; }
.cd.off i { background: #fff; }
.cd.weekly { background: repeating-linear-gradient(45deg, var(--sand) 0 4px, transparent 4px 8px); color: var(--taupe); border-color: transparent; }
.cd.past { opacity: .35; }
.cd.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cd:disabled { cursor: default; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--taupe); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-off { background: var(--gold); }
.lg-weekly { background: repeating-linear-gradient(45deg, var(--sand) 0 3px, transparent 3px 6px); border: 1px solid var(--line); }
.lg-dot { width: 6px !important; height: 6px !important; border-radius: 50% !important; background: var(--gold); }
#tabs button { padding: 8px 4px; font-size: 12.5px; min-width: 0; }

/* ===== v4: шапка, вкладки услуг, номера шагов ===== */
.tagline { font-size: 23px; margin-bottom: 8px; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; margin: 0 auto 16px; max-width: 340px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); font-weight: 600; }
.hero-tags i { color: var(--gold-2); font-style: normal; }

/* номера шагов: аккуратный кружок, после выбора — галочка */
.step-h { align-items: center; gap: 12px; }
.num {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 700; color: var(--gold);
  border: 1.5px solid var(--gold-2); background: var(--paper); transition: .25s;
}
.step.done .num { background: var(--gold); border-color: var(--gold); color: transparent; position: relative; }
.step.done .num::after {
  content: ''; position: absolute; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: translate(0, -1px) rotate(45deg);
}

/* вкладки видов услуг */
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px 4px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button {
  flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 99px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: .2s;
}
.cat-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* выбранная процедура — одна карточка */
.opt.picked { cursor: default; animation: none; }
.opt.picked .opt-sub:first-child { text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; font-weight: 700; color: var(--gold); margin: 0 0 2px; }
.change { border: 0; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 10px; flex: none; }
.hero-tags { gap: 4px 16px; max-width: 360px; }
.hero-tags span { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.hero-tags span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-2); }

/* все цифры — чётким шрифтом Manrope */
.opt-price, .day b, .wd-cell b, .li-time, .bk-time, .bk-time-big, .cd {
  font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.opt-price { font-size: 16px; font-weight: 700; }
.day b { font-size: 20px; font-weight: 700; }
.wd-cell b { font-size: 18px; font-weight: 700; }
.li-time { font-size: 17px; font-weight: 700; }
.bk-time-big { font-size: 26px; font-weight: 700; }
