/* Тёмное стекло в духе MindPulse. Цвета студии — две переменные --accent и --accent2 из настроек */
:root {
  --accent: #8b5cf6;
  --accent2: #22d3ee;
  --bg: #0b0b12;
  --bg2: #11111b;
  --surface: rgba(255, 255, 255, .045);
  --surface2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .09);
  --border2: rgba(255, 255, 255, .16);
  --text: #f1f1f6;
  --muted: #9a9ab0;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --grad: linear-gradient(120deg, var(--accent), var(--accent2));
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 64px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f5f8;
  --bg2: #ffffff;
  --surface: rgba(255, 255, 255, .75);
  --surface2: rgba(20, 20, 40, .05);
  --border: rgba(20, 20, 40, .09);
  --border2: rgba(20, 20, 40, .18);
  --text: #16161f;
  --muted: #6b6b80;
  --shadow: 0 20px 50px rgba(30, 30, 60, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font: 15px/1.5 var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(800px 500px at 110% 10%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 20px; font-weight: 750; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 .8em; }
.i { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 16px; }
.caps { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.gap { gap: 12px; }
.gap-s { gap: 8px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--border2); background: var(--surface2);
  font-weight: 650; cursor: pointer; transition: transform .1s, opacity .2s, background .2s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: color-mix(in srgb, var(--text) 10%, transparent); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { background: color-mix(in srgb, var(--danger) 16%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.btn.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn .i { width: 18px; height: 18px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer;
}
.icon-btn:hover { background: var(--surface2); }
.badge {
  position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--danger); color: #fff; font: 700 11px/18px var(--font); font-style: normal; text-align: center;
}
.link { color: var(--accent2); cursor: pointer; background: none; border: 0; padding: 0; font-weight: 600; }

/* ---------- формы ---------- */
.form { display: grid; gap: 14px; }
.form label, label.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--border2); background: color-mix(in srgb, var(--bg) 60%, transparent);
  font-size: 16px; color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
input[type=color] { padding: 4px; width: 56px; height: 44px; cursor: pointer; }
.check { display: flex !important; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 500 !important; font-size: 15px !important; cursor: pointer; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.search { position: relative; }
.search .i { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.search input { padding-left: 40px; }

.tabs, .seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface2); margin-bottom: 16px; overflow-x: auto; }
.tab { flex: 1; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tab.on { background: var(--bg2); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }

/* ---------- карточки ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.card + .card { margin-top: 14px; }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
.grid { display: grid; gap: 14px; }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: 1fr 1fr; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; }

.stat { padding: 16px; }
.stat .num { font-size: 28px; font-weight: 800; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stats .card + .card { margin-top: 0; }

.list { display: grid; gap: 2px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
  cursor: pointer; transition: background .15s;
}
.item:hover { background: var(--surface2); }
.item .meta { color: var(--muted); font-size: 13px; }
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-weight: 750; font-size: 14px; color: #fff; background: var(--grad);
}
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 650; background: var(--surface2); color: var(--muted); white-space: nowrap;
}
.pill.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.pill.danger { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.pill.accent { background: color-mix(in srgb, var(--accent) 20%, transparent); color: color-mix(in srgb, var(--accent) 60%, var(--text)); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border2);
  background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted);
}
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }

.empty { display: grid; place-items: center; text-align: center; gap: 6px; padding: 32px 16px; color: var(--muted); }
.empty .i { width: 34px; height: 34px; opacity: .6; }
.empty.big { padding: 80px 16px; }
.empty.big h2 { color: var(--text); }
.loading { display: flex; justify-content: center; gap: 6px; padding: 60px 0; }
.loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dot 1s infinite ease-in-out; }
.loading span:nth-child(2) { animation-delay: .15s; background: color-mix(in srgb, var(--accent) 50%, var(--accent2)); }
.loading span:nth-child(3) { animation-delay: .3s; background: var(--accent2); }
@keyframes dot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* ---------- каркас ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo { border-radius: 10px; flex: none; object-fit: cover; }
.logo.mono { display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.view { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.view.public { max-width: 520px; font-size: 16px; }
.view.admin { max-width: 1180px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.tabbar a, .tabbar button {
  flex: 1; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: none;
  color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; max-width: 120px;
}
.tabbar a.on { color: var(--text); }
.tabbar a.on .i { color: var(--accent); }
.sidebar { display: none; }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .5); display: flex; align-items: flex-end; }
.sheet {
  width: 100%; background: var(--bg2); border-radius: 20px 20px 0 0; padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
  display: grid; gap: 2px; animation: up .2s ease-out;
}
.sheet a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; font-weight: 600; }
.sheet a:hover { background: var(--surface2); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

@media (min-width: 960px) {
  .sidebar {
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: 240px; z-index: 20;
    padding: 18px 12px; border-right: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px);
  }
  .sidebar .brand { padding: 4px 10px 20px; }
  .sidebar nav { display: grid; gap: 2px; }
  .sidebar a:not(.brand) { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
  .sidebar a:not(.brand):hover { background: var(--surface2); color: var(--text); }
  .sidebar a.on { background: var(--surface2); color: var(--text); }
  .sidebar a.on .i { color: var(--accent); }
  .sidebar-foot { margin-top: auto; display: grid; gap: 2px; }
  .sidebar-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-top { margin-left: 240px; justify-content: flex-end; border-bottom: 0; background: transparent; backdrop-filter: none; }
  .admin-top .brand { display: none; }
  .view.admin { max-width: calc(1180px + 240px + 64px); margin: 0; padding: 0 32px 40px calc(240px + 32px); }
  .sidebar ~ .tabbar { display: none; }
}

/* ---------- модалки и тосты ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(5, 5, 10, .6); backdrop-filter: blur(4px); animation: fade .15s;
}
.modal {
  width: 100%; max-height: 92vh; overflow: auto; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 22px 22px 0 0; box-shadow: var(--shadow); animation: up .2s ease-out;
  padding-bottom: env(safe-area-inset-bottom);
}
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; background: var(--bg2); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 8px 18px 20px; }
@media (min-width: 640px) {
  .modal-wrap { align-items: center; padding: 20px; }
  .modal { max-width: 480px; border-radius: 22px; }
  .modal.wide { max-width: 760px; }
}
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 8px; width: min(92vw, 420px); }
.toast {
  padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600;
  box-shadow: var(--shadow); animation: up .2s ease-out; transition: opacity .3s, transform .3s;
}
.toast.err { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; transform: translateY(10px); }

/* ---------- публичная страница ---------- */
.hero { position: relative; overflow: hidden; padding: 26px 20px; margin-bottom: 18px; }
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: var(--grad); filter: blur(60px); opacity: .35; pointer-events: none;
}
.hero h1 { font-size: 28px; text-transform: uppercase; letter-spacing: .06em; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 1; }
.pulse { display: block; width: 140px; height: 24px; margin: 6px 0 12px; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -16px 10px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 54px; padding: 8px 0; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); text-align: center; cursor: pointer;
}
.day b { display: block; font-size: 18px; }
.day small { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 700; }
.day.on { background: var(--grad); border-color: transparent; color: #fff; }
.day.on small { color: rgba(255, 255, 255, .85); }
.day.none { opacity: .45; }

.session {
  display: flex; gap: 14px; align-items: stretch; padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px;
}
.session .time { min-width: 58px; display: grid; align-content: start; }
.session .time b { font-size: 19px; }
.session .time small { color: var(--muted); font-size: 12px; }
.session .bar { width: 4px; border-radius: 4px; background: var(--accent); flex: none; }
.session .info { flex: 1; min-width: 0; }
.session .info h3 { margin: 0 0 2px; font-size: 16px; }
.session .info .meta { color: var(--muted); font-size: 13px; }
.session .side { display: grid; align-content: center; justify-items: end; gap: 6px; }
.session.mine { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.session.cancelled { opacity: .5; }
.spots { font-size: 12px; color: var(--muted); white-space: nowrap; }
.spots.low { color: var(--warn); }
.spots.full { color: var(--danger); }
.meter { height: 4px; border-radius: 4px; background: var(--surface2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }

.install-steps .step { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.install-steps .step b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.install-steps .i { vertical-align: middle; width: 18px; height: 18px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 14px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.banner .i { color: var(--accent); }

/* ---------- расписание в админке ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.week-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; padding: 0 4px; }
.week-col h4.today { color: var(--accent); }
.slot {
  display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 12px; margin-bottom: 6px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); font-size: 13px;
}
.slot:hover { background: var(--surface2); }
.slot b { display: block; font-size: 13px; }
.slot .meta { color: var(--muted); font-size: 12px; }
.slot.cancelled { opacity: .45; text-decoration: line-through; }
.slot.past { opacity: .7; }
@media (max-width: 720px) {
  .week { display: block; }
  .week-col { margin-bottom: 14px; }
  .grid.two, .cols-3 { grid-template-columns: 1fr; }
  .hide-xs { display: none; }
}

.booking-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.booking-row:last-child { border-bottom: 0; }
.att { display: flex; gap: 4px; }
.att button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border2); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.att button.on.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); border-color: var(--ok); }
.att button.on.no { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); border-color: var(--danger); }
.att .i { width: 18px; height: 18px; }
.suggest { border: 1px solid var(--border); border-radius: 12px; margin-top: 6px; max-height: 240px; overflow: auto; }
.suggest .item { border-radius: 0; }

/* ---------- воронка ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.kcol { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-height: 200px; }
.kcol.drop { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.kcol h4 { display: flex; justify-content: space-between; font-size: 13px; margin: 4px 6px 10px; }
.kcard { padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); margin-bottom: 8px; cursor: grab; }
.kcard:active { cursor: grabbing; }
.kcard b { display: block; font-size: 14px; }
.kcard .meta { font-size: 12px; color: var(--muted); }
.funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 10px; font-size: 13px; }
.funnel-row .track { height: 26px; border-radius: 8px; background: var(--surface2); overflow: hidden; }
.funnel-row .track i { display: block; height: 100%; background: var(--grad); border-radius: 8px; min-width: 2px; }
@media (max-width: 560px) { .funnel-row { grid-template-columns: 110px 1fr 56px; } }

/* ---------- настройки ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 52px; height: 52px; border-radius: 16px; border: 2px solid transparent; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.swatch.on { border-color: var(--text); transform: scale(1.06); }
.preview-phone {
  border-radius: 24px; padding: 16px; border: 1px solid var(--border2); background: var(--bg);
  background-image: radial-gradient(300px 200px at 0 0, color-mix(in srgb, var(--accent) 25%, transparent), transparent);
}
.copy { display: flex; gap: 8px; }
.copy input { font-size: 14px; }
.notif { display: flex; gap: 12px; padding: 14px; border-radius: 14px; cursor: pointer; }
.notif:hover { background: var(--surface2); }
.notif.unread { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; }
.notif .dot.read { background: transparent; }

/* ================= телефон-первый интерфейс клиента ================= */
.topbar { min-height: 60px; }
.profile-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface2); flex: none; }
.profile-btn .avatar.sm { width: 42px; height: 42px; border-radius: 50%; font-size: 13px; }
.profile-btn .dot { position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--danger); border: 2px solid var(--bg); }
.menu-btn { margin-left: -8px; }
@media (min-width: 960px) { .menu-btn { display: none; } .admin-top .profile-btn { display: none; } }
.admin-top { gap: 8px; }
.admin-top .brand { flex: 1; }

.drawer-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .5); animation: fade .15s; }
.drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(84vw, 320px); background: var(--bg2); overflow-y: auto;
  padding: calc(16px + env(safe-area-inset-top)) 10px calc(16px + env(safe-area-inset-bottom)); display: grid; align-content: start; gap: 2px;
  animation: slide .2s ease-out;
}
.drawer .brand { padding: 4px 10px 16px; }
.drawer a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 12px; font-weight: 600; font-size: 16px; }
.drawer a:hover { background: var(--surface2); }
.drawer hr { border: 0; border-top: 1px solid var(--border); margin: 8px 4px; width: auto; }
@keyframes slide { from { transform: translateX(-30px); opacity: 0; } }

.btn.xl { width: 100%; min-height: 60px; font-size: 18px; border-radius: 18px; }
.center { text-align: center; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* главная: всё на одном экране, кнопка внизу под большим пальцем */
.home {
  min-height: calc(100dvh - 60px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px);
  display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px;
}
.home-top { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 4px; }
.home-top h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; margin-bottom: 10px; }
.home-top p { font-size: 17px; max-width: 30ch; }
.next-card {
  display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}
.next-card b { font-size: 18px; }

/* шаги записи */
.step-head { display: flex; align-items: center; gap: 6px; margin: 0 0 14px -8px; }
.step-head h2 { margin: 0; font-size: 22px; }
.step-sub { margin: -8px 0 14px; }
.options, .profile-links { display: grid; gap: 8px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 18px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer; min-height: 64px; font-size: 16px;
}
.option:active { transform: scale(.99); }
.option b { font-size: 17px; }
.option > .i:last-child { color: var(--muted); }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.avatar.xl { width: 72px; height: 72px; border-radius: 22px; font-size: 24px; }
.trainer { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.trainer h2 { margin-bottom: 4px; }
.trainer p { margin: 0; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 12px; }
.slot-btn {
  display: grid; gap: 1px; padding: 12px 14px; border-radius: 16px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border2); font-size: 14px;
}
.slot-btn span { font-size: 22px; font-weight: 800; }
.slot-btn small { color: var(--muted); font-size: 12px; }
.slot-btn:not(:disabled):active { background: var(--grad); color: #fff; }
.slot-btn:disabled { opacity: .45; cursor: default; }
.slot-btn.mine { opacity: 1; border-color: var(--ok); }
.slot-btn.mine small { color: var(--ok); }

/* после записи */
.done { display: flex; flex-direction: column; gap: 14px; padding-top: 10px; }
.done h1 { margin: 0; font-size: 30px; }
.done > p { margin: -8px 0 0; font-size: 17px; }
.done-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.done-check .i { width: 32px; height: 32px; stroke-width: 2.6; }
.done-block { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.done-block .caps { margin: 0; }
.contacts { display: grid; gap: 8px; }
.contact {
  --c: var(--accent); display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; font-weight: 700;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 70%, var(--text));
}
.contact .i { color: var(--c); }
.place { display: flex; gap: 12px; align-items: center; }
.place-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface2); flex: none; }
.place + .place { padding-top: 10px; border-top: 1px solid var(--border); }

/* профиль */
.profile-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px -8px; }
.profile-head h2 { margin: 0; }
.profile-head p { margin: 0; }
.profile-sections { display: grid; gap: 4px; margin-bottom: 14px; }
.profile-sections .caps { margin: 8px 0 8px; }
.my-booking { display: grid; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 8px; }
.my-booking .link { justify-self: start; }
.profile-settings { margin-top: 8px; }
.profile-settings summary { list-style: none; }
.profile-settings summary::-webkit-details-marker { display: none; }
.profile-settings[open] summary { margin-bottom: 14px; }
@media (min-width: 960px) { .admin-top { display: none; } .view.admin { padding-top: 24px; } }
.trainer .small .i { width: 15px; height: 15px; vertical-align: -2px; color: var(--muted); }
.contacts.compact { display: flex; gap: 8px; }
.contacts.compact .contact { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.contacts.compact .contact span { display: none; }

/* кнопка профиля с подписью */
.profile-btn { width: auto; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; gap: 6px; display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; }
.profile-btn .i { width: 18px; height: 18px; }
.block { display: block; }
.accent-option { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.code-input { font-size: 32px; letter-spacing: .5em; text-align: center; font-weight: 800; min-height: 64px; }
/* список записей на главной */
.my-list { display: grid; gap: 8px; }
.my-row { --c: var(--accent); display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--c); }
.my-when { display: grid; min-width: 62px; }
.my-when b { font-size: 18px; }
.my-when small { color: var(--muted); font-size: 12px; }
.my-row small.block { font-size: 13px; }

/* ================= тема «Классика» — в духе старого ВК ================= */
:root[data-theme="classic"] {
  --bg: #edeef0;
  --bg2: #ffffff;
  --surface: #ffffff;
  --surface2: #f0f2f5;
  --border: #dce1e6;
  --border2: #d3d9de;
  --text: #000000;
  --muted: #818c99;
  --ok: #4bb34b;
  --warn: #e6a23c;
  --danger: #e64646;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .12);
  --grad: var(--accent);
  color-scheme: light;
}
:root[data-theme="classic"] body { background: var(--bg); }
:root[data-theme="classic"] .topbar { background: var(--accent); border-bottom: 0; color: #fff; backdrop-filter: none; }
:root[data-theme="classic"] .topbar .brand { text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 600; }
:root[data-theme="classic"] .topbar .logo.mono { background: rgba(255, 255, 255, .2); }
:root[data-theme="classic"] .topbar .icon-btn { color: #fff; }
:root[data-theme="classic"] .profile-btn { background: rgba(255, 255, 255, .16); color: #fff; }
:root[data-theme="classic"] .topbar .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
:root[data-theme="classic"] .profile-btn .dot { border-color: var(--accent); }
:root[data-theme="classic"] .btn { border-radius: 8px; font-weight: 500; }
:root[data-theme="classic"] .btn.primary { background: var(--accent); box-shadow: none; }
:root[data-theme="classic"] .btn.xl { border-radius: 10px; font-size: 17px; min-height: 52px; }
:root[data-theme="classic"] .btn.ghost { background: transparent; color: color-mix(in srgb, var(--accent) 85%, #000); border-color: transparent; }
:root[data-theme="classic"] .link { color: color-mix(in srgb, var(--accent) 85%, #000); }
:root[data-theme="classic"] .card, :root[data-theme="classic"] .option, :root[data-theme="classic"] .my-row,
:root[data-theme="classic"] .my-booking, :root[data-theme="classic"] .done-block, :root[data-theme="classic"] .slot-btn,
:root[data-theme="classic"] .session, :root[data-theme="classic"] .day { backdrop-filter: none; box-shadow: var(--shadow); border-color: transparent; }
:root[data-theme="classic"] .day.on { background: var(--accent); }
:root[data-theme="classic"] .home-top h1 { font-weight: 700; letter-spacing: -.01em; }
:root[data-theme="classic"] .caps { color: var(--muted); letter-spacing: .04em; }
:root[data-theme="classic"] input, :root[data-theme="classic"] select, :root[data-theme="classic"] textarea { background: #f7f8fa; border-color: var(--border2); border-radius: 8px; }
:root[data-theme="classic"] .avatar { border-radius: 50%; }
:root[data-theme="classic"] .modal { border-radius: 14px 14px 0 0; }
:root[data-theme="classic"] .sidebar { background: #fff; }
:root[data-theme="classic"] .tabs, :root[data-theme="classic"] .seg { background: #e5e8ec; }

/* списки как в старом ВК: белый блок, строки через тонкую линию */
.vk-group { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; border: 1px solid var(--border); }
:root[data-theme="classic"] .vk-group { border-color: transparent; }
.vk-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 58px; position: relative; }
.vk-row + .vk-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--border); }
.vk-row:active { background: var(--surface2); }
.vk-row > .i:last-child { color: var(--muted); width: 18px; height: 18px; }
.vk-row.on > .i:last-child { color: var(--accent); }
.vk-row-label { color: var(--muted); width: 110px; flex: none; font-size: 15px; }
.vk-row-value { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; }
.vk-row-value.is-empty { color: color-mix(in srgb, var(--accent) 85%, var(--text)); font-weight: 500; }
.vk-row-value small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.vk-group .place { padding: 14px 16px; }
.book-bottom { display: grid; gap: 8px; margin-top: 16px; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-btn { display: grid; gap: 1px; padding: 12px 8px; text-align: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border2); }
.time-btn b { font-size: 18px; }
.time-btn small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.time-btn:active { background: var(--accent); color: #fff; }
.time-btn.off { opacity: .4; pointer-events: none; }
.time-btn.mine { border-color: var(--ok); }
.time-btn.mine small { color: var(--ok); }
:root[data-theme="classic"] .time-btn { border-color: transparent; box-shadow: var(--shadow); }
.vk-row > .i:first-child { color: var(--accent); }
.danger-row, .danger-row > .i:first-child { color: var(--danger) !important; }
button.vk-row { font: inherit; color: inherit; cursor: pointer; }

/* ================= клиентская часть по образцу Fresha ================= */
/* Каркас: шапка + экран на всю оставшуюся высоту. Ничего не прокручивается, если всё влезает */
#app { min-height: 100dvh; display: flex; flex-direction: column; }
.view.public { flex: 1; width: 100%; display: flex; flex-direction: column; padding: 0; max-width: 520px; }
.c-page { flex: 1; display: flex; flex-direction: column; }
.c-scroll { flex: 1; padding: 8px 16px 20px; }
.c-bar {
  position: sticky; bottom: 0; z-index: 5; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.c-bar[hidden] { display: none; }
.c-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 20px;
  border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: 600 17px/1 var(--font); cursor: pointer;
  transition: transform .1s, opacity .2s;
}
.c-btn:active { transform: scale(.98); }
.c-btn:disabled { opacity: .5; }
.c-btn-soft { background: var(--surface2); color: var(--text); }
.c-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--surface); border: 1px solid var(--border); flex: none; }
.c-link { color: color-mix(in srgb, var(--accent) 85%, var(--text)); font-weight: 600; font-size: 14px; }
.c-link-btn { border: 0; background: none; padding: 6px 0; color: var(--danger); font: 600 14px var(--font); cursor: pointer; }
.c-h { font-size: 17px; font-weight: 700; margin: 22px 0 10px; }
.c-sub { color: var(--muted); font-size: 15px; margin: 4px 0 12px; }
.top-icon { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--surface2); color: var(--text); }
:root[data-theme="classic"] .top-icon { background: rgba(255, 255, 255, .16); color: #fff; }

/* карточки-списки */
.c-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.c-card + .c-card { margin-top: 10px; }
.c-pad { padding: 16px; display: grid; gap: 10px; }
.c-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 60px; position: relative; width: 100%; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
a.c-row:active, button.c-row:active { background: var(--surface2); }
.c-row + .c-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--border); }
.c-row b { display: block; font-size: 16px; font-weight: 600; }
.c-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.c-row .grow small:first-child { margin: 0 0 2px; }
.c-row > .i:last-child { color: var(--muted); width: 18px; height: 18px; }
.c-row-lg { min-height: 72px; }
.c-more { justify-content: center; color: color-mix(in srgb, var(--accent) 85%, var(--text)); font-weight: 600; min-height: 48px; }
.c-danger, .c-danger .i { color: var(--danger) !important; }
.c-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface2); color: var(--accent); flex: none; }
.c-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin: 0 4px; }
.c-date { width: 44px; height: 48px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); display: grid; place-content: center; text-align: center; flex: none; }
.c-date b { font-size: 18px; line-height: 1; color: var(--accent); }
.c-date small { font-size: 11px; margin: 2px 0 0; text-transform: uppercase; }

/* главная студии */
.c-venue { text-align: center; padding: 28px 8px 8px; }
.c-venue-logo { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 28px; font-weight: 700; overflow: hidden; }
.c-venue-logo img { width: 100%; height: 100%; object-fit: cover; }
.c-venue h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; text-wrap: balance; }
.c-venue p { color: var(--muted); font-size: 16px; margin: 0; }

/* шаги */
.c-step { padding: 4px 0 6px; }
.c-step-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c-step-n { color: var(--muted); font-size: 14px; font-weight: 600; }
.c-progress { height: 4px; border-radius: 4px; background: var(--surface2); margin: 12px 0 18px; overflow: hidden; }
.c-progress i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }
.c-step h1 { font-size: 26px; font-weight: 700; margin: 0 0 16px; }
.c-step-top + h1 { margin-top: 14px; }

/* специалисты сеткой, как в Fresha */
.c-pros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.c-pro { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 18px 10px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.c-pro:active { border-color: var(--accent); }
.c-pro b { font-size: 15px; font-weight: 600; margin-top: 6px; }
.c-pro small { color: var(--muted); font-size: 12px; }
.c-pro-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 20px; flex: none; }
.c-pro-av.any { background: var(--surface2); color: var(--accent); }
.c-pro-av.sm { width: 40px; height: 40px; font-size: 14px; }
.c-pro-av.lg { width: 84px; height: 84px; font-size: 28px; margin: 0 auto; }
.c-chip-pro { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; margin-bottom: 14px; }
.c-chip-pro .c-pro-av.sm { width: 30px; height: 30px; font-size: 11px; }

/* дата и время */
.c-days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 6px; padding: 2px 16px 8px; scrollbar-width: none; }
.c-days::-webkit-scrollbar { display: none; }
.c-day { flex: none; width: 56px; height: 72px; border-radius: 28px; border: 1px solid var(--border2); background: var(--surface); display: grid; place-content: center; gap: 2px; cursor: pointer; font: inherit; color: inherit; }
.c-day small { color: var(--muted); font-size: 12px; font-weight: 600; }
.c-day b { font-size: 20px; }
.c-day.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.c-day.on small { color: rgba(255, 255, 255, .85); }
.c-times { display: grid; gap: 8px; }
.c-time { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border2); }
.c-time b { font-size: 17px; font-weight: 600; }
.c-time small { color: var(--muted); font-size: 13px; }
.c-time:active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.c-time.off { opacity: .45; }
.c-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 10px; color: var(--muted); text-align: center; }
.c-empty .i { width: 36px; height: 36px; }

/* готово */
.c-done { text-align: center; padding: 24px 0 4px; }
.c-done-ic { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.c-done-ic .i { width: 36px; height: 36px; stroke-width: 2.6; }
.c-done h1 { font-size: 26px; margin: 0 0 6px; }
.c-done p { color: var(--muted); margin: 0; font-size: 16px; }

/* профиль */
.c-profile { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.c-me { text-align: center; padding: 4px 0 6px; }
.c-me h1 { font-size: 24px; margin: 12px 0 2px; }
.c-me p { color: var(--muted); margin: 0 0 12px; }
.c-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.c-pill .i { width: 16px; height: 16px; color: var(--accent); }
.c-pill b { background: var(--danger); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.c-booking { gap: 6px; }

/* формы входа внутри клиентских экранов */
.view.public .form { gap: 12px; }
.view.public .form label { font-size: 14px; }
.view.public input { min-height: 54px; font-size: 18px; border-radius: 12px; }
:root[data-theme="classic"] .c-card, :root[data-theme="classic"] .c-pro, :root[data-theme="classic"] .c-time,
:root[data-theme="classic"] .c-day:not(.on), :root[data-theme="classic"] .c-icon, :root[data-theme="classic"] .c-pill,
:root[data-theme="classic"] .c-chip-pro { border-color: transparent; box-shadow: var(--shadow); }

/* ================= градиент клиентской части ================= */
:root { --grad-bg: linear-gradient(165deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, var(--accent2)) 45%, var(--accent2) 100%); }
:root[data-area="public"][data-theme="classic"] body { background: var(--grad-bg) fixed; }
:root[data-area="public"][data-theme="classic"] .topbar { background: transparent; border-bottom: 0; color: #fff; backdrop-filter: none; }
:root[data-area="public"][data-theme="classic"] .topbar .brand { color: #fff; text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 600; }
:root[data-area="public"][data-theme="classic"] .topbar .logo.mono { background: rgba(255, 255, 255, .22); }
:root[data-area="public"][data-theme="classic"] .profile-btn, :root[data-area="public"][data-theme="classic"] .top-icon { background: rgba(255, 255, 255, .2); color: #fff; }
:root[data-area="public"][data-theme="classic"] .c-venue h1, :root[data-area="public"][data-theme="classic"] .c-step h1, :root[data-area="public"][data-theme="classic"] .c-h,
:root[data-area="public"][data-theme="classic"] .c-me h1, :root[data-area="public"][data-theme="classic"] .c-done h1 { color: #fff; }
:root[data-area="public"][data-theme="classic"] .c-venue p, :root[data-area="public"][data-theme="classic"] .c-me p, :root[data-area="public"][data-theme="classic"] .c-done p,
:root[data-area="public"][data-theme="classic"] .c-step-n, :root[data-area="public"][data-theme="classic"] .c-sub { color: rgba(255, 255, 255, .85); }
:root[data-area="public"][data-theme="classic"] .c-venue-logo { background: rgba(255, 255, 255, .22); box-shadow: 0 10px 30px rgba(40, 20, 90, .25); }
:root[data-area="public"][data-theme="classic"] .c-progress { background: rgba(255, 255, 255, .3); }
:root[data-area="public"][data-theme="classic"] .c-progress i { background: #fff; }
:root[data-area="public"][data-theme="classic"] .c-bar { background: transparent; border-top: 0; backdrop-filter: none; }
:root[data-area="public"][data-theme="classic"] .c-btn { background: #fff; color: color-mix(in srgb, var(--accent) 80%, #000); box-shadow: 0 8px 24px rgba(20, 20, 60, .22); }
:root[data-area="public"][data-theme="classic"] .c-btn-soft { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
:root[data-area="public"][data-theme="classic"] .c-card .c-btn, :root[data-area="public"][data-theme="classic"] .modal .c-btn { background: var(--accent); color: #fff; }
:root[data-area="public"][data-theme="classic"] .c-day.on { background: #fff; color: color-mix(in srgb, var(--accent) 80%, #000); border-color: #fff; }
:root[data-area="public"][data-theme="classic"] .c-day.on small { color: var(--accent); }
:root[data-area="public"][data-theme="classic"] .c-days .c-day:not(.on) { background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent; box-shadow: none; }
:root[data-area="public"][data-theme="classic"] .c-days .c-day:not(.on) small { color: rgba(255, 255, 255, .8); }
:root[data-area="public"][data-theme="classic"] .c-chip-pro, :root[data-area="public"][data-theme="classic"] .c-pill { background: rgba(255, 255, 255, .92); }
:root[data-area="public"][data-theme="classic"] .c-empty { color: rgba(255, 255, 255, .9); }
:root[data-area="public"][data-theme="classic"] .view.public .form label { color: rgba(255, 255, 255, .9); }
:root[data-area="public"][data-theme="classic"] .view.public .form p, :root[data-area="public"][data-theme="classic"] .view.public .form .muted { color: rgba(255, 255, 255, .9); }
:root[data-area="public"][data-theme="classic"] .view.public .form .link { color: #fff; }
:root[data-area="public"][data-theme="classic"] .view.public input { background: #fff; border-color: transparent; color: #111; }
:root[data-area="public"][data-theme="classic"] .view.public .banner { background: rgba(255, 255, 255, .92); color: #222; border: 0; }
:root[data-area="public"][data-theme="classic"] .seg { background: rgba(255, 255, 255, .25); }
:root[data-area="public"][data-theme="classic"] .seg .tab { color: #fff; }
:root[data-area="public"][data-theme="classic"] .seg .tab.on { background: #fff; color: color-mix(in srgb, var(--accent) 80%, #000); }
:root[data-area="public"][data-theme="classic"] .c-icon { background: rgba(255, 255, 255, .22); color: #fff; border-color: transparent; box-shadow: none; }
.c-staff { display: block; text-align: center; margin-top: 10px; color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 600; }
:root[data-area="public"][data-theme="classic"] .modal .form label, :root[data-area="public"][data-theme="classic"] .modal .form p { color: var(--muted); }
:root[data-area="public"][data-theme="classic"] .modal input { background: #f5f6f8; }

/* ================= кабинет студии — оранжевый ================= */
:root[data-area="admin"] { --accent: #f2711c !important; --accent2: #fb923c !important; }
:root[data-area="admin"][data-theme="classic"] .topbar { background: #f2711c; }
:root[data-area="admin"] .sidebar a.on .i { color: #f2711c; }

/* ---- правки по скриншотам с телефона ---- */
/* шапка клиента не липнет и не просвечивает — контент под неё не заезжает */
:root[data-area="public"] .topbar { position: static; }
/* нижняя кнопка — в конце экрана, а не поверх содержимого */
.c-bar { position: static; }
.mini-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .3); font-size: 11px; font-weight: 700; margin-left: -6px; }
:root[data-area="admin"] .mini-av, :root:not([data-theme="classic"]) .mini-av { background: var(--accent); color: #fff; }
.profile-btn span:not(.mini-av) { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-profile { gap: 10px; margin: 4px 0 6px; }
.c-profile h1 { font-size: 26px; font-weight: 700; margin: 0; }
:root[data-area="public"][data-theme="classic"] .c-profile h1 { color: #fff; }
.c-bell { position: relative; }
.c-bell b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

/* ================= тема «Нейтральная» — шаблон без цвета ================= */
:root[data-theme="neutral"] {
  --accent: #1c1c1e !important; --accent2: #3a3a3c !important;
  --bg: #f4f4f5; --bg2: #ffffff; --surface: #ffffff; --surface2: #f0f0f2;
  --border: #e4e4e7; --border2: #d4d4d8; --text: #111113; --muted: #71717a;
  --ok: #16a34a; --warn: #d97706; --danger: #dc2626;
  --radius: 12px; --shadow: 0 1px 2px rgba(0, 0, 0, .06); --grad: var(--accent);
  color-scheme: light;
}
:root[data-theme="neutral"] body { background: var(--bg); }
:root[data-theme="neutral"] .topbar { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); backdrop-filter: none; }
:root[data-theme="neutral"] .topbar .brand { text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 600; }
:root[data-theme="neutral"] .btn.primary { background: var(--accent); box-shadow: none; }
:root[data-theme="neutral"] .profile-btn, :root[data-theme="neutral"] .top-icon { background: var(--surface2); color: var(--text); }

/* ---- высота: dvh — видимая часть экрана без спрятанной адресной строки ---- */
body { min-height: 100dvh; }
html, body { overscroll-behavior-y: none; }
/* ---- по нажатию на обычный текст ничего не выделяется (и Google не ищет по тапу) ---- */
:root[data-area="public"] body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:root[data-area="public"] input, :root[data-area="public"] textarea { -webkit-user-select: text; user-select: text; }
a, button { -webkit-tap-highlight-color: transparent; }

.c-price { display: block; margin: 2px 0; font-weight: 700; font-size: 14px; color: color-mix(in srgb, var(--accent) 85%, var(--text)); }
.c-textarea { width: 100%; min-height: 110px; padding: 14px; border-radius: 14px; border: 1px solid var(--border2); font: 16px/1.4 var(--font); background: #fff; color: #111; resize: vertical; }
:root[data-area="public"] .c-textarea { -webkit-user-select: text; user-select: text; border-color: transparent; }

.c-pro-av.has-photo { background-size: cover; background-position: center; }
.c-venue-photo { display: block; width: 132px; height: 132px; margin: 0 auto 16px; border-radius: 50%; background-size: cover; background-position: center top;
  border: 4px solid rgba(255, 255, 255, .85); box-shadow: 0 14px 40px rgba(20, 20, 60, .3); }
.staff-photo { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2) center / cover; font-weight: 700; }

.c-opt { font-weight: 500; font-size: 13px; opacity: .75; margin-left: 6px; }

.c-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.c-chips span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font-weight: 600; font-size: 14px; }
:root:not([data-theme="classic"]) .c-chips span { background: var(--surface2); color: var(--text); }
.c-btn-hero { margin-top: 26px; min-height: 64px; font-size: 19px; }
.c-tg { background: #2aabee !important; color: #fff !important; }

.c-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.c-tile { display: grid; align-content: space-between; gap: 10px; min-height: 120px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.c-tile b { font-size: 17px; line-height: 1.25; }
.c-tile span { font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--accent) 85%, var(--text)); }
.c-tile span.muted { color: var(--muted); font-weight: 500; }
.c-tile:active { transform: scale(.98); }
.c-input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--border2); font: 18px var(--font); background: #fff; color: #111; }
:root[data-area="public"] .c-input { -webkit-user-select: text; user-select: text; border-color: transparent; }

/* карточки услуг: всё по центру, цена крупнее */
.c-tile { align-content: center; justify-items: center; text-align: center; gap: 8px; min-height: 132px; }
.c-tile b { font-size: 18px; }
.c-tile span { font-size: 15px; line-height: 1.3; }
.c-tile span.muted { font-size: 14px; }
.c-tile span { white-space: pre-line; }
.c-tile span { font-size: 14px; }
.c-tile span.big { font-size: 22px; font-weight: 800; }

/* список услуг на всю ширину: эмодзи, название, цена */
.c-svc-list { display: grid; gap: 10px; }
.c-svc { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.c-svc:active { transform: scale(.99); }
.c-svc-emoji { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--surface2); flex: none; }
.c-svc b { display: block; font-size: 17px; font-weight: 700; }
.c-svc-price { display: block; margin-top: 3px; font-size: 15px; font-weight: 600; color: color-mix(in srgb, var(--accent) 85%, var(--text)); }
.c-svc > .i:last-child { color: var(--muted); width: 18px; height: 18px; flex: none; }
.c-svc-static { margin-bottom: 4px; }
.c-desc { margin: 12px 2px 0; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .92); }
:root:not([data-theme="classic"]) .c-desc { color: var(--muted); }
.c-tg-ic { background: #2aabee; }
.c-svc-price { white-space: pre-line; }

.c-btn-inline { margin-top: 14px; }
:root[data-area="public"][data-theme="classic"] .c-btn-inline { background: #fff; color: color-mix(in srgb, var(--accent) 80%, #000); }
.c-svc-static + .c-desc { margin-top: 10px; }
.c-textarea[rows="2"] { min-height: 84px; }

.logo.emoji { display: grid; place-items: center; line-height: 1; border-radius: 10px; background: rgba(255, 255, 255, .18); }
:root:not([data-theme="classic"]) .logo.emoji { background: var(--surface2); }
.info-text { white-space: pre-line; font-size: 16px; line-height: 1.5; }
.c-venue-photo { width: 172px; height: 172px; background-position: center top; }
.c-done-tight { padding-top: 8px; }
.logo.flag { display: block; overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.c-desc { white-space: pre-line; }
