/* ЖЕЛЕЗО, дизайн-система «Помост». Компоненты.
   Подключение: fonts.css → tokens.css → components.css (→ phone.css для экранов).

   Физика системы.
   Пол — шлифованный бетон, светлее всего; свет падает сверху (лампы над помостом).
   Всё, что можно нажать, — плита с толщиной: лицевая грань и тёмный торец снизу (::after).
   При нажатии лицевая грань опускается на торец; анимируются только transform и opacity.
   Жёлтая разметка помоста — только главное действие и выбранный слот (то, что уйдёт в запись).
   Всё остальное выделение — магнезией (светлая заливка). */

/* ───────────── основа ───────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: var(--lh-text);
  color: var(--c-text);
  background-color: var(--c-bg);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
:where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button) { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(img, video, canvas, svg) { display: block; max-width: 100%; }
:where(a) { color: inherit; }
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }
::selection { background: var(--c-accent); color: var(--c-on-accent); }

/* Бетон пола: настоящая фактура (Poly Haven, CC0), тон под --c-bg. Свет сверху и спад к краям. */
.concrete {
  background-color: var(--c-bg);
  background-image:
    radial-gradient(130% 70% at 50% -12%, rgba(255, 246, 226, 0.11), rgba(255, 246, 226, 0) 62%),
    radial-gradient(160% 110% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.28)),
    url("../media/pomost-concrete.jpg");
  background-size: auto, auto, 512px 512px;
}

/* Литьё: зерно чугуна поверх любого цвета поверхности */
.cast {
  background-image: url("../media/pomost-grain.png");
  background-size: 128px 128px;
  background-blend-mode: soft-light;
}

/* ───────────── типографика ───────────── */
.t-display, .h1, .h2, .h3 {
  font-family: var(--f-display);
  font-stretch: var(--f-display-stretch);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
  hyphens: auto;
}
.h1 { font-size: var(--t-3xl); letter-spacing: -0.005em; }
.h2 { font-size: var(--t-2xl); }
.h3 { font-size: var(--t-xl); font-weight: 700; letter-spacing: 0.01em; }
.t-num {
  font-family: var(--f-num);
  font-stretch: var(--f-num-stretch);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.t-lead { font-size: 17px; line-height: 1.5; color: var(--c-text); }
.t-body { font-size: var(--t-md); line-height: var(--lh-text); }
.t-small { font-size: var(--t-sm); line-height: 1.4; color: var(--c-text-dim); }
.t-caption { font-size: var(--t-xs); line-height: 1.35; color: var(--c-text-dim); }
.t-dim { color: var(--c-text-dim); }

/* ───────────── кнопки ─────────────
   Главная — матовая краска разметки на стальной плите: ровный цвет без градиента и блика,
   зерно краски, тонкий тёмный торец. Заглавным Tektur пишется только она.
   Остальные кнопки — Golos Text в обычном регистре. */
.btn {
  --btn-face: #2D2E2A;
  --btn-edge: #10110F;
  --btn-text: var(--c-text);
  --btn-edge-h: 3px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: var(--btn-edge-h);
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--btn-text);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--t-md);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0);
  transition: transform var(--dur-fast) var(--ease-heavy);
}
/* лицевая грань: ровная краска с зерном, кромка фрезы по контуру */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url("../media/pomost-grain.png") 0 0 / 128px 128px, var(--btn-face);
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 0 0 1px rgba(240, 238, 232, 0.07);
}
/* торец плиты и тень на бетоне */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: var(--btn-edge);
  box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
  transform: translateY(var(--btn-edge-h));
  transition: transform var(--dur-fast) var(--ease-heavy);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active:not(:disabled):not(.is-disabled),
.btn.is-pressed {
  transform: translateY(calc(var(--btn-edge-h) - 1px));
}
.btn:active:not(:disabled):not(.is-disabled)::after,
.btn.is-pressed::after {
  transform: translateY(1px);
}
.btn:focus-visible { outline: 2px solid var(--c-text); outline-offset: 4px; }

.btn--primary {
  --btn-face: #DFAB1D;
  --btn-edge: #7A5A0B;
  --btn-text: var(--c-on-accent);
  min-height: 56px;
  font-family: var(--f-display);
  font-stretch: var(--f-display-stretch);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* краска легла на сталь: чуть темнее у кромки, где валик не докатал */
.btn--primary::before {
  background:
    url("../media/pomost-grain.png") 0 0 / 128px 128px,
    radial-gradient(150% 130% at 50% 45%, rgba(0, 0, 0, 0) 64%, rgba(110, 76, 0, 0.14)),
    var(--btn-face);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 0 0 1px rgba(110, 78, 6, 0.3);
}
.btn--ghost {
  --btn-face: transparent;
  --btn-edge: transparent;
  --btn-edge-h: 0px;
}
.btn--ghost::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--c-line-strong);
}
.btn--ghost::after { box-shadow: none; opacity: 0; background: rgba(240, 238, 232, 0.07); transform: none; transition: opacity var(--dur-fast) linear; }
.btn--ghost:active:not(:disabled):not(.is-disabled),
.btn--ghost.is-pressed { transform: translateY(1px); }
.btn--ghost:active:not(:disabled):not(.is-disabled)::after,
.btn--ghost.is-pressed::after { opacity: 1; transform: none; }
/* опасное действие: сдержанно, красный только в надписи и обводке */
.btn--danger {
  --btn-face: transparent;
  --btn-edge: transparent;
  --btn-edge-h: 0px;
  --btn-text: var(--c-danger);
}
.btn--danger::before { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(242, 131, 107, 0.5); }
.btn--danger::after { box-shadow: none; opacity: 0; background: rgba(242, 131, 107, 0.1); transform: none; transition: opacity var(--dur-fast) linear; }
.btn--danger:active:not(:disabled):not(.is-disabled),
.btn--danger.is-pressed { transform: translateY(1px); }
.btn--danger:active:not(:disabled):not(.is-disabled)::after,
.btn--danger.is-pressed::after { opacity: 1; transform: none; }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 40px; padding: 6px 14px; font-size: 14px; --btn-edge-h: 2px; }
.btn--primary.btn--sm { min-height: 42px; font-size: 14px; letter-spacing: 0.05em; }
/* текстовая ссылка-действие третьего уровня */
.link-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-line-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.link-action svg { width: 18px; height: 18px; flex: none; }

.btn:disabled, .btn.is-disabled {
  cursor: not-allowed;
  --btn-edge-h: 0px;
  --btn-face: var(--c-surface-2);
  --btn-text: var(--c-text-dim);
}
.btn:disabled::after, .btn.is-disabled::after { opacity: 0; }
.btn:disabled::before, .btn.is-disabled::before { box-shadow: inset 0 0 0 1px var(--c-line); background: var(--c-surface-2); }
.btn--ghost:disabled::before, .btn--ghost.is-disabled::before { background: transparent; }

/* отдача: магнезия из-под плиты (создаётся motion.heavyPress) */
.press-dust {
  position: absolute;
  bottom: calc(var(--btn-edge-h, 0px) * -1);
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  z-index: -3;
  border-radius: 40% 60% 50% 45%;
  background: rgba(240, 238, 231, 0.85);
  pointer-events: none;
  opacity: 0;
}

/* ───────────── поля ───────────── */
.field { display: grid; gap: 8px; min-width: 0; }
.field__label { font-size: var(--t-sm); font-weight: 600; line-height: 1.25; color: var(--c-text-dim); }
.field__control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  border-radius: var(--r-md);
  background: var(--c-surface-3);
  /* фрезерованный паз: тень сверху внутри, светлая кромка снизу снаружи */
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(240, 238, 232, 0.1), 0 1px 0 rgba(255, 250, 238, 0.07);
}
.field__prefix { padding-left: 16px; font-size: 18px; font-weight: 500; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.field__input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  border: 0;
  background: none;
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
  caret-color: var(--c-accent);
  outline: none;
}
.field__prefix + .field__input { padding-left: 8px; }
.field__input::placeholder { color: #8D8B84; opacity: 1; }
.field__hint { font-size: 13px; line-height: 1.4; color: var(--c-text-dim); }
.field__error { display: none; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--c-danger); }
.field__error svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.field:focus-within .field__control,
.field.is-focus .field__control {
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px var(--c-text), 0 1px 0 rgba(255, 250, 238, 0.07);
}
.field.is-error .field__control {
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px var(--c-danger), 0 1px 0 rgba(255, 250, 238, 0.07);
}
.field.is-error .field__error { display: flex; }
.field.is-error .field__hint { display: none; }
.field.is-disabled .field__control { background: transparent; box-shadow: inset 0 0 0 1px var(--c-line); }
.field.is-disabled .field__input { color: var(--c-text-dim); cursor: not-allowed; }
textarea.field__input { height: auto; min-height: 112px; padding: 14px 16px; line-height: 1.45; resize: vertical; }

/* код из SMS: четыре клетки-гнезда */
.otp { display: grid; grid-template-columns: repeat(4, minmax(0, 68px)); gap: 10px; }
.otp__cell {
  width: 100%;
  height: 76px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--c-surface-3);
  box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(240, 238, 232, 0.1), 0 1px 0 rgba(255, 250, 238, 0.07);
  text-align: center;
  font-family: var(--f-num);
  font-stretch: var(--f-num-stretch);
  font-weight: 700;
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
  caret-color: var(--c-accent);
  outline: none;
}
.otp__cell:focus, .otp__cell.is-focus {
  box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px var(--c-text), 0 1px 0 rgba(255, 250, 238, 0.07);
}
.otp.is-error .otp__cell { box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px var(--c-danger); color: var(--c-danger); }
.otp.is-ok .otp__cell { box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px var(--c-ok); }
.otp:disabled, .otp.is-disabled { opacity: 0.5; }
.otp-note { margin-top: 10px; font-size: 13px; color: var(--c-text-dim); }
.otp-note.is-error { color: var(--c-danger); font-weight: 500; }

/* ───────────── карточки ───────────── */
.card {
  position: relative;
  min-width: 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background-color: var(--c-surface-1);
  background-image: url("../media/pomost-grain.png"), linear-gradient(180deg, rgba(255, 250, 238, 0.035), rgba(0, 0, 0, 0.12));
  background-size: 128px 128px, auto;
  background-blend-mode: soft-light, normal;
  /* плита лежит на бетоне: светлая фаска сверху, плотная контактная тень и мягкая полутень */
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 238, 0.08),
    0 1px 0 rgba(0, 0, 0, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 18px 30px -18px rgba(0, 0, 0, 0.75);
}
.card--flat { box-shadow: inset 0 0 0 1px var(--c-line); background-image: none; background-color: transparent; }

.card-trainer { padding: 0; overflow: hidden; container-type: inline-size; }
.card-trainer__photo { position: relative; aspect-ratio: 5 / 4; background: var(--c-surface-3); }
.card-trainer__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(0.15) contrast(1.06) brightness(0.96); }
.card-trainer__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(37, 38, 35, 0) 52%, rgba(37, 38, 35, 0.72) 82%, var(--c-surface-1));
}
.card-trainer__body { position: relative; z-index: 1; display: grid; gap: 14px; margin-top: -40px; padding: 0 var(--s-5) var(--s-5); }
.card-trainer__name {
  font-family: var(--f-display);
  font-stretch: 84%;
  font-weight: 800;
  font-size: clamp(22px, 7.6cqi, 32px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}
.card-trainer__regalia { display: grid; gap: 4px; font-size: 15px; line-height: 1.4; color: var(--c-text-dim); }
.card-trainer__regalia li:first-child { color: var(--c-text); font-weight: 500; }
.card-trainer__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-trainer__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 16px; padding-top: 4px; }
.card-trainer__price { display: grid; gap: 4px; }
.card-trainer__price b {
  font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700;
  font-size: 34px; line-height: 0.9; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.card-trainer__price span { font-size: 13px; color: var(--c-text-dim); }
.card-trainer__foot .btn { flex: 1 1 150px; }

/* ───────────── чип ───────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  max-width: 100%;
  padding: 5px 11px;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  box-shadow: inset 0 0 0 1px var(--c-line), inset 0 1px 0 rgba(255, 250, 238, 0.06);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-text);
  text-align: left;
  overflow-wrap: anywhere;
}
button.chip { cursor: pointer; transition: transform var(--dur-fast) var(--ease-heavy); }
button.chip:active:not(:disabled), .chip.is-pressed { transform: translateY(1px) scale(0.98); }
.chip.is-selected, .chip[aria-pressed="true"] {
  background: var(--c-text);
  color: var(--c-surface-1);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.chip:disabled, .chip.is-disabled { background: transparent; color: var(--c-text-dim); box-shadow: inset 0 0 0 1px var(--c-line); cursor: not-allowed; }
.chip svg { width: 14px; height: 14px; flex: none; }

/* ───────────── выбор дня и времени ─────────────
   Полоса дней: месяц подписан над полосой и на стыке месяцев; «сегодня» подписано над днём.
   Метка под числом значит «есть окна»; день без окон заштрихован, как занятый слот. */
.cal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cal-head__month { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.cal-legend { display: flex; gap: 14px; align-items: center; font-size: 12px; line-height: 1.2; color: var(--c-text-dim); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .day__mark { display: inline-block; background: var(--c-steel); }
.cal-legend__off { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.28) 0 1px, rgba(0, 0, 0, 0) 1px 4px); box-shadow: inset 0 0 0 1px rgba(240, 238, 232, 0.16); }
.day-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--s-4);
  padding: 24px var(--s-4) 10px;
  margin-top: 4px;
  scrollbar-width: none;
}
.day-strip::-webkit-scrollbar, .slot-rack::-webkit-scrollbar, .h-scroll::-webkit-scrollbar { display: none; }
.day {
  position: relative;
  flex: none;
  scroll-snap-align: start;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  width: 50px;
  height: 72px;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-text);
  transition: transform var(--dur-fast) var(--ease-heavy);
}
.day__wd { font-size: 12px; font-weight: 500; line-height: 1; color: var(--c-text-dim); }
.day__num { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.day__mark { width: 14px; height: 3px; border-radius: 1px; background: transparent; }
.day.has-slots .day__mark { background: var(--c-steel); }
.day.is-today::before {
  content: "сегодня";
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--c-text);
  white-space: nowrap;
}
.day.is-today { box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.day.is-today .day__wd { color: var(--c-text); font-weight: 700; }
.day:active, .day.is-pressed { transform: translateY(1px) scale(0.97); }
.day.is-selected {
  background: var(--c-text);
  box-shadow: 0 3px 0 #9C998F, 0 8px 14px -8px rgba(0, 0, 0, 0.7);
  color: var(--c-surface-1);
  transform: translateY(-2px);
}
.day.is-selected .day__wd { color: #4C4B45; }
.day.is-selected .day__mark { background: var(--c-surface-1); }
.day.is-off {
  background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.07) 0 1px, rgba(0, 0, 0, 0) 1px 7px);
  box-shadow: inset 0 0 0 1px rgba(240, 238, 232, 0.08);
  color: #8D8B84;
  cursor: default;
}
.day.is-off .day__num { font-weight: 500; }
.day.is-off .day__wd { color: #8D8B84; }
.day-strip__month {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 0 2px;
  padding: 0 6px;
  border-left: 1px solid var(--c-line-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--c-text);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* стойка: утопленный лоток, в котором стоят слоты-плиты.
   Обычная — горизонтальная лента; .slot-rack--grid — сетка на 4 колонки для группы «утро / день / вечер». */
.slot-rack {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 14px;
  padding: 14px 14px 18px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) calc(100% - 9px), rgba(163, 168, 166, 0.22) calc(100% - 9px), rgba(163, 168, 166, 0.22) calc(100% - 8px), rgba(0, 0, 0, 0) calc(100% - 8px)),
    var(--c-surface-3);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(240, 238, 232, 0.08), 0 1px 0 rgba(255, 250, 238, 0.07);
  scrollbar-width: none;
}
.slot-rack--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  overflow: visible;
  padding: 10px 10px 14px;
  border-radius: var(--r-md);
  background: var(--c-surface-3);
}
.slot-rack__group {
  flex: none;
  scroll-snap-align: start;
  align-self: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-dim);
  padding: 0 2px;
}
.slot-group { display: grid; gap: 10px; }
.slot-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.slot-group__name { font-weight: 600; font-size: 16px; letter-spacing: 0.01em; }
.slot-group__name small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.slot-group__count { font-size: 13px; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.slot {
  flex: none;
  scroll-snap-align: start;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  width: 78px;
  height: 84px;
  border-radius: var(--r-md);
  background: url("../media/pomost-grain.png") 0 0 / 128px 128px, linear-gradient(180deg, #3A3B37, #2F302C);
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.1), 0 3px 0 #121311, 0 6px 10px -4px rgba(0, 0, 0, 0.6);
  color: var(--c-text);
  transition: transform var(--dur-fast) var(--ease-heavy);
}
.slot-rack--grid .slot { width: auto; height: 62px; gap: 5px; }
.slot-rack--grid .slot__time { font-size: 22px; }
.slot__time { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.slot__price { font-size: 12px; font-weight: 500; line-height: 1; color: var(--c-text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.slot:active:not(.is-busy), .slot.is-pressed { transform: translateY(2px); }
.slot.is-busy {
  cursor: not-allowed;
  background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.06) 0 1px, rgba(0, 0, 0, 0) 1px 7px), transparent;
  box-shadow: inset 0 0 0 1px rgba(240, 238, 232, 0.12);
  color: var(--c-text-dim);
}
.slot.is-busy .slot__time { font-weight: 500; color: #8D8B84; }
.slot.is-busy .slot__price { color: #8D8B84; }
/* окно по сниженной цене: срезанный угол цвета «зелёного блина» и цена тем же цветом */
.slot.is-deal::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 13px;
  height: 13px;
  border-top-right-radius: var(--r-md);
  background: linear-gradient(225deg, var(--c-ok) 50%, rgba(0, 0, 0, 0) 50%);
}
.slot.is-deal .slot__price { color: var(--c-ok); font-weight: 600; }
.slot.is-busy.is-deal::before { display: none; }
.slot.is-busy.is-deal .slot__price { color: #8D8B84; font-weight: 500; }
.deal-note { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.35; color: var(--c-text-dim); }
.deal-note::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 0 3px 0 0; background: linear-gradient(225deg, var(--c-ok) 50%, rgba(240, 238, 232, 0.12) 50%); }
.deal-note b { color: var(--c-ok); font-weight: 600; }
.slot.is-selected {
  background: url("../media/pomost-grain.png") 0 0 / 128px 128px, #DFAB1D;
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 0 0 1px rgba(92, 66, 6, 0.35), 0 3px 0 #7A5A0B, 0 10px 16px -6px rgba(0, 0, 0, 0.7);
  color: var(--c-on-accent);
  transform: translateY(-3px);
}
.slot.is-selected .slot__price { color: #4A3B0C; }
.slot.is-selected.is-deal::before { background: linear-gradient(225deg, #2F5A3C 50%, rgba(0, 0, 0, 0) 50%); }
.slot.is-selected.is-pressed, .slot.is-selected:active { transform: translateY(0); }

/* горизонтальная прокрутка внутри экрана (чипы услуг): края уходят под поля экрана */
.h-scroll { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(var(--s-5) * -1); padding: 2px var(--s-5) 4px; scroll-padding-inline: var(--s-5); }
.h-scroll > * { flex: none; }
/* чип услуги: название и длительность с ценой */
.chip--svc { display: grid; gap: 3px; min-height: 52px; padding: 8px 14px; border-radius: var(--r-md); }
.chip--svc b { font-weight: 600; font-size: 15px; }
.chip--svc span { white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.chip--svc.is-selected span, .chip--svc[aria-pressed="true"] span { color: #4C4B45; }

/* ───────────── шторка ───────────── */
.sheet-scrim { position: absolute; inset: 0; z-index: 40; background: var(--c-scrim); }
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-height: 92%;
  padding: 10px var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background-color: var(--c-surface-1);
  background-image: url("../media/pomost-grain.png"), linear-gradient(180deg, rgba(255, 250, 238, 0.05), rgba(255, 250, 238, 0) 120px);
  background-size: 128px 128px, auto;
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.12), 0 -18px 40px -12px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}
.sheet__grip { flex: none; width: 40px; height: 5px; margin: 0 auto 2px; border-radius: 3px; background: var(--c-line-strong); }
.sheet__title { font-family: var(--f-display); font-stretch: var(--f-display-stretch); font-weight: 800; font-size: var(--t-xl); line-height: 1; text-transform: uppercase; }
.sheet__rows { display: grid; gap: 0; }
.sheet__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; line-height: 1.35; }
.sheet__row:last-child { border-bottom: 0; }
.sheet__row > span:first-child { flex: none; color: var(--c-text-dim); }
.sheet__row > span:last-child { min-width: 0; text-align: right; font-weight: 500; }
.sheet__row small { display: block; font-size: 13px; font-weight: 400; color: var(--c-text-dim); }
.sheet__actions { display: grid; gap: 10px; }
/* кто ведёт: мини-фото и имя */
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who__ava { flex: none; width: 48px; height: 48px; border-radius: var(--r-md); object-fit: cover; object-position: 50% 20%; background: var(--c-surface-3); box-shadow: inset 0 0 0 1px var(--c-line); filter: grayscale(0.2); }
.who__text { display: grid; gap: 2px; min-width: 0; }
.who__text b { font-weight: 600; font-size: 16px; line-height: 1.2; }
.who__text span { font-size: 13px; line-height: 1.3; color: var(--c-text-dim); }
/* дата и время записи крупно, как на табло */
.when { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--c-surface-3); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(240, 238, 232, 0.08); }
.when__day { flex: 1 1 150px; min-width: 0; display: grid; gap: 4px; font-size: 15px; font-weight: 600; line-height: 1.2; }
.when__day small { font-size: 13px; font-weight: 500; color: var(--c-text-dim); }
.when__time { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 40px; line-height: 0.85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.when__time small { font-size: 20px; font-weight: 600; color: var(--c-text-dim); }
/* правило отмены: заметка с часами */
.rule-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 14px; line-height: 1.4; color: var(--c-text-dim); }
.rule-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--c-text); }
.rule-note b { color: var(--c-text); font-weight: 600; }

/* ───────────── уведомление ───────────── */
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  padding: 14px 14px 14px 16px;
  border-radius: var(--r-md);
  background: var(--c-surface-3);
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 16px 30px -12px rgba(0, 0, 0, 0.8);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.4;
}
.toast__icon { flex: none; width: 22px; height: 22px; margin-top: 0; color: var(--c-text); }
.toast--ok .toast__icon { color: var(--c-ok); }
.toast--danger .toast__icon { color: var(--c-danger); }
.toast__text { flex: 1; min-width: 0; }
.toast__text b { display: block; font-weight: 600; }
.toast__text span { color: var(--c-text-dim); font-size: 14px; }
.toast__action {
  flex: none;
  align-self: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
}

/* ───────────── статус записи ─────────────
   Цвет дублируется формой метки: статус различим без цвета. */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px 0 8px;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  box-shadow: inset 0 0 0 1px var(--c-line);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--c-text);
}
.badge-status::before { content: ""; flex: none; width: 9px; height: 9px; }
.badge-status--booked::before { border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c-text); }
.badge-status--attended { color: var(--c-ok); background: var(--c-ok-deep); box-shadow: none; }
.badge-status--attended::before { width: 10px; height: 6px; margin-top: -3px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.badge-status--no_show { color: var(--c-danger); background: var(--c-danger-deep); box-shadow: none; }
.badge-status--no_show::before {
  background: linear-gradient(45deg, transparent 42%, currentColor 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, currentColor 42% 58%, transparent 58%);
}
.badge-status--late_cancel { color: var(--c-danger); background: var(--c-surface-2); box-shadow: inset 0 0 0 1px rgba(242, 131, 107, 0.45); }
.badge-status--late_cancel::before { border-radius: 50%; background: conic-gradient(currentColor 0 50%, transparent 0); box-shadow: inset 0 0 0 1.5px currentColor; }
.badge-status--cancelled { color: var(--c-text-dim); background: transparent; }
.badge-status--cancelled::before { height: 2px; background: currentColor; }

/* ───────────── остаток абонемента ───────────── */
.counter { display: grid; gap: 10px; min-width: 0; }
.counter__value { display: flex; align-items: baseline; gap: 8px; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-variant-numeric: tabular-nums; line-height: 0.85; }
.counter__value b { font-size: 56px; font-weight: 800; }
.counter__value span { font-size: 26px; font-weight: 600; color: var(--c-text-dim); }
.counter__ticks { display: flex; gap: 5px; align-items: center; }
.counter__ticks i {
  flex: 1 1 0;
  max-width: 18px;
  height: 30px;
  border-radius: 2px;
  background: linear-gradient(180deg, #F4F2EC, #D9D6CD);
  box-shadow: 0 2px 0 #8F8C83;
}
.counter__ticks i.is-used { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(240, 238, 232, 0.24); }
.counter__note { font-size: 14px; line-height: 1.4; color: var(--c-text-dim); }
.counter.is-low .counter__value b { color: var(--c-danger); }
.counter.is-low .counter__ticks i:not(.is-used) { background: var(--c-danger); box-shadow: 0 2px 0 #9B4A39; }

/* ───────────── нижнее меню ─────────────
   Значки — свой набор «Помоста» (gallery.html, символы i-tab-*): линия 1,75, срезанные углы 45°,
   головы восьмигранные, как гайка. У активной вкладки значок заливается: части .ti-f
   берут прозрачность из переменной --ti-f (она проходит внутрь <use>); над вкладкой — плашка. */
.tabbar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(26, 27, 25, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.08), 0 -10px 24px -10px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
}
.tabbar__item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 54px;
  padding: 9px 2px 4px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  color: #A9A69D;
  transition: transform var(--dur-fast) var(--ease-heavy);
}
.tabbar__item svg { width: 26px; height: 26px; overflow: visible; }
.tabbar__item svg { --ti-f: 0; }
.tabbar__item:active, .tabbar__item.is-pressed { transform: scale(0.94); }
.tabbar__item.is-active, .tabbar__item[aria-current="page"] { color: var(--c-text); font-weight: 600; }
.tabbar__item.is-active svg, .tabbar__item[aria-current="page"] svg { --ti-f: 1; }
.tabbar__item.is-active::before, .tabbar__item[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 30px;
  height: 4px;
  margin-left: -15px;
  background: var(--c-text);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 4px 100%);
}
.tabbar__dot { position: absolute; top: 4px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 4px; background: var(--c-danger); color: #2A0D09; font-size: 11px; font-weight: 700; line-height: 17px; font-variant-numeric: tabular-nums; clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px); }

/* ───────────── пустое состояние ───────────── */
.empty { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.empty__media { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-3); }
.empty__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) brightness(0.9) contrast(1.05); }
.empty__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(240, 238, 232, 0.08); border-radius: inherit; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35)); }
.empty__title { font-family: var(--f-display); font-stretch: var(--f-display-stretch); font-weight: 800; font-size: var(--t-xl); line-height: 1; text-transform: uppercase; margin-top: 6px; }
.empty__text { max-width: 34ch; font-size: 15px; line-height: 1.5; color: var(--c-text-dim); }
.empty__actions { display: grid; gap: 8px; width: 100%; margin-top: 6px; }

/* ───────────── QR-жетон ───────────── */
.qr-tag {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 300 / 400;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 2px 3px rgba(0, 0, 0, 0.4), 0 26px 40px -18px rgba(0, 0, 0, 0.8);
  transform-style: preserve-3d;
  will-change: transform;
  color: #1E1F1C;
}
.qr-tag > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.qr-tag__hole { position: absolute; top: 18px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--c-bg); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.5); }
.qr-tag__code { position: absolute; left: 13%; right: 13%; top: 20%; aspect-ratio: 1; padding: 6%; border-radius: 10px; background: #ECEAE3; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35); }
.qr-tag__code svg { width: 100%; height: 100%; }
.qr-tag__name { position: absolute; left: 10%; right: 10%; bottom: 11%; text-align: center; font-family: var(--f-display); font-stretch: 84%; font-weight: 800; font-size: 20px; line-height: 1; text-transform: uppercase; color: #2A2B27; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 -1px 0 rgba(0, 0, 0, 0.25); overflow-wrap: anywhere; }
.qr-tag__link { position: absolute; left: 10%; right: 10%; bottom: 5.5%; text-align: center; font-size: 12px; font-weight: 600; color: #3B3C38; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); overflow-wrap: anywhere; }
.tilt-glare {
  position: absolute;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.34) 47%, rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: soft-light;
  transform: translate(0, 0);
}

/* ───────────── сцена «вес взят» ─────────────
   Тяжёлая табличка из шлифованной стали на четырёх винтах. Сверху гравировка,
   в середине утопленное табло с датой и временем, внизу гравированное имя тренера.
   weightLifted() кладёт её поверх экрана (.wl) или в указанное место экрана успеха (mount). */
.wl { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; pointer-events: none; }
.wl__scrim { position: absolute; inset: 0; background: rgba(14, 15, 13, 0.74); }
.wl__fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.wl__plate {
  position: relative;
  width: min(100%, 340px);
  container-type: inline-size;
  padding: 22px 22px 20px;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  color: #23241F;
  /* толстая плита: светлая фаска, тёмный торец снизу и тяжёлая тень */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 -2px 0 rgba(0, 0, 0, 0.28),
    0 2px 0 #6D706B,
    0 5px 0 #3F413D,
    0 6px 2px rgba(0, 0, 0, 0.5),
    0 34px 46px -18px rgba(0, 0, 0, 0.92);
}
.wl__plate > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* гравировка: тёмная канавка, светлая нижняя кромка */
.wl__eng { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 -1px 0 rgba(0, 0, 0, 0.32); color: rgba(30, 31, 27, 0.88); }
.wl__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.wl__board {
  position: relative;
  display: grid;
  gap: 6px;
  margin: 12px 0 14px;
  padding: 12px 14px 14px;
  border-radius: 6px;
  background: url("../media/pomost-grain.png") 0 0 / 96px 96px, #121310;
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.55), 0 -1px 0 rgba(0, 0, 0, 0.25);
  color: #F3ECD8;
}
.wl__date { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: clamp(18px, 7.4cqi, 24px); line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: #CFC8B5; }
.wl__time { display: block; white-space: nowrap; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 800; font-size: clamp(64px, 31cqi, 100px); line-height: 0.82; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255, 226, 160, 0.22); }
.wl__date--foot { font-size: clamp(14px, 5.6cqi, 18px); color: #9F9886; }
.wl__who { padding: 0 14px; font-family: var(--f-display); font-stretch: 84%; font-weight: 800; font-size: clamp(17px, 7.2cqi, 24px); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.wl__what { margin-top: 4px; padding: 0 14px; font-size: 13px; font-weight: 600; line-height: 1.35; color: rgba(40, 41, 36, 0.86); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }
/* винты с прямым шлицем: потай в стали, у каждого свой поворот */
.wl__screw { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #F2F2EE, #A6A9A4 45%, #5A5D58 100%); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.28), 0 0 0 2.5px rgba(255, 255, 255, 0.35), inset 0 -1px 1px rgba(0, 0, 0, 0.4); }
.wl__screw::after { content: ""; position: absolute; left: 1.5px; right: 1.5px; top: 50%; height: 2px; margin-top: -1px; background: #3A3C38; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55); transform: rotate(var(--a, 20deg)); }
.wl__glint { position: absolute; inset: 0; z-index: 2; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 65%); mix-blend-mode: soft-light; opacity: 0; pointer-events: none; }
/* магнезия от удара: крупинки и хлопья (жёсткие), и немного пудры */
.wl__dust { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.wl__dust i { position: absolute; left: 0; top: 0; border-radius: 40% 55% 45% 60%; background: #EEEBE3; opacity: 0; }
.wl__dust i.is-puff { border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 238, 231, 0.32), rgba(240, 238, 231, 0)); }
/* мел, осевший у кромки таблички после удара */
.wl__settle { position: absolute; left: -6%; right: -6%; bottom: -14px; height: 26px; z-index: -1; pointer-events: none; }
.wl__settle canvas { width: 100%; height: 100%; }

/* ───────────── экран успеха ───────────── */
.done { position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; overflow: hidden; }
.done__body { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: calc(var(--safe-top, 54px) + 6px) var(--s-5) calc(var(--s-6) + var(--safe-bottom, 20px)); scrollbar-width: none; }
.done__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--c-ok); }
.done__kicker svg { width: 18px; height: 18px; }
.done__title { margin-top: 10px; }
.done__text { margin-top: 10px; max-width: 32ch; font-size: 15px; line-height: 1.5; color: var(--c-text-dim); }
.done__mount { display: grid; justify-items: center; margin: 26px 0 30px; min-height: 250px; }
.done__steps { display: grid; gap: 10px; margin-top: auto; }
.done__steps .link-action { justify-self: center; }

/* ───────────── видео-заставка ───────────── */
.splash { position: absolute; inset: 0; z-index: 80; overflow: hidden; background: #0E0F0D; }
.splash video, .splash img { width: 100%; height: 100%; object-fit: cover; }

/* ───────────── профиль тренера ─────────────
   Длинная страница: большое фото, имя, цифры, ближайшее окно, услуги,
   регалии с годами, зал, правила. Кнопка записи закреплена внизу (.book-bar). */
.pro-hero { position: relative; height: 492px; margin: 0 calc(var(--s-5) * -1); overflow: hidden; isolation: isolate; background: #0E0F0D; }
.pro-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 14%; z-index: -2; }
.pro-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 15, 13, 0.55) 0, rgba(14, 15, 13, 0) 120px),
    linear-gradient(180deg, rgba(61, 62, 58, 0) 48%, rgba(61, 62, 58, 0.78) 80%, var(--c-bg) 100%);
}
.pro-hero__text { position: absolute; left: var(--s-5); right: var(--s-5); bottom: 4px; display: grid; gap: 10px; }
.pro-hero__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--c-text-dim); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.pro-hero__name { font-family: var(--f-display); font-stretch: 84%; font-weight: 800; font-size: 50px; line-height: 0.88; text-transform: uppercase; letter-spacing: -0.005em; overflow-wrap: anywhere; text-wrap: balance; }
.pro-hero__lead { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--c-text); max-width: 32ch; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 14px 10px 14px 0; min-width: 0; }
.facts > div + div { padding-left: 14px; border-left: 1px solid var(--c-line); }
.facts b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 30px; line-height: 0.9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts b small { font-size: 16px; font-weight: 600; margin-left: 2px; color: var(--c-text-dim); }
.facts span { font-size: 12px; line-height: 1.3; color: var(--c-text-dim); }

.sect { display: grid; gap: 14px; }
.sect__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 19px; font-weight: 650; line-height: 1.2; letter-spacing: 0.005em; }
.sect__title a, .sect__title small { font-size: 14px; font-weight: 500; color: var(--c-text-dim); text-decoration: none; }
.stack-8 > * + * { margin-top: var(--s-8); }

/* ближайшее окно */
.next-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 16px 16px 16px 18px; }
.next-slot__label { font-size: 13px; font-weight: 600; color: var(--c-ok); display: inline-flex; align-items: center; gap: 7px; }
.next-slot__label::before { content: ""; width: 7px; height: 7px; background: var(--c-ok); clip-path: polygon(2px 0, 100% 0, 100% calc(100% - 2px), calc(100% - 2px) 100%, 0 100%, 0 2px); }
.next-slot__time { grid-column: 1; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 30px; line-height: 0.95; font-variant-numeric: tabular-nums; }
.next-slot__meta { grid-column: 1; font-size: 13px; color: var(--c-text-dim); }
.next-slot .btn { grid-column: 2; grid-row: 1 / span 3; }

/* услуги: строка — название и длительность слева, цена справа */
.svc { display: grid; }
.svc__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--c-line); text-decoration: none; color: inherit; }
.svc__row:last-child { border-bottom: 1px solid var(--c-line); }
.svc__name { font-weight: 600; font-size: 16px; line-height: 1.25; }
.svc__meta { grid-column: 1; font-size: 13px; line-height: 1.35; color: var(--c-text-dim); }
.svc__meta b { color: var(--c-ok); font-weight: 600; }
.svc__price { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 10px; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc__price svg { width: 16px; height: 16px; color: var(--c-text-dim); }
.svc__row:active { background: rgba(240, 238, 232, 0.04); }

/* регалии и достижения: год слева, как бирка, текст справа */
.achv { display: grid; }
.achv li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 14px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.achv li:last-child { padding-bottom: 0; }
.achv__year { grid-row: span 2; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 20px; line-height: 1.05; color: var(--c-steel); font-variant-numeric: tabular-nums; }
.achv b { font-weight: 600; font-size: 15px; line-height: 1.35; }
.achv span { font-size: 13px; line-height: 1.35; color: var(--c-text-dim); }

/* зал */
.place { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px; align-items: start; }
.place__photo { width: 92px; height: 92px; border-radius: var(--r-md); object-fit: cover; filter: grayscale(0.6) brightness(0.9); box-shadow: inset 0 0 0 1px var(--c-line); }
.place__body { display: grid; gap: 3px; min-width: 0; padding-top: 2px; }
.place__body b { font-weight: 600; font-size: 16px; line-height: 1.25; }
.place__body span { font-size: 13px; line-height: 1.4; color: var(--c-text-dim); }
.place__body .link-action { min-height: 32px; margin-top: 2px; font-size: 14px; justify-self: start; }

.facts-list { display: grid; gap: 10px; }
.facts-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.45; color: var(--c-text-dim); }
.facts-list svg { width: 20px; height: 20px; color: var(--c-text); margin-top: 1px; }
.facts-list b { color: var(--c-text); font-weight: 600; }

/* закреплённая панель записи: что выбрано и сколько стоит, справа главная кнопка */
.book-bar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(26, 27, 25, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.09), 0 -14px 26px -12px rgba(0, 0, 0, 0.65);
}
.book-bar__info { display: grid; gap: 5px; min-width: 0; }
.book-bar__when { font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--c-text-dim); text-wrap: balance; }
.book-bar__price { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 28px; line-height: 0.9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.book-bar__price small { font-family: var(--f-body); font-size: 13px; font-weight: 500; color: var(--c-text-dim); margin-right: 4px; }
.book-bar .btn { margin-bottom: 3px; padding-inline: 22px; }

/* ───────────── уменьшенное движение ───────────── */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after, .chip, .day, .slot, .tabbar__item, .btn--ghost::after, .btn--danger::after { transition: none; }
}

/* «Запись не позднее чем за N»: окна раньше порога закрыты для клиента */
.slot.is-closed{background-image:repeating-linear-gradient(-45deg,transparent 0 6px,rgba(0,0,0,.18) 6px 7px)}
.lead-note{display:flex;gap:8px;align-items:center;margin:6px 0 0;font:500 13px/1.35 var(--f-body);color:var(--c-text-dim)}
.lead-note svg{flex:none}
