/* GREY'S — страница записи /booking.
   Слой поверх mobile.css (те же токены): --bg/--bg-card/--acid/--ink/--muted,
   --font-marker (TagType) / --font-body (Manrope), --noise. Форма-контролов в
   mobile.css нет — .fld/.cal/.tchip авторские, но выведены из .cta/.fbtn/.pill.
   Референс — мобильный, десктоп та же колонка 440px по центру (как mobile.html). */

/* тёмная схема нативных контролов: без неё список <select> и меню белые */
:root { color-scheme: dark; }

/* плоский фон (герой-свечение mobile.css не нужно — фото маскируется само) */
body { background-image: none; }

/* экраны переключаются [hidden]; общий вертикальный ритм */
.bscreen { padding: 4px 24px 0 24px; }
.bscreen[hidden] { display: none; }
.bscreen--center {
  min-height: 62vh;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: 40px; gap: 14px;
}

/* ---------- шапка «ЗАПИСЬ» ---------- */

.bhead { padding: 18px 0 0; }
.bhead__title {
  display: flex; align-items: center; gap: 16px;
}
.bhead__wordmark { height: clamp(44px, 15vw, 58px); width: auto; flex: none; }
.bhead__smile { width: clamp(46px, 15vw, 60px); height: auto; flex: none; }

/* ---------- баннер (незакрытая бронь / пауза) ---------- */

.bbanner {
  margin-top: 16px; padding: 12px 16px;
  border: 1.5px solid var(--acid); border-radius: 14px;
  background: rgba(198, 242, 30, 0.08);
  font-size: 13.5px; line-height: 1.4; color: var(--ink);
}
.bbanner a { color: var(--acid); font-weight: 600; }

/* ---------- шаги ---------- */

.bform { margin-top: 6px; }
.bstep { margin-top: 26px; }
.bstep__t {
  display: flex; align-items: center; gap: 9px;
  font: 400 19px var(--font-marker);
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink);
}
.bstep__n {
  flex: none; color: var(--acid);
  font-family: var(--font-marker); font-size: 21px;
}
.bstep__spark { width: 20px; height: 20px; transform: rotate(-8deg); margin-left: auto; }

/* ---------- поля ---------- */

.fld {
  position: relative; display: block;
  margin-top: 12px;
}
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.frow .fld { margin-top: 12px; }

.fld__input {
  width: 100%; height: 52px;
  padding: 0 16px;
  background-color: var(--bg-card);
  background-image: var(--noise);
  border: 1px solid rgba(245, 245, 242, 0.24);
  border-radius: 12px;
  color: var(--ink);
  font: 500 15px var(--font-body);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.fld__input {
  height: auto; min-height: 76px;
  padding: 14px 16px; line-height: 1.4; resize: vertical;
}
.fld__input::placeholder { color: transparent; }
.fld__input:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(198, 242, 30, 0.16);
}
.fld--invalid .fld__input { border-color: #ff5c5c; }

/* select: убрать нативную стрелку, своя кислотная */
.fld--select .fld__input { appearance: none; -webkit-appearance: none; padding-right: 42px; }
.fld__chev {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--acid); pointer-events: none;
}
.fld--select .fld__input:disabled { opacity: 0.5; }

/* плавающая подпись */
.fld--float .fld__label {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font: 500 15px var(--font-body);
  pointer-events: none; transition: all 0.15s ease;
  background: var(--bg-card); padding: 0 4px;
}
.fld--area .fld__label { top: 18px; transform: none; }
.fld--float .fld__input:focus + .fld__label,
.fld--float .fld__input:not(:placeholder-shown) + .fld__label {
  top: 0; transform: translateY(-50%);
  font-size: 11.5px; letter-spacing: 0.03em; color: var(--acid);
}
.fld--float .fld__label em { font-style: normal; color: var(--muted); font-size: 0.86em; }
.fld--float .fld__input:focus + .fld__label em { color: rgba(198, 242, 30, 0.7); }

.fld__hint { margin: 7px 2px 0; font-size: 12px; color: var(--muted); }
.fld__err { margin: 6px 2px 0; font-size: 12.5px; color: #ff7070; }

/* ---------- дата + время ---------- */

.dt-wrap {
  margin-top: 14px;
  display: grid; grid-template-columns: 1fr 92px; gap: 12px;
  align-items: start;
}
.cal {
  padding: 12px 10px;
  background-color: var(--bg-card);
  background-image: var(--noise);
  border: 1px solid rgba(245, 245, 242, 0.14);
  border-radius: 16px;
}
.cal__nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 10px;
}
.cal__title {
  font: 500 15px var(--font-body); color: var(--ink);
  text-transform: capitalize; letter-spacing: 0.02em;
}
.cal__arrow {
  width: 30px; height: 30px; flex: none;
  border: 1px solid rgba(198, 242, 30, 0.55); border-radius: 50%;
  background: transparent; color: var(--acid);
  display: grid; place-items: center; cursor: pointer;
}
.cal__arrow svg { width: 16px; height: 16px; }
.cal__arrow:disabled { opacity: 0.3; cursor: default; }
.cal__arrow:not(:disabled):active { background: rgba(198, 242, 30, 0.14); }

.cal__dow, .cal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.cal__dow span {
  text-align: center; padding: 2px 0;
  font: 500 11px var(--font-body); color: var(--muted); text-transform: uppercase;
}
.cal__grid { margin-top: 2px; }
.cal__day {
  aspect-ratio: 1; width: 100%;
  display: grid; place-items: center;
  border: none; background: transparent;
  border-radius: 50%;
  font: 400 14px 'PT Mono', var(--font-body); font-variant-numeric: tabular-nums;
  color: var(--ink); cursor: pointer;
}
.cal__day--empty { visibility: hidden; }
.cal__day--off { color: #4a4a4c; cursor: default; }
.cal__day--free { border: 1px solid rgba(198, 242, 30, 0.5); }
.cal__day--free:active { background: rgba(198, 242, 30, 0.14); }
.cal__day--sel { background: var(--acid); color: #101110; border-color: var(--acid); font-weight: 700; }

.times { min-width: 0; }
.times__head {
  font: 500 11.5px var(--font-body); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.02em;
  text-align: center; margin-bottom: 8px;
}
.times__list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 300px; overflow-y: auto;
  scrollbar-width: none;
}
.times__list::-webkit-scrollbar { display: none; }
.times__hint { font-size: 12px; color: var(--muted); text-align: center; padding: 20px 4px; }
.tchip {
  height: 42px; flex: none;
  border: 1px solid rgba(245, 245, 242, 0.22); border-radius: 12px;
  background-color: var(--bg-card);
  color: var(--ink);
  font: 400 15px 'PT Mono', var(--font-body); font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.tchip:active { background: rgba(198, 242, 30, 0.1); }
.tchip--sel { background: var(--acid); color: #101110; border-color: var(--acid); font-weight: 700; }

/* ---------- сабмит ---------- */

.bsubmit-wrap { width: 260px; height: 74px; margin-top: 30px; }
.bsubmit-wrap .cta-frame { width: 276px; left: -8px; }
.cta--submit {
  left: 16px; top: 15px; width: 228px; height: 46px;
  border: none; cursor: pointer;
  font-size: 15.5px;
}
.cta--submit:disabled { opacity: 0.4; pointer-events: none; }

.bfine { margin: 14px 4px 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.bfine:first-of-type { margin-top: 18px; }
.bfine__link { color: var(--acid); }

/* ---------- экраны-состояния ---------- */

.bstate__t { font: 400 30px var(--font-marker); letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.05; }
.bstate__p { font-size: 15px; line-height: 1.5; color: #d6d6d4; max-width: 340px; }
.bstate__note { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 330px; }
.bstate__note--tg { max-width: 360px; }

.bstate__badge {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 4px;
}
.bstate__badge svg { width: 40px; height: 40px; }
.bstate__badge--ok { background: rgba(198, 242, 30, 0.16); color: var(--acid); }
.bstate__badge--err { background: rgba(255, 92, 92, 0.16); color: #ff5c5c; }
.bstate__badge--warn { background: rgba(245, 200, 60, 0.16); color: #f5c83c; }

/* сводка записи (зебра как .plist) */
.bsummary {
  width: 100%; max-width: 340px; margin-top: 6px;
  border: 1px solid rgba(245, 245, 242, 0.12); border-radius: 14px;
  overflow: hidden;
}
.bsummary > div {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 16px; text-align: left;
}
.bsummary > div:nth-child(odd) { background: rgba(255, 255, 255, 0.045); }
.bsummary dt { font-size: 12.5px; color: var(--muted); flex: none; }
.bsummary dd { font: 500 14px var(--font-body); color: var(--ink); text-align: right; }

/* широкая кнопка для экранов-состояний */
.cta--wide {
  position: static; width: 100%; max-width: 320px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 22px; margin-top: 8px;
  background: var(--acid); color: #101110; text-decoration: none;
  border: none; border-radius: 26px; cursor: pointer;
  font: 600 15.5px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
}
.cta--wide:active { filter: brightness(0.92); }
.cta--tg { background: var(--acid); }
.cta--tg svg { width: 20px; height: 20px; }

.lnk {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font: 500 14px var(--font-body);
  text-decoration: underline; text-underline-offset: 3px;
  padding: 4px;
}
.lnk:active { color: var(--ink); }

/* спиннер */
.spin {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(198, 242, 30, 0.22); border-top-color: var(--acid);
  animation: bspin 0.8s linear infinite; margin-bottom: 6px;
}
@keyframes bspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } }

/* ---------- узкие экраны ---------- */

@media (max-width: 385px) {
  .bscreen { padding-inline: 20px; }
  .dt-wrap { grid-template-columns: 1fr 84px; gap: 10px; }
  .frow { gap: 10px; }
}
