/* ============================================================
   AURUMFIT — Booking pages (3 steps + success)
   Figma: 11:336 (step1) 11:963 (step2) 11:1318 (step3) 11:1572 (success)
   ============================================================ */

.bk-page {
  position: relative;
  width: var(--page-width);
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 120px;
}

/* Footer in normal flow for booking (dynamic content height) */
.bk-page .lk-footer {
  position: relative;
  top: auto;
  margin-top: 80px;
  width: 1728px;
}

/* ---------- Page title ---------- */
.bk-title {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 64px;
  line-height: 68px;
  text-align: center;
  color: var(--color-white);
  margin-top: 37px;
  margin-bottom: 0;
}

/* ---------- Stepper ---------- */
.bk-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  margin-top: 24px;
  margin-bottom: 39px;
}

.bk-stepper__item {
  font-size: 16px;
  color: #5a5a5a;
  cursor: default;
  line-height: 34px;
  white-space: nowrap;
  text-decoration: none;
}

.bk-stepper__item.is-active {
  color: var(--color-white);
}

.bk-stepper__item.is-done {
  color: var(--color-white);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Rule ---------- */
.bk-rule {
  width: 1308px;
  height: 4px;
  background: rgba(217, 217, 217, 0.2);
  margin: 0 auto 39px;
}

/* ---------- Section subtitle ---------- */
.bk-subtitle {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 28px;
  color: #ffc587;
  text-align: center;
  margin-bottom: 59px;
  margin-top: 0;
}

/* ==========================================================
   STEP 1 — Calendar
   ========================================================== */
.bk-step { display: none; }
.bk-step.is-active { display: block; }

/* Month navigation */
.bk-month-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  height: 32px;
  margin-bottom: 41px;
}

.bk-month-nav__side {
  position: absolute;
  font-family: var(--font-text);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.32px;
  white-space: nowrap;
  top: 50%;
  transform: translateY(-50%);
}

/* Figma: side months centered at ±310px and ±570px from page center */
.bk-month-nav__side--prev1 { right: calc(50% + 310px); transform: translateY(-50%) translateX(50%); }
.bk-month-nav__side--prev2 { right: calc(50% + 570px); transform: translateY(-50%) translateX(50%); }
.bk-month-nav__side--next1 { left: calc(50% + 310px); transform: translateY(-50%) translateX(-50%); }
.bk-month-nav__side--next2 { left: calc(50% + 570px); transform: translateY(-50%) translateX(-50%); }

.bk-month-nav__current {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 26px;
  color: var(--color-white);
  letter-spacing: 0.52px;
  white-space: nowrap;
}

.bk-month-nav__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.85;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.bk-month-nav__arrow:hover { opacity: 1; }

/* Calendar card */
.bk-calendar {
  width: 621px;
  margin: 0 auto;
  background: #352f2a;
  border-radius: 20px;
  padding: 47px 0 126px;
}

.bk-cal-head {
  display: grid;
  grid-template-columns: repeat(7, 62px);
  justify-content: center;
  gap: 8px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 22px;
}

.bk-cal-head__cell {
  width: 62px;
  text-align: center;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.36px;
  line-height: 24px;
}

.bk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 62px);
  justify-content: center;
  gap: 8px;
}

.bk-cal__day {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  cursor: pointer;
  border: none;
  background: #fff;
  color: #000;
  transition: background 0.15s;
}

.bk-cal__day.is-empty {
  background: transparent;
  cursor: default;
}

.bk-cal__day.is-past {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.15);
  cursor: not-allowed;
}

.bk-cal__day.is-selected {
  background: #fec384;
  color: #000;
}

.bk-cal__day:not(.is-past):not(.is-empty):not(.is-selected):hover {
  background: rgba(255, 197, 135, 0.5);
}

/* Продолжить / Забронировать */
.bk-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.bk-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 216px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffc587, #f7ad5d);
  font-family: var(--font-text);
  font-size: 16px;
  color: #000;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
}

.bk-cta:hover { filter: brightness(1.06); }
.bk-cta:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }

/* ==========================================================
   STEP 2 — Time picker
   ========================================================== */

/* Date chip row */
.bk-date-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.bk-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  height: 60px;
  min-width: 150px;
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-text);
  font-size: 18px;
  color: #000;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.bk-chip.is-active {
  background: #fec384;
}

.bk-chip__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  font-size: 0;
  padding: 0;
  flex-shrink: 0;
}

/* × via SVG */
.bk-chip__remove::before,
.bk-chip__remove::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2.5px;
  background: #000;
  border-radius: 2px;
}
.bk-chip__remove { position: relative; }
.bk-chip__remove::before { transform: rotate(45deg); }
.bk-chip__remove::after  { transform: rotate(-45deg); }

/* Time card (single, for active date) */
.bk-time-card {
  width: 1060px;
  margin: 0 auto;
  background: #352f2a;
  border-radius: 20px;
  overflow: hidden;
}

.bk-tariff {
  padding: 22px 52px 22px 56px;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bk-tariff:last-child { border-bottom: none; }

.bk-tariff__price {
  min-width: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.bk-tariff__price-val {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 34px;
  color: var(--color-white);
}

.bk-tariff__price-rub {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--color-white);
}

.bk-tariff__price-per {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--color-white);
  margin-left: 2px;
}

.bk-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bk-slot {
  width: 99px;
  height: 50px;
  border-radius: 100px;
  border: none;
  font-family: var(--font-display);
  font-size: 20px;
  cursor: pointer;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.bk-slot.is-booked {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(0, 0, 0, 0.12);
  cursor: not-allowed;
}

.bk-slot.is-selected {
  background: #fec384;
  color: #000;
}

.bk-slot:not(.is-booked):not(.is-selected):hover {
  background: rgba(255, 197, 135, 0.5);
}

/* Hint below CTA */
.bk-step2-hint {
  margin-top: 14px;
  font-size: 14px;
  color: #ffc587;
  text-align: center;
}

/* ==========================================================
   STEP 3 — Payment
   ========================================================== */
.bk-payment {
  display: flex;
  gap: 41px;
  width: 1137px;
  margin: 0 auto;
  align-items: flex-start;
}

/* Left: cart cards */
.bk-cart {
  width: 548px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bk-cart-card {
  width: 548px;
  min-height: 280px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 28px 42px 28px 42px;
  position: relative;
}

/* Top row: date info + time pill + × */
.bk-cart-card__top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.bk-cart-card__date-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.bk-cart-card__day {
  font-family: var(--font-display);
  font-size: 39px;
  color: #ffc587;
  line-height: 1;
}

.bk-cart-card__month {
  font-family: var(--font-text);
  font-size: 22px;
  color: #ffc587;
  line-height: 1;
}

.bk-cart-card__time {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 99px;
  height: 50px;
  border-radius: 100px;
  background: #ffc587;
  font-family: var(--font-display);
  font-size: 20px;
  color: #000;
  flex-shrink: 0;
}

.bk-cart-card__remove {
  position: absolute;
  top: 40px;
  right: 32px;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ababab;
  font-size: 0;
  padding: 0;
}
.bk-cart-card__remove::before,
.bk-cart-card__remove::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 3px;
  background: #ababab;
  border-radius: 2px;
}
.bk-cart-card__remove::before { transform: rotate(45deg); }
.bk-cart-card__remove::after  { transform: rotate(-45deg); }
.bk-cart-card__remove:hover::before,
.bk-cart-card__remove:hover::after { background: #fff; }

.bk-cart-card__place {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-white);
  line-height: 24px;
  margin-bottom: 10px;
  width: 380px;
}

.bk-cart-card__addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-text);
  font-size: 16px;
  color: #a4a4a4;
  line-height: 20px;
  margin-bottom: 18px;
}

.bk-cart-card__addr-icon {
  width: 18px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.75;
}

.bk-cart-card__price {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-white);
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.bk-cart-card__price-per {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--color-white);
}

/* Right: order summary */
.bk-summary {
  width: 548px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 54px 30px 40px;
  position: sticky;
  top: 20px;
}

.bk-summary__title {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 28px;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 28px;
}

.bk-summary__rows {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.bk-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
}

.bk-summary__row-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #a4a4a4;
  font-family: var(--font-text);
  font-size: 20px;
}

.bk-summary__row-price {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-white);
  line-height: 34px;
}

.bk-summary__row-mid {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-white);
  margin: 0 12px;
}

.bk-summary__row-val {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-white);
  line-height: 34px;
}

.bk-summary__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0 8px;
}

.bk-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0 32px;
}

.bk-summary__total-label {
  font-family: var(--font-text);
  font-size: 25px;
  color: #a4a4a4;
}

.bk-summary__total-val {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-white);
  line-height: 34px;
}

.bk-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 362px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffc587, #f7ad5d);
  font-family: var(--font-text);
  font-size: 20px;
  color: #000;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
  margin: 0 auto 20px;
}

.bk-pay-btn:hover { filter: brightness(1.06); }

.bk-summary__legal {
  font-family: var(--font-text);
  font-size: 14px;
  color: #8b8b8b;
  text-align: center;
  line-height: 22px;
  width: 434px;
  margin: 0 auto;
}

/* ==========================================================
   SUCCESS overlay
   ========================================================== */
.bk-success {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 15, 10, 0.88);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bk-success.is-open { display: flex; }

.bk-success__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.bk-success__logo img { width: 56px; height: 50px; margin-bottom: 10px; }

.bk-success__logo-name {
  font-family: var(--font-watermark);
  font-size: 41px;
  color: var(--color-accent-1);
  letter-spacing: 0;
  line-height: 1;
}

.bk-success__logo-sub {
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--color-gray);
  text-transform: uppercase;
  margin-top: 4px;
}

.bk-success__logo-divider {
  display: block;
  width: 163.5px;
  height: 0.5px;
  background: rgba(217, 217, 217, 0.3);
  margin: 10px auto 0;
}

.bk-success__logo-city {
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--color-gray);
  text-transform: uppercase;
  margin-top: 6px;
}

.bk-success__title {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 52px;
  color: var(--color-white);
  margin-bottom: 20px;
}

.bk-success__text {
  font-family: var(--font-text);
  font-size: 22px;
  color: var(--color-gray-light);
  line-height: 1.6;
}

/* ==========================================================
   Mobile header — hidden on desktop
   ========================================================== */
.bk-mob-header { display: none; }

/* ==========================================================
   Mobile  (≤560px) — Figma node 16:2743, frame 393×999
   ========================================================== */
@media (max-width: 560px) {

  /* ---- page / scaler ---- */
  .bk-page {
    width: 100%;
    padding-top: 0;
    padding-bottom: 48px;
  }

  /* ---- hide desktop lk-header ---- */
  .lk-header { display: none !important; }

  /* ---- mobile header (Figma: back/menu_final, btn at left=7 top=62) ---- */
  .bk-mob-header {
    display: flex;
    align-items: flex-end;         /* anchor children to bottom edge */
    position: relative;
    width: 100%;
    height: 112px;                 /* 62px top space + 50px button height */
    padding-bottom: 0;
  }

  .bk-mob-menu {
    position: absolute;
    left: 7px;
    bottom: 0;
    width: 139px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ffc587, #f7ad5d);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    font-family: var(--font-text);
    font-size: 17px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    border: none;
  }

  /* hamburger: top & bottom bars full (27px), middle short (18px) */
  .bk-mob-menu__icon {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
  }
  .bk-mob-menu__icon span {
    display: block;
    height: 3px;
    background: #000;
    border-radius: 1.5px;
  }
  .bk-mob-menu__icon span:nth-child(1) { width: 27px; }
  .bk-mob-menu__icon span:nth-child(2) { width: 18px; }
  .bk-mob-menu__icon span:nth-child(3) { width: 27px; }

  .bk-mob-menu > span {
    flex: 1;
    text-align: center;
  }

  /* right: username + avatar at right=7, bottom=0, height=50 */
  .bk-mob-header__right {
    position: absolute;
    right: 7px;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 50px;
  }

  .bk-mob-user {
    font-family: var(--font-text);
    font-size: 14px;
    color: #c7c7c7;
    text-decoration: underline;
    white-space: nowrap;
    line-height: 1;
  }

  .bk-mob-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
  }
  .bk-mob-avatar img { width: 50px; height: 50px; }

  /* ---- title (Figma: 28px, leading 68px, centered, top=127) ---- */
  .bk-title {
    font-size: 28px;
    line-height: 68px;
    margin-top: 15px;
    margin-bottom: 0;
    padding: 0 16px;
    text-align: center;
  }

  /* ---- stepper (Figma: 10px, all on one line, top=187) ---- */
  .bk-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 16px;
    white-space: nowrap;
    overflow: hidden;
  }
  .bk-stepper__item {
    font-size: 10px;
    line-height: 34px;
    white-space: nowrap;
  }
  /* spaces between step labels */
  .bk-stepper__item + .bk-stepper__item::before {
    content: "   ";
    white-space: pre;
    color: #5a5a5a;
    font-size: 10px;
  }

  /* ---- rule (Figma: width=379, y=230, h=4) ---- */
  .bk-rule {
    width: calc(100% - 14px);
    margin: 9px auto 0;
    height: 4px;
  }

  /* ---- subtitle (Figma: 22px orange, y=270) ---- */
  .bk-subtitle {
    font-size: 22px;
    margin-top: 36px;
    margin-bottom: 24px;
    padding: 0 16px;
  }

  /* ---- month nav ---- */
  .bk-month-nav {
    height: 24px;
    margin-bottom: 24px;
    gap: 16px;
  }
  .bk-month-nav__side { display: none; }
  .bk-month-nav__current {
    font-size: 18px;
    letter-spacing: 0.36px;
  }
  .bk-month-nav__arrow { width: 28px; height: 24px; }
  .bk-month-nav__arrow svg { width: 10px; height: 17px; }

  /* ---- calendar card (Figma: #352f2a, r=20, 379×332, 7px margin sides) ---- */
  .bk-calendar {
    width: calc(100% - 14px);
    margin: 0 7px;
    background: #352f2a;
    border-radius: 20px;
    padding: 24px 21px 22px;
  }

  /* day-of-week header */
  .bk-cal-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5.6px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
  }
  .bk-cal-head__cell {
    width: auto;
    text-align: center;
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 12.6px;
    line-height: 16.8px;
    letter-spacing: 0.252px;
    color: rgba(255, 255, 255, 0.5);
  }

  /* date grid */
  .bk-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5.6px;
  }
  .bk-cal__day {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 8.4px;
    font-size: 14px;
    font-family: var(--font-display);
  }

  /* ---- CTA wrap ---- */
  .bk-cta-wrap { margin-top: 40px; }
  .bk-cta { width: 216px; height: 60px; }

  /* ---- Step 2 ---- */
  .bk-date-chips { gap: 8px; padding: 0 16px; }
  .bk-chip { font-size: 14px; padding: 0 14px; height: 48px; min-width: auto; }
  .bk-time-card { width: calc(100% - 14px); margin: 0 7px; }
  .bk-tariff { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 16px; }
  .bk-tariff__price-val { font-size: 26px; }
  .bk-slot { width: 80px; height: 42px; font-size: 16px; }

  /* ---- Step 3 ---- */
  .bk-payment { flex-direction: column; width: 100%; padding: 0 7px; }
  .bk-cart { width: 100%; }
  .bk-cart-card { width: 100%; padding: 20px; }
  .bk-summary { width: 100%; position: static; }
  .bk-pay-btn { width: 100%; }
  .bk-summary__legal { width: 100%; }

  /* ---- Footer: hide everything except disclaimer (booking page only) ---- */
  .bk-page .lk-footer {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    background: none !important;
    margin-top: 35px;
  }
  .bk-page .lk-footer__logo,
  .bk-page .lk-footer__links,
  .bk-page .lk-footer__social { display: none !important; }
  .bk-page .lk-footer__disclaimer {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    padding: 0 8px;
    text-align: center;
    font-size: 12px;
    line-height: 22px;
    opacity: 0.4;
  }
}
