html.booking-open,
html.booking-open body { overflow: hidden; }

.booking-dialog {
  --booking-ink: #193e31;
  --booking-muted: #526259;
  --booking-border: #c8d3c7;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(508px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(41 70 48 / 14%);
  border-radius: 24px;
  background: #fafbf6;
  color: var(--booking-ink);
  font-family: inherit;
  text-align: left;
  box-shadow: 0 30px 90px rgb(17 43 30 / 20%);
}
.booking-dialog::backdrop { background: rgb(14 39 24 / 55%); backdrop-filter: blur(4px); }
.booking-dialog:not([open]) { display: none; }
.booking-dialog *, .booking-dialog *::before, .booking-dialog *::after { box-sizing: border-box; }
.booking-panel { padding: clamp(20px, 4vw, 30px); }
.booking-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.booking-mark, .booking-close {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
}
.booking-mark { background: #e2ebdc; color: var(--booking-ink); }
.booking-mark svg { width: 23px; height: 23px; }
.booking-close { color: var(--booking-muted); background: transparent; cursor: pointer; }
.booking-close:hover { background: #e9eee6; }
.booking-close svg { width: 21px; height: 21px; }
.booking-dialog h2 {
  margin: 0;
  color: var(--booking-ink);
  font-family: inherit;
  font-size: clamp(1.65rem, 5.2vw, 2.1rem);
  font-weight: 730;
  line-height: 1.14;
  letter-spacing: -.045em;
}
.booking-dialog #booking-intro { margin: 8px 0 22px; color: var(--booking-muted); font-size: 1rem; line-height: 1.5; }
.booking-dialog form { margin: 0; }
.booking-dialog label { display: block; margin: 0; font-size: .875rem; font-weight: 650; line-height: 1.45; color: var(--booking-ink); }
.booking-dialog label > span:not(.booking-unit-field) { font-weight: 450; color: var(--booking-muted); }
.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.booking-dialog input:not([type="hidden"]), .booking-dialog textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  margin-top: 5px;
  color: var(--booking-ink);
  border: 1px solid var(--booking-border);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.4;
}
.booking-dialog textarea { resize: vertical; min-height: 64px; }
.booking-dialog input::placeholder, .booking-dialog textarea::placeholder { color: #67766b; opacity: 1; }
.booking-dialog :focus-visible { outline: 2px solid #2f7147; outline-offset: 2px; }
.booking-unit-field { display: block; position: relative; }
.booking-dialog .booking-unit-field input { padding-right: 42px; }
.booking-unit-field > span {
  position: absolute;
  inset: 0 13px 0 auto;
  display: grid;
  align-items: center;
  color: var(--booking-muted);
  font-weight: 500;
  pointer-events: none;
}
.booking-dialog .booking-estimate { margin: 6px 0 14px; color: #416441; font-size: .875rem; line-height: 1.45; }
.booking-dialog .booking-hint { margin: 16px 0 12px; color: var(--booking-muted); font-size: .875rem; line-height: 1.5; }
.booking-submit {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #1d513d;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .18s ease;
}
.booking-submit:hover { background: #163f2e; }
.booking-submit svg { width: 20px; height: 20px; flex: none; }
.booking-dialog .booking-phone { margin: 14px 0 0; text-align: center; font-size: .875rem; line-height: 1.6; color: var(--booking-muted); }
.booking-phone a { white-space: nowrap; color: var(--booking-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) {
  .booking-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .booking-dialog { border-radius: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .booking-dialog[open] .booking-panel { animation: booking-appear .24s ease-out both; }
  @keyframes booking-appear {
    from { transform: translateY(7px); opacity: .2; }
    to { transform: translateY(0); opacity: 1; }
  }
}
