/* CRM «Лепесток» — оформление «Розовая неделя» (24.11.2026).
   Светлый розовый фон, градиент розовый → сирень, линия времени, таблетки. Шрифт Raleway лежит в /crm/fonts/. */

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/crm/fonts/raleway-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/crm/fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fbf4f8;
  --surface: #ffffff;
  --ink: #2c2430;
  --muted: #9a8a97;
  --line: #f1e1ea;
  --accent: #ee4d93;
  --accent-press: #d63c80;
  --accent-soft: #fde6f0;
  --lilac: #a45fd0;
  --lilac-soft: #f3e4fb;
  --grad: linear-gradient(90deg, #f2559a 0%, #e46bc9 100%);
  --ok: #a45fd0;
  --ok-soft: #f3e4fb;
  --warn: #d9603a;
  --warn-soft: #ffe8dc;
  --bad: #d23f62;
  --bad-soft: #fde3e8;
  --info: #e0558f;
  --info-soft: #fde6f0;
  --gray-soft: #f4edf1;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(120, 40, 80, 0.04), 0 6px 18px -10px rgba(120, 40, 80, 0.18);
  --nav-h: 66px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.45 "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-variant-numeric: lining-nums;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
p { margin: 0; }
[hidden] { display: none !important; }
.num, .appt-time, .tl-time, .wk-day b, .h-card .big, .tile b, .slot-free b, .chip { font-variant-numeric: lining-nums tabular-nums; }

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom));
}
.app.no-nav { padding-bottom: 32px; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack > * + * { margin-top: 12px; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 4px 10px; }
.section-head .muted { font-size: 14px; font-weight: 500; }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 10px 18px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px rgba(238, 77, 147, 0.8); }
.btn-primary:active { filter: brightness(0.95); }
.btn-ok { background: var(--grad); border-color: transparent; color: #fff; }
.btn-danger { color: var(--bad); border-color: #f6cbd6; }
.btn-block { display: flex; width: 100%; }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-big { min-height: 54px; font-size: 17px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 8px 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 12px; padding: 8px 0; color: var(--muted); background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions .btn { flex: 1 1 auto; }

/* ---------- карточки и списки ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 12px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.empty { padding: 16px; border: 1.5px dashed #ecd3e0; border-radius: var(--radius); color: var(--muted); text-align: center; font-size: 15px; }
.banner { padding: 12px 16px; border-radius: 16px; font-size: 15px; }
.banner-warn { background: var(--warn-soft); color: var(--warn); }
.banner-info { background: var(--info-soft); color: var(--info); }
.banner-gray { background: var(--gray-soft); color: var(--muted); }

.appt {
  display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  padding: 12px 14px; color: inherit; text-decoration: none;
}
.appt.st-cancelled { opacity: 0.6; }
.appt-time { font-weight: 700; font-size: 16px; }
.appt-time small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.appt-date { display: block; font-size: 11px; font-weight: 700; color: var(--accent); text-transform: lowercase; }
.appt-name { font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.appt-svc { color: var(--muted); font-size: 13.5px; }
.appt-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.appt-sum { font-size: 14px; font-weight: 700; white-space: nowrap; }

.slot-free {
  display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1.5px dashed #ecd3e0; border-radius: 18px;
  color: var(--muted); text-decoration: none; min-height: 52px;
}
.slot-free b { color: var(--ink); font-size: 16px; }
.slot-free .plus { color: var(--accent); font-weight: 700; }
.slot-free.past { opacity: 0.55; }
.slot-break { text-align: center; font-size: 12.5px; color: var(--muted); padding: 2px 0; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
  background: transparent; color: var(--info); border: 1.5px solid #f3a8c9;
}
.badge.st-came { background: var(--lilac-soft); border-color: var(--lilac-soft); color: var(--lilac); }
.badge.st-cancelled { background: var(--gray-soft); border-color: var(--gray-soft); color: var(--muted); }
.badge.st-noshow { background: var(--bad-soft); border-color: var(--bad-soft); color: var(--bad); }
.badge.mark { background: var(--warn-soft); border-color: var(--warn-soft); color: var(--warn); }
.badge.new { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge.soft { background: var(--gray-soft); border-color: var(--gray-soft); color: var(--muted); }
.count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; text-align: center; vertical-align: 2px; }

.callback {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px;
}
.callback a.cb-main { color: inherit; text-decoration: none; }
.cb-name { font-weight: 600; color: var(--accent); }
.cb-meta { font-size: 13.5px; color: var(--muted); }
.cb-actions { display: flex; gap: 8px; }
.cb-actions .btn { flex: 1; }

.client-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  padding: 12px 16px; color: inherit; text-decoration: none;
}
.client-row .name { font-weight: 600; color: var(--accent); }
.client-row .meta { font-size: 13.5px; color: var(--muted); }
.client-row .right { text-align: right; font-weight: 700; white-space: nowrap; font-size: 15px; }
.client-row .right small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }

/* ---------- главный экран: месяц, неделя, карточка дня ---------- */
.h-top { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 4px 0; }
.h-top h1 { font-size: 20px; font-weight: 600; }
.h-top h1::first-letter { text-transform: uppercase; }
.h-hello { margin: 2px 4px 0; font-size: 14px; color: var(--muted); }

.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 14px 0 0; }
.wk-day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 62px; padding: 6px 0 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wk-day b { font-size: 17px; font-weight: 600; }
.wk-day small { font-size: 10px; font-weight: 700; color: #b5a6b3; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 1px; }
.wk-day.has::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.wk-day.off { color: #cdbfca; }
.wk-day.sel { background: var(--grad); color: #fff; box-shadow: 0 10px 20px -12px rgba(238, 77, 147, 0.9); }
.wk-day.sel small { color: #ffe2f0; }
.wk-day.sel.has::after { background: #fff; }
.wk-day.today:not(.sel) b { color: var(--accent); }

.h-card {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 16px; border-radius: 24px; padding: 18px 20px 18px; min-height: 132px;
  color: #fff; background: #f06aa6;
}
.h-card::before {
  content: ""; position: absolute; inset: -50px; z-index: -1;
  background:
    radial-gradient(circle at 15% 30%, #ff7aa8 0, transparent 45%),
    radial-gradient(circle at 70% 15%, #ffb38f 0, transparent 40%),
    radial-gradient(circle at 88% 85%, #c46cf0 0, transparent 50%),
    radial-gradient(circle at 30% 95%, #ff5d7a 0, transparent 45%);
  filter: blur(12px);
  animation: aura 14s ease-in-out infinite alternate;
}
@keyframes aura {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, 10px) scale(1.06); }
  100% { transform: translate(-16px, 14px) scale(0.97); }
}
@media (prefers-reduced-motion: reduce) { .h-card::before, .z-hero::before { animation: none; } }
.h-card .lbl { font-size: 13px; font-weight: 600; opacity: 0.92; }
.h-card .lbl::first-letter { text-transform: uppercase; }
.h-card .big { font-size: 38px; font-weight: 300; line-height: 1.05; margin-top: 4px; letter-spacing: -0.01em; }
.h-card .nx { font-size: 13px; font-weight: 600; margin-top: 12px; opacity: 0.96; }
.h-card .plus {
  position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--accent);
  font-size: 26px; font-weight: 500; text-decoration: none; box-shadow: 0 8px 18px -10px rgba(120, 20, 70, 0.6);
}

.sheet { margin: 18px -16px 0; padding: 14px 16px 6px; background: #f8eef4; border-radius: 28px 28px 0 0; min-height: 200px; }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: #ead6e2; margin: 0 auto 12px; }
.sheet .section:first-of-type { margin-top: 4px; }

/* ---------- линия времени ---------- */
.tl { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 50px 16px 1fr; column-gap: 8px; }
.tl-time { font-size: 14.5px; font-weight: 700; padding-top: 13px; }
.tl-time small { display: block; font-size: 11px; color: #b5a6b3; font-weight: 600; }
.tl-line { position: relative; }
.tl-line::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: #f6c8de; }
.tl-row:first-child .tl-line::before { top: 18px; }
.tl-row:last-child .tl-line::before { bottom: calc(100% - 22px); }
.tl-line i { position: absolute; left: 2px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-line i.f { background: var(--accent); }
.tl-line i.l { border-color: var(--lilac); background: var(--lilac); }
.tl-line i.w { border-color: var(--warn); background: var(--warn); }
.tl-line i.g { border-color: #d6c7d0; }
.tl-card {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-height: 58px;
  background: var(--surface); border-radius: 18px; padding: 10px 12px; box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
}
.tl-card .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); flex: none; display: grid; place-items: center; color: var(--accent); font-weight: 700; font-size: 13px; }
.tl-card .who { flex: 1; min-width: 0; }
.tl-card .who b { display: block; color: var(--accent); font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.tl-card .who small { color: var(--muted); font-size: 12.5px; }
.tl-card .r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.tl-card .r .sum { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.tl-card.st-cancelled { opacity: 0.6; }
.tl-card.free { background: transparent; box-shadow: none; border: 1.5px dashed #ecd3e0; color: var(--muted); font-size: 14px; font-weight: 600; }
.tl-card.free .plus { margin-left: auto; color: var(--accent); font-weight: 700; }
.tl-card.free.past { opacity: 0.55; }
.tl-break { margin: 0 0 8px 74px; font-size: 12px; color: #b5a6b3; font-weight: 600; }

/* ---------- плитки с цифрами ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tile {
  display: block; background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow);
  color: inherit; text-decoration: none; border: 0; font: inherit; text-align: left; cursor: pointer;
}
.tile small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tile b { display: block; font-size: 30px; font-weight: 400; color: var(--accent); margin-top: 6px; line-height: 1; }
.tile .go { float: right; color: var(--accent); font-weight: 700; }

/* ---------- день ---------- */
.daybar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-bottom: 4px; }
.daybar h1 { font-size: 19px; text-align: center; }
.daybar h1::first-letter { text-transform: uppercase; }
.daybar .today-mark { display: block; text-align: center; font-size: 12.5px; color: var(--accent); font-weight: 700; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 22px;
}
.daybar .today-mark a { color: var(--accent); }
.day-tools { display: flex; gap: 8px; margin: 14px 0 16px; align-items: stretch; }
.day-tools input[type=date] { flex: 1; min-width: 0; margin-top: 0; }
.day-tools .btn { white-space: nowrap; flex-shrink: 0; }
.card > h2 { margin-bottom: 12px; }

/* ---------- карточка записи ---------- */
.appt-head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.appt-when { font-size: 17px; font-weight: 600; margin-top: 6px; }
.appt-when::first-letter { text-transform: uppercase; }
.svc-list { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.svc-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.svc-list li.total { font-weight: 700; border-bottom: 0; }
.paid { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--lilac-soft); color: var(--lilac); font-weight: 700; }
.client-link { color: var(--accent); text-decoration: none; }
.client-link:hover { text-decoration: underline; }

/* ---------- карточка клиентки ---------- */
.contact-row { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stats div { background: var(--bg); border-radius: 16px; padding: 10px 12px; }
.stats b { display: block; font-size: 18px; font-weight: 600; color: var(--accent); }
.stats span { font-size: 12.5px; color: var(--muted); }
.note { margin-top: 16px; white-space: pre-line; }
.note p { margin-top: 6px; }

/* ---------- формы ---------- */
label.field { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); }
label.field + label.field, .field + .field { margin-top: 12px; }
input[type=text], input[type=tel], input[type=search], input[type=password], input[type=date], input[type=time],
input[type=number], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 6px;
  min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #efd8e4; border-radius: 16px; background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 500;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(238, 77, 147, 0.15); }
.btn:focus-visible, a:focus-visible, .choice:focus-within, .wk-day:focus-visible, .tile:focus-visible {
  outline: 3px solid rgba(238, 77, 147, 0.35); outline-offset: 2px;
}
.error { color: var(--bad); font-size: 14.5px; font-weight: 600; margin-top: 10px; min-height: 0; }
.error:empty { display: none; }
.hint { font-size: 13.5px; color: var(--muted); margin: 0 4px 8px; }

.choices { display: grid; gap: 8px; margin-top: 8px; }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600;
}
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.choice:has(input:checked) { border-color: transparent; background: var(--grad); color: #fff; }
.choice:has(input:checked) .price { color: #fff; }
.choice .price { margin-left: auto; color: var(--muted); font-weight: 700; white-space: nowrap; }
fieldset { border: 0; padding: 0; margin: 14px 0 0; }
legend { font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  min-width: 76px; min-height: 46px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid #f3a8c9; background: #fff; color: var(--info);
  font: inherit; font-weight: 700; cursor: pointer;
}
.chip[aria-pressed=true] { background: var(--grad); border-color: transparent; color: #fff; }
.chip[disabled] { color: #c9b9c4; background: var(--gray-soft); border-color: var(--gray-soft); text-decoration: line-through; cursor: default; }
.chip small { display: block; font-weight: 600; font-size: 11px; opacity: 0.85; }

.results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.result {
  text-align: left; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 16px;
  background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--accent);
}
.result small { display: block; color: var(--muted); font-weight: 500; }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--accent-soft); }
.total-line { display: flex; justify-content: space-between; margin-top: 12px; font-weight: 700; }

.tabs { display: flex; gap: 6px; margin: 12px 0; overflow-x: auto; }
.tabs a {
  padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid #f3a8c9;
  color: var(--info); text-decoration: none; font-size: 14.5px; font-weight: 700; white-space: nowrap;
}
.tabs a.active { background: var(--grad); border-color: transparent; color: #fff; }
.toolbar { display: flex; gap: 8px; align-items: flex-end; }
.toolbar input { margin-top: 0; }
.toolbar .btn { flex-shrink: 0; }

.menu { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.menu a, .menu button {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; min-height: 56px;
  color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0;
  border-bottom: 1px solid var(--line); text-align: left; cursor: pointer;
}
.menu > :last-child { border-bottom: 0; }
.menu .arrow { color: var(--accent); }

.svc-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.svc-form .grid2 label.field + label.field { margin-top: 0; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- вход ---------- */
.login { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; max-width: 360px; margin: 0 auto; }
.login-aura {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 26px 22px; color: #fff; background: #f06aa6; margin-bottom: 22px;
}
.login-aura::before {
  content: ""; position: absolute; inset: -50px; z-index: -1;
  background: radial-gradient(circle at 20% 80%, #ff6f9f 0, transparent 50%), radial-gradient(circle at 80% 70%, #c76ff0 0, transparent 45%), radial-gradient(circle at 60% 15%, #ffd0e4 0, transparent 45%);
  filter: blur(14px);
}
.login-aura h1 { font-size: 30px; font-weight: 300; }
.login-aura p { margin-top: 4px; font-size: 14px; font-weight: 600; opacity: 0.95; }
.login .btn { margin-top: 16px; }

/* ---------- нижнее меню ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #bfb0bb; text-decoration: none; font-size: 11.5px; font-weight: 700;
}
.nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a.active { color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 20; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; box-shadow: 0 6px 24px rgba(60, 10, 40, 0.25);
}

details summary { cursor: pointer; color: var(--accent); font-weight: 700; padding: 8px 4px; }

/* ---------- деньги ---------- */
/* Цвета способов оплаты — проверены на различимость, в т.ч. при дальтонизме (перевод / карта / наличные) */
:root { --pay-transfer: #e2458a; --pay-card: #7a52cc; --pay-cash: #e9a23b; --bar: #f6b9d3; }
.m-tabs { margin: 14px 0 10px; }
.m-tabs a { flex: 1; text-align: center; }
.m-hero { min-height: 0; }
.m-hero .nx { font-weight: 600; }
.m-tiles { margin-top: 10px; }
.m-tiles .tile { cursor: default; }
.m-tiles .tile b { font-size: 26px; }
.m-note { margin-top: 10px; }
.m-note a { color: inherit; font-weight: 700; }

.paybar { display: flex; gap: 2px; height: 10px; margin: 2px 0 14px; }
.paybar span { min-width: 4px; border-radius: 999px; }
.pay-transfer { background: var(--pay-transfer); }
.pay-card { background: var(--pay-card); }
.pay-cash { background: var(--pay-cash); }
.pay-row { display: grid; grid-template-columns: 12px 1fr auto 44px; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.paybar + .pay-row { border-top: 0; }
.pay-row .sw { width: 12px; height: 12px; border-radius: 4px; }
.pay-row .nm { font-weight: 600; }
.pay-row .nm small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pay-row b { font-weight: 700; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.pay-row .pct { text-align: right; color: var(--muted); font-weight: 700; font-size: 14px; font-variant-numeric: lining-nums tabular-nums; }

.mchart { display: flex; align-items: stretch; gap: 2px; height: 150px; padding-top: 6px; }
.mbar {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch;
  padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mbar[disabled] { cursor: default; }
.mbar .col { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.mbar .col i { display: block; width: min(24px, 70%); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--bar); }
.mbar.sel .col i { background: var(--accent); }
.mbar small { display: block; height: 30px; padding-top: 6px; font-size: 11px; font-weight: 700; text-align: center; line-height: 1.15; white-space: nowrap; overflow: visible; }
.mbar.sel small { color: var(--accent); }
.mbar.off small, .mbar.future small { color: #d2c4ce; }
.mbar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.mchart-cap { margin-top: 10px; font-size: 14.5px; font-weight: 600; }
.mchart-cap span { color: var(--muted); font-weight: 500; }
.m-table { margin-top: 10px; }
.m-table .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.m-table .row b { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.m-lost .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.m-lost .row:first-child { border-top: 0; padding-top: 0; }
.m-lost .row span { font-weight: 600; }
.m-lost .row span small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.m-lost .row b { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }

@media (min-width: 720px) {
  .app { padding-top: 32px; }
  .sheet { margin-left: 0; margin-right: 0; border-radius: 28px; }
  .nav { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; }
}

/* узкий телефон: кружок с буквой убираем, чтобы имя помещалось в строку */
@media (max-width: 420px) {
  .tl-row { grid-template-columns: 46px 14px 1fr; column-gap: 6px; }
  .tl-card .ic { display: none; }
  .tl-break { margin-left: 66px; }
}

/* длинные названия услуг в несколько строк — не «таблетка», а мягкий прямоугольник */
.choice { border-radius: 22px; }
