:root { --ink:#1C1E21; --ink-2:#3D3F44; --muted:#6A6560; --paper:#F2EFEA; --line:#E2DDD5; --brick:#A9472F; --brick-ink:#8E3F2C; --lilac:#C9B8FF; --plum:#2A2530; --ok:#2B7A4B; --ok-ink:#1F5E39; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: var(--brick-ink); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
.hidden { display: none !important; }
.wrap { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.top { background: var(--ink); color: #fff; padding: calc(14px + env(safe-area-inset-top)) 16px 14px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; }
.top img { height: 20px; width: auto; }
.top b { font-family: Jost, sans-serif; font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.top .pill { margin-left: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #3A3E44; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.pill { padding: 4px 10px; border-radius: 999px; background: var(--lilac); color: var(--ink); font-size: 12px; font-weight: 800; }
main { flex: 1 1 auto; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
h1, h2 { margin: 0; font-family: Jost, sans-serif; font-weight: 400; }
h1 { font-size: 32px; line-height: 1.05; }
h2 { font-size: 22px; }
.card { background: #fff; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hero { background: var(--plum); color: #fff; border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.hero h1 span { color: var(--lilac); }
.hero p { margin: 0; color: #DCD5E4; font-size: 15px; line-height: 1.55; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn-brick { background: var(--brick); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-lilac { background: var(--lilac); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid #D3CCC2; }
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.appt { display: flex; gap: 12px; align-items: center; }
.appt .date { width: 56px; height: 60px; border-radius: 14px; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.appt .date b { font-size: 20px; }
.appt .date span { font-size: 11px; font-weight: 700; color: var(--muted); }
.appt .info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.appt .info b { font-size: 15px; }
.st-pending { color: #A61E4D; font-weight: 700; font-size: 12px; }
.st-confirmed { color: var(--ok); font-weight: 700; font-size: 12px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip { flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #D3CCC2; background: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.opt[aria-pressed="true"] { border: 2px solid var(--brick); background: #FBF3EF; padding: 9px 13px; }
.opt b { display: block; font-size: 14px; }
.opt small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.price { text-align: right; flex: none; }
.price s { display: block; font-size: 11px; color: #8A847E; }
.price b { color: var(--brick-ink); font-size: 15px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.day { flex: none; width: 56px; height: 62px; border-radius: 14px; border: 1px solid #D3CCC2; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.day span { font-size: 11px; font-weight: 700; }
.day b { font-size: 18px; }
.day[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.day:disabled { opacity: .35; }
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.time { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--ok); background: #fff; color: var(--ok-ink); font-weight: 800; cursor: pointer; }
.time[aria-pressed="true"] { background: var(--brick); color: #fff; border-color: var(--brick); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input { min-height: 48px; padding: 0 14px; border: 1px solid #D3CCC2; border-radius: 12px; font-size: 16px; background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--brick-ink); flex: none; }
.err { color: #A61E4D; font-weight: 700; font-size: 14px; }
.bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.bar > div { flex: 1 1 auto; min-width: 0; }
.bar .t { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .p { font-weight: 800; font-size: 16px; }
.bar .p s { color: #8A847E; font-weight: 600; font-size: 13px; margin-right: 6px; }
.install { background: var(--ink); color: #fff; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.install .muted { color: #CFC9C1; }
.done { align-items: center; text-align: center; padding: 28px 18px; }
.done-ico { width: 72px; height: 72px; border-radius: 36px; background: #E3F2E8; color: var(--ok-ink); display: flex; align-items: center; justify-content: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; z-index: 100; max-width: calc(100% - 32px); }
.toast.err { background: #A61E4D; }
