/* Keep scrollbars inside the padded, rounded dialog surface. */
:root {
  --dialog-space-top: calc(env(safe-area-inset-top, 0px) + 12px);
  --dialog-space-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  --dialog-height: calc(var(--vvh, 100dvh) - var(--dialog-space-top) - var(--dialog-space-bottom));
}
html { -webkit-text-size-adjust: 100%; }
/* Contain the cover's negative margin without creating a scroll container. */
body { display: flow-root; }
/* Telegram iOS paints scrolled content outside its WebView, above CSS y=0.
   Paint the background on this sticky box itself: fixed elements are clipped
   there, and an absolute child of a sticky header can lag during momentum scroll.
   Its negative margin cancels its height; no visible space is added to the page.
   https://github.com/TelegramMessenger/Telegram-iOS/issues/2347 */
.browser-top-cover {
  position: sticky;
  top: -200px;
  height: 200px;
  margin-top: -200px;
  z-index: 19;
  background: var(--bg);
  pointer-events: none;
}
/* The header background covers the notch; only its contents receive the safe-area padding. */
header { top: 0; padding-top: env(safe-area-inset-top, 0px); }
header .wrap.bar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
dialog, dialog *, dialog *::before, dialog *::after { box-sizing: border-box; }
html:has(dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
html.modal-open { overflow: hidden; overscroll-behavior: none; }
html.modal-open body { position: fixed; top: var(--page-scroll-y); left: 0; right: 0; overflow: hidden; }
dialog#bookDlg, dialog#slotDlg, dialog#okDlg {
  margin: auto;
  top: calc(var(--vvtop, 0px) + var(--dialog-space-top));
  bottom: calc(100% - var(--vvtop, 0px) - var(--vvh, 100dvh) + var(--dialog-space-bottom));
  max-width: min(560px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: var(--dialog-height);
}
dialog#okDlg { max-width: min(420px, calc(100vw - 24px)); }
#bookDlg .dlg-in, #slotDlg .dlg-in {
  display: flex;
  flex-direction: column;
  max-height: var(--dialog-height);
  overflow: hidden;
  padding: clamp(18px, 4vw, 28px);
  touch-action: auto;
}
.dlg-head, .sched-legend, .sched-note { flex-shrink: 0; }
.dlg-head h2 { min-width: 0; overflow-wrap: anywhere; }
.dlg-body, #bSched {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding: 2px 6px 6px 2px;
  margin-right: -6px;
  scroll-padding-block: 12px;
}
.dlg-body::-webkit-scrollbar, #bSched::-webkit-scrollbar { width: 6px; }
.dlg-body::-webkit-scrollbar-thumb, #bSched::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 6px;
}
#bookForm .contact-methods { display: block; min-width: 0; }
#bookForm .contact-methods legend { margin: 4px 0 8px; font-size: 14px; color: var(--muted); }
.method-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.method-option { position: relative; min-width: 0; cursor: pointer; }
.method-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.method-option span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 8px; border-radius: 13px;
  border: 1.5px solid var(--line); background: var(--bg);
  font-size: 15px; font-weight: 500; transition: background .15s, border-color .15s;
}
.method-option span::before {
  content: ''; width: 14px; height: 14px; flex: 0 0 14px;
  border-radius: 50%; border: 1.5px solid currentColor; opacity: .5;
}
.method-option input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.method-option input:checked + span::before { opacity: 1; background: currentColor; box-shadow: inset 0 0 0 3px var(--accent); }
.method-option:hover span { border-color: var(--accent); }
.method-option input:focus-visible + span { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); }
.bf:focus, .bf:focus-visible { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bf { min-width: 0; }
.booking-field { display: grid; gap: 6px; min-width: 0; }
.booking-field > label { font-size: 14px; font-weight: 500; color: var(--ink); }
.booking-field input.bf {
  appearance: none; -webkit-appearance: none; text-align: left;
  font-size: 16px; line-height: 1.5; min-height: 54px; scroll-margin-block: 12px;
}
#bPhone { direction: ltr; }
.field-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.bf-pick { text-align: left; justify-content: space-between; }
.bf[aria-invalid="true"] { border-color: #c2341f; }
.bf-submit:disabled { opacity: .65; cursor: wait; }
.sched-note, .sched-status { color: var(--muted); font-size: 13px; line-height: 1.5; }
.sched-note { margin: 0 0 12px; }
.sched-status { padding: 20px 0; }
.sched-retry { margin-top: 12px; }
.srow { grid-template-columns: 100px minmax(0, 1fr); gap: 8px; }
.stimes { gap: 5px; }
.st:disabled { opacity: .65; }
.st:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) {
  dialog#bookDlg, dialog#slotDlg, dialog#okDlg, dialog#reviewDlg {
    top: calc(var(--vvtop, 0px) + var(--dialog-space-top)); margin: 0 auto; bottom: auto;
  }
  .bar { gap: 10px; }
  .bar .btn-head { min-width: 0; padding: 8px 12px; }
  .bh-main { font-size: 13px; }
  .bh-sub { font-size: 8px; white-space: normal; text-align: center; }
  .brand { min-width: 0; }
  .brand-name { font-size: 15px; }
  .brand-role { font-size: 11px; }
  .dlg-head h2 { font-size: 20px; line-height: 1.3; }
  .srow { grid-template-columns: 1fr; gap: 5px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .sday { font-size: 14px; }
  .st { min-height: 44px; font-size: 14px; }
  .method-option span { font-size: 14px; padding: 10px 5px; }
  .method-option span::before { display: none; }
}

dialog#reviewDlg {
  padding: 0; border: 0; background: transparent; color: var(--ink);
  width: min(680px, calc(100vw - 32px)); max-width: none;
  max-height: var(--dialog-height); overflow: visible;
}
#reviewDlg::backdrop { background: rgba(7,23,43,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.review-shell {
  background: var(--surface); border-radius: 24px; padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 28px 90px -30px rgba(7,23,43,.4);
  display: flex; flex-direction: column; max-height: var(--dialog-height); overflow: hidden;
}
.review-head { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.review-head-main { min-width: 0; flex: 1; }
.review-head h2 { font-family: "Onest", sans-serif; font-size: 20px; line-height: 1.3; }
.review-source { font-size: 13px; color: var(--muted); margin-top: 3px; }
.review-rating { padding: 18px 0; flex-shrink: 0; }
.review-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-right: 14px; margin-right: -14px; }
.review-body blockquote { margin: 0; font-size: 17px; line-height: 1.75; }
.review-body p + p { margin-top: 18px; }
.review-footer { flex-shrink: 0; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.review-footer a { font-size: 14px; text-underline-offset: 4px; }
@media (max-width: 400px) {
  .review-head > .review-avatar { display: none; }
  .review-head h2 { font-size: 18px; }
  .review-body blockquote { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .method-option span { transition: none; } }

/* Header has explicit columns; the name never shrinks underneath the language button. */
@media (max-width: 1100px) { header nav { display: none; } }
@media (min-width: 561px) {
  header .wrap.bar { flex-wrap: nowrap; }
  .brand { flex-shrink: 0; }
  .lang-btn { margin-left: auto; }
}
@media (max-width: 560px) {
  header .wrap.bar {
    display: grid; grid-template-columns: minmax(0, 1fr) 40px;
    gap: 10px 12px; padding: 12px 16px;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .brand-name { white-space: normal; font-size: clamp(14px, 4.2vw, 19px); line-height: 1.25; }
  .brand-role { font-size: 11px; }
  .lang-btn { grid-column: 2; grid-row: 1; margin: 0; }
  .bar .btn-head { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; margin: 0 !important; min-height: 42px; }
  .bar .btn-head .bh-main { font-size: 14px; }
  .bar .btn-head .bh-sub { display: none; }
  html { scroll-padding-top: calc(130px + env(safe-area-inset-top, 0px)); }
}

/* Real excerpts, readable cards, and ordinary page scrolling instead of a carousel. */
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.review-card.rev-shot {
  display: flex; flex-direction: column; gap: 18px; width: auto; height: auto; min-width: 0;
  padding: 24px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line);
  color: var(--ink); overflow: visible; text-align: left; box-shadow: none; font: inherit;
}
.review-card.rev-shot::after { display: none; }
.review-card.rev-shot > img { display: none; }
.review-person { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.review-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--stage); color: var(--role); font-size: 16px; }
.review-stars { color: #b17400; font-size: 20px; letter-spacing: 2px; line-height: 1; }
.review-quote { display: block; font-size: 16px; line-height: 1.65; color: var(--muted); }
.review-card .rev-more { position: static; display: block; margin-top: auto; padding-top: 8px; color: var(--accent); font-size: 14px; }
.review-card:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.review-card:hover { border-color: var(--accent); }
@media (max-width: 900px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .review-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } .review-card.rev-shot { padding: 22px; } }

/* Full reviews retain their original screenshot and scroll below a fixed close button. */
.doc-view { display: flex; flex-direction: column; justify-content: center; padding: 70px 16px 20px; }
.doc-scroll { width: 100%; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #8ba7ca transparent; text-align: center; padding: 4px 8px 12px; }
.doc-scroll img { display: block; margin: 0 auto; }
.doc-scroll p { margin-top: 14px; }
dialog#docDlg.is-review .doc-view img { width: min(720px, 100%); max-width: 100%; max-height: none; height: auto; }
.doc-close { z-index: 1; }
#okDlg .dlg-in { display: flex; flex-direction: column; overflow: hidden; max-height: var(--dialog-height); padding-top: 64px; }
.ok-body { display: grid; justify-items: center; gap: 12px; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 4px; }
.ok-who { overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
.calendar-choices { width: 100%; margin-top: 10px; text-align: left; }
.calendar-choices[hidden] { display: none; }
.calendar-choices summary { display: flex; align-items: center; justify-content: center; list-style: none; min-height: 48px; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; }
.calendar-choices summary::-webkit-details-marker { display: none; }
.calendar-options { display: grid; gap: 8px; padding-top: 10px; }
.calendar-options a { display: block; padding: 12px 14px; background: var(--bg); border-radius: 10px; font-size: 14px; text-decoration: none; }
.calendar-options a:hover { background: var(--stage); }
.calendar-choices summary:focus-visible, .calendar-options a:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.hero-grid > *, .hero-text > *, .hero-about, .cta > * { min-width: 0; }
h2, .hero-split { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 560px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
}
