/* =========================================================
   Запись онлайн — стили страницы booking.html
   ========================================================= */

.page-hero { padding: clamp(48px,7vw,90px) 0 clamp(36px,5vw,56px); }
.breadcrumbs { font-size: 13px; font-weight: 600; color: var(--neutral); margin-bottom: 22px; }
.breadcrumbs a:hover { color: var(--red); }

.booking-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  padding-bottom: clamp(64px, 8vw, 110px);
}
.booking-flow { display: grid; gap: 22px; min-width: 0; }

/* ---------- Шаги ---------- */
.bk-step {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3vw, 38px);
  transition: opacity .35s var(--ease), filter .35s var(--ease);
}
.bk-step.locked { opacity: .45; filter: saturate(.5); pointer-events: none; }
.bk-step-head { display: flex; align-items: center; gap: 15px; margin-bottom: 6px; }
.bk-step-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.bk-num {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--powder-wash); color: var(--red);
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  display: grid; place-items: center;
  transition: background .3s, color .3s;
}
.bk-step.done .bk-num { background: var(--red); color: #fff; }
.bk-step-hint { margin: 0 0 20px 57px; font-size: .92rem; color: var(--graphite-soft); }

/* ---------- Шаг 1: услуги ---------- */
.bk-services { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-svc {
  text-align: left; cursor: pointer;
  font-family: var(--sans);
  border: 1.5px solid var(--line); border-radius: 18px;
  background: var(--cream); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .25s, background .25s, box-shadow .25s, transform .25s;
}
.bk-svc:hover { border-color: var(--powder); transform: translateY(-2px); }
.bk-svc.selected { border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px var(--powder-wash); }
.bk-svc .nm { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--graphite); }
.bk-svc .ds { font-size: 13px; color: var(--graphite-soft); line-height: 1.45; }
.bk-svc .meta { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.bk-svc .meta .pr { font-family: var(--serif); font-size: 1.15rem; color: var(--red); }
.bk-svc .meta .du { font-size: 12.5px; font-weight: 600; color: var(--neutral); }

/* ---------- Шаг 2: переключатель видов ---------- */
.bk-toggle {
  display: inline-flex; gap: 4px;
  background: var(--cream); border: 1px solid var(--line);
  padding: 5px; border-radius: 100px; margin: 4px 0 22px;
}
.bk-toggle button {
  border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 700;
  color: var(--graphite-soft); padding: 9px 18px; border-radius: 100px;
  transition: background .25s, color .25s;
}
.bk-toggle button.active { background: var(--red); color: #fff; }
.bk-view { display: none; }
.bk-view.active { display: block; animation: fadeUp .45s var(--ease); }

/* ---------- Вид: ближайшие окна ---------- */
.bk-day {
  display: grid; grid-template-columns: 148px 1fr; gap: 14px 18px;
  align-items: start; padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}
.bk-day:first-child { border-top: 1px solid var(--line); }
.bk-day .d-label b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.15; }
.bk-day .d-label small { font-size: 12.5px; color: var(--neutral); font-weight: 600; }
.bk-more { margin-top: 18px; }

/* ---------- Чипы времени ---------- */
.bk-times { display: flex; flex-wrap: wrap; gap: 9px; }
.bk-chip {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: var(--graphite); background: #fff;
  border: 1.5px solid var(--line); border-radius: 100px;
  padding: 9px 17px; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.bk-chip:hover { border-color: var(--powder); transform: translateY(-1px); }
.bk-chip.selected { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Вид: календарь ---------- */
.bk-cal { max-width: 460px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bk-cal-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.bk-cal-nav { display: flex; gap: 8px; }
.bk-cal-nav button {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--graphite);
  font-size: 17px; line-height: 1; display: grid; place-items: center;
  transition: border-color .2s, background .2s, color .2s, opacity .2s;
}
.bk-cal-nav button:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.bk-cal-nav button:disabled { opacity: .35; cursor: default; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.bk-wd {
  text-align: center; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--neutral);
  padding-bottom: 6px;
}
.bk-cell {
  position: relative; aspect-ratio: 1; border-radius: 13px;
  display: grid; place-items: center;
  font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--graphite);
  background: none; border: 1.5px solid transparent; cursor: pointer; padding: 0;
  transition: background .2s, border-color .2s, color .2s;
}
.bk-cell.av::after {
  content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--powder);
}
.bk-cell.av:hover { background: var(--powder-wash); }
.bk-cell.off { color: #d3cabf; cursor: default; }
.bk-cell.empty { cursor: default; }
.bk-cell.selected { background: var(--red); color: #fff; }
.bk-cell.selected::after { background: #fff; }
.bk-cal-times { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.bk-cal-times .lbl { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--graphite-soft); margin: 0 0 12px; }

/* ---------- Шаг 3: форма ---------- */
#bk-submit { margin-top: 22px; width: 100%; justify-content: center; }

/* ---------- Боковая колонка ---------- */
.booking-side { display: grid; gap: 22px; position: sticky; top: 96px; }
.bk-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(24px, 2.6vw, 32px); }
.bk-card > h3 { font-size: 1.45rem; margin-bottom: 6px; }
.bk-summary-rows { display: grid; margin-top: 14px; }
.s-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.s-row .k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--neutral); }
.s-row .v { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--graphite); text-align: right; }
.s-row .v.muted { color: #cfc7bd; font-style: italic; font-weight: 500; font-size: 1.02rem; }
.bk-note {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  background: var(--powder-wash); border: 1px solid color-mix(in srgb, var(--powder) 60%, transparent);
  font-size: .9rem; color: var(--graphite-soft); line-height: 1.55;
}
.bk-find .row { display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; }
.bk-find .row + .row { border-top: 1px dashed var(--line); }
.bk-find .ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--powder-wash); color: var(--red); }
.bk-find b { display: block; font-size: 14.5px; }
.bk-find span { font-size: 13.5px; color: var(--graphite-soft); line-height: 1.5; display: block; }
.bk-find .link-arrow { margin-top: 14px; font-size: 14px; }

/* ---------- Подтверждение ---------- */
.bk-done { display: none; }
.bk-done.show { display: block; animation: fadeUp .5s var(--ease); }
.bk-done .inner { text-align: center; padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px); }
.bk-done .ok {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
  box-shadow: 0 18px 40px -16px rgba(200,16,46,.55);
}
.bk-done .ok svg { width: 34px; height: 34px; }
.bk-done h3 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.bk-done .what { font-family: var(--serif); font-size: 1.35rem; color: var(--red); margin: 0 0 14px; }
.bk-done p { color: var(--graphite-soft); max-width: 46ch; margin-inline: auto; }
.bk-done .hero-actions { justify-content: center; margin-top: 28px; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-side { position: static; }
}
@media (max-width: 620px) {
  .bk-services { grid-template-columns: 1fr; }
  .bk-day { grid-template-columns: 1fr; gap: 10px; }
  .bk-day:first-child { border-top: 0; }
  .bk-step-hint { margin-left: 0; }
  .bk-cal { max-width: none; }
}

/* — согласие на обработку ПДн — */
.bk-consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 18px 0 4px; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: var(--neutral);
}
.bk-consent input {
  flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px;
  accent-color: var(--red); cursor: pointer;
}
.bk-consent a { color: var(--red); font-weight: 600; }
