/* Приложение салона для клиентов — в стиле сайта салона (ноябрь 2026). --brick — акцент салона. */
:root {
  --ink: #26242E; --ink-2: #4A4752; --muted: #6B6872; --paper: #FAF8F5; --line: #ECE8E2; --line-2: #E2DDD6;
  --brick: #D2553F; --brick-ink: #26242E; --lilac: #ECE7FB; --plum: #EDEAF8; --ok: #2E6645; --ok-ink: #2E6645;
  --sel: #A08BDB; --p1: #FBE3DD; --p2: #ECE7FB; --p2i: #5A48B0; --p3: #E3EFE6; --p3i: #2E6645; --p4: #F8EADB;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); 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: rgba(250, 248, 245, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); border-bottom: 1px solid var(--line); padding: calc(12px + env(safe-area-inset-top)) 16px 12px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; min-height: 64px; }
.top img { height: 30px; width: auto; max-width: 110px; object-fit: contain; }
.top b { font-weight: 800; font-size: 18px; letter-spacing: -0.04em; }
.top .pill { margin-left: auto; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.pill { padding: 5px 11px; border-radius: 999px; background: var(--p2); color: var(--p2i); 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-weight: 800; letter-spacing: -0.045em; }
h1 { font-size: 32px; line-height: 1.04; text-wrap: balance; }
h2 { font-size: 20px; letter-spacing: -0.03em; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.hero { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 14px; isolation: isolate; }
.hero::after { content: ''; position: absolute; z-index: -1; right: -30px; top: -30px; width: 170px; height: 170px; border-radius: 50%; background: var(--p1); opacity: .8; }
.hero h1 span { background: linear-gradient(transparent 62%, var(--p1) 62%, var(--p1) 94%, transparent 94%); }
.hero p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; letter-spacing: -0.01em; }
.btn-brick, .btn-dark, .btn-lilac { background: var(--ink); color: #fff; box-shadow: 0 14px 28px -16px rgba(38, 36, 46, .7); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn:disabled { background: #CFCBD3; color: #fff; box-shadow: none; cursor: not-allowed; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brick); flex: none; }
.appt { display: flex; gap: 12px; align-items: center; }
.appt .date { width: 56px; height: 60px; border-radius: 14px; background: var(--p2); color: var(--p2i); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.appt .date b { font-size: 20px; letter-spacing: -0.03em; }
.appt .date span { font-size: 11px; font-weight: 700; }
.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: #A3415E; 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; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 15px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--p2); color: var(--p2i); border-color: var(--p2); }
.opt { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.opt[aria-pressed="true"] { border-color: var(--sel); background: #FBFAFF; box-shadow: 0 0 0 1px var(--sel) inset; }
.opt b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.opt small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.price { text-align: right; flex: none; }
.price s { display: block; font-size: 11px; color: #8E8A94; }
.price b { color: var(--ink); font-size: 15px; font-weight: 800; }
.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: 13px; border: 1px solid var(--line-2); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.day span { font-size: 11px; color: var(--muted); }
.day b { font-size: 18px; letter-spacing: -0.03em; }
.day[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.day[aria-pressed="true"] span { color: #C9C6D1; }
.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: 1px solid #CFE3D4; background: #F6FBF7; color: #2E6645; font-weight: 700; cursor: pointer; }
.time[aria-pressed="true"] { background: #2E6645; color: #fff; border-color: #2E6645; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink); }
.field input { min-height: 50px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 16px; background: #fff; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(38, 36, 46, .08); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.err { color: #A3291D; font-weight: 700; font-size: 14px; }
.bar { position: sticky; bottom: 0; background: #F8F6FA; 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: 11px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .p { font-weight: 800; font-size: 16px; }
.bar .p s { color: #8E8A94; font-weight: 600; font-size: 13px; margin-right: 6px; }
.install { background: var(--plum); color: var(--ink); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.install .muted { color: var(--ink-2); }
.done { align-items: center; text-align: center; padding: 28px 18px; }
.done-ico { width: 72px; height: 72px; border-radius: 22px; background: var(--p3); color: var(--p3i); 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: #A3291D; }
.loy { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px; border-radius: 16px; background: var(--p3); color: var(--p3i); font-size: 14px; line-height: 1.4; }
.loy b { font-size: 17px; color: var(--ink); }

/* ── Тёмные кнопки и нежное салатовое свободное время ── */
:root { --coral: #26242E; --coral-h: #3A3744; --free-bg: #F2F9E4; --free-bd: #D5EBA9; --free-ink: #4B6A16; --free-sel: #C8E58A; --free-sel-bd: #A8D05A; --free-sel-ink: #2E4210; }
.btn-brick, .btn-dark, .btn-lilac { background: var(--coral); color: #fff; box-shadow: 0 14px 28px -16px rgba(38, 36, 46, .7); }
.btn:disabled { background: #CFCBD3; color: #fff; box-shadow: none; }
.day[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.day[aria-pressed="true"] span { color: #C9C6D1; }
.time { border-color: var(--free-bd); background: var(--free-bg); color: var(--free-ink); }
.time[aria-pressed="true"] { background: var(--free-sel); border-color: var(--free-sel-bd); color: var(--free-sel-ink); }
.toast { background: var(--ink); }
