:root {
  --ink: #141414;
  --muted: #5c5c5c;
  --faint: #8d8d8d;
  --line: #e7e7e4;
  --paper: #f3f2ee;
  --white: #fff;
  --accent: #0e6b4f;
  --accent-ink: #083d2d;
  --ok-bg: #e7f4ee;
  --bad: #8a2b2b;
  --bad-bg: #fdecea;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 40;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.top {
  position: sticky; top: 0; z-index: 8;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: rgba(243,242,238,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top strong { font-size: 1rem; letter-spacing: -0.03em; }
.top nav { display: flex; gap: 4px; align-items: center; }
.top a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.top a:hover { background: #fff; color: var(--ink); }
.top .pill {
  background: var(--ink); color: #fff; min-height: 40px; display: inline-flex; align-items: center;
}
.top .pill:hover { background: #000; color: #fff; }

.wrap {
  max-width: 1120px; margin: 0 auto; padding: 28px 28px 120px;
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start;
}
.sheet {
  background: var(--white); border-radius: 28px; padding: 12px;
  border: 1px solid var(--line);
}
.photo {
  height: 420px; border-radius: 20px;
  background: #e4e1d8 center/cover no-repeat;
  display: grid; place-items: end start;
  padding: 20px;
}
.photo .mark {
  width: 64px; height: 64px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.identity { padding: 20px 12px 8px; }
.kicker { margin: 0; color: var(--muted); font-size: .9rem; }
h1 { margin: 6px 0 8px; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.045em; line-height: 1.02; font-weight: 700; }
.lede { margin: 0; max-width: 36rem; color: var(--muted); font-size: 1.05rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .82rem; font-weight: 600;
}
.badge.good { background: var(--ok-bg); color: var(--accent-ink); }

.block { padding: 8px 12px 20px; }
h2 { margin: 28px 0 6px; font-size: 1.35rem; letter-spacing: -0.03em; }
.intro { margin: 0 0 8px; color: var(--muted); }

.service {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 8px; border: 0; border-top: 1px solid var(--line);
  background: transparent; text-align: left; cursor: pointer; border-radius: 12px;
}
.service:hover { background: #fafaf8; }
.service strong { display: block; font-weight: 650; letter-spacing: -0.02em; }
.service small { color: var(--muted); }
.svc-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.price { font-weight: 700; letter-spacing: -0.02em; }
.go {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink);
  display: inline-flex; align-items: center; font-weight: 650; font-size: .9rem;
}
.service:hover .go { background: var(--ink); color: #fff; }

.review { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.ava {
  width: 40px; height: 40px; border-radius: 50%; background: var(--paper);
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.review p { margin: 0 0 4px; }
.review cite { font-style: normal; color: var(--muted); font-size: .82rem; }
.prose { max-width: 40rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.fact { background: var(--paper); border-radius: 16px; padding: 14px 16px; }
.fact dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.fact dd { margin: 6px 0 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; }
.gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; }

.book {
  position: sticky; top: 84px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px;
}
.book h2 { margin: 0; }
.book .intro { margin: 4px 0 16px; font-size: .92rem; }
.tracker { display: flex; gap: 6px; margin-bottom: 16px; }
.tracker button {
  flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: var(--paper);
  color: var(--muted); cursor: pointer; font-weight: 650; font-size: .8rem;
}
.tracker button.on { background: var(--ink); color: #fff; }
.tracker button.done { background: var(--ok-bg); color: var(--accent-ink); }
.step { display: none; }
.step.on { display: block; }
.choice {
  display: flex; gap: 10px; align-items: flex-start; width: 100%;
  padding: 12px; margin: 0 0 8px; border-radius: 14px; border: 1px solid var(--line);
  cursor: pointer; background: #fff;
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--ok-bg); }
.choice input { accent-color: var(--accent); margin-top: 3px; width: 18px; height: 18px; }
.choice small { display: block; color: var(--muted); }
.summary {
  display: flex; justify-content: space-between; gap: 8px;
  background: var(--paper); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: .9rem;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.dow, .grid-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { text-align: center; color: var(--faint); font-size: .72rem; font-weight: 700; margin-bottom: 4px; }
.day {
  aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font-weight: 600;
}
.day:hover:not(:disabled) { background: var(--paper); }
.day:disabled { color: #d0d0d0; cursor: default; }
.day.today { box-shadow: inset 0 0 0 1px #ccc; }
.day.picked { background: var(--accent); color: #fff; }
.windows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.windows .choice { justify-content: center; margin: 0; padding: 10px 6px; }
.windows .choice input { position: absolute; opacity: 0; }
label.field { display: block; font-size: .78rem; font-weight: 700; margin: 12px 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff;
}
textarea { min-height: 88px; }
.hint { margin: 6px 0 0; color: var(--faint); font-size: .78rem; }
.row-actions { display: flex; gap: 8px; margin-top: 16px; }
.btn, .btn-ghost {
  min-height: 48px; border-radius: 999px; cursor: pointer; font-weight: 700; padding: 0 18px;
}
.btn { flex: 1; border: 0; background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.alert {
  display: flex; justify-content: space-between; gap: 8px; align-items: flex-start;
  border-radius: 14px; padding: 12px; margin-bottom: 12px;
}
.alert.ok { background: var(--ok-bg); color: var(--accent-ink); }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert button { border: 0; background: transparent; cursor: pointer; min-height: 44px; }
.foot { text-align: center; color: var(--faint); font-size: .8rem; padding: 8px 16px 28px; }
.dock, .backdrop { display: none; }
dialog { border: 0; padding: 0; background: transparent; max-width: min(920px, 92vw); }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog img { width: 100%; border-radius: 16px; }
dialog form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
dialog button { min-height: 40px; border: 0; border-radius: 999px; padding: 0 14px; background: #fff; cursor: pointer; }

@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; padding: 12px 12px 96px; }
  .photo { height: 240px; }
  .facts { grid-template-columns: 1fr; }
  .top nav a:not(.pill) { display: none; }
  .book {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 30;
    max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0;
    transform: translateY(110%); transition: transform .2s ease-out;
  }
  .book.open { transform: none; }
  .backdrop { display: block; position: fixed; inset: 0; background: rgba(20,20,20,.45); z-index: 25; }
  .backdrop[hidden] { display: none; }
  .dock {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9;
  }
  .dock button { width: 100%; }
  .sheet-close { display: inline-flex; }
}
.sheet-close { display: none; border: 0; background: var(--paper); border-radius: 999px; min-height: 36px; padding: 0 12px; cursor: pointer; }
