:root{
  --bg:#EFE3CF; --card:#FBF5EA; --soft:#F7EFE2; --line:#DCC6A2;
  --gold:#B08A56; --brown:#5C4028; --ink:#4A3322; --muted:#6E5440; --label:#7A5A36;
}
*{box-sizing:border-box}
html,body{margin:0}
body{
  min-height:100vh; font-family:'Jost',system-ui,sans-serif; color:var(--ink);
  background:#E9D9BF url('fond.jpg') center/cover fixed;
}
.wrap{max-width:460px; margin:0 auto; padding:24px 16px 40px}
.card{
  background:rgba(251,245,234,.92); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  border:2px solid var(--gold); border-radius:28px; box-shadow:0 12px 40px rgba(92,64,40,.18);
  overflow:hidden;
}
.head{display:flex; flex-direction:column; align-items:center; padding:24px 20px 14px; border-bottom:1px solid var(--line)}
.head img{width:170px; height:auto}
.head .sub{font-family:'Cormorant Garamond',serif; font-size:14px; letter-spacing:.3em; color:#8C6A3E; font-weight:600; margin-top:6px}
.body{padding:20px 18px 24px; display:flex; flex-direction:column; gap:22px}
h1{margin:0; font-family:'Cormorant Garamond',serif; font-size:30px; font-weight:700}
.lead{margin:4px 0 0; font-size:14px; color:var(--muted)}
h2{margin:0 0 10px; font-size:12px; letter-spacing:.14em; font-weight:600; color:var(--label)}
button,input{font-family:inherit}
.svc{
  width:100%; min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 16px; margin-bottom:8px; border-radius:14px; cursor:pointer; text-align:left;
  background:var(--soft); border:1px solid var(--line); color:var(--ink);
}
.svc[aria-pressed=true]{background:var(--card); border:2px solid var(--gold)}
.svc .n{display:block; font-family:'Cormorant Garamond',serif; font-size:19px; font-weight:700}
.svc .d{display:block; font-size:13px; color:var(--muted)}
.svc .p{font-size:15px; font-weight:600; color:var(--brown); white-space:nowrap}
.days{display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; scrollbar-width:thin}
.day{
  flex:0 0 62px; height:68px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  border-radius:14px; cursor:pointer; background:var(--soft); color:var(--ink); border:1px solid var(--line);
}
.day .w{font-size:12px; text-transform:capitalize}
.day .m{font-size:11px; color:var(--muted)}
.day .num{font-family:'Cormorant Garamond',serif; font-size:22px; font-weight:700; line-height:1}
.day[aria-pressed=true]{background:var(--brown); color:#FBF5EA; border-color:var(--brown)}
.day[aria-pressed=true] .m{color:#E8D3AE}
.slots{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px}
.slot{
  height:44px; border-radius:22px; font-size:14px; font-weight:500; cursor:pointer;
  background:var(--soft); color:var(--ink); border:1px solid var(--line);
}
.slot[aria-pressed=true]{background:var(--gold); color:#fff; border-color:var(--gold)}
.slot:disabled{background:transparent; color:#A08B74; border:1px dashed #CDB894; text-decoration:line-through; cursor:not-allowed}
.hint{margin:8px 0 0; font-size:12px; color:var(--muted)}
label{display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--brown); margin-bottom:10px}
input{height:48px; padding:0 14px; border:1px solid #C9AE84; border-radius:12px; background:#FBF6EE; font-size:16px; color:var(--ink)}
input:focus,button:focus-visible{outline:2px solid var(--gold); outline-offset:2px}
.sum{display:flex; flex-direction:column; gap:8px; padding:16px; border-radius:16px; background:var(--soft); border:1px solid var(--line)}
.sum div{display:flex; justify-content:space-between; gap:12px; font-size:14px}
.sum span:first-child{color:var(--muted)}
.sum span:last-child{font-weight:600; text-align:right}
.cta{
  height:54px; width:100%; border:none; border-radius:27px; background:var(--brown); color:#FBF5EA;
  font-size:16px; font-weight:600; letter-spacing:.04em; cursor:pointer;
}
.cta:disabled{opacity:.55; cursor:not-allowed}
.ghost{height:50px; width:100%; border-radius:25px; border:1px solid var(--gold); background:transparent; color:var(--brown); font-size:15px; font-weight:600; cursor:pointer; text-decoration:none; display:flex; align-items:center; justify-content:center}
.err{margin:0; padding:12px 14px; border-radius:12px; background:#F6E1BE; color:#6B3C07; font-size:14px}
.foot{margin:0; text-align:center; font-size:12px; color:var(--label)}
.loading{color:var(--muted); font-size:14px}
.ok{display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center}
.ok .tick{width:80px; height:80px; border-radius:40px; border:2px solid var(--gold); background:var(--soft); display:flex; align-items:center; justify-content:center}
.hidden{display:none !important}
