/* WOM.INSIGHTS — дизайн-система приложения клиента и админки.
   Основа — привычные жесты и элементы iOS (нижняя панель, sheets, списки, переключатели),
   оформление — по брендбуку: графит, пыльная роза, пудровый, молочный; Playfair Display + Montserrat. */
@font-face { font-family: 'Playfair Display'; src: url(/fonts/playfair.woff) format('woff'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(/fonts/playfair-italic.woff) format('woff'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/fonts/montserrat.woff) format('woff'); font-weight: 100 900; font-style: normal; font-display: swap; }
[hidden] { display: none !important; }
:root {
  color-scheme: light;
  --bg: #F6F2EF; --bg-2: #FFFFFF; --card: #FFFFFF; --card-2: #F1EBE7;
  --text: #2B2B2E; --text-2: rgba(62, 62, 66, .66); --text-3: rgba(62, 62, 66, .34);
  --sep: rgba(62, 62, 66, .13); --fill: rgba(122, 107, 89, .1); --fill-2: rgba(122, 107, 89, .18);
  --tint: #A9707A; --tint-2: #8E5F67; --tint-soft: rgba(201, 143, 150, .16); --on-tint: #FFFFFF;
  --primary: #2B2B2E; --on-primary: #FAF8F7;
  --lime: #F2D8E0; --lime-ink: #2B2B2E; --lime-soft: rgba(242, 216, 224, .7);
  --rose: #C98F96; --powder: #F2D8E0; --graphite: #3E3E42; --brown: #7A6B59; --milk: #FAF8F7;
  --blue: #7A6B59; --blue-soft: rgba(122, 107, 89, .13);
  --green: #3E9C6A; --green-soft: rgba(62, 156, 106, .13);
  --red: #D0464B; --red-soft: rgba(208, 70, 75, .1); --orange: #C98A3A;
  --bar: rgba(250, 248, 247, .8); --bar-border: rgba(43, 43, 46, .08);
  --sheet: #F6F2EF; --shadow: 0 12px 34px rgba(43, 43, 46, .12);
  --r: 14px; --r-lg: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --tab-h: 64px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', 'Didot', 'Bodoni 72', Georgia, serif;
  --spring: cubic-bezier(.3, 1.15, .45, 1);
  --ease: cubic-bezier(.25, .8, .25, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #2B2B2E; --bg-2: #333336; --card: #38383C; --card-2: #424247;
    --text: #FAF8F7; --text-2: rgba(250, 248, 247, .62); --text-3: rgba(250, 248, 247, .3);
    --sep: rgba(250, 248, 247, .1); --fill: rgba(250, 248, 247, .08); --fill-2: rgba(250, 248, 247, .16);
    --tint: #E8B7BE; --tint-2: #F2D8E0; --tint-soft: rgba(232, 183, 190, .15); --on-tint: #2B2B2E;
    --primary: #E8B7BE; --on-primary: #2B2B2E;
    --lime: #F2D8E0; --lime-ink: #2B2B2E; --lime-soft: rgba(242, 216, 224, .16);
    --blue: #CBB79E; --blue-soft: rgba(203, 183, 158, .15);
    --green: #6FCB98; --green-soft: rgba(111, 203, 152, .15);
    --red: #FF6B6B; --red-soft: rgba(255, 107, 107, .14);
    --bar: rgba(43, 43, 46, .8); --bar-border: rgba(250, 248, 247, .08);
    --sheet: #333336; --shadow: 0 12px 34px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #2B2B2E; --bg-2: #333336; --card: #38383C; --card-2: #424247;
  --text: #FAF8F7; --text-2: rgba(250, 248, 247, .62); --text-3: rgba(250, 248, 247, .3);
  --sep: rgba(250, 248, 247, .1); --fill: rgba(250, 248, 247, .08); --fill-2: rgba(250, 248, 247, .16);
  --tint: #E8B7BE; --tint-2: #F2D8E0; --tint-soft: rgba(232, 183, 190, .15); --on-tint: #2B2B2E;
  --primary: #E8B7BE; --on-primary: #2B2B2E;
  --lime: #F2D8E0; --lime-ink: #2B2B2E; --lime-soft: rgba(242, 216, 224, .16);
  --blue: #CBB79E; --blue-soft: rgba(203, 183, 158, .15);
  --green: #6FCB98; --green-soft: rgba(111, 203, 152, .15);
  --red: #FF6B6B; --red-soft: rgba(255, 107, 107, .14);
  --bar: rgba(43, 43, 46, .8); --bar-border: rgba(250, 248, 247, .08);
  --sheet: #333336; --shadow: 0 12px 34px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.35; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--tint); text-decoration: none; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }

/* ---------- Каркас ---------- */
.app { min-height: 100dvh; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 28px); }
.screen { max-width: 680px; margin: 0 auto; animation: screenIn .28s var(--ease); }
.screen.push { animation: pushIn .32s var(--ease); }
@keyframes screenIn { from { opacity: 0; } }
@keyframes pushIn { from { opacity: 0; transform: translateX(28px); } }
@media (prefers-reduced-motion: reduce) { .screen, .screen.push { animation: none; } }

.nav {
  position: sticky; top: 0; z-index: 30; padding-top: var(--safe-t);
  background: var(--bar); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: .5px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--bar-border); }
.nav-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 46px; padding: 0 8px; max-width: 680px; margin: 0 auto; }
.nav-title { font-size: 16px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .2s; }
.nav.scrolled .nav-title, .nav.always .nav-title { opacity: 1; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav-right { justify-content: flex-end; }
.nav-btn {
  position: relative; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: none;
  color: var(--tint); font-size: 16px; font-weight: 500; border-radius: 10px; white-space: nowrap; justify-content: center;
}
.nav-btn svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn.back svg { width: 13px; height: 22px; stroke-width: 2.4; margin-right: 3px; }
.nav-btn:active { opacity: .45; }
.nav-btn:disabled { opacity: .35; }
.nav-btn .badge { position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
.large-title { padding: 6px 20px 10px; max-width: 680px; margin: 0 auto; }
.large-title h1 { margin: 0; font: 400 36px/1.08 var(--serif); letter-spacing: -.01em; }
.large-title p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.content { padding: 0 16px; max-width: 680px; margin: 0 auto; }

/* ---------- Нижняя панель ---------- */
.tabbar {
  position: fixed; left: 50%; bottom: calc(10px + var(--safe-b)); z-index: 50; transform: translateX(-50%) translateZ(0);
  width: min(calc(100% - 24px), 520px); display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: 999px;
  background: var(--bar); -webkit-backdrop-filter: saturate(1.6) blur(24px); backdrop-filter: saturate(1.6) blur(24px);
  border: .5px solid var(--bar-border); box-shadow: 0 10px 32px rgba(0, 0, 0, .16), 0 1px 2px rgba(0, 0, 0, .06);
  -webkit-user-select: none; user-select: none; touch-action: manipulation; transition: transform .25s var(--ease), opacity .2s;
}
.tab-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 4)); border-radius: 999px; pointer-events: none;
  background: var(--tint-soft); transform: translate3d(calc(var(--i, 0) * 100%), 0, 0); transition: transform .42s var(--spring);
}
.tab {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 54px; min-width: 44px; padding: 5px 0 4px; border: 0; background: none;
  color: var(--text-2); font-size: 10px; font-weight: 600; letter-spacing: .01em; transition: color .2s;
}
.tab > * { pointer-events: none; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.tab svg .f { fill: currentColor; stroke: none; }
.tab[aria-current="page"] { color: var(--tint); }
.tab[aria-current="page"] svg { stroke-width: 2; }
.tab.pressed svg { transform: scale(.86); transition-duration: .08s; }
.tab .badge {
  position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
html.kbd .tabbar { transform: translateX(-50%) translateY(140%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .tab-thumb, .tab svg, .tabbar { transition: none; } }

/* ---------- Списки ---------- */
.group { margin: 0 0 26px; }
.group-title { margin: 0 0 8px 16px; color: var(--text-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.group-foot { margin: 8px 16px 0; color: var(--text-2); font-size: 13px; line-height: 1.4; }
.list { background: var(--card); border-radius: var(--r); overflow: hidden; }
.row {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 11px 16px; width: 100%;
  border: 0; background: none; text-align: left; font-size: 16px; color: var(--text);
}
.row + .row::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.row.with-icon + .row.with-icon::before { left: 58px; }
button.row:active, a.row:active, .row.tap:active { background: var(--fill); }
.row .grow { flex: 1; min-width: 0; }
.row .sub { display: block; color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.row .val { color: var(--text-2); font-size: 15.5px; text-align: right; white-space: nowrap; }
.row .chev { width: 8px; height: 13px; flex: none; stroke: var(--text-3); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.row .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; background: var(--tint); }
.row .ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row.danger { color: var(--red); justify-content: center; }
.row.link { color: var(--tint); }
.row input.inline, .row select.inline { flex: 1; min-width: 0; border: 0; background: none; outline: none; text-align: right; font-size: 16px; color: var(--text-2); padding: 0; }
.row input.inline:focus { color: var(--text); }
.row.disabled { opacity: .45; pointer-events: none; }

.field { display: block; width: 100%; min-height: 50px; padding: 13px 16px; border: 0; border-radius: var(--r); background: var(--card); font-size: 16px; outline: none; }
.field:focus { box-shadow: 0 0 0 2px var(--tint); }
textarea.field { min-height: 96px; resize: vertical; line-height: 1.45; }
.label { display: block; margin: 0 0 6px 4px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }

.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--fill-2); transition: background .25s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .3s var(--spring); }
.switch input:checked + i { background: var(--rose); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: .45; }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--fill); }
.seg button { position: relative; z-index: 1; min-height: 32px; border: 0; background: none; border-radius: 9px; font-size: 13px; font-weight: 500; padding: 0 8px; white-space: nowrap; color: var(--text); }
.seg button[aria-pressed="true"] { font-weight: 600; }
.seg .seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 9px; background: var(--card); box-shadow: 0 3px 8px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); transition: transform .32s var(--spring), width .32s var(--spring); }
:root[data-theme="dark"] .seg .seg-thumb { background: #55555B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg .seg-thumb { background: #55555B; } }
.seg.big button { min-height: 36px; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-size: 15px; font-weight: 600; letter-spacing: .01em; transition: transform .12s, opacity .2s, background .2s;
}
.btn:active { transform: scale(.97); opacity: .85; }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.block { display: flex; width: 100%; }
.btn.lime, .btn.rose { background: var(--rose); color: #2B2B2E; }
:root[data-theme="dark"] .btn.lime, :root[data-theme="dark"] .btn.rose { background: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.lime, :root:not([data-theme="light"]) .btn.rose { background: var(--lime); } }
.btn.gray { background: var(--fill); color: var(--text); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.2px var(--sep); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.4px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: grid; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0;
  background: var(--fill); font-size: 13.5px; font-weight: 500; color: var(--text); white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }

/* ---------- Календарь ---------- */
.cal { background: var(--card); border-radius: var(--r-lg); padding: 10px 10px 12px; }
.cal-head { display: flex; align-items: center; gap: 4px; padding: 2px 4px 8px 8px; }
.cal-head h2 { flex: 1; margin: 0; font: 400 22px/1.1 var(--serif); text-transform: capitalize; }
.cal-head .nav-btn { min-width: 40px; }
.cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; padding-bottom: 4px; letter-spacing: .06em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-height: 48px; padding: 6px 0 4px; border: 0; background: none; border-radius: 12px; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .15s; }
.day:active { background: var(--fill); }
.day .num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; line-height: 1; }
.day.today .num { color: var(--tint); font-weight: 700; }
.day.sel .num { background: var(--primary); color: var(--on-primary); font-weight: 700; }
.day.past { color: var(--text-3); }
.day.out { visibility: hidden; }
.dots { display: flex; gap: 3px; height: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.dots i.lime { background: var(--brown); }
.dots i.gray { background: var(--text-3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 6px 2px; color: var(--text-2); font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.legend i.lime { background: var(--brown); }
.legend i.gray { background: var(--text-3); }

/* ---------- Неделя (лента дней) ---------- */
.week { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.week::-webkit-scrollbar { display: none; }
.wday { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 48px; padding: 9px 0 8px; border: 0; border-radius: 14px; background: transparent; color: var(--text); }
.wday small { font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--text-2); letter-spacing: .04em; }
.wday b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wday i { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }
.wday i.no { background: transparent; }
.wday[aria-pressed="true"] { background: var(--rose); color: #2B2B2E; }
.wday[aria-pressed="true"] small { color: rgba(43, 43, 46, .7); }
.wday[aria-pressed="true"] i { background: #2B2B2E; }
.wday.today:not([aria-pressed="true"]) b { color: var(--tint); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }

/* ---------- Карточки занятий ---------- */
.cls { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 12px 10px 10px; border: 0; border-radius: var(--r-lg); background: var(--card); text-align: left; color: var(--text); transition: transform .12s, background .2s; }
.cls + .cls { margin-top: 8px; }
.cls:active { transform: scale(.985); }
.cls .th { flex: none; width: 58px; height: 58px; border-radius: 14px; overflow: hidden; position: relative; }
.cls .th img { width: 100%; height: 100%; object-fit: cover; }
.cls .grow { flex: 1; min-width: 0; }
.cls .grow b { display: block; font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cls .grow > span { display: block; color: var(--text-2); font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cls .grow .t { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.cls .side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cls .pill { font-size: 11.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--rose); color: #2B2B2E; white-space: nowrap; }
:root[data-theme="dark"] .cls .pill { background: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cls .pill { background: var(--lime); } }
.cls .pill.mine { background: var(--green-soft); color: var(--green); }
.cls .pill.full { background: var(--fill); color: var(--text-2); }
.cls .free { font-size: 11px; color: var(--text-2); }
.cls.past { opacity: .5; }
/* тон без фото: градиенты из палитры */
.tone { background: linear-gradient(150deg, #D9A6AC 0%, #B77F87 60%, #8E5F67 100%); }
.tone.powder { background: linear-gradient(150deg, #F6E3E8 0%, #E7C4CD 60%, #C9A0AA 100%); }
.tone.graphite { background: linear-gradient(150deg, #66666C 0%, #45454A 60%, #2E2E31 100%); }
.tone.brown { background: linear-gradient(150deg, #A2917D 0%, #7A6B59 60%, #574B3E 100%); }
.tone.milk { background: linear-gradient(150deg, #FFFFFF 0%, #F1EBE7 60%, #DCD2CC 100%); }
.tone .lf { position: absolute; width: 340%; max-width: none; right: -120%; top: -80%; opacity: .28; filter: blur(2.5px); mix-blend-mode: multiply; transform: rotate(18deg); pointer-events: none; }
.tone .ini { position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 24px/1 var(--serif); color: rgba(255, 255, 255, .9); }
.tone.powder .ini, .tone.milk .ini { color: rgba(43, 43, 46, .7); }

/* обложка занятия */
.cover { position: relative; height: 260px; margin: 0 -16px 0; overflow: hidden; }
.cover img.ph { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 24, 26, .35) 0%, transparent 35%, transparent 55%, var(--bg) 100%); }
.cover .lf { width: 220%; right: -60%; top: -40%; opacity: .3; filter: blur(7px); }
.detail-card { position: relative; margin-top: -70px; z-index: 2; background: var(--card); border-radius: 24px; padding: 20px 18px 18px; box-shadow: var(--shadow); }
.detail-card h1 { margin: 0; font: 400 32px/1.05 var(--serif); }
.detail-card .sub { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.facts { display: grid; gap: 12px; margin-top: 16px; }
.fact { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.fact svg { width: 20px; height: 20px; flex: none; stroke: var(--tint); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bring { display: flex; gap: 10px; flex-wrap: wrap; }
.bring span { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; padding: 12px 8px 10px; border-radius: 16px; background: var(--card); font-size: 12px; color: var(--text-2); text-align: center; }
.bring svg { width: 26px; height: 26px; stroke: var(--text); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Абонементы ---------- */
.pass {
  position: relative; overflow: hidden; border-radius: 24px; padding: 20px; color: #FAF8F7; isolation: isolate;
  background: linear-gradient(150deg, #4A4A4F 0%, #333336 55%, #252527 100%); box-shadow: 0 14px 34px rgba(43, 43, 46, .18);
}
.pass + .pass { margin-top: 10px; }
.pass .lf { position: absolute; z-index: -1; width: 180%; max-width: none; right: -60%; top: -60%; opacity: .22; filter: blur(4px); transform: rotate(12deg); pointer-events: none; }
.pass .brand { font: 400 13px/1 var(--serif); letter-spacing: .14em; opacity: .7; }
.pass h3 { margin: 14px 0 0; font: 400 26px/1.1 var(--serif); }
.pass .left { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.pass .left b { font-size: 42px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.pass .left span { font-size: 14px; opacity: .75; }
.pass .pbar { margin-top: 14px; height: 5px; border-radius: 3px; background: rgba(250, 248, 247, .16); overflow: hidden; }
.pass .pbar i { display: block; height: 100%; border-radius: 3px; background: var(--powder); }
.pass .meta { margin-top: 12px; display: flex; justify-content: space-between; font-size: 12.5px; opacity: .75; gap: 10px; }
.pass.rose { background: linear-gradient(150deg, #D9A6AC 0%, #B77F87 55%, #8E5F67 100%); }
.pass.off { background: var(--card); color: var(--text-2); box-shadow: none; }
.pass.off .pbar { background: var(--fill); }
.pass.off .pbar i { background: var(--text-3); }
.pass .st { position: absolute; top: 16px; right: 16px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: rgba(250, 248, 247, .16); }

.plan { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: var(--r-lg); background: var(--card); text-align: left; color: var(--text); transition: transform .12s; }
.plan + .plan { margin-top: 10px; }
.plan:active { transform: scale(.985); }
.plan .grow { flex: 1; min-width: 0; }
.plan .grow b { display: block; font: 400 22px/1.1 var(--serif); }
.plan .grow .d { display: block; margin-top: 5px; font-size: 13px; color: var(--text-2); }
.plan .pr { flex: none; text-align: right; }
.plan .pr b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.plan .pr s { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.plan .badge-d { position: absolute; top: -8px; right: 14px; font-size: 10.5px; font-weight: 700; padding: 5px 8px; border-radius: 999px; background: var(--rose); color: #2B2B2E; }
.plan.featured { box-shadow: inset 0 0 0 1.5px var(--rose); }
.plan.off { opacity: .5; }
.tagline-pink { display: table; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--lime-soft); color: var(--text); margin-bottom: 6px; }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-m { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; border: 0; border-radius: 18px; background: var(--card); color: var(--text); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.pay-m svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pay-m[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--rose); }
.price-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.price-big s { color: var(--text-3); font-size: 16px; }
.price-big em { font-style: normal; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--rose); color: #2B2B2E; }

/* главная клиента */
.hello { padding: 4px 20px 12px; max-width: 680px; margin: 0 auto; }
.hello h1 { margin: 0; font: 400 32px/1.1 var(--serif); }
.hello p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }
.next { position: relative; overflow: hidden; border-radius: 24px; padding: 18px; background: var(--card); }
.next .k { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.next h3 { margin: 8px 0 0; font: 400 26px/1.1 var(--serif); }
.next p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; border: 0; border-radius: 18px; background: var(--card); color: var(--text); font-size: 12.5px; font-weight: 600; }
.tile svg { width: 26px; height: 26px; stroke: var(--tint); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile:active { background: var(--fill); }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
.hscroll::-webkit-scrollbar { display: none; }
.dcard { flex: none; width: 150px; height: 190px; scroll-snap-align: start; position: relative; overflow: hidden; border-radius: 20px; border: 0; padding: 14px; display: flex; align-items: flex-end; text-align: left; color: #FAF8F7; }
.dcard img.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(25, 24, 26, .55)); }
.dcard.tone.powder, .dcard.tone.milk { color: #2B2B2E; }
.dcard.tone.powder::after, .dcard.tone.milk::after { background: none; }
.dcard b { position: relative; z-index: 1; font: 400 21px/1.1 var(--serif); }
.ncard { flex: none; width: 78%; scroll-snap-align: start; border-radius: 20px; background: var(--card); overflow: hidden; border: 0; padding: 0; text-align: left; color: var(--text); }
.ncard .im { height: 120px; position: relative; overflow: hidden; }
.ncard .im img { width: 100%; height: 100%; object-fit: cover; }
.ncard .tx { padding: 12px 14px 14px; }
.ncard small { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tint); }
.ncard b { display: block; margin-top: 6px; font: 400 18px/1.2 var(--serif); }
.quote-card { padding: 22px 18px; text-align: center; font: italic 400 22px/1.3 var(--serif); color: var(--text-2); }

.next .th { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; position: relative; flex: none; }
.next .th img { width: 100%; height: 100%; object-fit: cover; }
.next > .lf { position: absolute; width: 200%; max-width: none; right: -70%; top: -90%; opacity: .12; filter: blur(4px); pointer-events: none; mix-blend-mode: multiply; }

/* ---------- Общие карточки ---------- */
.card { background: var(--card); border-radius: var(--r-lg); padding: 14px 16px; }
.card + .card { margin-top: 10px; }
button.card { display: block; width: 100%; border: 0; text-align: left; color: var(--text); }
button.card:active { background: var(--fill); }
.bk { display: flex; gap: 14px; align-items: center; }
.bk-date { flex: none; width: 54px; text-align: center; border-radius: 14px; background: var(--tint-soft); color: var(--tint); padding: 7px 0; }
.bk-date b { display: block; font: 400 24px/1 var(--serif); }
.bk-date small { display: block; font-size: 11px; text-transform: uppercase; font-weight: 600; margin-top: 3px; letter-spacing: .04em; }
.bk.cancelled .bk-date, .bk.past .bk-date { background: var(--fill); color: var(--text-2); }
.bk-main { flex: 1; min-width: 0; }
.bk-main b { display: block; font-size: 15.5px; font-weight: 600; }
.bk-main span { display: block; color: var(--text-2); font-size: 13px; margin-top: 3px; }
.tag { display: inline-flex; align-items: center; height: 23px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--fill); color: var(--text-2); white-space: nowrap; }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.lime, .tag.rose { background: var(--tint-soft); color: var(--tint); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 11px 16px; font-size: 15px; }
.kv dt { color: var(--text-2); white-space: nowrap; }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.note { color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.empty { text-align: center; color: var(--text-2); padding: 40px 24px; font-size: 15px; line-height: 1.45; }
.empty svg { width: 52px; height: 52px; stroke: var(--text-3); fill: none; stroke-width: 1.4; margin-bottom: 10px; }
.empty b { display: block; color: var(--text); font: 400 24px/1.2 var(--serif); margin-bottom: 6px; }
.skel { border-radius: var(--r-lg); background: linear-gradient(90deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%); background-size: 200% 100%; animation: shimmer 1.2s infinite; height: 72px; }
.skel + .skel { margin-top: 10px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: italic 400 28px/1 var(--serif); color: #2B2B2E; background: linear-gradient(140deg, #F2D8E0, #C98F96); flex: none; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); flex: none; }

/* ---------- Sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 19, 21, .45); opacity: 0; transition: opacity .3s; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - var(--safe-t) - 24px); display: flex; flex-direction: column;
  background: var(--sheet); border-radius: 24px 24px 0 0; box-shadow: var(--shadow); transform: translateY(105%);
  transition: transform .42s cubic-bezier(.2, .9, .25, 1); will-change: transform;
}
.sheet-wrap.open .sheet { transform: translateY(0); }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 24px; max-height: 86dvh; transform: translateY(30px) scale(.97); opacity: 0; transition: transform .3s var(--spring), opacity .2s; } .sheet-wrap.open .sheet { transform: none; opacity: 1; } }
.sheet-grab { flex: none; padding: 8px 0 3px; touch-action: none; }
.sheet-grab::before { content: ''; display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 0 auto; }
.sheet-head { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; padding: 0 8px; }
.sheet-head h3 { margin: 0; font-size: 16px; font-weight: 600; text-align: center; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 16px calc(20px + var(--safe-b)); }
.sheet-hero { padding: 4px 4px 16px; }
.sheet-hero h2 { margin: 0; font: 400 30px/1.1 var(--serif); }
.sheet-hero p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }

/* ---------- Сообщения ---------- */
.toast {
  position: fixed; left: 50%; top: calc(10px + var(--safe-t)); z-index: 200; transform: translate(-50%, -140%); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 999px; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border: .5px solid var(--bar-border); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; transition: transform .45s var(--spring);
  display: flex; align-items: center; gap: 8px; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }
.toast.err { color: var(--red); }
.toast.ok::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2B2E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }
.banner { display: flex; align-items: center; gap: 10px; margin: 0 16px 12px; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; background: var(--card); box-shadow: inset 0 0 0 .5px var(--sep); }
.banner b { font-weight: 600; }
.banner.warn { background: color-mix(in srgb, var(--orange) 14%, var(--card)); }
.banner.info { background: var(--tint-soft); }
.banner .grow { flex: 1; }
.banner button { border: 0; background: none; color: var(--tint); font-weight: 600; font-size: 14px; min-height: 36px; padding: 0 4px; }
.offline-bar { position: sticky; top: 0; z-index: 40; display: flex; justify-content: center; gap: 8px; padding: calc(6px + var(--safe-t)) 12px 6px; background: color-mix(in srgb, var(--orange) 22%, var(--bg)); font-size: 13px; font-weight: 600; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.times button { min-height: 44px; border: 0; border-radius: 12px; background: var(--card); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.times button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.wd-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wd-chips .chip { min-width: 44px; min-height: 40px; padding: 0 10px; }

.spacer { height: 16px; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.muted { color: var(--text-2); }
.small { font-size: 13.5px; }
.hstack { display: flex; align-items: center; gap: 10px; }
.vstack { display: grid; gap: 10px; }
.code-input { text-align: center; letter-spacing: .5em; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.install-steps { counter-reset: s; display: grid; gap: 12px; padding: 0; margin: 6px 0; }
.install-steps li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.install-steps li::before { counter-increment: s; content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: #2B2B2E; font-weight: 700; font-size: 14px; }
.install-steps svg { width: 20px; height: 20px; vertical-align: -4px; stroke: var(--tint); fill: none; stroke-width: 2; }
.btn svg, .chip svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chev { width: 8px; height: 13px; flex: none; stroke: var(--text-3); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tz-note svg, .banner svg { width: 18px; height: 18px; flex: none; stroke: var(--tint); fill: none; stroke-width: 2; stroke-linecap: round; margin-top: 1px; }
.avatar svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.success-ic { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--tint); color: var(--tint); animation: pop .45s var(--spring); }
.success-ic svg { width: 38px; height: 38px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success-ic.bad { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.hstack > label { flex: 1; min-width: 0; }
input.field[type="date"], input.field[type="time"], select.field { min-width: 0; -webkit-appearance: none; appearance: none; }
select.field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 36px; }
select.inline { -webkit-appearance: none; appearance: none; text-align-last: right; }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-pick .pv { width: 84px; height: 84px; border-radius: 16px; overflow: hidden; flex: none; position: relative; background: var(--fill); display: grid; place-items: center; color: var(--text-3); font-size: 12px; }
.photo-pick .pv img, .photo-pick .pv video { width: 100%; height: 100%; object-fit: cover; }
.tone-pick { display: flex; gap: 10px; }
.tone-pick button { width: 40px; height: 40px; border-radius: 50%; border: 0; position: relative; overflow: hidden; }
.tone-pick button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--tint); }

/* ---------- Обзор ---------- */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-height: 100px; padding: 13px 14px; border: 0; border-radius: 20px; background: var(--card); text-align: left; color: var(--text); transition: transform .12s, background .2s; }
.kpi:active { transform: scale(.98); background: var(--fill); }
.kpi-lbl { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.kpi-lbl i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.kpi-lbl i svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kpi-lbl i svg .f { fill: currentColor; stroke: none; }
.kpi-num { font-size: 25px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.delta { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--fill); color: var(--text-2); }
.delta.up { background: var(--green-soft); color: var(--green); }
.delta.down { background: var(--red-soft); color: var(--red); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 4px 10px; }
.section-head h2 { margin: 0; font: 400 24px/1.1 var(--serif); }
.section-head .nav-btn { min-height: 36px; font-size: 14px; }
.up-row { display: flex !important; align-items: center; gap: 12px; }
.up-row + .up-row { margin-top: 8px; }
.up-time { flex: none; width: 62px; text-align: center; border-radius: 14px; background: var(--tint-soft); color: var(--tint); padding: 7px 0; }
.up-time b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.up-time small { display: block; font-size: 10.5px; font-weight: 600; }
.up-row .grow { flex: 1; min-width: 0; }
.up-row .grow b { display: block; font-size: 15px; font-weight: 600; }
.up-row .grow span { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fill { width: 100%; height: 4px; border-radius: 2px; background: var(--fill); margin-top: 7px; overflow: hidden; }
.fill i { display: block; height: 100%; background: var(--rose); border-radius: 2px; }
.chart-tip { font-size: 13.5px; font-weight: 600; color: var(--text-2); min-height: 20px; margin-bottom: 8px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; border: 0; background: none; padding: 0; }
.bar i { display: block; width: 100%; max-width: 30px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--rose), color-mix(in srgb, var(--rose) 50%, var(--powder))); transition: height .45s var(--spring), opacity .2s; }
.bar.future i { opacity: .25; }
.bar.sel i { background: var(--brown); }
.bar small { font-size: 10px; color: var(--text-3); height: 13px; line-height: 13px; }
.rank { display: grid; gap: 12px; }
.rank-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.rank-row b { font-weight: 600; }
.rank-row span { color: var(--text-2); }
.rank-row .fill { grid-column: 1 / -1; margin-top: 0; }
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
