.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 140px; }

.hero { text-align: center; padding: 40px 8px 22px; }
.hero-mark { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.hero h1 { font-size: clamp(34px, 9vw, 46px); }
.tagline { margin: 8px 0 0; color: var(--muted); }
.hero-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 14px; color: var(--muted); }
.hero-meta a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }

.steps { display: flex; gap: 6px; margin: 4px 0 22px; }
.steps .s { flex: 1; text-align: center; font-size: 12px; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); transition: all .2s; }
.steps .s.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.steps .s.done { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); cursor: pointer; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.section-title h2 { font-size: 28px; }
.link-btn { background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 0; }

.chosen { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 16px; background: var(--surface-2); border-radius: 14px; font-size: 14px; }
.chosen .avatar { width: 38px; height: 38px; font-size: 16px; }
.chosen b { display: block; font-size: 15px; }
.chosen .grow { flex: 1; min-width: 0; }

/* мастера */
.master { padding: 16px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, transform .15s; }
.master:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.master:active { transform: scale(.995); }
.master-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.master h3 { font-size: 24px; }
.master .role { font-size: 14px; color: var(--muted); }
.master .bio { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.strip { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px -4px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex: none; scroll-snap-align: start; cursor: zoom-in; }
.master .go { margin-left: auto; color: var(--accent); font-size: 22px; }

/* услуги */
.service { display: flex; gap: 12px; align-items: center; padding: 16px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s; }
.service:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.service .grow { flex: 1; min-width: 0; }
.service b { display: block; font-weight: 600; }
.service .desc { font-size: 14px; color: var(--muted); margin-top: 2px; }
.service .meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.service .price { font-weight: 700; white-space: nowrap; }

/* даты */
.month-label { font-family: var(--font-display); font-size: 22px; margin: 0 0 10px; text-transform: capitalize; }
.dates { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 22px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.dates::-webkit-scrollbar { display: none; }
.date { flex: none; width: 58px; padding: 10px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  text-align: center; cursor: pointer; scroll-snap-align: start; transition: all .12s; }
.date .dw { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.date .dn { font-size: 20px; font-weight: 700; line-height: 1.3; }
.date .dm { font-size: 11px; color: var(--muted); }
.date.off { opacity: .38; cursor: not-allowed; background: transparent; }
.date.off .dn { text-decoration: line-through; text-decoration-thickness: 1px; }
.date.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.date.sel .dw, .date.sel .dm { color: inherit; opacity: .85; }

.slot-group { margin-bottom: 18px; }
.slot-group h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; transition: all .12s; }
.slot:hover { border-color: var(--accent); }
.slot.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.empty { padding: 26px 18px; text-align: center; color: var(--muted); background: var(--surface-2); border-radius: var(--radius); font-size: 15px; }

/* итог */
.summary { padding: 18px; margin-bottom: 18px; }
.summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.summary .row:last-child { border-bottom: 0; }
.summary .row span:first-child { color: var(--muted); }
.summary .row span:last-child { text-align: right; font-weight: 600; }

.done { text-align: center; padding: 10px 0 8px; }
.done .check-big { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok); font-size: 36px; animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done h2 { font-size: 32px; margin-bottom: 6px; }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.note { font-size: 13px; color: var(--muted); padding: 12px 14px; background: var(--warn-soft); border-radius: 12px; margin-top: 14px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.off { background: var(--off-soft); color: var(--off); }

.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* нижняя панель */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.bar-inner { max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.bar-summary { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.bar-summary b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .btn { flex: none; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15, 10, 14, .92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 88vh; border-radius: 12px; }
.lb-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; }

.foot { text-align: center; margin-top: 40px; }
.fade-in { animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
