html.bd-lock,
html.bd-lock body { overflow: hidden !important; }
html.bd-lock body,
html.bd-lock .p-header { padding-right: var(--bd-sbw, 0px); }

.bd { position: fixed; inset: 0; z-index: 2147482000; }
.bd[hidden] { display: none; }

.bd__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #1c1c1c;
  border-left: 1px solid #e2e2e2;
  box-shadow: -18px 12px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transform: translate3d(106%, 0, 0);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
  font-family: var(--font-body, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.bd.is-open .bd__scrim { opacity: 1; }
.bd.is-open .bd__panel { transform: none; }

.bd__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 8px 0 20px;
  border-bottom: 1px solid #e2e2e2;
  background: #ffffff;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.bd__kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #8c6d46;
}

.bd__title {
  margin: 0;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #1c1c1c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e2e2;
  background: #ffffff;
  color: #1c1c1c;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.bd__close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bd__close:hover {
  background: #1c1c1c;
  color: #ffffff;
  border-color: #1c1c1c;
  transform: rotate(90deg);
}
.bd__close:focus-visible,
.bd__ext:focus-visible {
  outline: 2px solid #c6a477;
  outline-offset: 2px;
}

.bd__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.bd__frame {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.bd.is-loaded .bd__frame { opacity: 1; }

.bd__sk {
  position: absolute;
  inset: 0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.35s ease;
}
.bd.is-loaded .bd__sk { opacity: 0; pointer-events: none; }

.bd__sk-cover,
.bd__sk-av,
.bd__sk b {
  display: block;
  background: linear-gradient(100deg, #eceae6 30%, #f8f6f2 50%, #eceae6 70%);
  background-size: 220% 100%;
  animation: bd-sh 1.3s linear infinite;
}
.bd__sk-cover { height: 160px; border-radius: 14px; }
.bd__sk-row { display: flex; align-items: center; gap: 14px; }
.bd__sk-row > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.bd__sk-av { width: 56px; height: 56px; border-radius: 50%; }
.bd__sk-row b { height: 14px; width: 60%; border-radius: 6px; }
.bd__sk-row b.s { width: 40%; height: 10px; }
.bd__sk-line { height: 58px; border-radius: 12px; }
.bd__sk-txt {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c6d46;
}
@keyframes bd-sh { to { background-position: -120% 0; } }

.bd__ext {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  text-decoration: none;
}
.bd__ext:hover { color: #8c6d46; }
.bd__ext svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bd__edge {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 640px) {
  .bd__panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
  .bd__head {
    height: calc(48px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 6px 0 16px;
  }
  .bd__kicker { display: none; }
}

.bf { display: grid; gap: 22px; padding: 28px 24px 36px; background: #ffffff; }
.bf__lead { margin: 0; color: #5c5c5c; font-size: 15px; line-height: 1.55; }
.bf__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.bf__set legend, .bf__lbl {
  display: block; margin: 0 0 10px; padding: 0;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8c6d46;
}
.bf__svcs { display: grid; gap: 8px; }
.bf__svc { display: block; cursor: pointer; }
.bf__svc input { position: absolute; opacity: 0; pointer-events: none; }
.bf__svc span {
  display: flex; align-items: center; min-height: 48px; padding: 10px 14px;
  border: 1px solid #e2e2e2; background: #ffffff; color: #1c1c1c;
  font-size: 14px; letter-spacing: 0; text-transform: none; line-height: 1.35;
}
.bf__svc input:checked + span { border-color: #1c1c1c; background: #f6f5f3; }
.bf__svc input:focus-visible + span { outline: 2px solid #c6a477; outline-offset: 2px; }
.bf__days {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.bf__day {
  flex: 0 0 58px; height: 68px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid #e2e2e2; background: #ffffff; color: #1c1c1c; cursor: pointer; padding: 0;
}
.bf__day span { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #8c6d46; }
.bf__day b { font-size: 18px; font-weight: 500; }
.bf__day.is-on { background: #1c1c1c; border-color: #1c1c1c; }
.bf__day.is-on span, .bf__day.is-on b { color: #ffffff; }
.bf__row { display: grid; gap: 14px; }
@media (min-width: 520px) { .bf__row { grid-template-columns: 1fr 1fr; } }
.bf__lbl { display: grid; gap: 8px; }
.bf__lbl input, .bf__lbl textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #e2e2e2; border-radius: 0;
  font: 16px/1.4 Montserrat, system-ui, sans-serif; color: #1c1c1c; background: #ffffff;
  letter-spacing: 0; text-transform: none;
}
.bf__lbl textarea { min-height: 76px; resize: vertical; }
.bf__lbl input:focus, .bf__lbl textarea:focus { outline: 2px solid #c6a477; outline-offset: 1px; border-color: #c6a477; }
.bf__hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.bf__send {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px;
  border: 1px solid #1c1c1c; background: #1c1c1c; color: #ffffff; padding: 14px 16px; border-radius: 0;
  font: 500 13px/1 Montserrat, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.bf__send:hover { background: #ffffff; color: #1c1c1c; }
.bf__send:disabled { opacity: 0.45; cursor: default; }
.bf__msg { min-height: 1.4em; margin: 0; font-size: 14px; line-height: 1.45; letter-spacing: 0; text-transform: none; color: #1c1c1c; }
.bf__msg.is-bad { color: #8a1f1f; }
.bf__done { display: grid; gap: 14px; padding: 12px 0 8px; }
.bf__done h3 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #1c1c1c; }
.bf__done p { margin: 0; color: #5c5c5c; font-size: 15px; line-height: 1.55; }
.bf__kicker { margin: 0; color: #8c6d46; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.bookwrap { background: #ffffff; }
.bookwrap .bf { max-width: 560px; padding-left: 0; padding-right: 0; }

@media (prefers-reduced-motion: reduce) {
  .bd__scrim,
  .bd__panel,
  .bd__frame,
  .bd__sk { transition: none; }
  .bd__sk-cover,
  .bd__sk-av,
  .bd__sk b { animation: none; }
}
