/* ==========================================================================
   TOOYO Workspace Surface — Stage 9.2
   Mobile: exclusive booking / content modes. Desktop: dual floating panels.
   ========================================================================== */

/* Animate cover blur veil without filter: on <img> (prevents white flash). */
@property --cover-blur {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

/* Self-hosted Onest — never load fonts.googleapis / fonts.gstatic. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/Onest-Variable.woff2") format("woff2");
}

:root {
  --bg: #f5f4f0;
  --ink: #171717;
  /* Soft Ink = Neutral — no hardcoded gray (#3A3A3A). */
  --ink-soft: var(--neutral);
  /* Legacy alias — applyVisualTokens remaps --mute → Neutral for themed pages. */
  --mute: #666666;
  --neutral: #666666;
  --unavailable: #c5c5c5;
  /* Quiet Accent relative for inactive themed UI. */
  --inactive-accent: #969696;
  /*
   * Curtain — almost-white booking sheet + desktop chrome outside containers.
   * Fixed for all atmospheres. Atmosphere stays on --bg.
   */
  --curtain: #ffffff;
  --line: color-mix(in srgb, var(--ink) 8%, transparent);
  --pad: clamp(1rem, 3vw, 2rem);
  --font: "Onest", "Segoe UI", sans-serif;
  --font-display: var(--font);
  --font-ui: var(--font);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sheet: cubic-bezier(0.22, 0.61, 0.36, 1);
  --accent: #171717;
  --accent-contrast: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--curtain));
  --weekend-free: color-mix(in srgb, var(--accent) 55%, var(--inactive-accent));
  --weekend-selected: color-mix(in srgb, var(--accent) 75%, var(--inactive-accent));
  --radius-cta: 999px;
  --radius-field: 0.85rem;
  --radius-panel: 1.15rem;
  --radius-surface: 1.25rem;
  --header-h: 52px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --sheet-peek: 72px;
  --sheet-peek-visible: 72px;
  --sheet-lift: 0px;
  --sheet-max: 78dvh;
  --sheet-p: 1;
  --busy: var(--unavailable);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
  /* Hide native scrollbar gutters on public surface (touch + desktop). */
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.booking-scroll::-webkit-scrollbar,
.ws-content::-webkit-scrollbar,
.ws-legal-overlay-body::-webkit-scrollbar,
.ws-service-detail-scroll::-webkit-scrollbar,
.ws-lightbox-stage::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.booking-scroll,
.ws-content,
.ws-legal-overlay-body,
.ws-service-detail-scroll,
.ws-lightbox-stage {
  scrollbar-width: none;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-home {
  overflow: hidden;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

/* Expanded booking sheet: freeze background (sheet body scrolls alone).
   Scoped to is-mode-booking so leftover is-sheet-expanded cannot brick content tabs. */
body.page-home.is-mode-booking.is-sheet-expanded,
html.is-booking-sheet-open,
html.is-booking-sheet-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

body.page-home.is-mode-booking.is-sheet-expanded .ws-content,
body.page-home.is-mode-booking.is-sheet-expanded .ws-cover-wrap,
html.is-booking-sheet-open .ws-content,
html.is-booking-sheet-open .ws-cover-wrap,
html.is-booking-sheet-open .ws-layout {
  overscroll-behavior: none;
  touch-action: none;
  pointer-events: none;
}

body.page-home.is-mode-booking.is-sheet-expanded .booking-sheet,
html.is-booking-sheet-open .booking-sheet {
  pointer-events: auto;
  touch-action: auto;
}

html.is-booking-sheet-open .booking-sheet .booking-scroll {
  pointer-events: auto;
  touch-action: pan-y;
}
/* Date rail must keep pan-x — do not inherit booking-scroll pan-y. */
html.is-booking-sheet-open .booking-sheet .ws-date-rail,
html.is-booking-sheet-open .booking-sheet .ws-date-rail-track,
html.is-booking-sheet-open .booking-sheet .ws-date-rail-day {
  pointer-events: auto;
  touch-action: pan-x;
}

body.page-home.is-lightbox-open {
  overflow: hidden;
  touch-action: none;
}

/* Overlay scroll lock — preserves scrollY via body.top set in JS */
body.is-scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Skip link —— */
.skip-link {
  position: absolute;
  left: var(--pad);
  top: calc(var(--safe-top) + 0.5rem);
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-cta);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* —— Focus —— */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cta-primary:focus-visible,
.cta-ghost:focus-visible,
.day:focus-visible,
.time-slot:focus-visible,
.service-option:focus-visible,
.cal-arrow:focus-visible,
.ws-nav a:focus-visible,
.lang-toggle:focus-visible,
.sheet-mode-alt:focus-visible,
.back-link:focus-visible,
.last-service-btn:focus-visible,
.my-appt-btn:focus-visible,
.map-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Header (mobile chrome; desktop uses per-panel heads — no full-width site header)
   ========================================================================== */

.ws-header,
.ws-header-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) var(--pad) 0;
  background: var(--bg);
  /* Admin-like: no bottom border on public workspace chrome */
  border-bottom: 0;
}

.ws-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  max-width: 1600px;
  margin: 0 auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.25rem 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--inactive-accent);
  flex-shrink: 0;
}

.lang-toggle [data-lang-active] {
  color: var(--inactive-accent);
  opacity: 1;
  transition: color 0.2s var(--ease);
}

html[lang="ru"] .lang-toggle [data-lang-active="ru"],
html[lang="en"] .lang-toggle [data-lang-active="en"] {
  color: var(--ink);
}

.lang-sep {
  color: var(--inactive-accent);
  opacity: 0.7;
}

.ws-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  margin-left: auto;
  max-width: min(72vw, 28rem);
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.ws-nav::-webkit-scrollbar {
  display: none;
}

.ws-nav a {
  white-space: nowrap;
  padding: 0.5rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inactive-accent);
  transition: color 0.2s var(--ease);
}

.ws-nav a:hover,
.ws-nav a.is-active,
body[data-view="booking"] .ws-nav a[data-view-link="booking"],
body[data-view="services"] .ws-nav a[data-view-link="services"],
body[data-view="address"] .ws-nav a[data-view-link="address"],
body[data-view="portfolio"] .ws-nav a[data-view-link="portfolio"],
body[data-view="cover"] .ws-nav a[data-view-link="booking"] {
  color: var(--ink);
}

/* ==========================================================================
   Workspace layout — mobile first (<900px), tablet 600–899 same sheet model
   ========================================================================== */

.ws-surface.page-home,
body.page-home.ws-surface {
  background: var(--bg);
}

.ws-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--safe-top));
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

.ws-content {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.ws-booking {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  pointer-events: none;
}

.ws-booking .booking-sheet {
  pointer-events: auto;
}

/* ==========================================================================
   Cover + panes
   ========================================================================== */

.ws-pane {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.ws-pane.is-active,
.ws-pane:not([hidden]).is-active {
  display: flex;
}

.ws-pane[hidden] {
  display: none !important;
}

.ws-pane[data-pane="cover"].is-active {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Collapsed: cover sits between header and peek sheet (no underlap) */
  bottom: calc(var(--sheet-peek) + var(--safe-bottom) + var(--sheet-lift));
}

/* Expanded: cover may sit behind the sheet overlay */
.ws-layout:has(.booking-sheet[data-sheet-state="expanded"])
  .ws-pane[data-pane="cover"].is-active,
.ws-layout:has(.booking-sheet[style*="--sheet-p: 1"])
  .ws-pane[data-pane="cover"].is-active {
  bottom: 0;
}

.ws-cover {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #cfcbc4;
}

/*
 * Cover blur veil — blurs photos without filter: on <img> (avoids white flash).
 * --cover-blur set by applyHeroBlur / desktop expand.
 */
.ws-cover-wrap {
  --cover-blur: 0px;
  isolation: isolate;
}
.ws-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  -webkit-backdrop-filter: blur(var(--cover-blur, 0px));
  backdrop-filter: blur(var(--cover-blur, 0px));
  transition:
    backdrop-filter 0.85s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1)),
    -webkit-backdrop-filter 0.85s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1));
}

.ws-cover-track,
.ws-carousel-strip {
  --carousel-gap: 0.75rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--carousel-gap);
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ws-cover-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: auto;
  border-radius: var(--radius-surface, 1.25rem);
  overflow: hidden;
  background: #cfcbc4;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ws-cover-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  background: #cfcbc4;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ws-cover-empty {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  border-radius: var(--radius-surface, 1.25rem);
  background: linear-gradient(160deg, #f2f0eb 0%, #e0ddd6 55%, #cfcbc3 100%);
}

.ws-cover-track img,
.ws-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  user-select: none;
  -webkit-user-drag: none;
}

.ws-cover-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  top: auto;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
  pointer-events: none;
}

/* Preview: dots overlay on top of cover photo */
/* Questions tab preview: force success sheet open (JS --sheet-p alone is unreliable here). */
html.is-admin-preview[data-preview-success="1"] .booking-sheet {
  --sheet-p: 1;
  transform: translate3d(0, 0, 0);
}

html.is-admin-preview .ws-cover-dots {
  top: 0.75rem;
  bottom: auto;
}

.ws-cover-dots[hidden] {
  display: none !important;
}

.ws-cover-dots button,
.ws-cover-dot {
  pointer-events: auto;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ws-cover-dots button.is-active,
.ws-cover-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* Content panes (services / portfolio / address) */
.ws-pane[data-pane="services"],
.ws-pane[data-pane="portfolio"],
.ws-pane[data-pane="address"] {
  overflow-y: visible;
  padding: 1.25rem 0 0.5rem;
}

.ws-pane-head {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

/* SEO-3: pane titles may be h2 when document H1 is the master name. */
.ws-pane-head h1,
.ws-pane-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1.ws-space-name {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.ws-pane-lead {
  margin: 0.55rem 0 0;
  max-width: 36ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--mute);
}

.ws-pane-lead[hidden] {
  display: none !important;
  margin: 0 !important;
}

.ws-empty {
  margin: 1.5rem 0 0;
  padding: 1rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--mute);
}

.ws-inline-error {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #8a3b2a;
}

/* Footer inside content surface (mobile) */
.ws-footer {
  margin-top: auto;
  padding: 1.25rem 0 0.25rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.ws-footer-attr {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--mute);
  letter-spacing: 0.01em;
  text-align: center;
}

.ws-footer-tooyo {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  margin-left: 0.2em;
}

.ws-footer-tooyo:hover {
  color: var(--ink-soft);
}

.ws-footer-legal,
.ws-legal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.ws-footer-legal a,
.ws-legal-foot a {
  color: var(--mute);
  text-decoration: none;
}

.ws-footer-legal a:hover,
.ws-footer-legal a:focus-visible,
.ws-legal-foot a:hover,
.ws-legal-foot a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ws-booking-foot,
.ws-legal-foot {
  display: none;
}

.ws-legal-consents {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.85rem 0 0.95rem;
}

.ws-legal-consents .ws-privacy-consent {
  margin: 0;
}

.ws-privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.85rem 0 0.95rem;
  padding: 0;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft, var(--neutral));
  user-select: none;
}

.ws-privacy-consent input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.12rem 0 0;
  accent-color: var(--ink, #111);
}

.ws-privacy-consent-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ws-privacy-consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: normal;
}

/* ==========================================================================
   Booking sheet (mobile overlay)
   ========================================================================== */

.booking-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: var(--sheet-max);
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--curtain);
  border-radius: 1.25rem 1.25rem 0 0;
  border: 0;
  /* Soft lift only — Safari underlap is handled by sheet hang + root Curtain */
  box-shadow: 0 -12px 40px color-mix(in srgb, var(--ink) 12%, transparent);
  /* Peek uses visible floor only (legal-shell sets --sheet-peek == peek-visible). */
  transform: translate3d(
    0,
    calc((1 - var(--sheet-p)) * (100% - var(--sheet-peek-visible, var(--sheet-peek)))),
    0
  );
  transition:
    transform 0.85s var(--ease-sheet),
    height 0.55s var(--ease-sheet);
  will-change: transform, height;
  touch-action: none;
  /* Hang below fold for Safari underlap (0 in legal-shell mode). */
  padding-bottom: var(--sheet-beyond, 0px);
}

/* Date step: height is locked — never animate height (avoids curtain “dropping”) */
.booking-sheet[data-booking-step="date"] {
  transition: transform 0.85s var(--ease-sheet);
}

/* Contact step: keep grab usable; freeze motion only while the keyboard is open
   so date→service→time→phone height still animates smoothly. */
body.is-phone-compose .booking-sheet {
  touch-action: pan-y;
}

body.is-phone-compose.is-keyboard-open .booking-sheet,
body.is-phone-compose.is-keyboard-open .ws-layout {
  transition: none !important;
}

body.is-phone-compose .ws-cover-wrap,
body.is-phone-compose #wsCover {
  pointer-events: none;
}

.booking-sheet.is-sheet-boot {
  transition: none !important;
  transform: translate3d(0, 105%, 0) !important;
}

.booking-sheet.is-dragging {
  transition: none !important;
}

.booking-sheet[data-sheet-state="expanded"] {
  touch-action: auto;
}

.sheet-grab {
  flex-shrink: 0;
  padding: 0.55rem 1rem 0.15rem;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.sheet-grab:active {
  cursor: grabbing;
}

.sheet-handle {
  width: 2.5rem;
  height: 0.25rem;
  margin: 0 auto 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
}

.sheet-peek-head {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 1.4em;
  padding: 0 0 0.15rem;
  text-align: left;
}

.sheet-title-solo {
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.sheet-peek-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}

.sheet-mode-alt {
  appearance: none;
  margin: 0;
  padding: 0.15rem 0 0.2rem;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  background: none;
  cursor: pointer;
  text-align: right;
}

.booking-expand-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: var(--radius-field);
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.booking-expand-btn:hover {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.booking-expand-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.booking-expand-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.booking-hide-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: var(--radius-field);
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.booking-hide-btn:hover {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.booking-hide-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.booking-hide-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.booking-reveal-btn {
  display: none;
}

.sheet-mode-alt:hover {
  color: var(--ink-soft);
}

.booking-steps {
  flex-shrink: 0;
  display: flex;
  gap: 0.45rem;
  margin: 0;
  padding: 0.35rem 1rem 0.55rem;
  background: var(--curtain);
  z-index: 2;
}

.booking-steps[hidden] {
  display: none !important;
}

.booking-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 1rem calc(0.75rem + var(--safe-bottom));
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.booking-sheet[data-allow-scroll="true"] .booking-scroll {
  overflow-y: auto;
}

.booking-sheet[data-sheet-state="peek"] .booking-scroll {
  pointer-events: none;
  overflow: hidden;
}

/* CTAs stay solid accent fills. Bottom pinning is flex margin:auto on mobile
   panels — never override .cta-primary background (that blanked the pills). */

/* —— Steps —— */
.booking-steps .step {
  flex: 1;
  min-width: 0;
}

.booking-steps .step[hidden] {
  display: none !important;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.05rem 0.5rem;
  border-bottom: 1.5px solid var(--line);
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inactive-accent);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.step.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.step.is-done {
  color: var(--inactive-accent);
}

.step-num {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--inactive-accent);
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  color: var(--inactive-accent);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.step.is-active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.step.is-done .step-num {
  background: var(--accent-soft);
  border-color: var(--inactive-accent);
  color: var(--inactive-accent);
}

/* —— Panels —— */
.panel {
  display: none;
}

.panel.is-visible {
  display: block;
  animation: ws-rise 0.4s var(--ease);
}

/* —— Calendar —— */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.cal-month {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.cal-arrow {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  line-height: 1;
  background: var(--accent);
  color: var(--accent-contrast);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cal-arrow .cal-chevron {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  color: var(--accent-contrast);
}

.cal-arrow:hover,
.cal-arrow:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.cal-arrow:disabled,
.cal-arrow[aria-disabled="true"] {
  background: var(--unavailable);
  border-color: var(--unavailable);
  color: var(--accent-contrast);
  box-shadow: none;
  pointer-events: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--inactive-accent);
  transition: color 0.2s var(--ease);
}

.back-link .back-chevron {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.back-link:hover {
  color: var(--ink);
}

/* Booking flow — same outline pill on every step */
.ws-booking .back-link {
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 999px;
  background: transparent;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.ws-booking .back-link:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
  background: transparent;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(0.2rem, 1.2vw, 0.4rem);
}

.cal-weekdays {
  margin-bottom: 0.3rem;
}

.cal-weekday {
  text-align: center;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral);
}

.day {
  aspect-ratio: 1 / 1;
  width: min(100%, 2.5rem);
  height: auto;
  min-width: 0;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
  box-sizing: border-box;
  padding: 0;
  font-size: clamp(0.6875rem, 3.2vw, 0.8125rem);
  font-weight: 550;
  line-height: 1;
  /* Optical: previous +0.06em sat too low — lift slightly into true center */
  translate: 0 -0.04em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.day.is-empty {
  pointer-events: none;
  visibility: hidden;
}

.day.is-past,
.day.is-busy {
  /* Quiet gray on Curtain — not selectable */
  color: color-mix(in srgb, var(--unavailable) 62%, var(--curtain));
  background: color-mix(in srgb, var(--curtain) 92%, #c4c4c4);
  border-color: transparent;
  opacity: 1;
  pointer-events: none;
  font-weight: 500;
}

.day.is-free {
  /* Bookable: Inactive Accent chip, Accent digit */
  background: var(--inactive-accent);
  border-color: transparent;
  color: var(--accent);
  font-weight: 650;
}

.day.is-free:hover {
  transform: scale(1.05);
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.day.is-selected {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
  font-weight: 650;
}

.day.is-today:not(.is-selected) {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

/* —— Service list (booking) —— */
.last-service {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  border-radius: var(--radius-field);
  background: var(--accent-soft);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.last-service-btn {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.service-list {
  display: grid;
  gap: 0.65rem;
}

.service-option {
  display: grid;
  grid-template-columns: 4.25rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem 0.55rem 0.55rem;
  text-align: left;
  border: 1px solid var(--accent);
  border-radius: var(--radius-panel);
  background: var(--curtain);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}

.service-option:hover,
.service-option:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.service-option.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

.service-option.is-selected h4,
.service-option.is-selected p,
.service-option.is-selected .service-meta {
  color: var(--accent-contrast);
}

.service-option img,
.service-thumb {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: calc(var(--radius-panel) - 0.35rem);
  object-fit: cover;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--ink) 6%, var(--bg)),
    color-mix(in srgb, var(--ink) 14%, var(--bg))
  );
}

.service-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--ink) 38%, transparent);
}

.service-thumb img {
  width: 100%;
  height: 100%;
}

.service-copy {
  min-width: 0;
}

.service-option h4 {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.service-option p {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--neutral);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
  color: var(--neutral);
}

/* —— Time —— */
.time-summary {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-soft);
  font-weight: 500;
  text-align: right;
}

.ws-step-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.65rem;
}

.ws-step-heading .back-link {
  flex-shrink: 0;
  margin-bottom: 0;
  /* Align with first summary line when summary wraps to 2 lines. */
  margin-top: 0.1rem;
}

.ws-step-heading .time-summary {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  /* Reserve 2 lines so selecting a time does not push the rail down. */
  min-height: calc(1.35em * 2);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.time-slot {
  padding: 0.75rem 0.35rem;
  border-radius: var(--radius-cta);
  border: 1px solid var(--accent);
  background: var(--curtain);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 550;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.time-slot:hover:not(.is-busy):not(.is-selected),
.time-slot:focus-visible:not(.is-busy):not(.is-selected) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.time-slot.is-busy {
  background: transparent;
  color: var(--unavailable);
  border-color: transparent;
  opacity: 0.72;
  pointer-events: none;
  text-decoration: line-through;
}

.time-slot.is-selected {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

/* —— CTAs —— */
.cta-primary,
.cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 1.1rem;
  border-radius: var(--radius-cta);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.cta-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid var(--accent);
  /* Guard against accidental sticky/gradient overrides blanking the pill. */
  background-image: none;
}

.cta-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 88%, black);
  border-color: color-mix(in srgb, var(--accent) 88%, black);
  filter: none;
}

.cta-primary:disabled {
  background: var(--unavailable);
  border-color: var(--unavailable);
  color: var(--accent-contrast);
  opacity: 1;
}

.cta-ghost {
  margin-top: 0.65rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.cta-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* —— Telegram notify —— */
.tg-notify-optin {
  margin: 0.85rem 0 0.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.tg-notify-copy {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--mute);
}

.tg-notify-link {
  margin-top: 0;
}

.tg-notify-after {
  margin: 1rem 0 0.35rem;
  padding: 0;
  text-align: center;
  border: none;
  background: transparent;
}

/* Compact Telegram deep-link CTA (click only — no auto-open). */
.tg-notify-btn {
  --tg-blue: #2aabee;
  --tg-blue-press: #229ed9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--tg-blue);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tg-notify-btn:hover {
  background: var(--tg-blue-press);
  color: #fff;
}

.tg-notify-btn:active {
  background: var(--tg-blue-press);
  transform: translateY(1px);
}

.tg-notify-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tg-blue) 55%, #fff);
  outline-offset: 3px;
}

.tg-notify-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

/* —— Success —— */
.booking-success {
  text-align: center;
  padding: 1.1rem 0.25rem 0.5rem;
  animation: ws-rise 0.45s var(--ease);
}

.success-kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.booking-success h3 {
  margin: 0.5rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}

.booking-success p,
.success-note {
  margin: 0 0 0.65rem;
  color: var(--mute);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.success-details {
  margin: 0.85rem 0 1rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.45;
  white-space: normal;
}

.booking-success-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.85rem;
}

/*
 * Share + Reminders: one shared box on one baseline.
 * Beat .booking-success .cta-* / .cta-ghost margin and .booking-success-share width:100%.
 */
.booking-success-actions > .cta-primary,
.booking-success-actions > .cta-ghost {
  margin: 0 !important;
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  align-self: center;
  box-sizing: border-box;
  min-height: 2.75rem;
  height: 2.75rem;
  max-height: 2.75rem;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.2;
}

.booking-success .cta-primary,
.booking-success .cta-ghost {
  margin-top: 0.85rem;
}

/* FAQ on success — reuse TOOYO closed-testing accordion language (no pills) */
.booking-success-faq {
  /* Keep gap from action buttons even without the «Вопросы» title. */
  margin: 0.85rem 0 0;
  text-align: left;
}

.booking-success-faq[hidden],
.booking-success-share[hidden] {
  display: none !important;
}

.booking-success-faq-title {
  display: none !important;
}

/* Success: hide sheet «Запись» title; grab handle stays. */
.booking-sheet.is-success-chrome .sheet-title-solo {
  visibility: hidden;
}

.booking-success-remind {
  background: #229ed9 !important;
  border-color: #229ed9 !important;
  color: #fff !important;
}
.booking-success-remind:hover:not(:disabled) {
  filter: brightness(1.06);
}

.booking-success-faq-list.faq,
.booking-success-faq .faq {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.booking-success-faq .faq-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
}

.booking-success-faq .faq-q {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  align-items: center;
  column-gap: 0.85rem;
  margin: 0;
  padding: 0.95rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  text-align: left;
  background: transparent;
  touch-action: manipulation;
  user-select: none;
}

.booking-success-faq .faq-q::-webkit-details-marker {
  display: none;
}

.booking-success-faq .faq-q-text {
  min-width: 0;
  white-space: normal;
}

.booking-success-faq .faq-q::after {
  content: "";
  box-sizing: border-box;
  width: 0.55rem;
  height: 0.55rem;
  margin: 0 auto;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.45s var(--ease, ease);
  transform-origin: center;
}

.booking-success-faq .faq-item.is-open .faq-q::after,
.booking-success-faq .faq-item[open] .faq-q::after {
  transform: translateY(0.12rem) rotate(225deg);
}

.booking-success-faq .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.45s var(--ease, ease),
    opacity 0.35s var(--ease, ease);
}

.booking-success-faq .faq-item.is-open .faq-a,
.booking-success-faq .faq-item[open] .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
}

.booking-success-faq .faq-a-inner {
  overflow: hidden;
  min-height: 0;
}

.booking-success-faq .faq-a-inner > *:last-child {
  padding-bottom: 0.95rem;
}

.booking-success-faq .faq-a p,
.booking-success-faq .faq-answer {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft, var(--mute));
  font-weight: 400;
  text-align: left;
}

.booking-success-faq .faq-a p:last-child,
.booking-success-faq .faq-answer:last-child {
  margin-bottom: 0;
}

.booking-success-share {
  width: 100%;
}

.tooyo-flash-toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(120%);
  z-index: 80;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tooyo-flash-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— My appointments —— */
.my-appointment {
  text-align: center;
  padding: 0.5rem 0.25rem;
  animation: ws-rise 0.45s var(--ease);
}

.my-appt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.my-appt-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.625rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-field);
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.my-appt-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.my-appt-btn-notify {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

.my-appt-btn-notify:hover {
  background: var(--accent-soft);
}

.my-appt-btn-disconnect {
  background: #2aabee;
  color: #fff;
  border-color: #2aabee;
}

.my-appt-tg-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.my-appt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  text-align: left;
}

.my-appt-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  padding: 0.65rem 0.75rem 0.5rem;
  background: var(--bg);
}

.my-appt-tile-when {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 0.15rem;
}

.my-appt-tile-date {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}

.my-appt-tile-time {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
}

.my-appt-tile-service {
  margin: 0 0 0.4rem;
  color: var(--mute);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.my-appt-tile-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
}

.my-appt-badge {
  display: inline-block;
  margin: 0;
  padding: 0.15rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border: 1px solid transparent;
  align-self: center;
}

.my-appt-tile-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
  text-align: right;
}

.my-appt-badge.is-confirmed {
  color: #1a5c34;
  background: #eef6f1;
  border-color: #d5e8dc;
}

.my-appt-badge.is-pending {
  color: #6b5420;
  background: #f7f3ea;
  border-color: #ebe2d0;
}

.my-appt-empty {
  margin: 0.5rem 0 0;
  color: var(--mute);
  font-size: 0.875rem;
  line-height: 1.5;
}

.my-appointment .cta-primary {
  margin-top: 1.15rem;
}

.my-appt-cancel {
  margin-top: 0.5rem;
  width: 100%;
  font-size: 0.75rem;
  min-height: 2.5rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.booking-sheet.is-my-appointment .booking-steps,
.booking-sheet.is-my-appointment .panel,
.booking-sheet.is-my-appointment .booking-success {
  display: none !important;
}

.booking-sheet.is-my-appointment[data-allow-scroll="true"] .booking-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1 1 auto;
}

.booking-sheet.is-my-appointment .my-appointment {
  min-height: 0;
}

/* ==========================================================================
   Content components — services / portfolio / address
   ========================================================================== */

.service-cards {
  display: grid;
  gap: 0.85rem;
  max-width: 42rem;
}

.service-card {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  border-bottom: 0;
}

.service-card-row {
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.9rem 1rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--curtain, #ffffff);
}

.service-card-thumb {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: calc(var(--radius-surface) - 0.2rem);
  overflow: hidden;
  background: #e8e6e1;
  flex-shrink: 0;
}

.service-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  content-visibility: visible;
}

.service-card-thumb.is-empty {
  background: linear-gradient(145deg, #eceae4, #d4d0c8);
}

.service-card-body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.service-card-cat {
  margin: 0;
  font-size: 0.75rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}

.service-card-book {
  margin-top: 0.35rem;
  width: fit-content;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
}

.service-card-media {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-field);
  overflow: hidden;
  background: linear-gradient(135deg, #d8d5ce 0%, #8a8680 48%, #111 100%);
  position: relative;
}

.service-card-media::after {
  content: attr(data-label);
  position: absolute;
  left: 0.9rem;
  bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.service-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.service-card .desc {
  margin: 0;
  color: var(--mute);
  font-size: 0.875rem;
  line-height: 1.5;
}

.service-card-more {
  margin: 0.15rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  width: fit-content;
}

.service-card .price-row,
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.35rem;
  border-top: 0;
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.portfolio-grid[data-mode="carousel"] {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
  position: relative;
}

.portfolio-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  touch-action: pan-y;
  cursor: pointer;
}

.portfolio-carousel-strip {
  --carousel-gap: 0.75rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--carousel-gap);
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.portfolio-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: auto;
  border-radius: var(--radius-field, 1rem);
  overflow: hidden;
  background: #cfcbc4;
  isolation: isolate;
  transform: translateZ(0);
}

.portfolio-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.portfolio-grid[data-mode="carousel"] {
  position: relative;
  gap: 0;
}

.portfolio-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  min-height: 0;
  pointer-events: none;
}

.portfolio-carousel-dots[hidden] {
  display: none;
}

.portfolio-carousel-dot {
  pointer-events: auto;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.portfolio-carousel-dot.is-active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.portfolio-item {
  aspect-ratio: 3 / 4;
  border-radius: 0;
  overflow: hidden;
  background: #cfcbc4;
  position: relative;
  margin: 0;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #cfcbc4;
  /* Stabilize during parent scroll / compositor thrash (iOS Safari) */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  content-visibility: visible;
}

.portfolio-item span {
  display: none;
}

.address-block {
  padding: 0.25rem 0 0;
  max-width: 36rem;
}

/* Mobile: toolbar is layout-transparent so stacking stays unchanged. */
.address-toolbar,
.address-copy {
  display: contents;
}

/* Match services/portfolio lead + service .desc (Neutral / --mute). */
.address-desc {
  margin: 0.85rem 0 1.15rem;
  font-family: var(--font-ui, var(--font));
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--mute);
}

.address-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.address-city {
  margin: 0.55rem 0 0;
  color: var(--mute);
  font-size: 0.875rem;
}

.howto {
  margin: 1.35rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.howto li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.howto li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
}

.ws-route-carousel {
  position: relative;
  width: 100%;
  max-width: 36rem;
  aspect-ratio: 3 / 4;
  margin: 1.25rem auto 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.ws-route-track {
  --carousel-gap: 0.75rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--carousel-gap);
  width: 100%;
  height: 100%;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.ws-route-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: auto;
  border-radius: var(--radius-surface, 1.25rem);
  overflow: hidden;
  background: #e8e6e1;
  isolation: isolate;
  transform: translateZ(0);
}

.ws-route-slide img,
.ws-route-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Public: dots below photo; preview: on top */
.ws-route-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: none;
}

html.is-admin-preview .ws-route-dots {
  top: 0.75rem;
  bottom: auto;
}

.ws-route-dots[hidden] {
  display: none;
}

.ws-route-dots button,
.ws-route-dot {
  pointer-events: auto;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.ws-route-dots button.is-active,
.ws-route-dot.is-active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.map-link {
  max-width: none;
  width: 100%;
  /* Keep gap from address line when description is hidden (display:contents flattens toolbar). */
  margin-top: 1.15rem;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
}

.address-desc:not([hidden]) {
  margin-bottom: 0;
}

.address-desc:not([hidden]) + .map-link {
  margin-top: 1.15rem;
}

/* ==========================================================================
   Short mobile heights
   ========================================================================== */

@media (max-height: 740px) {
  :root {
    --sheet-peek-visible: 64px;
  }

  .booking-steps {
    margin: 0.25rem 0 0.4rem;
  }

  .day {
    width: min(100%, 2.1rem);
    font-size: 0.6875rem;
  }

  .cal-arrow {
    width: 1.875rem;
    height: 1.875rem;
  }

  .sheet-title-solo {
    font-size: 1.35rem;
  }
}

@media (max-height: 640px) {
  :root {
    --sheet-peek-visible: 58px;
    --header-h: 48px;
  }

  .day {
    width: min(100%, 1.85rem);
    font-size: 0.625rem;
  }
}

/* Browser chrome — mobile only. Peek floor is viewport-relative; hang is JS. */
@media (max-width: 899px) {
  body.page-home:not(.tg-webapp) {
    --sheet-peek-visible: clamp(7.25rem, 22dvh, 10.5rem);
    --sheet-lift: 0px;
  }

  @media (max-height: 740px) {
    body.page-home:not(.tg-webapp) {
      --sheet-peek-visible: clamp(6.5rem, 24dvh, 9.5rem);
      --sheet-lift: 0px;
    }
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .ws-nav {
    max-width: none;
    gap: 0.35rem;
  }

  .ws-nav a {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }

  .booking-sheet {
    left: 0;
    right: 0;
    max-width: none;
  }

  .time-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .my-appt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Desktop (>=900px) — content density tweaks only.
   Dual floating-panel composition is owned by Stage 9.2 pass #1 below.
   ========================================================================== */

@media (min-width: 900px) {
  .ws-nav {
    max-width: none;
  }

  .ws-nav a {
    font-size: 0.75rem;
    padding: 0.55rem 0.75rem;
  }

  .sheet-title-solo {
    font-size: 1.35rem;
  }

  .my-appt-grid {
    grid-template-columns: 1fr;
  }

  .time-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .portfolio-grid[data-mode="carousel"] {
    max-width: 28rem;
  }

  .service-card-row {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .ws-pane-head h1,
  .ws-pane-head h2 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
  }

  .ws-pane[data-pane="services"],
  .ws-pane[data-pane="portfolio"],
  .ws-pane[data-pane="address"] {
    padding: 0;
    max-width: none;
  }
}

@media (min-width: 1280px) {
  .service-cards {
    max-width: 48rem;
  }
}

@media (max-width: 520px) {
  .service-card-row {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    padding: 0.8rem 0.75rem;
    gap: 0.75rem;
  }

  .service-card-thumb {
    width: 4.5rem;
    height: 4.5rem;
  }
}

/* ==========================================================================
   Telegram Mini App
   ========================================================================== */

html.tg-webapp,
body.tg-webapp {
  overscroll-behavior: none;
  background: var(--bg);
  background-color: var(--bg);
}

html.tg-webapp {
  --tg-chrome-top: 110px;
  --safe-top: var(--tg-chrome-top);
  --safe-bottom: 8px;
  --sheet-lift: 0px;
  --header-h: 48px;
  --sheet-peek-visible: 68px;
  --sheet-max: 72dvh;
}

html.tg-webapp .ws-header,
body.tg-webapp .ws-header {
  top: 0;
  height: auto;
  min-height: calc(var(--tg-chrome-top) + var(--header-h));
  padding: var(--tg-chrome-top) var(--pad) 0;
  align-items: flex-end;
  /* Same atmosphere as page — white strip looked “detached” in Mini App */
  background: var(--bg);
  z-index: 70;
}

html.tg-webapp .ws-header-inner {
  height: var(--header-h);
}

html.tg-webapp .ws-layout,
body.tg-webapp .ws-layout {
  padding-top: calc(var(--tg-chrome-top) + var(--header-h));
}

html.tg-webapp .booking-sheet {
  bottom: 0;
  max-height: none;
}

@media (min-width: 900px) {
  html.tg-webapp .ws-booking .booking-sheet {
    max-height: none;
    bottom: auto;
  }
}

/* ==========================================================================
   Legacy inner pages (services.html / address.html / portfolio.html)
   Shared component styles; no phone-shell cage.
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) var(--pad) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  margin-left: auto;
  overflow-x: auto;
  max-width: min(72vw, 28rem);
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  white-space: nowrap;
  padding: 0.5rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inactive-accent);
}

.top-nav a.is-active,
.top-nav a:hover {
  color: var(--ink);
}

.page-inner {
  min-height: 100dvh;
  padding: calc(var(--header-h) + var(--safe-top) + 1.25rem) var(--pad) 4rem;
  background: var(--bg);
  max-width: 56rem;
  margin-inline: auto;
}

.page-inner .section-head {
  margin-bottom: 1.75rem;
}

.page-inner h1,
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-lead,
.section-head p:last-child {
  margin: 0.55rem 0 0;
  max-width: 36ch;
  color: var(--mute);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 0.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-footer p {
  margin: 0;
  color: var(--mute);
  font-size: 0.8125rem;
}

.site-footer a {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-chip {
  display: none !important;
}

html.tg-webapp .topbar,
body.tg-webapp .topbar {
  height: auto;
  min-height: calc(var(--tg-chrome-top, 110px) + var(--header-h));
  padding: var(--tg-chrome-top, 110px) var(--pad) 0.5rem;
  align-items: flex-end;
}

html.tg-webapp .topbar-left {
  display: none !important;
}

html.tg-webapp .top-nav {
  width: 100%;
  max-width: none;
  margin: 0;
  justify-content: space-between;
}

html.tg-webapp .page-inner {
  padding-top: calc(var(--tg-chrome-top, 110px) + var(--header-h) + 1.5rem);
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes ws-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .booking-sheet,
  .ws-cover-track {
    transition: none !important;
  }
}

/* ==========================================================================
   Stage 9.2 pass #2 — mobile header/footer/cover/blur + desktop side-by-side
   ========================================================================== */

:root {
  --radius-surface: 1.25rem;
  --ws-gap: 1.5rem;
  --ws-panel-w-booking: 20rem;
  --ws-panel-w-content: 26rem;
  --sheet-p: 0;
  --cover-blur-max: 8px;
}

html,
body.page-home.ws-surface {
  background: var(--bg);
}

/* —— Mobile modes —— */
@media (max-width: 899px) {
  .ws-header-mobile {
    display: block;
  }

  .ws-header-inner {
    max-width: none;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
  }

  /* EN left, nav right */
  .ws-header-mobile .lang-toggle {
    order: 0;
    margin-right: 0;
    justify-content: flex-start;
    flex: 0 0 auto;
    letter-spacing: 0.08em;
    font-size: 0.625rem;
  }

  .ws-header-mobile .ws-nav-mobile {
    order: 1;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    justify-content: flex-end;
    flex: 1 1 0;
    min-width: 0;
    gap: 0;
  }

  .ws-header-mobile .ws-nav-mobile a {
    padding: 0.45rem 0.35rem;
    font-size: 0.625rem;
    letter-spacing: 0.04em;
  }

  .ws-booking-head,
  .ws-content-head {
    display: none !important;
  }

  .ws-layout {
    display: block;
    position: relative;
    min-height: 100dvh;
    height: auto;
    padding-top: calc(var(--header-h) + var(--safe-top));
    overflow: hidden;
    max-width: none;
    margin: 0;
    border: 0;
    background: transparent;
  }

  /* Content mode: booking fully gone; sticky attribution via flex */
  body.is-mode-content {
    overflow: auto;
  }

  body.is-mode-content .ws-layout {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }

  body.is-mode-content .ws-booking {
    display: none !important;
  }

  body.is-mode-content .ws-content {
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1 1 auto;
    min-height: calc(100dvh - var(--header-h) - var(--safe-top));
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.is-mode-content .ws-content-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: calc(100dvh - var(--header-h) - var(--safe-top));
    overflow: visible;
    padding: 0.75rem var(--pad) 1rem;
  }

  /* Admin Preview: clip to phone frame — no inner scroll for portfolio/services. */
  html.is-admin-preview body.is-mode-content .ws-content,
  html.is-admin-preview body.is-mode-content .ws-content-body {
    overflow: hidden;
    min-height: 0;
    height: 100%;
  }

  html.is-admin-preview body.is-mode-content .ws-content-main {
    overflow: hidden;
    min-height: 0;
  }

  html.is-admin-preview .portfolio-grid {
    gap: 5px;
    overflow: hidden;
  }

  html.is-admin-preview .portfolio-grid[data-mode="carousel"] {
    overflow: hidden;
  }

  html.is-admin-preview .portfolio-item img,
  html.is-admin-preview .service-card-thumb img,
  html.is-admin-preview .ws-route-slide img,
  html.is-admin-preview .cover-slide img {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    content-visibility: visible;
  }

  body.is-mode-content .ws-content-main {
    flex: 0 0 auto;
  }

  body.is-mode-content .ws-pane[data-pane="services"],
  body.is-mode-content .ws-pane[data-pane="portfolio"],
  body.is-mode-content .ws-pane[data-pane="address"] {
    padding: 0.25rem 0 0.5rem;
  }

  body.is-mode-content .ws-footer {
    margin-top: auto;
    padding: 1.25rem 0 0.35rem;
    border-top: 0;
  }

  body.is-mode-content .ws-footer-attr {
    font-size: 0.625rem;
    letter-spacing: 0.02em;
  }

  /*
   * Booking mode — Curtain chrome. Legal-shell (default mobile): viewport-sized
   * body, no --sheet-beyond hang. Scenic Atmosphere stays on .ws-layout cover.
   */
  body.is-mode-booking,
  body.is-mode-booking.page-home.ws-surface {
    overflow: hidden;
    background: var(--curtain);
    height: var(--app-height, 100dvh);
    min-height: 100dvh;
  }

  html:has(body.is-mode-booking) {
    background: var(--curtain);
    height: var(--app-height, 100dvh);
    min-height: 100%;
  }

  body.is-mode-booking .ws-layout {
    height: var(--app-height, 100dvh);
    min-height: 100dvh;
    overflow: hidden;
    background: var(--bg);
  }

  body.is-mode-booking .ws-content {
    display: none !important;
  }

  body.is-mode-booking .ws-booking {
    display: block;
    position: absolute;
    inset: calc(var(--header-h) + var(--safe-top)) 0 0;
    z-index: 1;
    pointer-events: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  /*
   * Cover fills header → top of peek sheet (visible floor only).
   */
  body.is-mode-booking .ws-cover-wrap {
    --cover-inset: 0.85rem;
    display: block;
    position: absolute;
    top: var(--cover-inset);
    left: var(--cover-inset);
    right: var(--cover-inset);
    bottom: calc(var(--sheet-peek-visible, var(--sheet-peek)) + var(--cover-inset));
    width: auto;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    transform: none;
    z-index: 1;
    pointer-events: auto;
    overflow: hidden;
    background: transparent;
    /* Radius on the wrap — filter:blur on .ws-cover otherwise paints square corners. */
    border-radius: var(--radius-surface, 1.25rem);
  }

  body.is-mode-booking .ws-cover {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-surface, 1.25rem);
    overflow: hidden;
    background: transparent;
    transition: none;
  }

  body.is-mode-booking .ws-cover-slide img,
  body.is-mode-booking .ws-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /*
   * Booking sheet = legal-like overlay: fixed to the viewport, CSS height,
   * transform peek↔expand only. Cannot fully dismiss (p floor = peek).
   */
  body.is-mode-booking .booking-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    pointer-events: auto;
    z-index: 40;
    height: var(--sheet-shell-h, var(--sheet-max));
    max-height: calc(100dvh - var(--header-h) - var(--safe-top) - 8px);
    padding-bottom: max(var(--safe-bottom), 0px);
    /* No hang past the fold — matches legal overlay stability. */
    box-sizing: border-box;
  }

  body.is-mode-booking.is-phone-compose .booking-sheet,
  body.is-mode-booking.is-phone-compose.is-keyboard-open .booking-sheet {
    /* Height stays locked while the keyboard is up (no curtain drop). */
    transition: transform 0.85s var(--ease-sheet);
  }
}

/* —— Desktop: Cover + Booking overlay | Content surface —— */
@media (min-width: 900px) {
  :root {
    --ws-gap: clamp(1.5rem, 2.75vw, 2.75rem);
    --ws-panel-w-booking: clamp(26rem, 36vw, 34rem);
    --ws-panel-w-content: clamp(30rem, 42vw, 42rem);
    --desk-surface-h: min(48rem, calc(100dvh - 5.25rem));
    --desk-booking-inset: 1rem;
    /* Tall enough that date calendar + «Выберите дату» always fit when collapsed. */
    --desk-booking-frac: 0.58;
    --desk-elevate: 0 12px 36px rgba(17, 17, 17, 0.08);
    /* Match mobile sheet ease (same expand + collapse). */
    --desk-expand-ease: var(--ease-sheet);
    --desk-collapse-ease: var(--ease-sheet);
    --desk-expand-ms: 0.55s;
    /* ~⅓ tighter than the shared 0.55rem mobile hint gap. */
    --desk-cta-hint-gap: 0.37rem;
  }

  /*
   * Freeze page chrome geometry: no scrollbar gutter / overflow toggles on hover
   * or when overlays open (that was causing the page to “jump”).
   */
  html,
  body,
  body.page-home,
  body.page-home.is-service-detail-open,
  body.page-home.is-lightbox-open {
    overflow: hidden !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
  }

  .ws-header-mobile {
    display: none !important;
  }

  .ws-desktop-attr {
    display: none !important;
  }

  /* Left column attribution — outside/below booking surface */
  .ws-booking-foot {
    display: block;
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    margin: 1.1rem 0 0;
    padding: 0;
    font-size: 0.6875rem;
    color: var(--mute);
    letter-spacing: 0.01em;
    text-align: center;
  }

  .ws-booking-foot .ws-footer-attr {
    font-size: inherit;
  }

  /* Legal links — outside the right content panel (grid row under it) */
  .ws-legal-foot {
    display: flex;
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    margin: 1.1rem 0 0;
    padding: 0;
    font-size: 0.6875rem;
    line-height: 1.4;
    text-align: center;
  }

  .ws-footer-mobile {
    display: none !important;
  }

  html,
  body.page-home,
  body.page-home.ws-surface {
    overflow: auto;
    /* Desktop: page chrome under the two panels is always white (not atmosphere). */
    background: #ffffff !important;
    background-color: #ffffff !important;
  }

  .ws-layout {
    display: grid !important;
    grid-template-columns: var(--ws-panel-w-booking) var(--ws-panel-w-content);
    grid-template-rows: var(--desk-surface-h) auto;
    justify-content: center;
    align-items: stretch;
    column-gap: var(--ws-gap);
    row-gap: 0;
    flex-direction: unset !important;
    min-height: 100dvh;
    height: auto !important;
    padding: clamp(1.5rem, 3.5vh, 2.75rem) clamp(1.25rem, 3.5vw, 2.75rem)
      clamp(1.25rem, 3vh, 2rem) !important;
    box-sizing: border-box;
    overflow: auto;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent;
  }

  /* —— Left: large cover surface; booking nested inside —— */
  .ws-booking.ws-panel,
  .ws-booking {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    max-width: none;
    flex: unset !important;
    height: var(--desk-surface-h) !important;
    min-height: var(--desk-surface-h);
    max-height: var(--desk-surface-h);
    pointer-events: auto !important;
    z-index: 2;
    grid-column: 1;
    grid-row: 1;
    display: block !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .ws-booking-head {
    display: none !important;
  }

  .ws-cover-wrap {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: var(--radius-surface);
    overflow: hidden;
    z-index: 1;
    pointer-events: auto;
    background: transparent;
    box-shadow: var(--desk-elevate);
  }

  .ws-cover-wrap .ws-cover {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-surface, 1.25rem);
    overflow: hidden;
    filter: none;
  }

  /* Desktop expand: blur via veil, not filter on photos. */
  body.is-booking-expanded .ws-cover-wrap {
    --cover-blur: 8px;
  }

  body.is-booking-hidden .ws-cover-wrap {
    --cover-blur: 0px;
  }

  .ws-cover-wrap .ws-cover-slide img,
  .ws-cover-wrap .ws-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /*
   * Booking nested in cover.
   * Collapsed: height hugs content (cap ≈ 45% visual share).
   * Expanded: grows upward from bottom (top stays auto — no jump).
   */
  .ws-booking .booking-sheet {
    --_inset: var(--desk-booking-inset);
    --_span: calc(100% - (2 * var(--_inset)));
    position: absolute !important;
    left: var(--_inset) !important;
    right: var(--_inset) !important;
    bottom: var(--_inset) !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    /* Floor so zoom/viewport quirks never clip the date hint. */
    min-height: min(22.5rem, calc(0.58 * var(--_span))) !important;
    max-height: calc(var(--desk-booking-frac) * var(--_span) + 14px) !important;
    z-index: 6;
    display: flex;
    flex-direction: column;
    border-radius: calc(var(--radius-surface) - 0.15rem) !important;
    border: 1px solid var(--line) !important;
    background: var(--curtain) !important;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.1) !important;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    transition:
      min-height var(--desk-expand-ms) var(--desk-expand-ease),
      max-height var(--desk-expand-ms) var(--desk-expand-ease),
      opacity var(--desk-expand-ms) var(--desk-expand-ease),
      transform var(--desk-expand-ms) var(--desk-expand-ease),
      visibility var(--desk-expand-ms) var(--desk-expand-ease) !important;
    touch-action: auto;
    will-change: min-height, max-height, opacity, transform;
    padding-bottom: 0;
    overflow: hidden;
    pointer-events: auto;
  }

  .ws-booking .booking-sheet.is-sheet-boot {
    transform: none !important;
  }

  body.is-booking-expanded .ws-booking .booking-sheet {
    min-height: var(--_span) !important;
    max-height: var(--_span) !important;
    transition-timing-function: var(--desk-expand-ease) !important;
  }

  body.is-booking-hidden .ws-booking .booking-sheet {
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transform: translateY(0.65rem) scale(0.985) !important;
  }

  .booking-expand-btn,
  .booking-hide-btn {
    display: inline-flex;
  }

  body.is-booking-expanded .booking-expand-icon.is-expand {
    display: none;
  }

  body.is-booking-expanded .booking-expand-icon.is-collapse {
    display: block !important;
  }

  body:not(.is-booking-expanded) .booking-expand-icon.is-collapse {
    display: none !important;
  }

  /* Reveal control — only when booking is hidden */
  .booking-reveal-btn {
    position: absolute;
    right: calc(var(--desk-booking-inset) + 0.35rem);
    bottom: calc(var(--desk-booking-inset) + 0.35rem);
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 2.75rem;
    width: 2.75rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    box-shadow: 0 6px 20px rgba(17, 17, 17, 0.1);
    cursor: pointer;
    overflow: hidden;
    transform-origin: right center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      width 0.34s var(--desk-expand-ease),
      padding 0.34s var(--desk-expand-ease),
      opacity var(--desk-expand-ms) var(--desk-expand-ease),
      visibility var(--desk-expand-ms) var(--desk-expand-ease),
      box-shadow 0.25s var(--ease);
  }

  body.is-booking-hidden .booking-reveal-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .booking-reveal-btn:hover,
  .booking-reveal-btn:focus-visible {
    width: 7.25rem;
    padding: 0 1rem 0 0.85rem;
    justify-content: flex-start;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
  }

  .booking-reveal-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .booking-reveal-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    display: block;
  }

  .booking-reveal-label {
    display: block;
    max-width: 0;
    margin-left: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    transition:
      max-width 0.34s var(--desk-expand-ease),
      margin 0.34s var(--desk-expand-ease),
      opacity 0.28s var(--desk-expand-ease);
  }

  .booking-reveal-btn:hover .booking-reveal-label,
  .booking-reveal-btn:focus-visible .booking-reveal-label {
    max-width: 4.5rem;
    margin-left: 0.45rem;
    opacity: 1;
  }

  .ws-booking .sheet-handle {
    display: none;
  }

  .ws-booking .sheet-grab {
    padding: 0.45rem 0.85rem 0.15rem;
    cursor: default;
    touch-action: auto;
    flex-shrink: 0;
  }

  .ws-booking .sheet-grab:active {
    cursor: default;
  }

  .ws-booking .sheet-title-solo {
    font-size: 1.15rem;
  }

  .ws-booking .booking-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0.85rem 0.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  .ws-booking .booking-sheet[data-sheet-state="peek"] .booking-scroll {
    pointer-events: auto;
    overflow-y: auto;
    /* Collapsed: hug calendar so «Выберите дату» stays in the peek. */
    flex: 0 1 auto;
  }

  .ws-booking .booking-steps {
    margin: 0.15rem 0 0.35rem;
    gap: 0.3rem;
    flex-shrink: 0;
  }

  .ws-booking .step {
    padding: 0.3rem 0.05rem;
  }

  .ws-booking .cal-nav {
    margin-bottom: 0.15rem;
  }

  .ws-booking .cal-arrow {
    width: 1.85rem;
    height: 1.85rem;
  }

  .ws-booking .cal-arrow .cal-chevron {
    width: 0.95rem;
    height: 0.95rem;
  }

  /* Back pills: never stretch full-width (grid panels otherwise stretch them). */
  .ws-booking .back-link {
    width: max-content;
    max-width: 100%;
    justify-self: start;
    align-self: flex-start;
    flex-shrink: 0;
  }

  /* Uniform hint → CTA gap on every booking step. */
  .ws-booking .ws-multi-hint,
  .ws-booking .ws-slider-hint,
  .ws-booking .ws-phone-cta-hint {
    margin-bottom: var(--desk-cta-hint-gap);
  }

  .ws-booking .cal-weekdays {
    margin-bottom: 0.2rem;
  }

  /*
   * Calendar fit: intrinsic size that fits collapsed booking.
   * Columns use minmax(0,1fr); day size capped; gap fixed (not vw).
   * Never flex-grow with expand.
   */
  .ws-booking .cal-weekdays,
  .ws-booking .cal-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    justify-items: center;
  }

  .ws-booking .cal-grid {
    flex: none !important;
    align-content: start !important;
    height: auto !important;
  }

  /* Date step: intrinsic size so peek always shows calendar + hint. */
  .ws-booking #panelDate.is-visible {
    flex: none !important;
    height: auto !important;
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    max-width: 100%;
  }

  .ws-booking .day {
    width: 100%;
    max-width: 2rem;
    min-width: 0;
    aspect-ratio: 1 / 1;
    font-size: 0.78125rem;
  }

  .ws-booking .panel {
    gap: 0.3rem;
  }

  /*
   * Service / time / phone: fill the expanded sheet and pin hint + CTA
   * (and consents) to the bottom edge — same job as mobile sticky CTAs.
   */
  body.is-booking-expanded .ws-booking #panelService.is-visible,
  body.is-booking-expanded .ws-booking #panelTime.is-visible,
  body.is-booking-expanded .ws-booking #panelPhone.is-visible {
    flex: 1 1 auto !important;
    min-height: 0;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    gap: 0.3rem;
    max-width: 100%;
  }

  body.is-booking-expanded .ws-booking #panelService .service-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  /* Pin hint+CTA to the bottom of the service list (single pair, no dupes). */
  body.is-booking-expanded .ws-booking #panelService .ws-multi-hint {
    margin: auto 0 var(--desk-cta-hint-gap);
    flex-shrink: 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  body.is-booking-expanded .ws-booking #panelService .ws-services-continue {
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  body.is-booking-expanded .ws-booking #panelTime .time-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 0;
  }

  body.is-booking-expanded .ws-booking #panelTime .ws-slider-hint {
    margin: auto 0 var(--desk-cta-hint-gap);
    flex-shrink: 0;
  }

  body.is-booking-expanded .ws-booking #panelTime .cta-primary {
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  body.is-booking-expanded .ws-booking #panelPhone .ws-book-summary,
  body.is-booking-expanded .ws-booking #panelPhone .ws-phone-box {
    flex-shrink: 0;
  }

  body.is-booking-expanded .ws-booking #panelPhone .ws-phone-cta-hint {
    margin: auto 0 var(--desk-cta-hint-gap);
    flex-shrink: 0;
  }

  body.is-booking-expanded .ws-booking #panelPhone .ws-legal-consents {
    flex-shrink: 0;
    margin-bottom: var(--desk-cta-hint-gap);
  }

  body.is-booking-expanded .ws-booking #panelPhone .cta-primary {
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .ws-booking .service-option {
    padding: 0.55rem 0.45rem;
  }

  .ws-booking .cta-primary {
    margin-top: 0.55rem;
  }

  body.is-booking-expanded .ws-booking .cta-primary {
    margin-top: 0;
  }

  /* —— Right: matching-height content surface —— */
  .ws-content.ws-panel,
  .ws-content {
    width: auto !important;
    max-width: none;
    flex: unset !important;
    position: relative;
    display: flex !important;
    flex-direction: column;
    height: var(--desk-surface-h) !important;
    min-height: var(--desk-surface-h);
    max-height: var(--desk-surface-h);
    overflow: hidden !important;
    grid-column: 2;
    grid-row: 1;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--desk-elevate);
  }

  .ws-panel-head.ws-content-head,
  .ws-content-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
    padding: 0.9rem 1.25rem 0.55rem;
    border-bottom: 0;
    flex-shrink: 0;
  }

  .ws-content-head .lang-toggle {
    margin: 0;
    margin-right: auto;
    flex-shrink: 0;
    order: 0;
  }

  .ws-content-head .ws-nav-content {
    display: flex;
    align-items: center;
    gap: 0.05rem;
    margin: 0;
    margin-left: auto;
    max-width: none;
    overflow: visible;
    justify-content: flex-end;
    flex: 0 1 auto;
    order: 1;
  }

  .ws-content-head .ws-nav-content a {
    padding: 0.4rem 0.6rem;
    font-size: 0.6875rem;
  }

  .ws-content-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.4rem 1.35rem 1.1rem;
    -webkit-overflow-scrolling: touch;
  }

  .ws-content-main {
    flex: 0 0 auto;
  }

  .ws-content .ws-pane {
    padding: 0;
  }

  .ws-content .ws-pane-head {
    margin-bottom: 1.05rem;
    padding-top: 0.35rem;
  }

  .ws-content .ws-pane-head h1,
  .ws-content .ws-pane-head h2 {
    font-size: clamp(1.25rem, 1.55vw, 1.5rem);
    letter-spacing: -0.015em;
  }

  .ws-content .ws-pane-lead {
    margin-top: 0.4rem;
    font-size: 0.875rem;
  }

  .ws-content .service-cards {
    gap: 0.75rem;
    max-width: none;
  }

  .ws-content .service-card {
    padding: 0.95rem 1rem;
  }

  .ws-content .service-card-book {
    display: none;
  }

  /*
   * Address + portfolio carousels share one desktop frame:
   * 3:4 portrait stage, width shrunk so height fits the panel (no stretch-to-fill).
   * Photos keep object-fit:cover inside that frame — same as mobile.
   */
  .ws-content .ws-route-carousel,
  .ws-content .portfolio-carousel-track {
    --carousel-fit-h: calc(var(--desk-surface-h) - 10.75rem);
    width: min(100%, calc(var(--carousel-fit-h) * 3 / 4));
    max-width: 100%;
    max-height: var(--carousel-fit-h);
    aspect-ratio: 3 / 4;
    height: auto;
    flex: none;
    margin-inline: auto;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    touch-action: pan-y;
  }

  .ws-content .ws-route-track,
  .ws-content .portfolio-carousel-strip {
    --carousel-gap: 0.85rem;
    height: 100%;
  }

  .ws-content .ws-route-slide,
  .ws-content .portfolio-carousel-slide {
    border-radius: var(--radius-surface, 1.25rem);
    overflow: hidden;
    background: #e8e6e1;
    height: 100%;
  }

  .ws-content .ws-route-slide img,
  .ws-content .ws-route-photo,
  .ws-content .portfolio-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .ws-content .portfolio-grid[data-mode="carousel"] {
    align-items: center;
    max-width: 100%;
  }

  .ws-content .portfolio-carousel-dots,
  .ws-content .ws-route-dots {
    width: min(100%, calc(var(--carousel-fit-h, 24rem) * 3 / 4));
    margin-inline: auto;
    justify-content: center;
  }

  .ws-cover-wrap .ws-cover-track {
    --carousel-gap: 0.85rem;
  }

  .ws-cover-wrap .ws-cover-slide {
    border-radius: var(--radius-surface, 1.25rem);
    overflow: hidden;
    background: #e8e6e1;
  }

  /*
   * Contained sheets (desktop only): reminders / maps / service detail open
   * inside the left or right panel — not as viewport bottom sheets.
   * Match booking sheet: insets on all 4 sides + blur content behind.
   * Mobile keeps the shared fixed bottom-sheet styles above.
   */
  .ws-booking.ws-panel,
  .ws-booking,
  .ws-booking .booking-sheet,
  .ws-content.ws-panel,
  .ws-content {
    isolation: isolate;
  }

  /* Blur host content while a contained overlay is open (booking-sheet analogy). */
  .ws-content.is-overlay-sheet-open,
  .ws-booking.is-overlay-sheet-open,
  .booking-sheet.is-overlay-sheet-open {
    overflow: hidden !important;
  }

  /*
   * Desktop overlay blur via host veil — do not filter: children with photos
   * (that caused white flash). Sheet stays above the veil.
   */
  .ws-content.is-overlay-sheet-open::before,
  .ws-booking.is-overlay-sheet-open::before,
  .booking-sheet.is-overlay-sheet-open::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 25;
    border-radius: inherit;
    pointer-events: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .ws-content.is-overlay-sheet-open > *:not(.ws-maps-sheet):not(.ws-service-detail),
  .ws-booking.is-overlay-sheet-open > *:not(.ws-reminders-sheet):not(.ws-maps-sheet):not(.ws-service-detail),
  .booking-sheet.is-overlay-sheet-open > *:not(.ws-reminders-sheet) {
    pointer-events: none;
  }

  .ws-reminders-sheet.is-desktop-contained,
  .ws-maps-sheet.is-desktop-contained,
  .ws-service-detail.is-desktop-contained {
    position: absolute !important;
    inset: var(--desk-booking-inset) !important;
    top: var(--desk-booking-inset) !important;
    z-index: 30;
    padding: 0 !important;
    border-radius: calc(var(--radius-surface) - 0.15rem);
    overflow: hidden;
    /* Blur siblings (below) — no darken, same idea as booking expand. */
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .ws-reminders-sheet.is-desktop-contained,
  .ws-maps-sheet.is-desktop-contained {
    align-items: flex-end;
    justify-content: stretch;
  }

  .ws-service-detail.is-desktop-contained {
    align-items: stretch;
    justify-content: stretch;
    /* Service detail is a full inset panel (like expanded booking), not a dim-only shell. */
    background: transparent !important;
    padding: 0 !important;
  }

  .ws-reminders-sheet.is-desktop-contained .ws-reminders-panel,
  .ws-maps-sheet.is-desktop-contained .ws-maps-panel {
    width: 100%;
    max-width: none;
    border-radius: calc(var(--radius-surface) - 0.25rem) calc(var(--radius-surface) - 0.25rem) 0 0;
    padding-bottom: 1.15rem;
  }

  .ws-service-detail.is-desktop-contained .ws-service-detail-sheet {
    width: 100%;
    max-width: none;
    height: 100%;
    border-radius: calc(var(--radius-surface) - 0.15rem);
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.1);
    border: 1px solid var(--line);
  }

  .ws-service-detail.is-desktop-contained .ws-service-detail-scroll {
    padding-bottom: 1.5rem;
  }

  /* Contained overlays must not freeze or re-enable desktop page scroll. */
  body.is-service-detail-open {
    overflow: hidden !important;
    touch-action: auto;
  }

  /*
   * Address pane (desktop): compact toolbar above the shared 3:4 carousel
   * (same frame as portfolio — see .ws-content .ws-route-carousel above).
   */
  #paneAddress .ws-pane-head {
    margin-bottom: 0.55rem;
    padding-top: 0.15rem;
  }

  #paneAddress .address-block {
    max-width: none;
    padding-top: 0;
  }

  #paneAddress .address-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem 1.15rem;
    margin-bottom: 0.85rem;
    min-width: 0;
  }

  #paneAddress .address-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  #paneAddress .address-toolbar .address-line {
    margin: 0;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    line-height: 1.15;
  }

  #paneAddress .address-toolbar .address-desc {
    margin: 0;
    /* Same as .ws-content .ws-pane-lead */
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--mute);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #paneAddress .address-toolbar .map-link {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    min-height: 2.5rem;
    height: 2.5rem;
    padding: 0 1.05rem;
    white-space: nowrap;
    align-self: center;
  }

  #paneAddress .address-city,
  #paneAddress .howto {
    display: none !important;
  }

  #paneAddress .ws-route-carousel {
    margin-top: 0;
  }
}

@media (max-width: 899px) {
  .ws-desktop-attr,
  .ws-booking-foot,
  .ws-legal-foot {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  :root {
    --ws-panel-w-booking: clamp(28rem, 34vw, 34rem);
    --ws-panel-w-content: clamp(34rem, 40vw, 42rem);
    --ws-gap: 2.5rem;
    --desk-surface-h: min(50rem, calc(100dvh - 5rem));
  }
}

@media (min-width: 1440px) {
  :root {
    --ws-panel-w-booking: 32rem;
    --ws-panel-w-content: 40rem;
    --ws-gap: 2.75rem;
    --desk-booking-inset: 1.1rem;
  }
}

@media (min-width: 1600px) {
  :root {
    --ws-panel-w-booking: 34rem;
    --ws-panel-w-content: 42rem;
    --ws-gap: 3rem;
    --desk-surface-h: min(52rem, calc(100dvh - 5.25rem));
  }
}

@media (min-width: 1920px) {
  :root {
    --ws-panel-w-booking: 36rem;
    --ws-panel-w-content: 44rem;
    --ws-gap: 3.25rem;
  }
}

/* Stage 9.4.2 — Workspace booking timeline + phone (Code Design Constitution) */
.ws-multi-hint {
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  color: var(--neutral);
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
}
.ws-date-hint {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--neutral);
}

/* Time-step date rail — compact horizontal strip, not a calendar */
.ws-date-rail {
  margin: 0 0 1rem;
  max-width: 100%;
  min-width: 0;
  padding-top: 0.7rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.ws-date-rail-track {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0.1rem 0.35rem;
  touch-action: pan-x;
}
.ws-date-rail-track::-webkit-scrollbar {
  display: none;
}
.ws-date-rail-day {
  flex: 0 0 auto;
  min-width: 4.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: var(--radius-cta, 999px);
  background: transparent;
  color: var(--inactive-accent);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.2;
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.ws-date-rail-day.is-weekend.is-free {
  /* Weekend stays in Accent family — no terracotta #B54A3C. */
  color: var(--accent);
  background: var(--weekend-free);
  border-color: transparent;
}
.ws-date-rail-day:focus {
  outline: none;
}
.ws-date-rail-day.is-free:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ws-date-rail-day.is-weekend.is-free:hover {
  color: var(--accent-contrast);
  border-color: var(--accent);
  background: var(--weekend-selected);
}
/* Avoid sticky tap-focus looking like a second selected day */
.ws-date-rail-day.is-free:focus-visible:not(.is-selected) {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}
.ws-date-rail-day.is-selected {
  color: var(--accent-contrast);
  border-color: var(--accent);
  background: var(--accent);
}
.ws-date-rail-day.is-selected:hover,
.ws-date-rail-day.is-selected:focus-visible {
  color: var(--accent-contrast);
  border-color: var(--accent);
  background: var(--accent);
}
.ws-date-rail-day.is-weekend.is-selected {
  color: var(--accent-contrast);
  border-color: var(--accent);
  background: var(--weekend-selected);
}
.ws-date-rail-day.is-busy,
.ws-date-rail-day:disabled {
  color: var(--unavailable);
  opacity: 0.78;
  cursor: default;
  border-color: color-mix(in srgb, var(--unavailable) 40%, transparent);
  background: color-mix(in srgb, var(--unavailable) 10%, var(--bg));
}
.ws-date-rail-label {
  white-space: nowrap;
}

.ws-optional {
  font-weight: 450;
  color: var(--neutral);
  letter-spacing: 0;
  text-transform: none;
}

.ws-glass-empty-slot {
  /* Sits above the glass rail — reserved height so empty copy never shifts parts. */
  height: 1.05rem;
  min-height: 1.05rem;
  margin: 0 0 0.2rem;
  padding: 0 2rem;
  box-sizing: border-box;
  overflow: hidden;
  order: -1;
}
.ws-glass-empty {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.05rem;
  color: var(--neutral);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-glass-empty[hidden] {
  /* Keep reserved slot height — override UA [hidden]{display:none}. */
  display: block !important;
  visibility: hidden;
}

.booking-success-remind-link {
  display: none !important;
}
.ws-timeline-window.is-empty {
  opacity: 0.72;
}
.ws-timeline-window.is-empty .ws-glass-track {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.ws-services-continue {
  width: 100%;
  margin-top: 0.85rem;
}
.ws-services-continue:disabled {
  opacity: 1;
  background: color-mix(in srgb, var(--unavailable) 38%, var(--bg));
  border-color: color-mix(in srgb, var(--unavailable) 50%, var(--line));
  color: var(--unavailable);
}
.ws-timeline-root {
  display: flex;
  flex-direction: column;
  gap: calc(1.5rem - 2px);
  margin-bottom: 0.5rem;
  max-width: 100%;
  overflow: visible;
}
.ws-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 100%;
  overflow: visible;
}
.ws-timeline-empty {
  margin: 0;
  padding: 1.25rem 0;
  text-align: center;
  color: var(--neutral);
  font-size: 0.875rem;
}
.ws-no-slots {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ws-alt-cal-lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.ws-alt-cal-weekdays,
.ws-alt-cal-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  justify-items: center;
}
.ws-alt-cal-weekdays {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral);
}
.ws-alt-cal-grid .day {
  width: 100%;
  max-width: 2.35rem;
}
.ws-timeline-window {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  /* −2px between day-part intervals (morning / day / evening). */
  padding: 0.5rem 0 calc(1rem - 2px);
  overflow: visible;
  transition: opacity 0.22s var(--ease);
}
.ws-timeline-window.is-muted {
  opacity: 0.34;
}
.ws-timeline-window.is-active {
  opacity: 1;
}
.ws-timeline-part {
  margin: 0.85rem 0 0;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inactive-accent);
}
.ws-timeline-part:first-child {
  margin-top: 0;
}
.ws-glass-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.15rem 0 0.35rem;
  max-width: 100%;
  overflow: visible;
}
.ws-glass-slider .ws-glass-rail {
  order: 0;
}
/* Shared horizontal inset — left/right edges align across all windows */
.ws-glass-rail {
  padding: 0 2rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
.ws-glass-track {
  position: relative;
  height: 0.2rem;
  margin: 1.85rem 0 1.15rem;
  border-radius: var(--radius-cta);
  /* Inactive track — Accent soft (never --bg). */
  background: var(--accent-soft);
  touch-action: none;
  overflow: visible;
}
/* Window start/end — same left% axis as thumbs */
.ws-glass-bound {
  position: absolute;
  top: auto;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--neutral);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  transition: opacity 0.15s var(--ease);
}
.ws-glass-bound.is-covered {
  opacity: 0;
}
.ws-glass-snap {
  position: absolute;
  top: 50%;
  width: 0.2rem;
  height: 0.2rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  pointer-events: none;
  z-index: 1;
}
.ws-glass-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2.5rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: var(--radius-cta);
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  cursor: grab;
  touch-action: none;
  z-index: 2;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent),
    0 4px 12px color-mix(in srgb, var(--ink) 8%, transparent);
  transition: left 0.14s var(--ease), box-shadow 0.15s var(--ease),
    opacity 0.2s var(--ease), border-color 0.15s var(--ease);
}
.ws-glass-thumb::before {
  content: "";
  position: absolute;
  inset: -0.75rem -0.55rem;
}
.ws-glass-thumb--pick {
  cursor: pointer;
}
.ws-glass-thumb--quiet {
  width: 0.78rem;
  height: 0.78rem;
  opacity: 0.88;
}
.ws-glass-thumb-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%);
  font-size: 0.8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
  z-index: 1;
  transition: color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.ws-glass-thumb-label.is-soft-risk,
.ws-glass-thumb.is-soft-risk .ws-glass-thumb-label {
  color: #a16207;
}
/* Hot window marker — flame left of time; time tint matches flame tip. */
.ws-glass-thumb-label.is-hot,
.ws-glass-thumb.is-hot .ws-glass-thumb-label {
  color: #e8481d;
}
.ws-hot-flame {
  display: block;
  flex: 0 0 auto;
  width: 0.6875rem;
  height: 0.6875rem;
}
.ws-glass-thumb-label-text {
  line-height: 1;
}
.ws-timeline-window.is-muted .ws-glass-thumb {
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent);
}
.ws-timeline-window.is-muted .ws-glass-thumb-label {
  color: var(--ink-soft);
}
.ws-timeline-window.is-muted .ws-glass-thumb-label.is-soft-risk {
  color: color-mix(in srgb, #a16207 72%, var(--mute));
}
.ws-timeline-window.is-muted .ws-glass-thumb-label.is-hot {
  color: color-mix(in srgb, #e8481d 72%, var(--mute));
}
/* Nudge the thumb (бегунок) only — preserve centering translate(-50%, -50%). */
@keyframes ws-glass-thumb-nudge {
  0% {
    transform: translate(-50%, -50%) translateX(0);
  }
  35% {
    transform: translate(-50%, -50%) translateX(10px);
  }
  70% {
    transform: translate(-50%, -50%) translateX(-8px);
  }
  100% {
    transform: translate(-50%, -50%) translateX(0);
  }
}
.ws-glass-thumb.ws-glass-thumb--nudge {
  animation: ws-glass-thumb-nudge 0.7s ease-in-out 1;
}
@media (prefers-reduced-motion: reduce) {
  .ws-glass-thumb.ws-glass-thumb--nudge {
    animation: none;
  }
}
.ws-glass-thumb.is-dragging {
  cursor: grabbing;
  transition: none;
  border-color: color-mix(in srgb, var(--ink) 16%, transparent);
  box-shadow:
    0 1px 3px color-mix(in srgb, var(--ink) 8%, transparent),
    0 6px 16px color-mix(in srgb, var(--ink) 10%, transparent);
}
.ws-glass-thumb:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}
.ws-slider-hint {
  margin: 0.5rem 0 0.55rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--neutral);
  /* Reserve 2 lines (soft-warning can wrap) so the CTA does not jump. */
  min-height: calc(1.4em * 2);
}
.ws-slider-hint.is-soft {
  color: color-mix(in srgb, #a16207 78%, var(--ink-soft));
}
.ws-slider-hint-line {
  display: block;
}
.ws-slider-hint-line + .ws-slider-hint-line {
  margin-top: 0.2rem;
}
.ws-slider-hint.is-empty .ws-slider-hint-line {
  display: none;
}

/* Mobile sheet: pin step CTAs + hint to the visible bottom of the sheet */
@media (max-width: 899px) {
  .ws-booking .booking-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .ws-booking .booking-steps {
    flex-shrink: 0;
  }

  .ws-booking .panel.is-visible {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  /* Date step: calendar sizes to content; hint sits below with gap (no overlap).
   * Extra space below the hint is fine — sheet height is locked. */
  .ws-booking #panelDate.is-visible {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .ws-booking #panelDate .cal-nav,
  .ws-booking #panelDate .cal-weekdays {
    flex-shrink: 0;
  }

  .ws-booking #panelDate .cal-grid {
    flex: 0 0 auto;
    align-content: start;
  }

  .ws-booking #panelDate .ws-date-hint {
    margin-top: auto;
    margin-bottom: 0.25rem;
    padding-top: 0.85rem;
    flex-shrink: 0;
  }

  .ws-booking .ws-step-heading {
    flex-shrink: 0;
    width: 100%;
  }

  .ws-booking .ws-step-heading .back-link {
    align-self: center;
  }

  .ws-booking #panelService .back-link {
    align-self: flex-start;
    margin-bottom: 0.35rem;
  }

  .ws-booking #panelService .service-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .ws-booking #panelService .ws-multi-hint {
    margin: auto 0 0.55rem;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .ws-booking #panelTime .ws-slider-hint {
    margin-bottom: 0.55rem;
  }

  .ws-booking #panelPhone .ws-phone-cta-hint {
    margin-bottom: 0.55rem;
  }

  .ws-booking #panelService .ws-services-continue {
    margin-top: 0;
    flex-shrink: 0;
    padding-top: 0;
  }

  .ws-booking #panelTime .time-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 0;
  }

  .ws-booking #panelTime .ws-slider-hint {
    margin: auto 0 0.55rem;
    flex-shrink: 0;
  }

  .ws-booking #panelTime .cta-primary {
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .ws-booking #panelPhone .back-link {
    align-self: flex-start;
    margin-bottom: 0.35rem;
  }

  .ws-booking #panelPhone .ws-book-summary,
  .ws-booking #panelPhone .ws-phone-box {
    flex-shrink: 0;
  }

  .ws-booking #panelPhone .ws-phone-cta-hint {
    margin: auto 0 0.55rem;
    flex-shrink: 0;
  }

  .ws-booking #panelPhone .cta-primary {
    margin-top: 0;
    flex-shrink: 0;
  }
}

/* Soft-risk tip lives in #wsSliderHint (.is-soft) — no separate banner */
.ws-soft-warning {
  display: none !important;
}
.ws-book-summary {
  margin: 0 0 1.25rem;
  padding: 0 0 1rem;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: grid;
  gap: 0.55rem;
}
.ws-book-summary-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral);
}
.ws-book-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.875rem;
}
.ws-book-summary-row span {
  color: var(--neutral);
}
.ws-book-summary-row strong {
  font-weight: 650;
  text-align: right;
  color: var(--ink);
}
.ws-phone-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1rem;
}
.ws-phone-field,
.ws-name-box,
.ws-comment-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ws-phone-label {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ink);
}
.ws-phone-input {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-field);
  border: 1px solid var(--accent);
  background: var(--curtain);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}
.ws-phone-input:focus {
  outline: none;
  background: var(--curtain);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.ws-phone-input:disabled {
  background: var(--unavailable);
  border-color: var(--unavailable);
  color: var(--neutral);
}
.ws-phone-input.is-error,
.ws-phone-input[aria-invalid="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.ws-phone-input::placeholder {
  color: var(--neutral);
  opacity: 1;
}
.ws-comment-input {
  min-height: 4.5rem;
  resize: vertical;
}
.ws-phone-hint {
  display: none;
}

.ws-phone-cta-hint {
  margin: 0 0 0.55rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--neutral);
}

/* Shared CTA-adjacent hint gap (service / time / phone). */
.ws-booking .ws-multi-hint,
.ws-booking .ws-slider-hint,
.ws-booking .ws-phone-cta-hint {
  margin-bottom: 0.55rem;
}

#panelPhone .cta-primary {
  margin-top: 0.15rem;
}

.ws-booking .time-grid.ws-timeline-root,
.ws-timeline-root.time-grid {
  display: flex;
  grid-template-columns: none;
}

/* —— Service detail sheet (public) —— */
.ws-service-detail {
  position: fixed;
  /* Below header — blur tracks open like booking cover (no darken). */
  top: calc(var(--safe-top, 0px) + var(--header-h, 52px));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: transparent;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition:
    opacity 0.35s var(--ease-sheet, ease),
    backdrop-filter 0.45s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1)),
    -webkit-backdrop-filter 0.45s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1));
}
.ws-service-detail.is-open {
  opacity: 1;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ws-service-detail[hidden] {
  display: none !important;
}
.ws-service-detail-sheet {
  position: relative;
  width: min(100%, 40rem);
  height: 100%;
  background: var(--curtain, #fff);
  border-radius: 1.25rem 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.45s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1));
}
.ws-service-detail.is-open .ws-service-detail-sheet {
  transform: translate3d(0, 0, 0);
}
.ws-service-detail-toolbar {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.55rem 0.65rem 0.15rem;
  background: var(--curtain, #fff);
  z-index: 2;
}
/* Unified sheet close control — bold rounded X (not a text glyph). */
.ws-sheet-close,
.ws-service-detail-close,
.ws-lightbox-close,
.ws-legal-overlay-close,
.ws-reminders-close,
.ws-maps-close {
  position: relative;
  top: auto;
  right: auto;
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}
.ws-sheet-close-icon,
.ws-sheet-close-icon.tooyo-icon,
.ws-service-detail-close .ws-sheet-close-icon,
.ws-lightbox-close .ws-sheet-close-icon,
.ws-legal-overlay-close .ws-sheet-close-icon,
.ws-reminders-close .ws-sheet-close-icon,
.ws-maps-close .ws-sheet-close-icon {
  width: 1.02rem;
  height: 1.02rem;
  display: block;
  pointer-events: none;
}
.ws-lightbox-close {
  position: absolute;
  top: calc(var(--safe-top, 0px) + 0.65rem);
  right: 0.75rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.ws-service-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.35rem 1.15rem calc(1.5rem + var(--safe-bottom, 0px));
}
.ws-service-detail-photo {
  margin: 0 0 1rem;
  border-radius: var(--radius-surface, 1rem);
  overflow: hidden;
  background: #e8e4dc;
  aspect-ratio: 4 / 3;
}
.ws-service-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ws-service-detail-sheet h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  line-height: 1.2;
}
.ws-service-detail-meta {
  margin: 0 0 0.85rem;
  color: var(--neutral);
  font-size: 0.875rem;
}
.ws-service-detail-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft, var(--ink));
  white-space: pre-wrap;
}
body.is-service-detail-open {
  overflow: hidden;
  touch-action: none;
}

/* —— Portfolio lightbox —— */
.ws-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top, 0px) + 0.75rem) 0.75rem calc(var(--safe-bottom, 0px) + 0.75rem);
}
.ws-lightbox[hidden] {
  display: none !important;
}
.ws-lightbox-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}
.ws-lightbox-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}
.ws-lightbox-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  width: 100%;
  will-change: transform;
}
.ws-lightbox-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-lightbox-stage img,
.ws-lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.ws-lightbox-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  padding: 0.65rem 0 0.25rem;
}
.ws-lightbox-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
}
.ws-lightbox-dot.is-active {
  background: #fff;
}

/* —— Legal doc overlay (keeps booking state) —— */
.ws-legal-overlay {
  position: fixed;
  top: calc(var(--safe-top, 0px) + var(--header-h, 52px));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  /* Same as service/maps/reminders: blur to header, no darken. */
  background: transparent;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition:
    opacity 0.3s var(--ease-sheet, ease),
    backdrop-filter 0.45s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1)),
    -webkit-backdrop-filter 0.45s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1));
}
.ws-legal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ws-legal-overlay[hidden] {
  display: none !important;
}
.ws-legal-overlay-sheet {
  width: min(100%, 40rem);
  height: 100%;
  background: var(--curtain, #fff);
  border-radius: 1.25rem 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.45s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1));
}
.ws-legal-overlay.is-open .ws-legal-overlay-sheet {
  transform: translate3d(0, 0, 0);
}
.ws-legal-overlay-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.ws-legal-overlay-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.25;
}
/* close styles unified above */
.ws-legal-overlay-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1rem 1.15rem calc(1.5rem + var(--safe-bottom, 0px));
  font-size: 0.9375rem;
  line-height: 1.55;
}
.ws-legal-overlay-body h1,
.ws-legal-overlay-body h2 {
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 1rem 0 0.5rem;
}
.ws-legal-overlay-body h1:first-child {
  margin-top: 0;
}
.ws-legal-overlay-body p {
  margin: 0 0 0.75rem;
}

/* —— Reminders channel sheet —— */
.ws-reminders-sheet {
  position: fixed;
  top: calc(var(--safe-top, 0px) + var(--header-h, 52px));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 92;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition:
    opacity 0.28s var(--ease-sheet, ease),
    backdrop-filter 0.4s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1)),
    -webkit-backdrop-filter 0.4s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1));
}
.ws-reminders-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ws-reminders-sheet[hidden] {
  display: none !important;
}
.ws-reminders-panel {
  width: min(100%, 28rem);
  background: var(--curtain, #fff);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 0.85rem 1rem calc(1.15rem + var(--safe-bottom, 0px));
  transform: translate3d(0, 100%, 0);
  transition: transform 0.4s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1));
}
.ws-reminders-sheet.is-open .ws-reminders-panel {
  transform: translate3d(0, 0, 0);
}
.ws-reminders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.ws-reminders-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
/* close styles unified above */
.ws-reminders-lead {
  margin: 0 0 0.85rem;
  color: var(--ink-soft, var(--mute));
  font-size: 0.875rem;
  line-height: 1.4;
}
.ws-reminders-channel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-field, 0.85rem);
  background: var(--bg, #fff);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.ws-reminders-channel-icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
}
.ws-reminders-channel-icon .ws-brand-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ws-reminders-channel-meta {
  flex: 1;
  min-width: 0;
}
.ws-reminders-channel-name {
  display: block;
  font-weight: 650;
  font-size: 0.9375rem;
}
.ws-reminders-channel-status {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--neutral);
}
.ws-reminders-channel.is-connected .ws-reminders-channel-status {
  color: color-mix(in srgb, #1a7f37 80%, var(--ink));
}
.ws-reminders-channel-check {
  flex-shrink: 0;
  color: #1a7f37;
  font-size: 1.1rem;
  font-weight: 700;
}
.ws-reminders-channel-icon.is-telegram {
  background: transparent;
}
.ws-reminders-channel + .ws-reminders-channel {
  margin-top: 0.55rem;
}

/* —— Maps chooser sheet (same shell as reminders) —— */
.ws-maps-sheet {
  position: fixed;
  top: calc(var(--safe-top, 0px) + var(--header-h, 52px));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 92;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition:
    opacity 0.28s var(--ease-sheet, ease),
    backdrop-filter 0.4s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1)),
    -webkit-backdrop-filter 0.4s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1));
}
.ws-maps-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ws-maps-sheet[hidden] {
  display: none !important;
}
.ws-maps-panel {
  width: min(100%, 28rem);
  background: var(--curtain, #fff);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 0.85rem 1rem calc(1.15rem + var(--safe-bottom, 0px));
  transform: translate3d(0, 100%, 0);
  transition: transform 0.4s var(--ease-sheet, cubic-bezier(0.22, 1, 0.36, 1));
}
.ws-maps-sheet.is-open .ws-maps-panel {
  transform: translate3d(0, 0, 0);
}
.ws-maps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.ws-maps-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.ws-maps-lead {
  margin: 0 0 0.85rem;
  color: var(--ink-soft, var(--mute));
  font-size: 0.875rem;
  line-height: 1.4;
}
.ws-maps-channels {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}
.ws-maps-channel {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.35rem 0.15rem 0.5rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.ws-maps-channel:active {
  opacity: 0.72;
}
.ws-maps-channel-icon {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: var(--bg, #fff);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent);
  overflow: hidden;
}
.ws-maps-channel-icon .ws-brand-icon,
.ws-brand-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.ws-maps-channel-icon.is-yandex,
.ws-maps-channel-icon.is-dgis,
.ws-maps-channel-icon.is-google {
  background: #fff;
}
.ws-maps-channel-name {
  display: block;
  width: 100%;
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-carousel-viewport.is-axis-x {
  touch-action: none !important;
}

.time-summary-line {
  display: block;
}

.service-group-title{margin:1rem 0 0.45rem;font-size:0.92rem;font-weight:650;color:var(--mute,#666);letter-spacing:-0.01em}
.service-group-title:first-child{margin-top:0.15rem}
