.dark:has(.mobile-dialog[open]) { overflow: hidden; }
.mobile-dialog {
  width: calc(100% - 24px);
  max-width: 470px;
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  padding: 0 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #1a1e23;
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding: 56px 0 20px;
  box-shadow: 0 14px 40px #0009;
}
.mobile-dialog::backdrop { background: #080a0caa; }
.mobile-dialog-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding-block: 5px;
  background: #1a1e23;
}
.mobile-dialog-bar button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #22272e;
  color: var(--text);
  font: 1.45rem/1 "Segoe UI", sans-serif;
}
.booking-intro {
  padding: 13px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
}
.booking-intro h2, .mobile-contact h2 { font-size: 1.45rem; line-height: 1.2; }
.booking-intro p { margin-top: 5px; font-size: .92rem; line-height: 1.35; }
.mobile-dialog form:not([hidden]) { display: grid; gap: 10px; padding-top: 12px; }
.booking-note { color: var(--muted); font-size: .85rem; }
.mobile-dialog label { display: grid; min-width: 0; gap: 4px; font-size: .9rem; font-weight: 600; }
.mobile-dialog :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 9px;
  border: 1px solid #49515b;
  border-radius: 7px;
  background: #101317;
  color: var(--text);
  font: 1rem/1.3 "Segoe UI", sans-serif;
}
.mobile-dialog :is(input, textarea)::placeholder { color: #a2abb6; opacity: 1; }
.mobile-dialog textarea { min-height: 88px; resize: vertical; }
.mobile-dialog .booking-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400;
}
.booking-consent input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  min-height: 20px;
  height: 20px;
  padding: 0;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.booking-submit {
  min-height: 49px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 1rem/1.25 "Segoe UI", sans-serif;
}
.booking-submit:active { background: #ffd489; }
.mobile-dialog :is(button, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.booking-result, .mobile-contact p { padding-top: 12px; }
.booking-result button { margin-top: 14px; }
.booking-result label { margin-top: 10px; }
.booking-result textarea { resize: vertical; }
.booking-result .telegram-open:not([hidden]) {
  display: grid;
  place-items: center;
  margin-top: 8px;
  text-decoration: none;
}
.booking-result .telegram-edit {
  background: #22272e;
  border: 1px solid var(--line);
  color: var(--text);
  margin-top: 8px;
}
