/* Extra UI for booking calendar, auth, admin */
.cal-grid, .slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cal-day, .slot-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 12px;
  padding: .55rem .85rem;
  font: inherit;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.cal-day:hover, .slot-btn:hover { border-color: var(--line-strong); color: var(--gold-light); }
.cal-day.is-selected, .slot-btn.is-selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(241,220,174,.18), rgba(168,133,79,.12));
  color: var(--gold-light);
  box-shadow: var(--glow);
}
.cal-day.is-booked, .slot-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.auth-page, .admin-page, .account-page {
  min-height: 100vh;
  /* Clear sticky site-header (~72px) + breathing room */
  padding: calc(72px + 36px) 0 60px;
  padding-top: max(calc(72px + 36px), calc(env(safe-area-inset-top, 0px) + 108px));
}
.auth-card, .admin-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px;
}
.auth-card h1, .admin-shell h1, .account-page h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 .4em;
}
.auth-card .field input,
.auth-card .field select,
.auth-card .field textarea,
.inline-form .field input,
.inline-form .field select,
.inline-form .field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.2rem;
}
.tab-btn {
  flex: 1;
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  border-radius: 999px;
  padding: .55rem 1rem;
  font: inherit;
  cursor: pointer;
}
.tab-btn.is-active {
  color: var(--bg);
  background: var(--gold-grad);
  border-color: transparent;
  font-weight: 600;
}
.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px 60px;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0 1.5rem;
}
.admin-nav button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: .45rem 1rem;
  font: inherit;
  cursor: pointer;
}
.admin-nav button.is-active {
  border-color: var(--gold);
  color: var(--gold-light);
}
.admin-panel { display: none; }
.admin-panel.is-active { display: block; }
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
table.data th, table.data td {
  border-bottom: 1px solid var(--line);
  padding: .65rem .5rem;
  text-align: left;
  vertical-align: top;
}
table.data th { color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.svc-photo {
  width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--surface-3);
}
.inline-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .inline-form.cols-2 { grid-template-columns: 1fr 1fr; }
  .inline-form .span-2 { grid-column: 1 / -1; }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .8rem;
}
.chip.ok { color: var(--ok); border-color: rgba(156,195,163,.4); }
.chip.warn { color: var(--error); border-color: rgba(229,139,127,.4); }
.admin-day-list { display: grid; gap: 10px; margin-top: 1rem; }
.admin-day {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface);
}
.admin-day header {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px;
}
.time-checks {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.time-checks label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .35rem .6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
  font-size: .9rem;
}
.time-checks label.is-on {
  border-color: var(--gold);
  color: var(--gold-light);
}
.flash {
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(156,195,163,.12);
  border: 1px solid rgba(156,195,163,.35);
  color: var(--ok);
  margin-bottom: 1rem;
}
.flash.err {
  background: rgba(229,139,127,.1);
  border-color: rgba(229,139,127,.35);
  color: var(--error);
}
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Ensure [hidden] wins over display:flex utilities */
[hidden] { display: none !important; }

/* Flexible time editor */
.time-add-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px;
}
.time-add-row input[type=time] {
  min-width: 140px;
  width: auto;
  flex: 0 0 auto;
}
.slot-editor-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.slot-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .4rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: .92rem;
}
.slot-chip.is-booked { border-color: rgba(229,139,127,.45); color: var(--error); }
.slot-chip button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px;
}
.slot-chip button:hover { color: var(--error); }
.admin-day-title {
  font-family: var(--font-serif); font-size: 1.25rem; margin: 1.4rem 0 .6rem; font-weight: 500;
}

/* Bookings cards */
.bk-cards { display: grid; gap: 12px; }
.bk-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); padding: 14px 16px;
  display: grid; gap: 8px;
}
.bk-card.is-unread {
  border-color: var(--gold);
  box-shadow: var(--glow);
}
.bk-card-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center;
}
.bk-meta { color: var(--text-soft); font-size: .9rem; line-height: 1.5; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.badge-unread, .status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
}
.badge-unread {
  background: var(--gold-grad); color: #1a140c; margin-left: 8px;
}
.status-pill.new { background: rgba(212,180,131,.2); color: var(--gold-light); }
.status-pill.confirmed { background: rgba(156,195,163,.18); color: var(--ok); }
.status-pill.cancelled { background: rgba(229,139,127,.15); color: var(--error); }
.nav-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); margin-left: 4px; vertical-align: middle;
}

/* ==================== Admin dashboard («Сводка») ==================== */
.dash-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.dash-title { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin: 0 0 .15em; }
.dash-head .form-small { margin: 0; }
.dash-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg {
  display: inline-flex; padding: 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.seg-btn {
  appearance: none; border: 0; background: transparent; color: var(--text-soft);
  font: inherit; font-size: .85rem; padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.seg-btn:hover { color: var(--gold-light); }
.seg-btn.is-active { background: var(--gold-grad); color: #1a140c; font-weight: 600; }

.stat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-card {
  position: relative; overflow: hidden;
  padding: 18px 18px 16px; border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.stat-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,180,131,.45), transparent);
}
.stat-card-gold {
  border-color: rgba(212,180,131,.42);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(212,180,131,.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: var(--glow);
}
.stat-label {
  margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.stat-value {
  margin: 0; font-family: var(--font-serif); font-weight: 500; line-height: 1.05;
  font-size: clamp(2rem, 6vw, 2.7rem); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-card-gold .stat-value {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-note { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--text-soft); }
.stat-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.stat-pills .status-pill { font-size: .66rem; }

.type-split { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.type-chip {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: .85rem;
}
.type-chip .type-name { color: var(--text); font-weight: 600; }
.type-chip .type-val { color: var(--text-soft); }

.dash-cols { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 900px) { .dash-cols { grid-template-columns: 1fr 1fr; } }
.dash-block { padding: 18px 18px 14px; border-radius: 18px; min-width: 0; }
.dash-block-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.dash-block-head h3 { font-size: 1.4rem; margin: 0; }
.dash-block-head .link-btn { padding: 4px 0; font-size: .85rem; }
.dash-list { display: grid; }
.dash-row {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer;
}
.dash-row:first-child { border-top: 0; }
.dash-row:hover .dash-name { color: var(--gold-light); }
.dash-when {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-3);
  line-height: 1.15;
}
.dash-when strong { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--gold-light); }
.dash-when span { font-size: .74rem; color: var(--text-soft); }
.dash-main { min-width: 0; }
.dash-name { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-name a { font-weight: 400; font-size: .82rem; text-decoration: none; margin-left: 4px; }
.dash-svc { font-size: .85rem; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-sub { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dash-price { font-size: .85rem; color: var(--gold-light); font-weight: 600; white-space: nowrap; }
.dash-search {
  min-width: 0; width: 100%; max-width: 320px;
  padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: .88rem;
}
.dash-search:focus { outline: none; border-color: var(--gold); }
table.data th.num, table.data td.num { text-align: right; }
.clients-table td a { text-decoration: none; }
@media (max-width: 640px) {
  .clients-table thead { display: none; }
  .clients-table, .clients-table tbody, .clients-table tr, .clients-table td { display: block; width: 100%; }
  .clients-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.data.clients-table td { border: 0; padding: 2px 0; text-align: left !important; }
  .clients-table td[data-label]:not(:first-child)::before {
    content: attr(data-label) ": "; color: var(--muted); font-size: .78rem;
  }
  .clients-table td br { display: none; }
  .clients-table td small { margin-left: 6px; }
  .dash-search { max-width: none; }
}
.dash-block-head input.dash-search { width: auto; flex: 0 1 320px; min-height: 0; }
.stat-value, .dash-when strong, .dash-price { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
@media (max-width: 640px) { .dash-block-head input.dash-search { flex: 1 1 100%; } }

/* Header: keep logo + logged-in nav (Мои записи / Админ / Выйти) on one line */
@media (min-width: 900px) {
  .header-inner { gap: 24px; }
  .header-inner .logo { flex: none; }
  .site-nav ul { gap: clamp(14px, 1.7vw, 34px); }
  .site-nav a:not(.btn), .site-nav .btn { white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1240px) {
  .site-nav a:not(.btn) { font-size: .72rem; letter-spacing: .08em; }
  .site-nav .btn-small { padding: .55em 1em; }
  .header-inner .logo { font-size: 1.35rem; }
}

/* ==========================================================================
   Time picker (admin slot editor) — hour / minute wheels
   ========================================================================== */
.tp-label {
  display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 8px; font-weight: 600;
}
.tp-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(212,180,131,.08), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
}
.tp-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.tp-target { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.tp-target-cap { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tp-target strong { color: var(--gold-light); font-weight: 600; font-size: .98rem; }
.tp-seg {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2);
}
.tp-seg-cap { font-size: .72rem; color: var(--muted); padding: 0 6px 0 10px; letter-spacing: .08em; text-transform: uppercase; }
.tp-seg-btn {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  padding: .42rem .9rem; font: inherit; font-size: .82rem; font-weight: 600;
  color: var(--text-soft); background: transparent; transition: background .2s var(--ease), color .2s var(--ease);
}
.tp-seg-btn:hover { color: var(--gold-light); }
.tp-seg-btn.is-active { background: var(--gold-grad); color: #1a140c; box-shadow: 0 6px 18px -8px rgba(212,180,131,.7); }
.tp-body { display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 10px 14px; }
.tp-col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tp-col-cap { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.1rem; height: 1.1rem; }
.tp-colon { font-family: var(--font-sans); font-weight: 300; font-size: 2rem; color: var(--gold); line-height: 1; padding-top: 22px; opacity: .8; }
.tp-step {
  appearance: none; width: 92px; height: 30px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--gold);
  font-size: .7rem; line-height: 1; transition: border-color .2s, color .2s, background .2s;
}
.tp-step:hover { border-color: var(--line-strong); color: var(--gold-light); background: var(--surface-3); }
.tp-step:active { transform: translateY(1px); }
.tp-wheel {
  position: relative; width: 92px; height: 220px;
  overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scrollbar-width: none;
  border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
  outline: none; touch-action: pan-y;
}
.tp-wheel::-webkit-scrollbar { display: none; }
.tp-col::after {
  content: ""; position: absolute; left: 0; right: 0; height: 44px; pointer-events: none;
  top: calc(1.1rem + 6px + 30px + 6px + 88px);
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(212,180,131,.07);
  box-shadow: 0 0 22px -6px rgba(212,180,131,.35) inset;
}
.tp-wheel:focus-visible { box-shadow: 0 0 0 3px rgba(212,180,131,.25); }
.tp-pad { height: 88px; }
.tp-item {
  height: 44px; line-height: 44px; text-align: center; scroll-snap-align: center;
  font-family: var(--font-sans); font-size: 1.3rem; font-weight: 500;
  color: var(--muted); cursor: pointer; user-select: none;
  transition: color .15s, transform .15s, opacity .15s; opacity: .55;
  font-variant-numeric: tabular-nums;
}
.tp-item.is-near { color: var(--text-soft); opacity: .85; }
.tp-item.is-sel { color: var(--gold-light); opacity: 1; transform: scale(1.15); font-weight: 600; }
.tp-side { display: flex; flex-direction: column; gap: 12px; padding-left: 10px; min-width: 0; }
.tp-preview {
  font-family: var(--font-sans); font-weight: 300; font-size: 3.1rem; line-height: 1; letter-spacing: .01em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.tp-preview.is-dup { background: none; color: var(--error); -webkit-text-fill-color: var(--error); }
.tp-preview.is-dup::after {
  content: "уже открыт"; display: block; font-family: var(--font-sans); font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase; margin-top: 6px;
}
.tp-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-quick button {
  appearance: none; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text-soft); font-variant-numeric: tabular-nums;
}
.tp-quick button:hover { border-color: var(--line-strong); color: var(--gold-light); }
.tp-advance { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tp-advance select { min-height: 42px; padding-top: .45rem; padding-bottom: .45rem; font-size: .9rem; text-transform: none; letter-spacing: 0; }
.tp-add { width: 100%; justify-content: center; gap: .5em; }
.tp-add-plus { font-size: 1.2em; line-height: 1; font-weight: 700; }
.tp-add-time { font-variant-numeric: tabular-nums; }
.tp-add.is-dup { opacity: .55; }
.tp-hint { margin: 12px 0 0; }
.tp-manual { margin-top: 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 0 14px; }
.tp-manual summary { cursor: pointer; list-style: none; padding: 10px 0; color: var(--text-soft); font-size: .88rem; }
.tp-manual summary::-webkit-details-marker { display: none; }
.tp-manual summary::before { content: "⌨"; margin-right: 8px; color: var(--gold); }
.tp-manual summary::after { content: "▾"; float: right; color: var(--muted); transition: transform .2s; }
.tp-manual[open] summary::after { transform: rotate(180deg); }
.tp-manual-body { padding: 4px 0 14px; }
.tp-manual-body input[type=text] { max-width: 180px; }
.slot-chip.is-new { border-color: var(--gold); color: var(--gold-light); animation: tpNew 1.6s var(--ease); }
@keyframes tpNew {
  0% { box-shadow: 0 0 0 0 rgba(212,180,131,.6); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 10px rgba(212,180,131,0); transform: scale(1); }
}
@media (max-width: 640px) {
  .tp-card { padding: 14px 12px 12px; }
  .tp-body { grid-template-columns: 1fr auto 1fr; justify-items: center; }
  .tp-col { width: 100%; }
  .tp-wheel, .tp-step { width: 100%; max-width: 120px; }
  .tp-col::after { left: 50%; right: auto; width: min(100%, 120px); transform: translateX(-50%); }
  .tp-side { grid-column: 1 / -1; width: 100%; padding-left: 0; }
  .tp-preview { text-align: center; font-size: 2.6rem; }
  .tp-quick { justify-content: center; }
}

/* ==========================================================================
   Admin UX — help blocks, tooltips, empty states, toast, mobile
   ========================================================================== */
#hello { margin-top: 0; }

/* Tabs */
.admin-nav { gap: 8px; }
.admin-nav button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .55rem 1.05rem .55rem .6rem; font-weight: 500; color: var(--text-soft);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.admin-nav button:hover { border-color: var(--line-strong); color: var(--gold-light); }
.admin-nav button.is-active { background: var(--surface-2); box-shadow: var(--glow); }
.nav-num {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: .72rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--gold);
}
.admin-nav button.is-active .nav-num { background: var(--gold-grad); color: #1a140c; border-color: transparent; }

/* Help block */
.panel-help {
  margin: .4rem 0 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212,180,131,.07), rgba(212,180,131,.015));
}
.panel-help summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  padding: 11px 14px; font-weight: 600; font-size: .92rem; color: var(--gold-light);
}
.panel-help summary::-webkit-details-marker { display: none; }
.panel-help-ico {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-grad); color: #1a140c; font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: .95rem;
}
.panel-help-toggle { margin-left: auto; font-weight: 500; font-size: .78rem; color: var(--muted); }
.panel-help-toggle::after { content: "свернуть ▴"; }
.panel-help:not([open]) .panel-help-toggle::after { content: "показать ▾"; }
.panel-help-body { padding: 0 16px 12px 46px; color: var(--text-soft); font-size: .92rem; line-height: 1.55; }
.panel-help-body p { margin: 0 0 .5rem; }
.panel-help-body b { color: var(--text); font-weight: 600; }
.help-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.help-steps li::marker { color: var(--gold); font-weight: 700; }
#panel-dashboard .panel-help { margin-top: 0; }

/* "?" tips + floating tooltip */
.tip {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--gold); font-size: .68rem; font-weight: 700;
  font-family: var(--font-sans); font-style: normal; letter-spacing: 0; text-transform: none;
  cursor: help; vertical-align: middle; margin-left: 4px; line-height: 1; user-select: none;
}
.tip:hover, .tip:focus-visible { background: var(--gold); color: #1a140c; outline: none; }
.tipbox {
  position: absolute; z-index: 1000; max-width: 260px; pointer-events: none;
  padding: .55rem .75rem; border-radius: 10px; font-size: .82rem; line-height: 1.45; font-weight: 500;
  color: var(--text); background: #262119; border: 1px solid var(--line-strong);
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.85); letter-spacing: 0; text-transform: none;
}

/* Empty states */
.empty-state {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: rgba(212,180,131,.03);
}
.empty-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); color: var(--gold); font-size: 1.15rem; border: 1px solid var(--line);
}
.empty-title { margin: 0 0 .2rem; font-weight: 600; color: var(--text); }
.empty-text { margin: 0 0 .7rem; color: var(--text-soft); font-size: .9rem; line-height: 1.5; }
.empty-body .btn { margin-top: 2px; }
.empty-text:last-child { margin-bottom: 0; }
.empty-inline {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong);
  color: var(--text-soft); font-size: .92rem; width: 100%;
}
.empty-inline b { color: var(--gold-light); }
table.data td .empty-state { margin: 6px 0; }

/* Toast */
.flash {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 999; width: max-content; max-width: min(92vw, 520px); margin: 0;
  background: #17201a; box-shadow: 0 18px 40px -12px rgba(0,0,0,.85);
  font-weight: 500; animation: toastIn .25s var(--ease);
}
.flash.err { background: #241615; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Dashboard */
.stat-card-link { cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.stat-card-link:hover { border-color: var(--line-strong); transform: translateY(-2px); }

/* Services */
.form-title { font-family: var(--font-serif); font-weight: 500; font-size: 1.3rem; margin: 0; color: var(--gold-light); }
.svc-form { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.svc-form.is-editing { border-color: var(--gold); box-shadow: var(--glow); }
.svc-actions { white-space: nowrap; }
.svc-actions .btn { margin: 0 6px 6px 0; }
.svc-table tr.is-hidden-svc td { opacity: .6; }
.svc-table tr.is-hidden-svc td.svc-actions { opacity: 1; }
.btn-danger:hover { border-color: rgba(229,139,127,.55) !important; color: var(--error) !important; }

/* Mobile */
@media (max-width: 720px) {
  .admin-shell { padding: 0 14px 90px; }
  .admin-nav {
    position: sticky; top: 64px; z-index: 20; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: .6rem -14px 1.2rem; padding: 10px 14px;
    background: rgba(13,12,11,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav button { flex: 0 0 auto; white-space: nowrap; }
  .admin-panel.card { padding: 16px !important; }
  .panel-help-body { padding-left: 16px; }
  .panel-help-toggle::after { content: "▴"; }
  .panel-help:not([open]) .panel-help-toggle::after { content: "▾"; }
  .empty-state { padding: 14px; gap: 12px; }
  .empty-ico { width: 36px; height: 36px; font-size: 1rem; }

  /* services table → cards */
  .svc-table thead { display: none; }
  .svc-table, .svc-table tbody, .svc-table tr, .svc-table td { display: block; width: 100%; }
  .svc-table tr {
    display: grid; grid-template-columns: 64px 1fr; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  table.data.svc-table td { border: 0; padding: 2px 0; }
  .svc-table td.svc-td-photo { grid-row: 1 / span 4; }
  .svc-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
  .svc-table td.svc-td-name { order: -1; }
  .svc-table td.svc-actions { grid-column: 1 / -1; white-space: normal; padding-top: 8px; }
  .svc-table tr:has(.empty-state) { display: block; }

  /* bookings */
  .bk-actions .btn { flex: 1 1 auto; }
  #panel-bookings .inline-form .field:last-child { flex-direction: column; align-items: stretch !important; }
  .tp-manual-body input[type=text] { max-width: none; }
}
.svc-td-price { white-space: nowrap; }
@media (max-width: 720px) {
  #panel-bookings .inline-form { grid-template-columns: 1fr 1fr; gap: 0 10px; }
  #panel-bookings .inline-form .field:nth-child(2),
  #panel-bookings .inline-form .field:last-child { grid-column: 1 / -1; }
}
.tp-manual-body label { display: block; text-align: left; margin: 8px 0 6px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-size: .74rem; }

/* Contacts */
.footer-contacts a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contacts .icon { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; }
.booking-contacts { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.booking-contacts p { margin: 0 0 .7rem; font-size: .92rem; }
.booking-contacts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.booking-contacts .icon, .success-share .icon, .hero-actions .icon { width: 16px; height: 16px; }
.success-share-hint { text-align: center; font-size: .9rem; margin: 1rem 0 .7rem; }
.success-share { margin-bottom: 12px; }

/* ==========================================================================
   Booking section — responsive fixes (320–960px)
   ========================================================================== */
.booking-inner > * { min-width: 0; }
#booking .field, #booking fieldset.field { min-width: 0; min-inline-size: 0; margin-inline: 0; }
#booking .field legend { padding: 0; margin-inline: 0; float: none; width: 100%; }
#booking select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }

/* Direction radio cards: equal heights, no outer halo that looks like a misaligned frame */
#booking .radio-cards { align-items: stretch; }
#booking .radio-card { height: 100%; }
#booking .radio-card > span { height: 100%; line-height: 1.35; padding: 12px 14px; }
#booking .radio-card input:checked + span {
  box-shadow: inset 0 0 0 1px rgba(212,180,131,.35), 0 12px 30px -16px rgba(212,180,131,.55);
}
@media (min-width: 480px) and (max-width: 579px) { #booking .radio-cards { grid-template-columns: 1fr; } }

/* Dates & times: uniform grid instead of ragged flex-wrap */
#cal-dates, #cal-slots { display: grid; gap: 8px; }
#cal-dates { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
#cal-slots { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
#cal-dates .cal-day, #cal-slots .slot-btn {
  width: 100%; min-width: 0; min-height: 48px; padding: .5rem .3rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap;
}
#cal-dates .cal-day { min-height: 58px; }
.cd-wd { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.cd-d { font-size: .95rem; font-weight: 500; }
.cal-day.is-selected .cd-wd { color: var(--gold); }

/* Messenger / phone CTA row */
#booking .booking-contacts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#booking .booking-contacts-row .btn {
  width: 100%; min-width: 0; justify-content: center; gap: .5em; white-space: nowrap;
  padding-left: .8em; padding-right: .8em;
}
#booking .booking-contacts-row .js-tel-link { grid-column: 1 / -1; }
@media (min-width: 600px) and (max-width: 959px) {
  #booking .booking-contacts-row { grid-template-columns: 1.3fr 1fr 1fr; }
  #booking .booking-contacts-row .js-tel-link { grid-column: auto; }
}
#booking .messenger-cta .btn { flex: 1 1 100%; }
@media (min-width: 600px) { #booking .messenger-cta .btn { flex: 0 1 auto; } }

/* Success card: share buttons stack cleanly */
#booking .success-actions .btn { min-width: 0; justify-content: center; gap: .5em; }
#booking .success-share .btn { flex: 1 1 100%; }
@media (min-width: 600px) { #booking .success-share .btn { flex: 1 1 200px; } }

/* Small phones */
@media (max-width: 400px) {
  .booking-form, .booking-success { padding: 24px 16px; }
  .booking-form::before, .booking-success::before { left: 16px; right: 16px; }
  #booking .booking-contacts-row .btn { font-size: .72rem; letter-spacing: .08em; }
  .success-summary { padding: 14px; }
}
@media (max-width: 360px) {
  .container { padding: 0 16px; }
  #cal-dates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #cal-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #cal-slots .slot-btn { font-size: .9rem; }
}

/* Yandex ID login */
.oauth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted,#9a9488);font-size:14px}
.oauth-divider::before,.oauth-divider::after{content:"";flex:1;height:1px;background:rgba(207,169,104,.25)}
.btn-yandex{display:flex;align-items:center;justify-content:center;gap:10px;background:#fc3f1d;color:#fff;border:none;font-weight:600;text-decoration:none}
.btn-yandex:hover,.btn-yandex:focus-visible{background:#e8381a;color:#fff}
.btn-yandex .ya-badge{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#fc3f1d;font-weight:800;font-size:14px;line-height:1}

/* ==================== «Мои записи»: действия + перенос ==================== */
.acc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-actions .btn { min-height: 44px; white-space: nowrap; }
@media (max-width: 600px) {
  #tbl thead { display: none; }
  #tbl, #tbl tbody, #tbl tr, #tbl td { display: block; width: 100%; }
  #tbl tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.data#tbl td { border: 0; padding: 3px 0; }
  #tbl td:first-child { font-weight: 600; color: var(--gold-light); }
  #tbl td:first-child br { display: none; }
  #tbl td:first-child small { margin-left: .4em; }
  .acc-actions { display: grid; grid-template-columns: 1fr 1fr; padding-top: 6px; }
  .acc-actions .btn { width: 100%; justify-content: center; min-height: 48px; }
}
body.rs-open { overflow: hidden; }
.rs-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rs-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.rs-dialog {
  position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 22px 20px 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); animation: toastIn .2s var(--ease);
}
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rs-head h2 { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 1.6rem; }
.rs-x {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--text-soft);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; flex: 0 0 auto;
}
.rs-x:hover, .rs-x:focus-visible { color: var(--gold-light); border-color: var(--line-strong); }
.rs-current { margin: .4rem 0 1rem; }
.rs-label { margin: .9rem 0 .5rem; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.rs-dates, .rs-slots { display: grid; gap: 8px; }
.rs-dates { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.rs-slots { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.rs-dates .cal-day, .rs-slots .slot-btn {
  width: 100%; min-width: 0; min-height: 48px; padding: .5rem .3rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rs-dates .cal-day { min-height: 58px; }
.rs-err { color: var(--error); min-height: 1.2em; margin: .8rem 0 0; font-size: .92rem; }
.rs-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.rs-foot .btn { width: 100%; justify-content: center; min-height: 48px; }
@media (max-width: 600px) {
  .rs-modal { align-items: flex-end; padding: 0; }
  .rs-dialog { width: 100%; max-height: 88dvh; border-radius: var(--radius) var(--radius) 0 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .rs-dates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rs-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .rs-dates, .rs-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==================== Чат клиента (плавающая кнопка) ==================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.chat-widget { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1000; }
.chat-bubble {
  position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold-grad); color: #1a140c; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(212,180,131,.65), 0 1px 0 rgba(255,255,255,.35) inset;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chat-bubble:hover { transform: translateY(-2px); }
.chat-bubble:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.chat-dot {
  position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--error); border: 2px solid var(--bg);
}
.chat-panel {
  position: absolute; right: 0; bottom: 74px; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glow); animation: toastIn .2s var(--ease);
}
.chat-panel[hidden] { display: none !important; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-weight: 600; color: var(--gold-light); }
.chat-head small { color: var(--muted); font-size: .78rem; }
.chat-close {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--text-soft);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; flex: 0 0 auto;
}
.chat-close:hover, .chat-close:focus-visible { color: var(--gold-light); border-color: var(--line-strong); }
.chat-list { flex: 1 1 auto; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.chat-empty { color: var(--text-soft); font-size: .92rem; text-align: center; margin: auto 8px; line-height: 1.5; }
.chat-msg { max-width: 82%; display: flex; flex-direction: column; gap: 3px; }
.chat-msg .chat-text { padding: .6rem .85rem; border-radius: 16px; line-height: 1.4; font-size: .95rem; word-wrap: break-word; overflow-wrap: anywhere; }
.chat-msg time { font-size: .7rem; color: var(--muted); padding: 0 6px; }
.chat-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.is-mine .chat-text { background: var(--gold-grad); color: #1a140c; border-bottom-right-radius: 4px; }
.chat-msg.is-admin { align-self: flex-start; align-items: flex-start; }
.chat-msg.is-admin .chat-text { background: var(--surface-2, #201d19); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-err { color: var(--error); font-size: .82rem; margin: 0; padding: 0 14px; min-height: 0; }
.chat-err:empty { display: none; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea {
  flex: 1 1 auto; min-height: 46px; max-height: 120px; resize: none; padding: .7rem .9rem; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; line-height: 1.35;
}
.chat-form textarea:focus { outline: none; border-color: var(--gold); }
.chat-send {
  flex: 0 0 auto; width: 48px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--gold-grad); color: #1a140c; display: flex; align-items: center; justify-content: center;
}
.chat-send:disabled { opacity: .5; cursor: wait; }
@media (max-width: 520px) {
  .chat-widget.is-open { left: 0; right: 0; bottom: 0; }
  .chat-widget.is-open .chat-bubble { display: none; }
  .chat-panel { position: fixed; inset: auto 0 0 0; width: 100%; height: min(86dvh, 640px); border-radius: var(--radius) var(--radius) 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
/* keep toasts above the bubble */
.flash { z-index: 1200; }

/* ==================== Админка: чат ==================== */
.achat { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 14px; min-height: 480px; margin-top: 1rem; }
.achat-threads { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow-y: auto; max-height: 70vh; }
.achat-thread {
  appearance: none; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left;
  padding: 12px 14px; min-height: 56px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; cursor: pointer;
}
.achat-thread:hover { background: rgba(212,180,131,.05); }
.achat-thread.is-active { background: var(--surface-2, #201d19); box-shadow: inset 3px 0 0 var(--gold); }
.achat-thread b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.achat-thread .achat-last { grid-column: 1 / -1; color: var(--text-soft); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.achat-thread time { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.achat-thread .badge-unread { margin-left: 6px; }
.achat-conv { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); display: flex; flex-direction: column; min-height: 480px; max-height: 70vh; overflow: hidden; }
.achat-conv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.achat-conv-head b { color: var(--gold-light); }
.achat-back { display: none; }
.achat-conv .chat-list { flex: 1 1 auto; }
.achat-conv .chat-msg.is-admin-own { align-self: flex-end; align-items: flex-end; }
.achat-conv .chat-msg.is-admin-own .chat-text { background: var(--gold-grad); color: #1a140c; border-bottom-right-radius: 4px; }
.achat-conv .chat-msg.is-client { align-self: flex-start; align-items: flex-start; }
.achat-conv .chat-msg.is-client .chat-text { background: var(--surface-2, #201d19); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.achat-placeholder { margin: auto; color: var(--muted); padding: 20px; text-align: center; }
@media (max-width: 720px) {
  .achat { grid-template-columns: 1fr; min-height: 0; }
  .achat-threads { max-height: none; }
  .achat.has-open .achat-threads { display: none; }
  .achat:not(.has-open) .achat-conv { display: none; }
  .achat-conv { min-height: 60dvh; max-height: 75dvh; }
  .achat-back { display: inline-flex; }
}

/* ===================== ЮMoney prepayment (v11) ===================== */
.pay-card { text-align: center; max-width: 520px; margin: 0 auto; }
.pay-card h1 { font-size: clamp(1.35rem, 4.5vw, 1.8rem); }
.pay-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 700; line-height: 1;
  background: rgba(212,180,131,.12); color: var(--gold-light);
  border: 1px solid rgba(212,180,131,.35);
}
.pay-icon.is-ok { background: rgba(156,195,163,.15); color: var(--ok); border-color: rgba(156,195,163,.45); }
.pay-icon.is-warn { background: rgba(212,180,131,.15); color: var(--gold); }
.pay-icon.is-err { background: rgba(229,139,127,.12); color: var(--error); border-color: rgba(229,139,127,.4); }
.pay-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(212,180,131,.25); border-top-color: var(--gold);
  animation: pay-spin .9s linear infinite;
}
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-spinner { animation-duration: 3s; } }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.pay-actions .btn { min-width: 150px; }
@media (max-width: 480px) { .pay-actions .btn { width: 100%; } }

.pay-pill {
  display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.pay-pill.paid { background: rgba(212,180,131,.18); color: var(--gold-light); border: 1px solid rgba(212,180,131,.4); }
.pay-pill.pending { background: rgba(239,217,167,.08); color: var(--gold); border: 1px dashed rgba(212,180,131,.45); }
.pay-pill.failed { background: rgba(229,139,127,.12); color: var(--error); }
.prepay-note { margin: 8px 0 0; font-size: .86rem; text-align: center; }

.ym-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 1rem 0; }
.ym-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--error); flex: none; }
.ym-dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(156,195,163,.15); }
.ym-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.ym-row .field { margin: 0; }
.ym-block { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.07); }

/* ===================== Prepayment mode: fixed ₽ / % (v12) ===================== */
.pp-form { max-width: 860px; }
.pp-seg { margin-bottom: 14px; flex-wrap: wrap; }
.pp-mode-btn {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  padding: .55rem 1.05rem; font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--text-soft); background: transparent; transition: background .2s var(--ease), color .2s var(--ease);
}
.pp-mode-btn:hover { color: var(--gold-light); }
.pp-mode-btn.is-active { background: var(--gold-grad); color: #1a140c; box-shadow: 0 6px 18px -8px rgba(212,180,131,.7); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
.pp-opt {
  position: relative; margin: 0; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px;
  background: var(--bg-2); transition: opacity .25s, filter .25s, border-color .25s, box-shadow .25s;
}
.pp-opt.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(212,180,131,.25), 0 10px 30px -18px rgba(212,180,131,.6); background: var(--surface); }
.pp-opt:not(.is-on) { opacity: .45; filter: grayscale(.85); cursor: pointer; }
.pp-opt:not(.is-on):hover { opacity: .65; }
.pp-opt:not(.is-on) > *:not(legend):not(.pp-off-note) { pointer-events: none; }
.pp-opt-head { display: flex; align-items: center; gap: 8px; padding: 0 6px; margin-left: -6px; float: none; width: auto; }
.pp-opt-title { font-weight: 600; color: var(--gold-light); font-size: .95rem; }
.pp-badge {
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--gold-grad); color: #1a140c;
}
.pp-opt:not(.is-on) .pp-badge { display: none; }
.pp-off-note { display: none; margin: 8px 0 0; }
.pp-opt:not(.is-on) .pp-off-note { display: block; }
.pp-cap { display: block; margin: 8px 0 6px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pp-amount { display: flex; align-items: center; gap: 8px; }
.pp-amount input { max-width: 170px; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pp-rub { font-size: 1.3rem; color: var(--gold); }
.pp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pp-quick button {
  appearance: none; cursor: pointer; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text-soft); border-radius: 999px; padding: .38rem .8rem; font: inherit; font-size: .82rem; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.pp-quick button:hover { border-color: var(--line-strong); color: var(--gold-light); }
.pp-card { padding: 14px; margin-top: 6px; }
.pp-body { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 18px; }
.pp-step {
  appearance: none; width: 92px; height: 30px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--gold);
  font-size: .7rem; line-height: 1; transition: border-color .2s, color .2s, background .2s;
}
.pp-step:hover { border-color: var(--line-strong); color: var(--gold-light); background: var(--surface-3); }
.pp-step:active { transform: translateY(1px); }
.pp-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pp-preview {
  font-family: var(--font-sans); font-weight: 300; font-size: 3.4rem; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.pp-preview small { font-size: .5em; margin-left: 2px; }
.pp-example { margin: 0; }
.pp-summary { margin: 14px 0 12px; color: var(--text-soft); }
.pp-summary b { color: var(--gold-light); font-weight: 600; }
@media (max-width: 760px) {
  .pp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pp-mode-btn { flex: 1 1 100%; text-align: center; }
  .pp-seg { display: flex; border-radius: 18px; }
  .pp-body { grid-template-columns: 1fr; justify-items: center; }
  .pp-side { align-items: center; text-align: center; }
  .pp-quick { justify-content: center; }
}

/* ===================== v13: multi-date calendar, advance hint, prepay fallback, news ===================== */
/* --- «После добавления» hint --- */
.tp-advance-hint { margin: -4px 0 0; line-height: 1.45; text-transform: none; letter-spacing: 0; }

/* --- Multi-date month calendar --- */
.mc-label-hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
.mc-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(212,180,131,.07), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow); padding: 14px 16px 14px; max-width: 560px;
}
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mc-month { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; color: var(--gold-light); letter-spacing: .01em; }
.mc-nav {
  appearance: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--gold); font-size: 1.5rem; line-height: 1;
  transition: border-color .2s, color .2s, background .2s;
}
.mc-nav:hover:not(:disabled) { border-color: var(--line-strong); color: var(--gold-light); background: var(--surface-3); }
.mc-nav:disabled { opacity: .3; cursor: default; }
.mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.mc-wd span { text-align: center; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 2px 0 4px; }
.mc-wd span:nth-child(n+6) { color: var(--gold-dark); }
.mc-day {
  position: relative; appearance: none; min-height: 44px; aspect-ratio: 1 / 1; max-height: 58px; width: 100%;
  border-radius: 12px; border: 1px solid transparent; background: var(--bg-2);
  color: var(--text); font: inherit; font-size: .98rem; font-weight: 500; font-variant-numeric: tabular-nums;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.mc-day.is-blank { background: none; cursor: default; }
.mc-day.is-weekend:not(.is-on):not(.is-past) { color: var(--gold-light); }
.mc-day:hover:not(:disabled):not(.is-on) { border-color: var(--line-strong); background: var(--surface-3); }
.mc-day:active:not(:disabled) { transform: scale(.94); }
.mc-day.is-past { color: var(--muted); opacity: .35; cursor: not-allowed; background: transparent; }
.mc-day.is-today { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(212,180,131,.25) inset; }
.mc-day.is-on {
  background: var(--gold-grad); color: #1a140c; font-weight: 700; border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(212,180,131,.8);
}
.mc-day.has-slots::after {
  content: ""; position: absolute; bottom: 6px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--ok);
}
.mc-day.is-on.has-slots::after { background: #1a140c; }
.mc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; }
.mc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; }
.mc-today-mark { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--gold); display: inline-block; }
.mc-sel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mc-sel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mc-sel-cap { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.mc-sel-cap b { color: var(--gold-light); }
.mc-sel-tools { display: inline-flex; gap: 6px; }
.mc-link {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--gold);
  border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; min-height: 34px;
}
.mc-link:hover { border-color: var(--line-strong); color: var(--gold-light); }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; align-items: center; }
.mc-chip {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; border-radius: 999px;
  background: rgba(212,180,131,.14); border: 1px solid var(--line-strong); color: var(--gold-light);
  font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.mc-chip button {
  appearance: none; border: 0; background: transparent; color: var(--gold); cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; font-size: 1.05rem; line-height: 1;
}
.mc-chip button:hover { background: rgba(212,180,131,.2); color: var(--gold-light); }
.slot-editor-list .mc-day-block { flex: 1 1 100%; }
.mc-day-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--bg-2); }
.mc-day-block + .mc-day-block { margin-top: 2px; }
.mc-day-block-head { font-weight: 600; color: var(--gold-light); margin-bottom: 8px; font-size: .92rem; }
.mc-day-block .empty-inline { margin: 0; }
.slot-editor-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .mc-card { padding: 12px 10px; max-width: none; }
  .mc-grid { gap: 4px; }
  .mc-day { min-height: 42px; font-size: .95rem; border-radius: 10px; }
  .mc-month { font-size: 1.3rem; }
}

/* --- prepayment fallback (percent mode) --- */
.pp-fallback { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pp-fallback label { display: block; font-size: .84rem; color: var(--text-soft); margin-bottom: 6px; }
.pp-amount-sm input { max-width: 140px; font-size: 1.1rem; }
.pp-fallback .form-small { margin: 6px 0 0; }

/* --- News: admin --- */
.news-form { max-width: 720px; margin-top: 1rem; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.news-form-title { font-family: var(--font-serif); font-size: 1.35rem; margin: 0 0 .6rem; color: var(--gold-light); }
.news-photos-cap { display: block; margin-bottom: 8px; font-size: .9rem; color: var(--text-soft); }
.news-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; min-height: 24px; align-items: center; }
.news-thumb {
  position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.news-thumb.is-new { border-color: var(--gold); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb-x {
  position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(13,12,11,.78); color: #fff; font-size: 1.1rem; line-height: 1;
}
.news-thumb-x:hover { background: var(--error); }
.news-thumb-badge {
  position: absolute; left: 4px; bottom: 4px; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--gold-grad); color: #1a140c; border-radius: 999px; padding: 1px 6px;
}
.news-file-btn { cursor: pointer; }
.news-publish { margin: 4px 0 8px; }
.news-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.news-admin-list { display: grid; gap: 10px; }
.news-admin-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--surface);
}
.news-admin-card.is-draft { border-style: dashed; opacity: .85; }
.news-admin-cover { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; display: block; background: var(--bg-2); }
.news-admin-cover.is-empty { display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--gold); opacity: .45; border: 1px dashed var(--line); }
.news-admin-meta { text-align: left; margin-top: 2px; }
.news-admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.news-admin-head strong { color: var(--text); font-size: 1rem; }
.news-admin-excerpt { margin: 6px 0 0; color: var(--text-soft); font-size: .9rem; white-space: pre-line; }
.news-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.news-del:hover { color: var(--error); border-color: var(--error); }
@media (max-width: 520px) {
  .news-form { padding: 12px; }
  .news-admin-card { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .news-admin-cover { width: 64px; height: 64px; }
  .news-thumb { width: 78px; height: 78px; }
}

/* --- News: public homepage --- */
.news-feed { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.news-feed[data-count="1"] { max-width: 760px; margin: 0 auto; }
.news-feed[data-count="2"] { max-width: 1000px; margin: 0 auto; }
.news-post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-gallery { display: grid; gap: 3px; background: var(--bg-2); }
.news-gallery.n1 { grid-template-columns: 1fr; }
.news-gallery.n2 { grid-template-columns: 1fr 1fr; }
.news-gallery.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.news-gallery.n3 .news-ph:first-child { grid-row: 1 / span 2; }
.news-gallery.n4 { grid-template-columns: 1fr 1fr; }
.news-ph {
  position: relative; display: block; padding: 0; border: 0; margin: 0; cursor: zoom-in; background: var(--surface);
  aspect-ratio: 4 / 3; overflow: hidden;
}
.news-gallery.n1 .news-ph { aspect-ratio: 16 / 10; }
.news-gallery.n3 .news-ph { aspect-ratio: auto; min-height: 110px; }
.news-gallery.n3 .news-ph:first-child { min-height: 220px; }
.news-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.news-ph:hover img { transform: scale(1.04); }
.news-more-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(13,12,11,.6); color: var(--gold-light); font-size: 1.6rem; font-weight: 600;
}
.news-body { padding: 18px 20px 20px; }
.news-date { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.news-h { font-size: 1.55rem; margin: 0 0 .4em; }
.news-text { color: var(--text-soft); font-size: .98rem; line-height: 1.6; }
.news-text p { margin: 0 0 .7em; }
.news-text p:last-child { margin-bottom: 0; }
.news-more { display: block; margin: 20px auto 0; }
.news-lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(8,7,6,.94);
  display: flex; align-items: center; justify-content: center; padding: 56px 12px;
}
.news-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.news-lb-x, .news-lb-nav {
  position: absolute; border: 1px solid var(--line-strong); background: rgba(23,21,18,.8); color: var(--gold-light);
  border-radius: 50%; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.news-lb-x { top: 12px; right: 12px; }
.news-lb-nav { top: 50%; transform: translateY(-50%); }
.news-lb-nav.prev { left: 10px; }
.news-lb-nav.next { right: 10px; }
.news-lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--text-soft); font-size: .85rem; }
body.lb-open { overflow: hidden; }
@media (max-width: 520px) {
  .news-body { padding: 14px 16px 16px; }
  .news-h { font-size: 1.35rem; }
  .news-lb-nav { top: auto; bottom: 8px; transform: none; }
}
/* .form-small is centered with a top margin globally — keep these left-aligned */
.tp-advance-hint, .pp-fallback .form-small, .mc-legend, .mc-chips .form-small, .news-photos-cap .muted, .news-thumbs .form-small { text-align: left; }
.mc-legend.form-small { margin-top: 10px; }
.news-admin-meta.form-small { margin: 2px 0 0; }

/* ===================== v14: news videos ===================== */
/* admin uploader */
.news-vids { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; min-height: 24px; align-items: flex-start; }
.news-vids .form-small { text-align: left; margin: 0; }
.news-vid {
  position: relative; width: 168px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.news-vid.is-new { border-color: var(--gold); }
.news-vid-prev { position: relative; aspect-ratio: 16 / 10; background: #000; }
.news-vid-prev video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.news-vid-prev.no-preview::before { content: "🎬"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; opacity: .55; }
.news-vid-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(13,12,11,.62); color: #fff; font-size: .8rem; padding-left: 2px; pointer-events: none;
  border: 1px solid rgba(255,255,255,.35);
}
.news-vid-dur { position: absolute; right: 6px; bottom: 6px; font-size: .7rem; color: #fff; background: rgba(0,0,0,.6); border-radius: 6px; padding: 1px 5px; }
.news-vid-dur:empty { display: none; }
.news-vid-name { font-size: .76rem; color: var(--text-soft); padding: 6px 8px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.news-vid .news-thumb-badge { bottom: auto; top: 6px; left: 6px; }
.news-upload-progress { margin-top: 10px; max-width: 420px; }
.news-upload-label { font-size: .82rem; color: var(--text-soft); margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-upload-bar { height: 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.news-upload-bar span { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .2s linear; }
.news-admin-cover.is-video { position: relative; overflow: hidden; background: #000; }
.news-admin-cover.is-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 520px) {
  .news-vid { width: calc(50% - 5px); }
  .news-admin-cover.is-video .news-vid-play { width: 26px; height: 26px; font-size: .65rem; }
}

/* public feed */
.news-videos { display: grid; gap: 3px; background: #000; }
.news-gallery + .news-videos { margin-top: 3px; }
.news-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.news-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.news-videos.multi {
  grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.news-videos.multi .news-video { scroll-snap-align: start; }
.news-videos-hint { font-size: .74rem; color: var(--text-soft); padding: 6px 20px 0; letter-spacing: .04em; }
@media (min-width: 900px) { .news-feed[data-count="1"] .news-videos.multi { grid-auto-columns: 70%; } }
@media (max-width: 520px) { .news-videos-hint { padding: 6px 16px 0; } }
/* «+ Добавить фото/видео» are <label class="btn"> inside .field — undo the generic .field label block style */
.field label.news-file-btn {
  display: inline-flex; align-items: center; justify-content: center; width: auto; margin: 0;
  font-size: .78rem; letter-spacing: .06em; color: var(--gold-light);
}

/* ===================== v15: «О специалисте» + редактор пометок ===================== */
/* --- public bio block --- */
.section-bio { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.bio-card {
  display: grid; gap: clamp(20px, 4vw, 48px); align-items: center;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  max-width: 1040px; margin: 0 auto; padding: clamp(20px, 3.5vw, 40px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(212,180,131,.10), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.bio-aside { position: relative; }
.bio-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-2); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-exp {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 1 / 1; border-radius: 50%; max-width: 260px; margin: 0 auto;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 30% 25%, rgba(230,201,146,.18), rgba(13,12,11,.4) 70%);
  box-shadow: inset 0 0 0 10px rgba(212,180,131,.05);
}
.bio-exp-num { font-family: var(--font-serif); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--gold-light); }
.bio-exp-cap { margin-top: 6px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); }
.bio-card.has-photo .bio-exp {
  position: absolute; right: -14px; bottom: -14px; width: 112px; max-width: none; margin: 0;
  background: rgba(13,12,11,.88); backdrop-filter: blur(6px); box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.bio-card.has-photo .bio-exp-num { font-size: 1.7rem; }
.bio-card.has-photo .bio-exp-cap { font-size: .6rem; letter-spacing: .14em; margin-top: 3px; }
.bio-body .eyebrow { margin-bottom: .5rem; }
.bio-name { margin: 0 0 .25em; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; }
.bio-role { margin: 0 0 1rem; color: var(--gold); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.bio-facts { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: 8px; }
.bio-facts li {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(13,12,11,.35); font-size: .88rem;
}
.bio-fact-k { color: var(--text-soft); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.bio-fact-v { color: var(--text); }
.bio-text { color: var(--text-soft); font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.4rem; max-width: 60ch; }
.bio-text p { margin: 0 0 .8em; }
.bio-text p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .bio-card { grid-template-columns: 1fr; text-align: left; }
  .bio-aside { max-width: 320px; width: 100%; margin: 0 auto; }
  .bio-card:not(.has-photo) .bio-aside { max-width: none; }
  .bio-card:not(.has-photo) .bio-exp {
    aspect-ratio: auto; border-radius: var(--radius); flex-direction: row; gap: 12px; padding: 16px 18px;
    max-width: none; justify-content: flex-start; align-items: baseline; box-shadow: none;
  }
  .bio-card:not(.has-photo) .bio-exp-num { font-size: 2.3rem; }
  .bio-card:not(.has-photo) .bio-exp-cap { margin-top: 0; }
  .bio-card.has-photo .bio-exp { right: 8px; bottom: -16px; width: 96px; }
  .bio-body .btn { width: 100%; }
}

/* --- admin: Тексты сайта --- */
.texts-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.texts-jump a {
  font-size: .8rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--gold-light); text-decoration: none; background: var(--bg-2);
}
.texts-jump a:hover { border-color: var(--gold); }
.texts-h {
  font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold-light);
  margin: 1.8rem 0 .8rem; padding-top: .9rem; border-top: 1px solid var(--line); scroll-margin-top: 140px;
}
.texts-form .texts-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.texts-notes-intro.form-small { text-align: left; margin: -2px 0 12px; }
.bio-editor { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.bio-enabled { margin: 0 0 14px; }
.bio-photo-edit { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.bio-photo-prev {
  width: 96px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; flex: 0 0 auto;
  border: 1px dashed var(--line-strong); background: var(--surface); display: flex; align-items: center; justify-content: center;
}
.bio-photo-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-photo-empty { font-size: .72rem; color: var(--text-soft); text-align: center; line-height: 1.3; }
.bio-photo-actions { flex: 1 1 200px; min-width: 0; }
.bio-photo-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.notes-editor { display: grid; gap: 10px; }
.notes-group { border: 1px solid var(--line); border-radius: var(--radius-sm, 12px); background: var(--bg-2); }
.notes-group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; font-weight: 600; color: var(--text);
}
.notes-group > summary::-webkit-details-marker { display: none; }
.notes-group > summary::after { content: "▾"; color: var(--gold); transition: transform .2s; margin-left: 4px; }
.notes-group[open] > summary::after { transform: rotate(180deg); }
.notes-count { margin-left: auto; font-size: .72rem; color: var(--text-soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.notes-group-body { padding: 4px 14px 2px; border-top: 1px solid var(--line); }
.tx-field { margin-top: 12px; }
.tx-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.field .tx-head label { margin: 0; text-transform: none; letter-spacing: .01em; font-size: .86rem; font-weight: 600; color: var(--text-soft); }
.tx-badge { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold-grad); color: #1a140c; border-radius: 999px; padding: 1px 7px; }
.tx-reset { margin-left: auto; border: 0; background: none; color: var(--gold-light); cursor: pointer; font: inherit; font-size: .78rem; padding: 2px 0; }
.tx-reset:hover { text-decoration: underline; }
.tx-field.is-custom input, .tx-field.is-custom textarea { border-color: rgba(212,180,131,.55); }
.texts-actions { position: sticky; bottom: 0; z-index: 3; padding: 12px 0; margin-top: 16px; background: linear-gradient(180deg, transparent, var(--surface) 30%); }
@media (max-width: 520px) {
  .bio-editor { padding: 12px; }
  .notes-group-body { padding: 2px 12px; }
  .texts-actions .btn { flex: 1 1 auto; }
}

/* ===================== v16: edit slots in «Все дни с открытым временем» ===================== */
.cal-list-hint.form-small { text-align: left; margin: -2px 0 0; }
.slot-chip-edit { cursor: pointer; font: inherit; font-size: .92rem; color: var(--text); transition: border-color .2s, background-color .2s, color .2s; }
.slot-chip-edit:hover, .slot-chip-edit:focus-visible { border-color: var(--gold); color: var(--gold-light); outline: none; }
.slot-chip-edit.is-booked { color: var(--error); }
.slot-chip-edit.is-booked:hover { border-color: rgba(229,139,127,.8); color: var(--error); }
.slot-chip-pen { font-size: .8rem; color: var(--gold); opacity: .75; line-height: 1; }
.slot-chip-edit.is-booked .slot-chip-pen { color: inherit; }
.slot-chip-edit.is-editing { border-color: var(--gold); background: rgba(212,180,131,.14); color: var(--gold-light); }
.slot-chip-edit.is-editing .slot-chip-pen { opacity: 1; }
.slot-edit {
  margin-top: 10px; padding: 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--bg-2);
  box-shadow: 0 12px 30px rgba(0,0,0,.3); animation: slotEditIn .18s var(--ease);
}
.slot-edit.is-booked { border-color: rgba(229,139,127,.45); }
@keyframes slotEditIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.slot-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.slot-edit-head strong { font-weight: 600; color: var(--gold-light); }
.slot-edit-x {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--text-soft);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; flex: 0 0 auto;
}
.slot-edit-x:hover { color: var(--text); border-color: var(--gold); }
.slot-edit-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-edit-field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 150px; min-width: 0; }
.slot-edit-field span { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.slot-edit-field input { width: 100%; min-height: 46px; color-scheme: dark; }
.slot-edit-note { margin: 0 0 12px; color: var(--text-soft); font-size: .92rem; line-height: 1.5; }
.slot-edit-err { margin: 8px 0 0; min-height: 0; }
.slot-edit-err:empty { display: none; }
.slot-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.slot-edit-del { margin-left: auto; }
.slot-edit-del:hover { color: var(--error); border-color: var(--error); }
@media (max-width: 520px) {
  .slot-edit { padding: 12px; }
  .slot-edit-actions .btn { flex: 1 1 auto; }
  .slot-edit-del { margin-left: 0; flex-basis: 100% !important; }
}

/* =========================================================================
   v17 — косметология по приглашению: главная, вход, страница ссылки, админка «Доступ»
   ========================================================================= */
/* Главная: без доступа остаётся одна карточка (забор крови) — по центру */
@media (min-width: 840px) {
  .services-grid.is-single { grid-template-columns: minmax(0, 580px); justify-content: center; }
}
#booking .radio-cards:has(> .radio-card[hidden]) { grid-template-columns: 1fr; }
.cosmo-access-note {
  display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 16px; padding: .45rem .9rem;
  border-radius: 999px; border: 1px solid rgba(156,195,163,.38); background: rgba(156,195,163,.08);
  color: var(--ok); font-size: .86rem; font-weight: 500;
}
.site-toast { z-index: 1300; text-align: center; }

/* Вход: подсказка «вы пришли по приглашению» */
.invite-hint {
  display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; padding: 14px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(212,180,131,.12), rgba(212,180,131,.03));
}
.invite-hint-ico {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-grad); color: #1a140c; font-size: .95rem;
}
.invite-hint-ico svg { width: 17px; height: 17px; fill: #1a140c; }
.invite-hint strong { display: block; color: var(--gold-light); font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.invite-hint span { color: var(--text-soft); font-size: .88rem; line-height: 1.5; }

/* Страница /invite/<token> — «Ссылка недействительна» */
.invite-card { text-align: center; }
.invite-ico {
  width: 64px; height: 64px; margin: 4px auto 14px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(229,139,127,.45); background: rgba(229,139,127,.08); color: var(--error);
}
.invite-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.invite-card .eyebrow { margin-bottom: .4rem; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 14px; }
.invite-actions .btn { flex: 1 1 180px; }
.invite-home { margin: 6px 0 0; font-size: .88rem; color: var(--text-soft); }
.invite-home a { color: var(--gold-light); }

/* Админка → Сводка: отметка в таблице клиентов */
.cl-cosmo {
  display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  font-size: .7rem; font-weight: 600; color: var(--ok); border: 1px solid rgba(156,195,163,.38); white-space: nowrap;
}

/* Админка → Доступ */
.access-grid { display: grid; gap: 20px; margin-top: 14px; }
@media (min-width: 1100px) { .access-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }
.access-block { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.access-title { margin: 0 0 12px; font-family: var(--font-serif); font-weight: 500; font-size: 1.35rem; color: var(--gold-light); }
.access-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.access-head .access-title { margin: 0; }
input.acc-search { min-height: 46px; max-width: none; margin-bottom: 12px; padding: .6rem 1rem; border-radius: 999px; }

.inv-form { display: grid; gap: 0 12px; grid-template-columns: 1fr; padding-bottom: 6px; }
.inv-form .field { margin-bottom: 12px; }
.inv-form .field label { text-transform: none; letter-spacing: .01em; font-size: .84rem; }
.inv-form .field label .muted { font-weight: 400; }
.inv-f-btn .btn { width: 100%; }
@media (min-width: 640px) {
  .inv-form { grid-template-columns: 1fr 1fr; }
  .inv-f-label, .inv-f-btn, .inv-f-err { grid-column: 1 / -1; }
  .inv-f-btn .btn { width: auto; }
}
.inv-new {
  margin: 8px 0 14px; padding: 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(156,195,163,.45); background: rgba(156,195,163,.07); animation: toastIn .25s var(--ease);
}
.inv-new-cap { margin: 0 0 10px; color: var(--ok); font-weight: 600; font-size: .92rem; }
.inv-link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input.inv-link {
  flex: 1 1 220px; min-width: 0; min-height: 42px; padding: .5rem .8rem; font-size: .86rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gold-light);
  text-overflow: ellipsis;
}
.inv-link-row .btn { flex: 0 0 auto; }
.inv-list { display: grid; gap: 10px; margin-top: 12px; }
.inv-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,.16); }
.inv-item.st-active { border-color: var(--line-strong); }
.inv-item:not(.st-active) { opacity: .78; }
.inv-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.inv-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.inv-pill { flex: none; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.inv-pill.st-active { background: rgba(156,195,163,.16); color: var(--ok); }
.inv-pill.st-disabled, .inv-pill.st-expired, .inv-pill.st-used_up { background: rgba(229,139,127,.13); color: var(--error); }
.inv-meta { margin: 4px 0 10px; font-size: .82rem; color: var(--text-soft); }
.inv-who { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 0; font-size: .84rem; }
.inv-who-cap { color: var(--muted); width: 100%; font-size: .78rem; }
.inv-who-item { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); }
.inv-who-off { color: var(--error); }
.inv-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.inv-actions .btn { min-height: 38px; }
.inv-del { color: var(--error); border-color: rgba(229,139,127,.35); }
.inv-del:hover { border-color: var(--error); color: var(--error); }

.acc-seg .seg-btn { font-size: .8rem; }
.acc-list { display: grid; gap: 8px; }
.acc-row {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,.14);
}
.acc-row.is-on { border-color: rgba(156,195,163,.35); }
.acc-main { min-width: 0; }
.acc-name { font-weight: 600; overflow-wrap: anywhere; }
.acc-contacts { font-size: .82rem; color: var(--text-soft); overflow-wrap: anywhere; }
.acc-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.acc-tags:empty { display: none; }
.acc-tag { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: .72rem; color: var(--text-soft); }
.acc-tag.ok { color: var(--ok); border-color: rgba(156,195,163,.35); }
.acc-tag.off { color: var(--error); border-color: rgba(229,139,127,.35); }
.acc-switch {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0;
  background: none; border: 0; border-radius: 999px; color: var(--text-soft); font: inherit; cursor: pointer;
}
.acc-switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.acc-switch[disabled] { opacity: .5; cursor: progress; }
.acc-switch-text { font-size: .8rem; }
.acc-switch-track {
  position: relative; width: 46px; height: 26px; border-radius: 999px; flex: none;
  background: rgba(255,255,255,.08); border: 1px solid var(--line-strong); transition: background .2s, border-color .2s;
}
.acc-switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-soft); transition: transform .2s var(--ease), background .2s;
}
.acc-switch[aria-checked="true"] .acc-switch-track { background: rgba(156,195,163,.3); border-color: var(--ok); }
.acc-switch[aria-checked="true"] .acc-switch-thumb { transform: translateX(20px); background: var(--ok); }
.acc-switch-state { min-width: 2.6em; font-size: .78rem; font-weight: 600; text-align: left; }
.acc-switch[aria-checked="true"] .acc-switch-state { color: var(--ok); }
@media (max-width: 640px) {
  .access-block { padding: 12px; }
  .acc-row { flex-wrap: wrap; }
  .acc-main { flex: 1 1 100%; }
  .acc-switch { padding-left: 0; }
  .access-head { flex-direction: column; align-items: stretch; }
  .acc-seg { display: flex; }
  .acc-seg .seg-btn { flex: 1 1 0; padding-left: .4rem; padding-right: .4rem; }
}

/* ===================== v18: капельницы — только по назначению врача ===================== */
.price-list li.is-rx span { display: flex; flex-direction: column; gap: 3px; }
.rx-tag {
  display: inline-block; align-self: flex-start; padding: 1px 8px; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .02em; color: var(--gold-light);
  background: rgba(212,180,131,.1); border: 1px solid rgba(212,180,131,.35);
}
.rx-card-note {
  display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; padding: 10px 12px;
  border-radius: var(--radius-sm); border: 1px dashed rgba(212,180,131,.45); background: rgba(212,180,131,.06);
  font-size: .84rem; line-height: 1.45; color: var(--text-soft);
}
.rx-card-note[hidden] { display: none; }
.rx-card-note .icon { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 1px; }
.rx-card-note b { color: var(--text); font-weight: 600; }

.rx-block {
  margin: 0 0 22px; padding: 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: rgba(212,180,131,.05);
}
.rx-block[hidden] { display: none; }
.rx-note { margin: 0 0 12px; font-size: .88rem; line-height: 1.45; color: var(--text-soft); }
.rx-note b { color: var(--gold-light); }
.rx-block .rx-check { margin: 0 0 14px; color: var(--text) !important; font-size: .92rem !important; }
.rx-block .field { margin-bottom: 12px; }
.rx-block .field:last-child { margin-bottom: 0; }
.rx-block .form-small { text-align: left; margin-top: 8px; }
.rx-label {
  display: block; margin-bottom: 8px; font-size: .74rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-soft);
}
.rx-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.field label.rx-file-btn {
  display: inline-flex; align-items: center; gap: 6px; width: auto; margin: 0; cursor: pointer;
  font-size: .8rem; letter-spacing: .02em; text-transform: none; color: var(--gold-light);
}
.rx-file-btn .icon { width: 16px; height: 16px; }
#rx-file:focus-visible + .rx-file-state, .rx-file-row:focus-within .rx-file-btn { outline: 2px solid var(--gold); outline-offset: 2px; }
.rx-file-state { font-size: .84rem; color: var(--text-soft); display: inline-flex; align-items: center; gap: 8px; min-width: 0; word-break: break-word; }
.rx-file-state.is-ok { color: var(--ok); }
.rx-file-state.is-err { color: var(--error); }
.rx-ok-mark { font-weight: 700; }
.rx-progress { display: inline-block; width: 90px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.rx-progress span { display: block; height: 100%; background: var(--gold-grad); transition: width .2s; }

/* admin */
.rx-pill {
  display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; vertical-align: middle;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  color: #1a140c; background: var(--gold-grad);
}
.bk-rx {
  margin: 10px 0 2px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid rgba(212,180,131,.35); background: rgba(212,180,131,.06);
  font-size: .88rem; line-height: 1.5; color: var(--text-soft);
}
.bk-rx.is-missing { border-color: rgba(229,139,127,.45); background: rgba(229,139,127,.06); }
.bk-rx-line b { color: var(--text); font-weight: 600; }
.bk-rx-k { color: var(--muted); }
.bk-rx-hint { margin-top: 6px; color: var(--gold-light); font-size: .82rem; }
.bk-rx-hint::before { content: "⚠ "; }
.bk-rx-view { margin-top: 8px; }
.chip.rx-chip { color: var(--gold-light); border-color: rgba(212,180,131,.45); vertical-align: middle; }
.svc-rx-field { margin-top: -4px; }
.svc-rx-check span { display: flex; flex-direction: column; gap: 2px; }
.svc-rx-check b { color: var(--text); font-weight: 600; }
.svc-rx-check small { font-size: .78rem; }

/* «Мои записи» */
.rx-ok { display: inline-block; margin-top: 4px; font-size: .78rem; color: var(--ok); }
.rx-view-link { font-size: .78rem; color: var(--gold-light); }
@media (max-width: 640px) {
  .rx-block { padding: 12px; }
  .rx-file-row { flex-direction: column; align-items: stretch; }
  .field label.rx-file-btn { justify-content: center; }
}
.inline-form .field .svc-rx-check input[type="checkbox"] { width: 20px; min-width: 20px; height: 20px; padding: 0; flex: none; }
.svc-rx-check > span { flex: 1 1 auto; min-width: 0; }
.rx-tag { white-space: nowrap; }

/* ===================== v19: капельницы — отдельное направление ===================== */
@media (min-width: 1100px) {
  .services-grid.is-triple { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 840px) and (max-width: 1099px) {
  .services-grid.is-triple > .service-card:last-child { grid-column: 1 / -1; max-width: 580px; justify-self: center; width: 100%; }
}
.service-drip .rx-card-note { margin-top: 12px; }
/* направление: гостям 2 варианта (кровь, капельницы) — в ряд; с косметологией 3 варианта — столбиком */
@media (min-width: 580px) { #booking .radio-cards:has(> .radio-card[hidden]) { grid-template-columns: 1fr 1fr; } }
#booking .radio-cards:not(:has(> .radio-card[hidden])) { grid-template-columns: 1fr; }

/* v20: капельницы — «от вас только препарат» (редактируемая пометка note_svc_drip_bring) */
.rx-card-note .rx-card-bring { display: block; margin-top: 4px; color: var(--text); }

/* ===================== v21: «Без предоплаты» per client ===================== */
.acc-switches { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.acc-row.is-free { border-color: rgba(212,180,131,.35); }
.acc-row.is-on.is-free { border-color: rgba(156,195,163,.35); }
.acc-switch-pay[aria-checked="true"] .acc-switch-track { background: rgba(212,180,131,.25); border-color: var(--gold); }
.acc-switch-pay[aria-checked="true"] .acc-switch-thumb { background: var(--gold); }
.acc-switch-pay[aria-checked="true"] .acc-switch-state { color: var(--gold); }
.acc-switch-hint { margin: 0 8px 2px; font-size: .72rem; color: var(--gold); text-align: right; }
.cl-nopay { color: var(--gold); }
.prepay-note.is-free { color: var(--ok); }
@media (max-width: 640px) {
  .acc-switches { flex: 1 1 100%; align-items: stretch; }
  .acc-switches .acc-switch { justify-content: space-between; padding-right: 0; }
  .acc-switches .acc-switch-text { flex: 1 1 auto; text-align: left; }
  .acc-switch-hint { margin: 0; text-align: left; }
  .acc-seg { flex-wrap: wrap; }
  .acc-seg .seg-btn { flex: 1 1 45%; }
}
.cl-nopay { border-color: rgba(212,180,131,.38); }
