/* ==========================================================================
   GUNNERS Barbershop — Concept 3: Modern Editorial & Velvet Crimson
   Engineered to AGENTS.md Design Standards (Bespoke Human Craft, Anti-AI Slop)
   ========================================================================== */

:root {
  /* Color Palette 60-30-10 Rule */
  --bg-canvas: #0f1014;
  --bg-surface: #15161d;
  --bg-elevated: #1b1c25;
  --bg-card: #181922;
  --bg-overlay: rgba(15, 16, 20, 0.88);
  
  /* Hairline Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.20);
  
  /* Signature Velvet Crimson Accent (From Gunners Logo) */
  --accent-crimson: #b81424;
  --accent-crimson-hover: #cf1c2e;
  --accent-crimson-active: #9b0f1d;
  --accent-crimson-glow: rgba(184, 20, 36, 0.25);
  --accent-crimson-subtle: rgba(184, 20, 36, 0.12);
  
  /* Brass / Gold Secondary Accent for VIP details */
  --accent-gold: #c5a059;
  --accent-gold-subtle: rgba(197, 160, 89, 0.15);

  /* Typography Colors */
  --text-primary: #f4f3ef;
  --text-secondary: #9da0a8;
  --text-muted: #5f626c;
  --text-inverse: #ffffff;
  
  /* Font Families */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Shadows & Inner Highlights */
  --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-inner-light: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  --shadow-floating: 0 12px 32px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4);
  
  /* Easing & Durations */
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --trans-fast: 140ms var(--ease-snappy);
  --trans-normal: 200ms var(--ease-snappy);
  
  /* Safe Areas & Nav Heights */
  --tabbar-height: 0px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Reset & Containment */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  /* clip (unlike hidden) doesn't turn body into its own scroller, so the page scrolls on window as scripts expect */
  overflow-x: clip;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  -webkit-overscroll-behavior-y: none;
}

/* App Main Container */
.app-container {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  position: relative;
  overflow-x: hidden;
  overflow-x: clip; /* clip, not a scroll container: wheel/touch over the column must scroll the page */
}

/* ==========================================================================
   Header & Brand Block
   ========================================================================== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px 18px;
  background-color: rgba(15, 16, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  touch-action: pan-y;
  user-select: none;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(184, 20, 36, 0.45));
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-crimson);
  white-space: nowrap;
}

.brand-title {
  white-space: nowrap;
}

.header-info-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--trans-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-info-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.header-info-btn:active {
  transform: scale(0.96);
}

@media (max-width: 480px) {
  .app-header {
    padding: 10px 14px;
  }
  .brand-block {
    gap: 10px;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  .header-info-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}



/* ==========================================================================
   Main Content Area & Tab Screens
   ========================================================================== */
.app-main {
  flex: 1;
  padding: 16px 16px calc(var(--tabbar-height) + var(--safe-bottom) + 80px) 16px;
  position: relative;
  overflow-x: hidden;
}

.tab-screen {
  display: none;
  animation: fadeIn var(--trans-normal) forwards;
}

.tab-screen.active {
  display: block !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ==========================================================================
   1. BOOKING ENGINE (4 STEPS)
   ========================================================================== */
.booking-progress-nav {
  margin-bottom: 22px;
  position: relative;
}

.progress-track {
  width: 100%;
  height: 2px;
  background-color: var(--border-subtle);
  position: absolute;
  top: 15px;
  left: 0;
  z-index: 1;
}

.progress-bar-fill {
  height: 100%;
  width: 12.5%;
  background-color: var(--accent-crimson);
  box-shadow: 0 0 8px var(--accent-crimson);
  transition: width var(--trans-normal);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.progress-step-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0 4px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
  box-shadow: var(--shadow-inner-light);
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--trans-fast);
}

.progress-step-btn.active .step-num {
  background-color: var(--accent-crimson);
  border-color: var(--accent-crimson);
  color: #ffffff;
  box-shadow: 0 0 12px var(--accent-crimson-glow);
}

.progress-step-btn.active .step-label {
  color: var(--text-primary);
}

.progress-step-btn.completed .step-num {
  background-color: var(--bg-elevated);
  border-color: var(--accent-crimson);
  color: var(--accent-crimson);
  font-weight: 800;
}

.progress-step-btn.completed .step-label {
  color: var(--text-secondary);
}

@keyframes shakeStep {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.shake-animation {
  animation: shakeStep 240ms var(--ease-snappy);
}

.step-heading {
  margin-bottom: 18px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.step-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Barber Cards */
.site-notices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

/* The owner's announcement must be seen: brand-crimson card with a label, the strongest block above the barbers */
.site-notice {
  position: relative;
  padding: 34px 16px 14px;
  border: 1px solid rgba(184, 20, 36, 0.55);
  border-left: 4px solid var(--accent-crimson);
  border-radius: 12px;
  background: linear-gradient(var(--accent-crimson-subtle), var(--accent-crimson-subtle)), var(--bg-surface);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 8px 20px -8px var(--accent-crimson-glow);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-notice::before {
  content: 'Объявление';
  position: absolute;
  top: 12px;
  left: 16px;
  font: 700 11px/1 var(--font-mono, monospace);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f2a3aa;
}

.barbers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.barber-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-card), var(--shadow-inner-light);
  cursor: pointer;
  transition: all var(--trans-fast);
  position: relative;
  overflow: hidden;
}

.barber-card:active {
  transform: scale(0.985);
}

.barber-card.selected {
  border-color: var(--accent-crimson);
  background: linear-gradient(135deg, rgba(184, 20, 36, 0.18), rgba(24, 25, 34, 0.98));
  box-shadow: 0 0 0 1.5px var(--accent-crimson), 0 6px 20px var(--accent-crimson-glow);
}

.any-specialist-card {
  margin-bottom: 12px;
}

.barber-avatar-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-medium);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.barber-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.any-avatar {
  background: linear-gradient(135deg, #1c1e27, #2d1419);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-crimson);
}

.barber-info {
  flex: 1;
  min-width: 0;
}

.barber-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.barber-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.barber-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  background-color: var(--accent-crimson-subtle);
  color: #ff6b7b;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

.barber-specialty {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The hint under «Любой мастер» is the only explanation of the card: wrap it, never cut */
.any-specialist-card .barber-specialty {
  white-space: normal;
}

.barber-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
}

.barber-rating {
  color: #fbbf24;
  font-weight: 700;
}

.barber-reviews-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* Barbers still in Altegio: the card says where the booking goes */
.barber-altegio {
  margin-top: 4px;
  color: var(--accent-crimson);
  font-size: 12px;
  font-weight: 600;
}

.barber-reviews-btn:hover {
  color: var(--accent-crimson);
}

.barber-select-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  background-color: var(--bg-surface);
  transition: all var(--trans-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.barber-card.selected .radio-circle {
  border-color: var(--accent-crimson);
  background-color: var(--accent-crimson);
  box-shadow: 0 0 8px var(--accent-crimson-glow);
}

/* Floating Footers for Steps */
.step-floating-footer {
  position: fixed;
  bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 508px;
  z-index: 90;
  animation: slideUp 180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-floating-footer.hidden {
  display: none !important;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 14px) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.summary-footer {
  background-color: rgba(22, 23, 30, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-floating);
}

.summary-meta {
  display: flex;
  flex-direction: column;
}

.summary-total {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.summary-duration {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent-crimson), #8b0d1a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans-fast);
  box-shadow: 0 4px 14px var(--accent-crimson-glow), var(--shadow-inner-light);
  width: 100%;
}

.summary-footer .btn-primary {
  width: auto;
  padding: 11px 18px;
  font-size: 14px;
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px var(--accent-crimson-glow);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-arrow {
  font-size: 16px;
  transition: transform var(--trans-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* ==========================================================================
   STEP 2: SERVICES
   ========================================================================== */
.service-categories {
  display: flex;
  flex-wrap: wrap; /* a sideways strip hid «Уход & SPA» on phones ≤390px */
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.service-categories::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 7px 15px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--trans-fast);
  box-shadow: var(--shadow-inner-light);
}

.cat-pill.active {
  background-color: var(--accent-crimson);
  border-color: var(--accent-crimson);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--accent-crimson-glow);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 80px;
}

.service-card {
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-card), var(--shadow-inner-light);
  cursor: pointer;
  transition: all var(--trans-fast);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service-card:active {
  transform: scale(0.985);
}

.service-card.selected {
  border-color: var(--accent-crimson);
  background: linear-gradient(135deg, rgba(184, 20, 36, 0.08), rgba(24, 25, 34, 0.95));
}

.service-main {
  flex: 1;
}

.service-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.service-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.service-price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.service-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.service-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-medium);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--trans-fast);
}

.service-card.selected .service-check {
  background-color: var(--accent-crimson);
  border-color: var(--accent-crimson);
  color: #ffffff;
}

/* ==========================================================================
   STEP 3: DATE & TIME SLOTS
   ========================================================================== */
.date-ribbon-container {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.date-ribbon-container::-webkit-scrollbar {
  display: none;
}

.date-ribbon {
  display: flex;
  gap: 8px;
}

.date-item {
  flex-shrink: 0;
  width: 58px;
  padding: 10px 4px;
  border-radius: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--trans-fast);
  box-shadow: var(--shadow-inner-light);
}

.date-item:active {
  transform: scale(0.95);
}

.date-item.selected {
  background: linear-gradient(135deg, var(--accent-crimson), #8b0d1a);
  border-color: var(--accent-crimson);
  box-shadow: 0 4px 14px var(--accent-crimson-glow);
}

.date-weekday {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.date-item.selected .date-weekday {
  color: rgba(255, 255, 255, 0.8);
}

.date-num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.date-item.selected .date-num {
  color: #ffffff;
}

.date-item.date-item-more {
  background-color: var(--bg-elevated);
  border: 1px dashed var(--border-medium);
}

.date-item.date-item-more:hover {
  border-color: var(--accent-gold);
}

.date-item.date-item-more .date-more-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: var(--accent-gold);
}

/* Month Calendar Modal & Sheet */
.calendar-sheet {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 18px 18px 24px 18px;
  box-sizing: border-box;
}

.calendar-nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-nav-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.cal-nav-btn:active {
  transform: scale(0.92);
  border-color: var(--accent-crimson);
}

.cal-nav-btn:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  background-color: var(--bg-elevated);
  color: var(--text-muted);
  cursor: default;
  transition: all var(--trans-fast);
  position: relative;
  user-select: none;
}

.cal-day-cell.empty {
  background: transparent;
  border: none;
  visibility: hidden;
}

.cal-day-cell.available {
  color: var(--text-primary);
  background-color: var(--bg-card);
  border-color: var(--border-subtle);
  cursor: pointer;
}

.cal-day-cell.available:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.cal-day-cell.available:active {
  transform: scale(0.92);
}

.cal-day-cell.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

.cal-day-cell.selected {
  background: linear-gradient(135deg, var(--accent-crimson), #8b0d1a) !important;
  color: #ffffff !important;
  border-color: var(--accent-crimson) !important;
  box-shadow: 0 4px 12px var(--accent-crimson-glow);
}

.cal-day-cell.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.cal-legend {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.available {
  background-color: var(--accent-gold);
}

.legend-dot.selected {
  background-color: var(--accent-crimson);
}

.slots-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 80px;
}

.slot-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.slot-group-time {
  font-size: 11px;
  color: var(--text-muted);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.slot-btn {
  padding: 10px 4px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  cursor: pointer;
  transition: all var(--trans-fast);
  box-shadow: var(--shadow-inner-light);
  font-variant-numeric: tabular-nums;
}

.slot-btn:active {
  transform: scale(0.95);
}

.slot-btn.selected {
  background-color: var(--accent-crimson);
  border-color: var(--accent-crimson);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--accent-crimson-glow);
}

.slot-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   STEP 4: SUMMARY TICKET & FORM
   ========================================================================== */
.summary-ticket {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-card), var(--shadow-inner-light);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.ticket-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.ticket-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-crimson);
  padding: 3px 8px;
  background-color: var(--accent-crimson-subtle);
  border-radius: 8px;
}

.ticket-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 14px 0;
}

.ticket-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ticket-items {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.ticket-item-name {
  color: var(--text-secondary);
}

.ticket-item-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.ticket-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ticket-price-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ticket-price-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-crimson);
  font-variant-numeric: tabular-nums;
}

.ticket-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.booking-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-card), var(--shadow-inner-light);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: all var(--trans-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-crimson);
  box-shadow: 0 0 0 3px var(--accent-crimson-subtle);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--trans-fast);
}

.input-with-icon:focus-within .input-icon {
  color: var(--accent-crimson);
}

.form-input.has-icon {
  padding-left: 42px;
}

.phone-masked-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  font-feature-settings: "tnum";
}

/* Own chevron: the native arrow sat at the very edge and the text offset differed by browser */
.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8d96' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* ==========================================================================
   CONSENT & PERSONAL DATA PROCESSING (Закон РК «О персональных данных»)
   ========================================================================== */
.consent-agreement-group {
  margin: 16px 0 20px 0;
  padding: 12px 14px;
  background-color: rgba(22, 24, 30, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all var(--trans-fast);
}

.consent-agreement-group.shake-animation {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.08);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
  animation: shakeStep 240ms var(--ease-snappy);
}

.consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
}

.consent-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.custom-checkbox-visual {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: var(--bg-elevated);
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all var(--trans-fast);
  box-shadow: var(--shadow-inner-light);
}

.custom-checkbox-visual .check-icon {
  width: 14px;
  height: 14px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--trans-fast);
}

.consent-checkbox:checked + .custom-checkbox-visual {
  background-color: var(--accent-crimson);
  border-color: var(--accent-crimson);
  box-shadow: 0 0 10px var(--accent-crimson-glow);
}

.consent-checkbox:checked + .custom-checkbox-visual .check-icon {
  opacity: 1;
  transform: scale(1);
}

.consent-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.consent-link {
  color: var(--accent-crimson);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: opacity var(--trans-fast);
}

.consent-link:hover, .consent-link:active {
  opacity: 0.85;
}

/* Privacy Policy Modal Content */
.privacy-modal-body {
  padding: 4px 0 16px 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.privacy-section {
  margin-bottom: 16px;
}

.privacy-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.privacy-paragraph {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.privacy-list {
  padding-left: 18px;
  margin: 6px 0 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.privacy-list li {
  margin-bottom: 4px;
}

.privacy-modal-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}







/* ==========================================================================
   Modals & Bottom Sheets
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  animation: modalFadeIn var(--trans-fast) forwards;
}

.modal-backdrop.hidden {
  display: none !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-sheet {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-medium);
  border-radius: 24px 24px 0 0;
  padding: 16px 20px calc(var(--safe-bottom) + 24px) 20px;
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
  animation: sheetSlideUp var(--trans-fast) forwards;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  box-sizing: border-box;
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  width: 32px;
  height: 32px;
  flex-shrink: 0; /* a long modal title squeezed it into an oval at 320px */
  border-radius: 50%;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}



/* Reviews Modal */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

/* Reviews sheet: header stays, only the list scrolls; the page behind never does */
#reviewsModal,
#privacyModal {
  overscroll-behavior: contain;
  touch-action: none;
}

#reviewsModal .modal-sheet,
#privacyModal .modal-sheet {
  display: flex;
  flex-direction: column;
  max-height: 85dvh;
  overflow: hidden;
}

/* One scroll container per sheet: a nested one made the text stick at its bottom edge */
#privacyModal .privacy-modal-body,
#reviewsModal .reviews-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.review-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
}

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.review-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.review-stars {
  color: #fbbf24;
  font-size: 12px;
}

.review-stars-empty {
  color: var(--text-muted);
}

.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow-wrap: anywhere;
}



/* Toast */
.toast-notification {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(24, 25, 34, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-crimson);
  border-radius: 30px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-floating);
  z-index: 150;
  animation: toastPop 180ms var(--ease-snappy) forwards;
}

@keyframes toastPop {
  from { transform: translate(-50%, -10px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.toast-icon {
  color: #34d399;
  font-weight: bold;
}

/* left: 50% leaves only half the screen for an auto width: size by content, up to the screen minus the gutters */
.toast-notification { width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; }
.toast-text { overflow-wrap: anywhere; }

/* «Код ошибки» under the message: the client quotes it when calling */
.toast-code {
  display: block;
  font: 500 11px/1.4 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.6);
}

.slots-error { color: #f87171; font-size: 12px; grid-column: 1 / -1; }
/* A day with no free time: the reason and the nearest free day (renderEmptyDay) */
.slots-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0 16px; }
.slots-empty-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-primary); }
.slots-empty-hint { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.slots-empty .btn-secondary { min-height: 44px; max-width: 100%; text-align: left; }

.hidden {
  display: none !important;
}

/* Form Validation & Submit Error Banner */
.form-error-msg {
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.4;
}

.form-input.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}

.booking-submit-error {
  background-color: rgba(184, 20, 36, 0.15);
  border: 1px solid rgba(184, 20, 36, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 14px;
}

/* ==========================================================================
   BOOKING CONFIRMATION SCREEN («Готово»)
   ========================================================================== */
.booking-success-screen {
  padding-bottom: 32px;
  animation: fadeIn var(--trans-normal) forwards;
}

.success-hero {
  text-align: center;
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.2) 0%, rgba(197, 160, 89, 0.05) 100%);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}

.success-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.success-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.success-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-card), var(--shadow-inner-light);
  margin-bottom: 14px;
}

.success-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.success-date {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.success-time-range {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.success-duration-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.success-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.success-meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.success-meta-val {
  color: var(--text-primary);
  font-weight: 700;
}

.success-services-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.success-services-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.success-services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.success-service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.success-service-name {
  color: var(--text-primary);
}

.success-service-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.success-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.success-total-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.success-total-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}

.success-location-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card), var(--shadow-inner-light);
  margin-bottom: 14px;
}

.location-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.location-icon {
  font-size: 20px;
  line-height: 1;
}

.location-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.location-address {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.success-directions-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.success-contact-notice {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 8px 16px;
  margin-bottom: 18px;
}

.success-contact-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(197, 160, 89, 0.5);
  transition: border-color var(--trans-fast);
}

.success-contact-link:hover {
  border-bottom-style: solid;
}

.success-action-pad {
  margin-top: 8px;
}

/* «Напомнить в Telegram» under the ticket */
.success-extras {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.success-extras .form-group { margin-bottom: 0; }

/* W5: «Подтвердите номер» — the same frame as «Готово» */
.confirm-lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.confirm-lead b {
  color: var(--text-primary);
  white-space: nowrap;
}

.confirm-tg-btn { text-decoration: none; }

.confirm-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.confirm-qr-svg {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  padding: 6px;
  border-radius: 10px;
  background: #faf9f6;
}

.confirm-qr-svg svg { display: block; width: 100%; height: 100%; }

.confirm-qr p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.confirm-status {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.confirm-status-error { color: #fca5a5; }

.confirm-alt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-alt-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  text-align: center;
}

.confirm-alt .btn-secondary { min-height: 48px; }

.confirm-back {
  align-self: center;
  min-height: 44px;
  padding: 0 12px;
  background: none;
  border: 0;
  color: var(--text-secondary);
  font: 600 13px var(--font-sans);
  cursor: pointer;
  transition: color var(--trans-fast);
}

.confirm-back:hover { color: var(--text-primary); }
.confirm-back:focus-visible, .confirm-tg-btn:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }

/* Phones: 16px fields stop iOS zoom on focus; tap targets reach 44px */
@media (max-width: 767px) {
  .form-input { font-size: 16px; }
  .cat-pill, .slot-btn { min-height: 44px; }
  .cat-pill { padding: 7px 12px; } /* four categories in one row from 375px; narrower phones wrap */
  /* Text link: grow the hit box without moving the card layout */
  .barber-reviews-btn { padding: 15px 4px; margin: -15px -4px; }
  /* 32px visual kept; transparent ring makes the hit area 44px */
  .modal-close, .cal-nav-btn { position: relative; }
  .modal-close::after, .cal-nav-btn::after { content: ''; position: absolute; inset: -6px; }
  /* «Время» is the narrowest step label */
  .progress-step-btn { min-width: 44px; }
  .summary-footer .btn-primary { min-height: 44px; }
  /* Field labels focus their input: 44px hit box, same spacing (padding eaten by negative margins) */
  .form-label { padding: 13px 0; margin: -13px 0 -7px; }
  /* Inline link inside the consent text: vertical padding grows the hit box, not the line */
  .consent-link { padding: 5px 0; }
  /* «Готово»: the shop phone inside the sentence, a 44px hit box without moving the line */
  .success-contact-link { display: inline-block; padding: 13px 0; margin: -13px 0; }
}

/* Desktop Viewport Alignment */
@media (min-width: 768px) {
  body {
    background-color: var(--bg-canvas);
  }

  .app-container {
    max-width: 540px;
    margin: 0 auto;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }



  .modal-sheet {
    max-width: 540px;
  }
}

/* «Любой мастер»: earliest free time, filled by loadAnyNearest(); empty until it loads */
.any-nearest {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.any-nearest:empty { display: none; }



/* ==========================================================================
   SHOWCASE (landing, britvabarber.ru-style) — the booking flow lives in the drawer below
   ========================================================================== */
.sc {
  --sc-display: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --sc-go: linear-gradient(100deg, #e0233a, #9b0f1d);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.sc-d {
  font-family: var(--sc-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
}

.sc-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}
.sc-logo {
  padding: 3px 0;
  font-family: var(--sc-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text-primary);
  text-decoration: none;
}
.sc-logo small {
  display: block;
  margin-top: 4px;
  font: 600 9px var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.sc-open {
  font: 600 12px var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sc-open::before { content: '● '; }
.sc-open.status-open::before { color: #34d399; }
.sc-open.status-closed::before { color: var(--text-muted); }
.sc-box .sc-open { white-space: normal; overflow-wrap: anywhere; } /* a closure adds its reason here */
.sc-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.sc-nav a {
  font: 700 13px var(--sc-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--trans-fast);
}
.sc-nav a:hover { color: var(--text-primary); }

.sc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--text-primary);
  font: 700 13px var(--sc-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--trans-fast), background-color var(--trans-fast), color var(--trans-fast), transform var(--trans-fast);
}
.sc-pill:hover { border-color: rgba(255, 255, 255, 0.35); }
.sc-pill:active { transform: scale(0.98); }
.sc-pill:focus-visible, .sc-go:focus-visible, .sc-nav a:focus-visible, .sc-logo:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}
.sc-pill-on {
  background: var(--text-primary);
  color: var(--bg-canvas);
  border-color: var(--text-primary);
}
.sc-head .sc-pill { flex-shrink: 0; }

.sc-go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
  border: 0;
  border-radius: 20px;
  background: var(--sc-go);
  color: #fff;
  font: 800 20px var(--sc-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-inner-light);
  transition: filter var(--trans-fast), transform var(--trans-fast);
}
.sc-go:hover { filter: brightness(1.1); }
.sc-go:active { transform: scale(0.98); }
.sc-go span { transition: transform var(--trans-fast); }
.sc-go:hover span { transform: translateX(4px); }

/* Hero: hall photo under a dark wash, the name across it */
.sc-hero {
  position: relative;
  height: min(640px, 78vh);
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: #111;
}
.sc-hero-bg {
  position: absolute;
  inset: 0;
  background: url(assets/hall-1.jpg?v=2) center / cover;
}
.sc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 16, 20, 0.2), rgba(15, 16, 20, 0.75));
}
.sc-hero-in {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}
.sc-kicker {
  font: 700 15px var(--sc-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sc-hero-title {
  font-size: clamp(76px, 17vw, 210px);
  margin: 6px 0 12px;
}
.sc-hero-sub { font-size: clamp(26px, 4vw, 46px); }
.sc-hero-sub em { color: #e0233a; font-style: inherit; }
.sc-hero-title, .sc-hero-sub { overflow: hidden; padding: 0 0.06em; }
.sc-hero-title span, .sc-hero-sub span { display: inline-block; }

.sc-row3 {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.sc-box {
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 24px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-inner-light);
  min-width: 0;
}
.sc-box p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-top: 10px; }
.sc-box-big { font-size: 40px; }
.sc-box-mid { font-size: 30px; margin-top: 6px; }
.sc-box-addr { font-size: clamp(34px, 5vw, 56px); }
.sc-more {
  display: inline-block;
  margin-top: 8px;
  padding: 15px 0;
  font: 700 13px var(--sc-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
}
.sc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sc-links .sc-pill { padding: 0 16px; }

.sc-notices:not(:empty) { margin-top: 20px; }
.sc-notices .site-notices { margin: 0; }

/* Sections */
/* a nav jump skips most of the top padding: the heading lands ~32px below the viewport top */
.sc-sec { padding-top: 110px; scroll-margin-top: -78px; }
.sc-h2 {
  font-size: clamp(56px, 10vw, 120px);
  margin-bottom: 36px;
  overflow: hidden;
  /* the reveal mask clips: room for Ё/Й above the tight 0.92 line and Д/Щ below, layout unchanged */
  padding: 0.16em 0.08em 0.08em 0;
  margin-top: -0.16em;
}
.sc-h2 span { display: inline-block; }
.sc-lead { color: var(--text-secondary); margin: -20px 0 28px; }

/* Masters: photo cards; the photo part books, the bottom line opens the barber's reviews */
.sc-team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.sc-tm {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: border-color var(--trans-fast);
}
.sc-tm:hover { border-color: rgba(255, 255, 255, 0.35); }
.sc-tm-go, .sc-tm-rv { border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sc-tm-go { display: flex; flex-direction: column; flex: 1; padding: 0; transition: transform var(--trans-fast); }
.sc-tm-go:active { transform: scale(0.98); }
.sc-tm-rv {
  min-height: 44px;
  padding: 0 16px;
  border-top: 1px solid var(--border-subtle);
  font: 600 13px var(--font-mono);
  color: var(--accent-gold);
  transition: color var(--trans-fast), background-color var(--trans-fast);
}
.sc-tm-rv:hover { background: rgba(255, 255, 255, 0.04); }
.sc-tm-go:focus-visible, .sc-tm-rv:focus-visible { outline: 2px solid var(--text-primary); outline-offset: -2px; border-radius: 20px; }
.sc-tm-ph { display: block; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--bg-elevated); }
.sc-tm-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 300ms var(--ease-snappy);
}
@media (hover: hover) {
  .sc-tm:hover .sc-tm-ph img { transform: scale(1.04); }
}
.sc-tm-in {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px 2px;
}
.sc-tm-in b {
  font: italic 900 26px var(--sc-display);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-tm-near {
  margin-top: auto; /* a neighbour's two-line note («Временно не принимает записи») stretches the row: stay at the bottom */
  padding: 0 16px 16px;
  font: 600 12px var(--font-mono);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.sc-tm-near:empty::before { content: 'Записаться →'; }

/* Running line between sections */
.sc-marquee {
  margin: 110px -32px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.sc-marquee-track { display: flex; width: max-content; }
.sc-marquee-track span {
  display: block;
  padding-right: 0;
  font: italic 900 34px var(--sc-display);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-secondary);
}
.sc-marquee-track i { font-style: normal; color: #e0233a; margin: 0 24px; }

/* Services: category pills with a sliding highlight, then the price table */
.sc-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.sc-tab-mark {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--text-primary);
  transition: transform 200ms var(--ease-snappy), width 200ms var(--ease-snappy);
}
.sc-tabs .sc-pill { position: relative; }
#scTabs .sc-pill-on { background: transparent; border-color: transparent; color: var(--bg-canvas); } /* the sliding mark is the fill */
.sc-th, .sc-pr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 140px 140px;
  align-items: center;
  gap: 20px;
}
.sc-th {
  font: 600 11px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-medium);
}
.sc-pr {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
  animation: scRowIn 200ms var(--ease-snappy) both;
}
.sc-pr-name { min-width: 0; }
.sc-pr b { font: 800 22px var(--sc-display); text-transform: uppercase; overflow-wrap: anywhere; }
.sc-pr small { display: block; color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.sc-pr-t { font: 500 14px var(--font-mono); color: var(--text-secondary); }
.sc-pr-p { font: 600 20px var(--font-mono); }
@keyframes scRowIn { from { opacity: 0; transform: translateY(6px); } }

/* Interior: one big photo and four small */
.sc-gal {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 20px;
}
.sc-gal div { border-radius: 20px; border: 1px solid var(--border-medium); background: #111 center / cover; }
.sc-gal div:first-child { grid-row: span 2; }

/* Reviews */
.sc-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.sc-rv {
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 24px;
  background: var(--bg-surface);
  min-width: 0;
}
.sc-rv-stars { color: var(--accent-gold); letter-spacing: 0.15em; font-size: 14px; }
.sc-rv-stars span { color: var(--text-muted); }
.sc-rv blockquote { margin: 14px 0 18px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.sc-rv figcaption { font: 600 12px var(--font-mono); color: var(--text-secondary); }

/* Products */
.sc-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.sc-prod { min-width: 0; display: flex; flex-direction: column; }
.sc-prod-ph { position: relative; }
.sc-prod.is-out .sc-prod-ph img { opacity: 0.45; filter: grayscale(1); }
.sc-prod-out {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 16, 20, 0.85);
  color: var(--text-primary);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.04em;
}
.sc-prod-btn { margin-top: auto; width: 100%; }
.sc-prod-open {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sc-prod-open .sc-prod-ph img { transition: transform var(--trans-normal); }
.sc-prod-open:hover .sc-prod-ph img { transform: scale(1.04); }
.sc-prod-open:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; border-radius: 20px; }

/* Product details sheet: bottom sheet on a phone, centred dialog from 768px */
.sc-prod-ph.product-photo { aspect-ratio: 16 / 10; margin: 4px 0 16px; }
.product-photo img { padding: 4%; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; font: 600 12px var(--font-mono); color: var(--text-secondary); }
.product-stock { color: #34d399; white-space: nowrap; }
.product-stock.is-out { color: var(--text-muted); }
.product-price { font: 700 24px var(--font-mono); margin: 6px 0 14px; }
.product-h { font: 700 13px 'Roboto Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; margin: 16px 0 4px; }
.product-text { color: var(--text-secondary); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.product-sheet .sc-prod-btn { margin-top: 20px; min-height: 48px; }
.product-note { margin-top: 10px; text-align: center; font-size: 12px; color: var(--text-muted); }
@media (min-width: 768px) {
  #productModal { justify-content: center; padding: 24px; }
  #productModal .modal-sheet { max-width: 520px; border: 1px solid var(--border-medium); border-radius: 20px; padding-bottom: 24px; }
}
.sc-prod-p { margin-bottom: 14px; }

/* Cart: header badge, the cart sheet (same sheet as product details) and «Выбранные товары» in the booking summary */
.sc-cart { gap: 6px; padding: 0 14px; }
.sc-cart[hidden] { display: none; }
.sc-head .sc-cart:not([hidden]) + .sc-pill { margin-left: 0; } /* a hidden cart is still the sibling (audit С-2) */
.cart-list { display: flex; flex-direction: column; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border-subtle); }
.cart-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; color: var(--text-primary); overflow-wrap: anywhere; text-align: left; }
.cart-name small { font: 600 12px var(--font-mono); color: var(--text-secondary); }
.cart-qty { display: flex; align-items: center; flex-shrink: 0; }
.cart-qty b { min-width: 24px; text-align: center; font: 700 14px var(--font-mono); }
.cart-qty button {
  width: 44px; height: 44px; border: 0; background: none; color: var(--text-primary);
  font-size: 20px; cursor: pointer; border-radius: 999px; transition: background-color var(--trans-fast), transform var(--trans-fast);
}
.cart-qty button:hover:not(:disabled) { background: var(--border-subtle); }
.cart-qty button:active:not(:disabled) { transform: scale(0.94); }
.cart-qty button:disabled { color: var(--text-muted); cursor: default; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 4px; font-size: 14px; color: var(--text-secondary); }
.cart-total b { font: 700 22px var(--font-mono); color: var(--text-primary); }
.cart-go { width: 100%; min-height: 48px; margin-top: 10px; }
.ticket-products-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-add {
  min-height: 44px; margin: -12px -10px -12px 0; padding: 0 10px; border: 0; background: none;
  color: var(--accent-crimson-hover); font: 700 13px var(--font-sans); cursor: pointer;
}
.ticket-add:focus-visible, .ticket-pick:focus-visible, .cart-qty button:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.ticket-picker { display: flex; flex-direction: column; margin-top: 8px; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--border-subtle); scrollbar-width: thin; }
.ticket-pick {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border: 0;
  border-bottom: 1px solid var(--border-subtle); background: none; cursor: pointer; text-align: left;
}
.ticket-pick:active:not(:disabled) { transform: scale(0.99); }
.ticket-pick:disabled { opacity: 0.5; cursor: default; }
.ticket-pick img { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; border-radius: 10px; background: #f4f4f2; }
.ticket-pick .cart-name { flex: 1; }
.ticket-pick-add { flex-shrink: 0; font: 700 13px var(--font-mono); color: var(--accent-crimson-hover); white-space: nowrap; }
.catalog-tools { display: flex; gap: 10px; margin: -12px 0 28px; }
.catalog-search, .catalog-sort {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--border-medium); border-radius: 999px;
  background: transparent; color: var(--text-primary); font: 500 15px var(--font-sans);
}
.catalog-search { flex: 1; min-width: 0; }
.catalog-sort { flex-shrink: 0; padding-right: 40px; } /* .form-select: Safari keeps a native select at 26px tall */
.catalog-sort option { background: var(--bg-elevated); }
.catalog-search:focus-visible, .catalog-sort:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.catalog-empty { grid-column: 1 / -1; color: var(--text-secondary); }
.catalog-empty .sc-more { margin: 0; border: 0; background: none; cursor: pointer; }
@media (max-width: 767px) {
  .catalog-tools { flex-direction: column; }
  .catalog-search, .catalog-sort { font-size: 16px; } /* iOS zooms into smaller inputs */
}
/* last ribbon card: the way into /shop */
.sc-prod-all {
  justify-content: space-between;
  min-height: 220px;
  padding: 24px;
  border: 1px dashed var(--border-hover);
  border-radius: 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color var(--trans-fast), background-color var(--trans-fast);
}
.sc-prod-all:hover { border-style: solid; background: var(--bg-surface); }
.sc-prod-all .sc-d { font-size: 40px; }
.sc-prod-all-n { font: 600 13px var(--font-mono); color: var(--text-secondary); }
.sc-prod-all:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }

/* Ribbon: swipe on a phone, arrows on a computer; snap so a card never stops half-cut */
.sc-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.sc-arrows { display: none; gap: 8px; margin-bottom: 36px; }
@media (hover: hover) and (min-width: 768px) { .sc-arrows { display: flex; } }
.sc-arrow { width: 48px; padding: 0; font-size: 18px; }
.sc-arrow:disabled { color: var(--text-muted); border-color: var(--border-subtle); cursor: default; transform: none; }
.sc-products.sc-ribbon {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.sc-ribbon::-webkit-scrollbar { display: none; }
.sc-ribbon > * { scroll-snap-align: start; }

/* /shop: header, catalog, footer only */
.is-shop .sc > :not(.sc-head):not(#catalog):not(.sc-foot) { display: none !important; }
.is-shop #catalog { padding: 24px 0 80px; }
#catalog .sc-tabs { margin-bottom: 32px; }
.sc-prod-ph {
  display: block;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: #f4f3ef;
  margin-bottom: 14px;
}
.sc-prod-ph img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.sc-prod small { font: 600 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.sc-prod b { display: block; margin: 4px 0 6px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.sc-prod-p { font: 600 15px var(--font-mono); }

.sc-find {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
/* Height fixed before anything loads, so swapping in the widget moves nothing */
.sc-map {
  grid-column: 1 / -1;
  aspect-ratio: 5 / 2;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-surface);
}
.sc-map-sketch {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.sc-map-sketch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-map-sketch .sc-pill { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); }
.sc-map-sketch:active .sc-pill { transform: translateX(-50%) scale(0.98); }
.sc-map-sketch:focus-visible { outline: 2px solid var(--text-primary); outline-offset: -2px; border-radius: 20px; }
.sc-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.sc-end {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: center;
  padding: 120px 0 48px;
}
.sc-end .sc-h2 { margin: -0.16em 0 0; }
.sc-end .sc-go { min-height: 200px; font-size: 24px; }
.sc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
}
.sc-foot a { color: inherit; padding: 13px 0; margin: -13px 0; } /* 44px hit box, same line */

.sc-sticky { display: none; }

/* Tablet */
@media (max-width: 1023px) {
  .sc-nav { display: none; }
  .sc-head .sc-pill { margin-left: auto; }
  .sc-team, .sc-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-products.sc-ribbon { grid-auto-columns: calc((100% - 40px) / 3); }
  .sc-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-row3 { grid-template-columns: 1fr 1fr; }
  .sc-row3 .sc-go { grid-column: 1 / -1; grid-row: 1; min-height: 110px; }
}

/* Phones: one column, the booking button follows the thumb */
@media (max-width: 767px) {
  .sc { padding: 0 16px; }
  .sc-head { gap: 12px; padding: 14px 0; }
  .sc-head .sc-open { display: none; }
  .sc-logo { font-size: 22px; }
  .sc-hero { height: 72svh; min-height: 400px; border-radius: 20px; }
  .sc-kicker { font-size: 13px; }
  .sc-row3, .sc-find, .sc-end { grid-template-columns: minmax(0, 1fr); }
  .sc-row3 .sc-go { min-height: 88px; }
  .sc-map { aspect-ratio: 4 / 3; }
  .sc-sec { padding-top: 72px; scroll-margin-top: -40px; }
  .sc-h2 { margin-bottom: 24px; }
  .sc-team, .sc-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sc-products.sc-ribbon { grid-auto-columns: 62%; margin-right: -16px; padding-right: 16px; scroll-padding-left: 0; }
  .sc-prod-all .sc-d { font-size: 32px; }
  .sc-reviews { grid-template-columns: minmax(0, 1fr); }
  .sc-tm-in { padding: 12px 12px 2px; }
  .sc-tm-in b { font-size: 21px; }
  .sc-tm-near { padding: 0 12px 12px; }
  .sc-tm-rv { padding: 0 12px; white-space: nowrap; }
  .sc-tm-rv span { display: none; } /* the arrow doesn't fit a half-width card */
  .sc-marquee { margin: 72px -16px 0; padding: 14px 0; }
  .sc-marquee-track span { font-size: 26px; }
  .sc-th { display: none; }
  .sc-pr { grid-template-columns: auto auto 1fr; gap: 6px 14px; padding: 18px 0; }
  .sc-pr-name { grid-column: 1 / -1; }
  .sc-pr .sc-pill { justify-self: end; }
  .sc-pr-p { font-size: 17px; }
  .sc-gal { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 130px 130px; gap: 10px; }
  .sc-gal div { border-radius: 14px; }
  .sc-gal div:first-child { grid-column: 1 / -1; grid-row: auto; }
  .sc-end { padding: 80px 0 32px; }
  .sc-end .sc-go { min-height: 96px; }
  .sc-foot { padding-bottom: 104px; }
  .sc-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--safe-bottom) + 12px);
    z-index: 80;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    background: var(--sc-go, linear-gradient(100deg, #e0233a, #9b0f1d));
    color: #fff;
    font: 800 16px 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-floating);
    animation: slideUpSticky 180ms var(--ease-snappy) both;
  }
  .sc-sticky[hidden] { display: none; }
}
@keyframes slideUpSticky { from { opacity: 0; transform: translateY(16px); } }

/* ==========================================================================
   BOOKING DRAWER: right panel on a computer, full screen from below on a phone
   The drawer keeps a transform, so the flow's fixed footers, sheets and its toast stay inside it
   ========================================================================== */
.booking-scrim {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(15, 16, 20, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-snappy);
}
.booking-scrim.open { opacity: 1; pointer-events: auto; }
.booking-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  background: var(--bg-canvas);
  border-left: 1px solid var(--border-medium);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 220ms var(--ease-snappy), visibility 0s linear 220ms;
}
.booking-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 220ms var(--ease-snappy), visibility 0s;
}
.booking-drawer .app-container {
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* A sheet over the flow stops the flow scrolling under it */
#btnCloseBooking { min-width: 44px; font-size: 16px; }
.booking-drawer .app-container:has(.modal-backdrop:not(.hidden)) { overflow: hidden; }
.toast-notification { z-index: 300; }
@media (max-width: 767px) {
  .booking-drawer { max-width: none; border-left: 0; transform: translateY(100%); }
}

/* ==========================================================================
   SHOWCASE MOTION (off for «reduce motion»)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .sc-hero-bg { animation: scHeroZoom 1400ms var(--ease-snappy) both; }
  .sc-kicker { animation: scFade 600ms var(--ease-snappy) 150ms both; }
  .sc-hero-title span { animation: scRise 800ms var(--ease-snappy) 100ms both; }
  .sc-hero-sub span { animation: scRise 800ms var(--ease-snappy) 250ms both; }

  .sc-motion .sc-reveal span { transform: translateY(105%) skewY(4deg); transition: transform 700ms var(--ease-snappy); }
  .sc-motion .sc-reveal.in span { transform: none; }
  /* an animation, not a transition: the cards' own hover/press transitions stay instant */
  .sc-motion .sc-stagger:not(.in) > * { opacity: 0; }
  .sc-motion .sc-stagger.in > * { animation: scCardIn 500ms var(--ease-snappy) calc(var(--i, 0) * 60ms) both; }

  .sc-marquee-track { animation: scMarquee 40s linear infinite; }
}
@keyframes scHeroZoom { from { transform: scale(1.1); } }
@keyframes scRise { from { transform: translateY(105%); } }
@keyframes scFade { from { opacity: 0; } }
@keyframes scCardIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes scMarquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .booking-drawer, .booking-scrim, .sc-tab-mark { transition: none; }
}
