/* ФЕЙД — Telegram Mini App. Тема: тёмная (по умолчанию) и светлая по colorScheme Telegram / системы. */
:root {
  --bg: #0e0d0b;
  --bg-2: #151411;
  --card: #1b1916;
  --card-2: #24211d;
  --line: rgba(255, 241, 220, .08);
  --line-2: rgba(255, 241, 220, .15);
  --text: #f4efe6;
  --text-2: #c2b9ab;
  --muted: #8a8277;
  --accent: #e0a95e;
  --accent-2: #f2c98c;
  --accent-ink: #1b1206;
  --accent-soft: rgba(224, 169, 94, .14);
  --good: #4cc38a;
  --good-soft: rgba(76, 195, 138, .14);
  --bad: #ef6a5f;
  --bad-soft: rgba(239, 106, 95, .13);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --r: 18px;
  --r-sm: 12px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html[data-theme="light"] {
  --bg: #f5f1ea;
  --bg-2: #ece6dc;
  --card: #fffdf9;
  --card-2: #f2ede5;
  --line: rgba(40, 28, 10, .08);
  --line-2: rgba(40, 28, 10, .16);
  --text: #1c1712;
  --text-2: #544b40;
  --muted: #877e72;
  --accent: #b0772b;
  --accent-2: #8f5d1b;
  --accent-ink: #fff8ee;
  --accent-soft: rgba(176, 119, 43, .12);
  --good: #1f9a5e;
  --good-soft: rgba(31, 154, 94, .12);
  --bad: #cf4a3f;
  --bad-soft: rgba(207, 74, 63, .1);
  --shadow: 0 10px 30px rgba(60, 40, 10, .12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.sm { width: 16px; height: 16px; }
.i.xs { width: 14px; height: 14px; }
.i.fill { fill: currentColor; stroke: none; }

/* ---------- Сцена: телефон + описание на десктопе ---------- */
.stage { height: 100%; display: flex; }
.showcase { display: none; }
.device { flex: 1; min-width: 0; display: flex; }
.app { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--bg); }

@media (min-width: 980px) {
  body:not(.in-tg) { overflow: auto; }
  body:not(.in-tg) .stage {
    min-height: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 6vw, 96px);
    padding: 40px 32px;
    background:
      radial-gradient(900px 500px at 80% 10%, rgba(224, 169, 94, .10), transparent 60%),
      radial-gradient(700px 500px at 0% 100%, rgba(224, 169, 94, .06), transparent 60%),
      var(--bg);
  }
  body:not(.in-tg) .showcase { display: block; max-width: 440px; }
  body:not(.in-tg) .device {
    flex: none;
    width: 392px;
    height: min(844px, calc(100vh - 64px));
    min-height: 640px;
    padding: 11px;
    border-radius: 54px;
    background: linear-gradient(145deg, #2b2824, #0a0908);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .04);
  }
  body:not(.in-tg) .app { border-radius: 44px; }
  body:not(.in-tg) .topbar { padding-top: 14px; }
}
.sc-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 99px; }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: #2aabee; box-shadow: 0 0 0 4px rgba(42, 171, 238, .18); }
.sc-title { font: 700 34px/1.15 var(--display); letter-spacing: -.02em; margin: 18px 0 14px; }
.sc-lead { color: var(--text-2); font-size: 16px; margin: 0 0 22px; }
.sc-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.sc-list li { position: relative; padding-left: 26px; color: var(--text-2); }
.sc-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.sc-list b { color: var(--text); font-weight: 700; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sc-tags span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--card-2); color: var(--text-2); }
.sc-hint { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.sc-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.sc-links a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }

/* ---------- Каркас приложения ---------- */
.topbar { flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 56px; padding: 0 10px; position: relative; z-index: 5; }
.topbar .back { grid-column: 1; grid-row: 1; }
.topbar-title { grid-column: 2; grid-row: 1; text-align: center; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title .logo { font: 700 16px var(--display); letter-spacing: .12em; }
.topbar-right { grid-column: 3; grid-row: 1; display: flex; justify-content: flex-end; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--text); }
.icon-btn:active { background: var(--card-2); }
.in-tg .topbar .back { visibility: hidden; }

.screen { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 16px calc(var(--tab-h) + var(--safe-b) + 28px); scroll-behavior: smooth; overscroll-behavior: contain; outline: none; }
.screen::-webkit-scrollbar { width: 0; }
.app.no-tabs .screen { padding-bottom: calc(var(--safe-b) + 28px); }
.app.has-main .screen { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 96px); }
.app.no-tabs.has-main .screen { padding-bottom: calc(var(--safe-b) + 96px); }
.in-tg .app.has-main .screen { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 28px); }
.in-tg .app.no-tabs.has-main .screen { padding-bottom: calc(var(--safe-b) + 28px); }
.view-enter { animation: viewIn .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: calc(var(--tab-h) + var(--safe-b)); padding: 6px 8px var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 12px; }
.tabbar a.active { color: var(--accent); }
.tabbar a.active .i { stroke-width: 2.1; }
.app.no-tabs .tabbar { display: none; }

.mainbtn-wrap { position: absolute; z-index: 7; left: 16px; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 12px); }
.app.no-tabs .mainbtn-wrap { bottom: calc(var(--safe-b) + 16px); }
.mainbtn { width: 100%; height: 54px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 12px 30px rgba(224, 169, 94, .25); transition: transform .15s, opacity .2s; }
.mainbtn:active { transform: scale(.98); }
.mainbtn[disabled] { opacity: .45; box-shadow: none; cursor: default; }
.mainbtn .spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Типографика и общие блоки ---------- */
h2.h { font: 600 20px/1.2 var(--display); letter-spacing: -.01em; margin: 0; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.section-head a, .link { color: var(--accent); font-weight: 600; font-size: 14px; }
.muted { color: var(--muted); }
.t2 { color: var(--text-2); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { font-variant-numeric: tabular-nums; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; margin-right: 6px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card + .card { margin-top: 10px; }
.card.tap { transition: transform .15s, border-color .2s; cursor: pointer; }
.card.tap:active { transform: scale(.985); }
.card.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--card-2); color: var(--text-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; white-space: nowrap; }
.chip.active { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.neutral { background: var(--card-2); color: var(--text-2); }

.btn { height: 46px; padding: 0 18px; border-radius: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--card-2); color: var(--text); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 12px; border-radius: 11px; font-size: 14px; }
.btn:active { transform: scale(.98); }

.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #1b1206; letter-spacing: .02em; }
.avatar.lg { width: 84px; height: 84px; font-size: 28px; }
.avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 13px; }
.rating .i { color: var(--accent); }

.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; }
.list-item + .list-item { border-top: 1px solid var(--line); }
.list-item .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--card-2); color: var(--accent); flex: none; }
.list-item > .i:last-child { color: var(--muted); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--card-2); color: var(--accent); }

/* ---------- Главная ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.hello small { display: block; color: var(--muted); font-size: 13px; }
.hello b { font: 600 21px/1.2 var(--display); }
.branch-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 12px 7px 10px; border-radius: 99px; background: var(--card-2); font-size: 13px; font-weight: 600; color: var(--text-2); max-width: 100%; }
.branch-pill .i { color: var(--accent); }

.club { position: relative; overflow: hidden; margin-top: 16px; border-radius: 22px; padding: 18px; color: #f8ecd8;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(242, 201, 140, .45), transparent 55%),
    linear-gradient(135deg, #3a2a17 0%, #1c140b 60%, #120d07 100%);
  box-shadow: var(--shadow); }
.club::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(242, 201, 140, .08); }
.club-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.club-name { font: 700 13px var(--display); letter-spacing: .14em; opacity: .9; }
.club-level { font-size: 12px; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; background: rgba(242, 201, 140, .18); color: #f2c98c; }
.club-points { position: relative; z-index: 1; margin-top: 20px; }
.club-points b { font: 700 34px/1 var(--display); letter-spacing: -.02em; }
.club-points span { opacity: .7; font-size: 14px; margin-left: 6px; }
.club-progress { position: relative; z-index: 1; margin-top: 16px; }
.dots6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; }
.dots6 i { height: 6px; border-radius: 3px; background: rgba(248, 236, 216, .16); }
.dots6 i.on { background: #f2c98c; }
.club-progress small { opacity: .75; font-size: 13px; }

.next-card { margin-top: 12px; display: flex; gap: 14px; align-items: center; }
.date-tile { flex: none; width: 58px; height: 64px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.date-tile b { font: 700 22px var(--display); }
.date-tile span { font-size: 12px; font-weight: 700; text-transform: uppercase; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.2; text-align: center; }
.quick button .qi { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.quick button:active { transform: scale(.97); }

.promos { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.promos::-webkit-scrollbar { display: none; }
.promo { flex: none; width: 78%; min-height: 128px; scroll-snap-align: start; border-radius: 20px; padding: 16px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; color: #fff; text-align: left; }
.promo b { font: 600 17px/1.25 var(--display); max-width: 85%; }
.promo small { opacity: .85; font-size: 13px; }
.promo .promo-code { align-self: flex-start; margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, .25); }
.promo::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .1); }

.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.mini-master { flex: none; width: 128px; text-align: center; padding: 14px 10px; }
.mini-master .avatar { margin: 0 auto 10px; width: 60px; height: 60px; font-size: 19px; }
.mini-master b { display: block; font-size: 14px; }

/* ---------- Услуги ---------- */
.svc { display: flex; gap: 12px; align-items: flex-start; }
.svc-body { flex: 1; min-width: 0; }
.svc-name { font-weight: 700; font-size: 15px; }
.svc-desc { color: var(--muted); font-size: 13px; margin: 3px 0 8px; }
.svc-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.svc-meta .price { font-weight: 800; color: var(--text); font-size: 15px; }
.add-btn { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--card-2); color: var(--accent); transition: background .2s, color .2s, transform .15s; }
.add-btn.on { background: var(--accent); color: var(--accent-ink); }
.add-btn:active { transform: scale(.92); }
.cat-title { margin: 22px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Мастера ---------- */
.master-card { display: flex; gap: 14px; align-items: center; }
.master-card .role { font-size: 13px; color: var(--muted); }
.master-card .next { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.master-hero { text-align: center; padding: 8px 0 4px; }
.master-hero .avatar { margin: 0 auto 12px; }
.master-hero h2 { font: 600 22px/1.2 var(--display); margin: 0 0 4px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stats3 > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; }
.stats3 b { display: block; font: 600 18px var(--display); }
.stats3 span { font-size: 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.work { aspect-ratio: 1; border-radius: 12px; position: relative; overflow: hidden; }
.work span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.review { padding: 14px 0; }
.review + .review { border-top: 1px solid var(--line); }
.review p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.stars { display: inline-flex; gap: 1px; color: var(--accent); }

/* ---------- Запись ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 18px; }
.steps i { height: 4px; border-radius: 2px; background: var(--card-2); }
.steps i.on { background: var(--accent); }
.step-title { font: 600 21px/1.2 var(--display); margin: 0 0 4px; }
.step-sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 56px; height: 70px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.day small { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.day b { font: 600 19px var(--display); }
.day.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day.active small { color: var(--accent-ink); opacity: .75; }
.day.off { opacity: .4; }

.slot-group { margin-top: 18px; }
.slot-group h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { height: 42px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.slot.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slot[disabled] { opacity: .3; text-decoration: line-through; cursor: default; }

.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.summary .line span:first-child { color: var(--text-2); }
.summary .total { border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 17px; }
.summary .discount span:last-child { color: var(--good); font-weight: 700; }

.field { display: block; margin-top: 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.input { width: 100%; height: 48px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); padding: 0 14px; outline: none; transition: border-color .2s; }
textarea.input { height: 84px; padding: 12px 14px; resize: none; }
.input:focus { border-color: var(--accent); }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }

.radio-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.radio-card + .radio-card { margin-top: 8px; }
.radio-card input { display: none; }
.radio-card .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; position: relative; }
.radio-card input:checked ~ .dot { border-color: var(--accent); }
.radio-card input:checked ~ .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.radio-card:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line-2); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-2); transition: transform .2s, background .2s; }
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--accent-ink); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); margin-top: 14px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); margin: 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--accent); }

/* ---------- Успех ---------- */
.success { text-align: center; padding-top: 24px; }
.success-ico { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.success-ico .i { width: 46px; height: 46px; stroke-width: 2.4; }
.success-ico .i path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Мои записи ---------- */
.booking-card .actions { display: flex; gap: 8px; margin-top: 14px; }
.booking-card .actions .btn { flex: 1; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card-2); border-radius: 13px; padding: 3px; margin-bottom: 14px; }
.seg button { height: 36px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.active { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }

/* ---------- Профиль ---------- */
.profile-head { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.profile-head .avatar { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.kpis > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.kpis b { display: block; font: 600 18px var(--display); }
.kpis span { font-size: 12px; color: var(--muted); }
.ref-box { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--card-2); font-size: 13px; }
.ref-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }

/* ---------- Нижний лист, диалог, тост ---------- */
.layer { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; overflow-y: auto; background: var(--bg-2); border-radius: 24px 24px 0 0; padding: 10px 16px calc(20px + var(--safe-b)); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); pointer-events: auto; }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h3 { margin: 0 0 12px; font: 600 18px var(--display); }
.layer.open .backdrop { opacity: 1; }
.layer.open .sheet { transform: none; }
.dialog { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%) scale(.95); opacity: 0; background: var(--bg-2); border-radius: 22px; padding: 22px 20px 16px; text-align: center; transition: opacity .2s, transform .2s; pointer-events: auto; border: 1px solid var(--line); }
.dialog p { margin: 0 0 18px; font-size: 15px; }
.dialog .row { gap: 8px; }
.dialog .row .btn { flex: 1; }
.layer.open .dialog { opacity: 1; transform: translateY(-50%); }

.toast { position: absolute; z-index: 30; left: 50%; top: 62px; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 14px; max-width: calc(100% - 32px); transition: opacity .2s, transform .2s; box-shadow: var(--shadow); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.demo-note { margin-top: 18px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); font-size: 12px; color: var(--muted); }
.demo-note b { color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
