:root {
  color-scheme: light;
  --ink: #181b21;
  --muted: #535a65;
  --paper: #fff;
  --line: #d7d9df;
  --red: #a81c23;
  --tint: #fff0ee;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.site-header { display: grid; place-items: center; min-height: 76px; background: #141418; }
.site-header img { display: block; width: min(232px, 85%); height: auto; mix-blend-mode: lighten; }
main { width: min(100% - 32px, 620px); margin: 28px auto 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 4vw, 32px); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
h2 { font-size: 21px; margin-bottom: 5px; }
p { line-height: 1.45; }
.intro { margin: 10px 0 20px; color: var(--muted); }
form { display: grid; gap: 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fields label { display: grid; gap: 5px; font-size: 14px; font-weight: 630; }
.wide { grid-column: 1 / -1; }
input:not([type=file], [type=radio]), textarea {
  border: 1px solid #969ba5; border-radius: 8px; width: 100%; min-width: 0; min-height: 44px;
  background: var(--paper); color: var(--ink); padding: 9px 10px; font: inherit; font-size: 16px;
}
textarea { resize: vertical; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible, .upload:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 7px; padding: 0; }
.photo-field { border: 1px solid var(--line); border-radius: 9px; padding: 11px; }
.photo-field p, .muted { font-size: 14px; color: var(--muted); }
.photo-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; width: fit-content; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; }
.primary { background: var(--red); color: white; }
.primary:hover { background: #8c141b; }
.secondary { background: var(--paper); color: var(--ink); border-color: #969ba5; }
.upload { cursor: pointer; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
@media (pointer: fine) { .camera { display: none; } }
.photos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; }
.photos:empty { display: none; }
.photos li { display: grid; justify-items: start; width: 76px; gap: 3px; }
.thumbnail { width: 76px; height: 60px; display: grid; place-items: center; background: #e8ebf0; border-radius: 7px; overflow: hidden; font-size: 12px; }
.thumbnail img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.photos button { width: 100%; min-height: 38px; padding: 3px; font-size: 13px; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.notice { color: #82151e; background: var(--tint); padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.result { margin-top: 14px; color: #174c32; background: #eaf7ef; padding: 14px; border-radius: 9px; }
.summary { display: grid; gap: 5px; padding: 14px; background: #f4f5f8; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 16px; }
.offer-price { font-weight: 750; font-size: 25px; letter-spacing: -.025em; }
.offer-note { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; }
.slots { display: grid; gap: 7px; }
.slots label { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px; border: 1px solid #969ba5; border-radius: 8px; cursor: pointer; }
.slots label:has(input:checked) { border-color: var(--red); background: var(--tint); }
.slots input { accent-color: var(--red); }
#booking-notice { margin-top: 10px; }
@media (max-width: 430px) {
  main { margin-top: 16px; }
  .primary { width: 100%; }
}
#body-offer { display: grid; gap: 12px; }
#body-offer-map { width: min(100%, 350px); margin-inline: auto; }
#body-offer-map svg { width: 100%; display: block; }
.body-shape path { fill: #f1f2f5; stroke: #a0a6b0; stroke-width: 2; }
.body-shape.quoted path { fill: #fff0ee; stroke: #a81c23; }
.body-shape.selected path { fill: #dceefa; stroke: #256699; }
.body-shape[role] { cursor: pointer; }
.body-shape:focus path { stroke: #181b21; stroke-width: 4; }
.body-shape text { fill: #181b21; font: 600 12px system-ui; pointer-events: none; }
#body-offer-list label { font-size: 14px; align-items: flex-start; }
#body-offer-list input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; }
#body-offer-list small { display: block; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
#body-offer-total { font-size: 19px; }

.calendar-month-nav { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:18px 0; }
.calendar-month-nav button,.calendar-time { min-height:44px; font:inherit; cursor:pointer; }
.customer-month { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
.weekday { text-align:center; font-weight:650; padding:8px 0; }
.calendar-day { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:8px 2px; min-width:0; min-height:66px; border-radius:8px; font:inherit; cursor:pointer; }
.calendar-day small { font-size:14px; }
.free { background:#e7f5eb; color:#135f2d; border:1px solid #53966a; }
.busy { background:#ededf0; color:#555b65; border:1px solid #b8bec6; }
.calendar-times { display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px;margin:12px 0; }
.calendar-time { border-radius:8px;padding:10px; }
.calendar-time:disabled,.calendar-day:disabled { opacity:.65;cursor:default; }
#customer-calendar { margin:20px 0; padding:16px; border:1px solid var(--line);border-radius:12px; }
@media(max-width:460px){#customer-calendar{padding:10px;}.calendar-day{min-height:60px;}.calendar-day small{font-size:12px;}}
