body {
  background: var(--bg-deep);
  color: var(--text-main);
}

.book-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--page-pad, 16px) var(--space-12);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 90% 45% at 50% -5%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 55%),
    var(--bg-deep);
  color: var(--text-main);
  position: relative;
  z-index: 1;
}

.book-header {
  width: 100%;
  max-width: 540px;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.book-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.book-logo {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
}

.book-logo-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.salon-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-5);
  width: 100%;
  max-width: 540px;
  overflow: hidden;
}

.salon-card--has-cover {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

.salon-brand-cover-box {
  width: 100%;
  height: 132px;
  background: var(--bg-2);
  overflow: hidden;
}

.salon-brand-cover-box.salon-brand-pending,
.salon-brand-logo.salon-brand-pending {
  background: var(--bg-2);
}

.salon-brand-logo.salon-brand-pending {
  opacity: 0.55;
}

.salon-brand-cover {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
}

.salon-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.salon-card--has-cover .salon-card-head {
  padding: var(--space-3) var(--space-5) 0;
  position: relative;
  z-index: 1;
  background: var(--surface);
}

.salon-card--has-cover.salon-card--has-logo .salon-card-head {
  padding-top: var(--space-2);
  align-items: flex-start;
}

.salon-card--has-cover .salon-card-body {
  padding: var(--space-2) var(--space-5) var(--space-5);
}

.salon-brand-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-2);
  flex-shrink: 0;
}

.salon-card--has-cover.salon-card--has-logo .salon-brand-logo {
  margin-top: -30px;
  position: relative;
  z-index: 2;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-sm);
}

.salon-card-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
  font: inherit;
  color: inherit;
}

.salon-card-toggle .salon-name {
  margin-bottom: 0;
}

.salon-card-chevron {
  display: none;
  font-size: 12px;
  color: var(--text-3);
  flex-shrink: 0;
}

.salon-card-body.is-collapsed {
  display: none;
}

.demo-banner {
  width: 100%;
  max-width: 540px;
  margin-bottom: var(--space-3);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--badge-warn-fg) 24%, var(--border));
  background: var(--badge-warn-bg);
  color: var(--badge-warn-fg);
  line-height: 1.35;
  box-shadow: var(--shadow-sm);
}

.demo-banner--preview {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  color: var(--text);
}

.demo-banner--preview .demo-banner-badge {
  background: var(--accent);
  color: var(--on-accent, #fff);
}

.demo-banner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.demo-banner-copy {
  flex: 1 1 11rem;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-banner-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--badge-warn-fg);
  color: var(--on-accent, #fff);
}

.demo-banner-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: inherit;
}

.demo-banner-meta {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-2);
}

.demo-banner-meta a {
  color: var(--accent);
  text-decoration: none;
}

.demo-banner-meta a:hover {
  text-decoration: underline;
}

.demo-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}

.demo-banner-cta,
.demo-banner-complaint {
  width: auto;
  min-height: 34px;
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.demo-banner-complaint {
  color: var(--text-2);
}

.demo-pdn-gap {
  margin: 8px 0 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-3, var(--text-2));
}

.salon-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-1);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.salon-meta {
  font-size: var(--text-sm);
  color: var(--text-2);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  line-height: 1.5;
}

.stepper {
  width: 100%;
  max-width: 540px;
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg-deep));
  box-shadow: var(--shadow-sm);
}

.stepper-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 0;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step.done:not(:last-child)::after { background: var(--accent); }

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.step.active .step-dot,
.step.done .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}

.step-label {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  line-height: 1.25;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step.active .step-label,
.step.done .step-label { color: var(--accent); font-weight: 600; }

.panel {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--space-6);
  width: 100%;
  max-width: 540px;
  margin-bottom: var(--space-3);
}

.panel-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.book-step-panel .panel-title {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

#panel-entry .panel-title {
  margin-bottom: var(--space-3);
}

.book-entry-panel {
  padding: var(--space-4) var(--space-5);
}

.book-entry-heading {
  margin: 0 0 var(--space-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.book-entry-choices--triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.book-entry-choices--triple .book-entry-card {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 96px;
  padding: var(--space-4) var(--space-3);
  gap: var(--space-2);
  border-radius: 12px;
}

.book-entry-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-card));
  color: var(--accent);
  flex-shrink: 0;
}

.book-entry-card-icon svg {
  width: 20px;
  height: 20px;
}

.book-entry-card--primary .book-entry-card-icon {
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-card));
}

.book-entry-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.book-entry-choices--triple .book-entry-card-title {
  font-size: 13px;
}

.book-entry-choices--triple .book-entry-card-sub {
  font-size: 11px;
  line-height: 1.3;
}

.book-entry-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.book-entry-tile--accent {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
}

.book-entry-tile-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

@media (hover: hover) {
  .book-entry-tile:hover {
    border-color: var(--accent-mid);
    background: var(--accent-lt);
  }
}

.book-entry-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.salon-address-line {
  flex: 1 1 100%;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-2);
}

.salon-entry-teaser {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
  display: none;
}

.book-wrap--entry .salon-card {
  margin-bottom: 0;
  padding: var(--space-4) var(--space-5);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  box-shadow: var(--shadow-sm);
}

.book-wrap--entry .salon-card--has-cover {
  padding-top: 0;
}

.book-wrap--entry .salon-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-wrap--entry .salon-entry-teaser {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-wrap--entry #salon-phone-wrap,
.book-wrap--entry #salon-desc,
.book-wrap--entry #demo-pdn-gap {
  display: none !important;
}

.book-wrap--entry .demo-banner {
  margin-bottom: var(--space-3);
}

.book-wrap--entry #panel-entry {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.book-wrap--entry .book-legal-footer-wrap {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
}

.book-wrap--entry .book-legal-footer-inner {
  gap: 8px;
  padding: var(--space-3) var(--space-4);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg-deep));
  border: 1px solid var(--border);
}

.book-wrap--entry .book-legal-note,
.book-wrap--entry .book-legal-salon-line,
.book-wrap--entry .book-legal-facts-inline {
  font-size: 11px;
  line-height: 1.4;
}

.book-wrap--entry .book-legal-links {
  gap: 6px;
}

.book-wrap--entry .book-legal-links a {
  font-size: 11px;
  line-height: 1.35;
}

.book-wrap--entry .salon-card-chevron {
  display: none;
}

.book-wrap--entry .salon-card-toggle {
  pointer-events: none;
  cursor: default;
}

.book-entry-lead {
  margin: 0 0 var(--space-5);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.book-entry-choices {
  display: grid;
  gap: var(--space-3);
}

.book-entry-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  min-height: 44px;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.book-entry-option--primary {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
}

.book-entry-radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}

.book-entry-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform var(--transition);
}

.book-entry-option[aria-checked="true"] {
  border-color: var(--accent-mid);
  background: var(--accent-lt);
  box-shadow: var(--shadow-sm);
}

.book-entry-option[aria-checked="true"] .book-entry-radio {
  border-color: var(--accent);
}

.book-entry-option[aria-checked="true"] .book-entry-radio::after {
  transform: scale(1);
}

.book-entry-option-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

@media (hover: hover) {
  .book-entry-option:hover {
    border-color: var(--accent-mid);
    background: var(--accent-lt);
  }
}

.book-entry-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.book-entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  width: 100%;
  min-height: 44px;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
}

.book-entry-card--primary {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
  box-shadow: inset 3px 0 0 var(--accent);
}

@media (hover: hover) {
  .book-entry-card:hover {
    border-color: var(--accent-mid);
    background: var(--accent-lt);
    box-shadow: var(--shadow-sm);
  }

  .book-entry-card--primary:hover {
    box-shadow: var(--shadow-sm), inset 3px 0 0 var(--accent);
  }
}

.book-entry-card:active {
  transform: scale(0.99);
}

.book-entry-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.book-entry-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.book-entry-card-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.45;
}

.book-step-hint {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--accent-lt);
  border: 1px solid var(--accent-mid);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

@media (min-width: 640px) {
  .book-entry-choices {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 769px) {
  .book-step-panel .panel-title {
    font-size: 1.25rem;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-5);
  }
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}

.item-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-3);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  text-align: center;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--surface);
  -webkit-tap-highlight-color: transparent;
}

button.item-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.item-card.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.item-card:active:not(.selected) {
  transform: scale(0.98);
}

.item-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-lt);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.item-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) {
  .item-card:hover {
    border-color: var(--accent-mid);
    background: var(--accent-lt);
    box-shadow: var(--shadow-sm);
  }
}

.item-card.selected {
  border-color: var(--accent);
  background: var(--accent-lt);
  box-shadow: 0 0 0 1px var(--cal-selected-bg);
}

.item-card-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.35;
}

.item-card-sub  { font-size: var(--text-xs); color: var(--text-2); }

.item-card-branches {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
  max-width: 100%;
}

.book-branch-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .book-branch-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.book-branch-card {
  align-items: flex-start;
  text-align: left;
  padding: var(--space-4);
}

.book-branch-info {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--accent-lt);
  border: 1px solid var(--accent-mid);
}

.book-branch-info-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-main);
}

.book-branch-info-address {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.book-slots-branch-alt {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
}

.book-slots-branch-alt-text {
  margin: 0 0 var(--space-2);
  font-weight: 600;
  color: var(--text-main);
}

.book-slots-branch-alt-sub {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.book-slots-branch-alt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.book-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin: var(--space-4) 0;
}
.item-card-price { font-size: var(--text-sm); font-weight: 600; color: var(--accent); margin-top: var(--space-1); }
.item-card-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--danger);
  margin-top: var(--space-2);
  text-align: center;
}
.item-card-badge-info {
  color: var(--text-2);
  font-weight: 500;
}
.item-card.no-slots {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
}

.date-row-wrap {
  position: relative;
  margin-bottom: var(--space-4);
}

.date-row-wrap:not(.has-horizontal-overflow) .date-row {
  mask-image: none;
  -webkit-mask-image: none;
}

.date-scroll-hint {
  display: none;
  font-size: 11px;
  color: var(--text-2);
  text-align: center;
  margin-top: 6px;
  line-height: 1.35;
}

.date-row-wrap.has-horizontal-overflow .date-scroll-hint:not(.is-hidden) {
  display: block;
}

.date-more-btn {
  width: 100%;
  margin-top: var(--space-2);
  min-height: 40px;
  justify-content: center;
  font-size: 13px;
  border-style: dashed;
}

.date-row {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: var(--space-1);
  scrollbar-width: thin;
  margin-bottom: 0;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.date-row.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.date-row::-webkit-scrollbar {
  height: 4px;
  display: block;
}

.date-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.date-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.date-row-wrap.has-horizontal-overflow .date-nav {
  display: inline-flex;
}

.date-nav-prev { left: -4px; }
.date-nav-next { right: -4px; }

@media (hover: hover) {
  .date-nav:hover {
    border-color: var(--accent-mid);
    background: var(--accent-lt);
  }
}

.date-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 64px;
  min-height: 72px;
  transition: border-color var(--transition), background var(--transition);
  font: inherit;
  color: inherit;
  background: var(--surface);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.date-chip:active:not(.selected) {
  transform: scale(0.97);
}

@media (hover: hover) {
  .date-chip:hover {
    border-color: var(--accent-mid);
    background: var(--accent-lt);
  }
}

.date-chip.selected {
  border-color: var(--accent);
  background: var(--accent-lt);
}

.date-chip-day {
  font-size: var(--text-xs);
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.date-chip-num {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.date-chip-mon { font-size: var(--text-xs); color: var(--text-3); }

.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.book-wrap .slot-btn {
  padding: var(--space-2) var(--space-4);
  min-height: 44px;
  min-width: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.book-wrap .slot-btn:hover:not(.taken) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
}

.book-wrap .slot-btn.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.book-wrap .slot-btn.taken {
  opacity: .35;
  cursor: not-allowed;
  border-color: var(--border);
}

.book-wrap .form-group { margin-bottom: var(--space-4); }

.book-wrap .form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: var(--space-2);
  display: block;
}

.book-wrap .form-input {
  width: 100%;
  padding: 12px var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: var(--text-base);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}

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

.book-wrap .btn-primary {
  width: 100%;
  padding: 14px var(--space-4);
  min-height: 48px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--transition), opacity var(--transition), transform 0.18s ease;
  margin-top: var(--space-1);
}

@media (hover: hover) {
  .book-wrap .btn-primary:hover:not(:disabled) { background: var(--accent-dk); }
}

.book-wrap .btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-back {
  font-size: var(--text-sm);
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
}

.btn-back:hover { color: var(--accent); }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-2); flex-shrink: 0; }
.summary-value { font-weight: 600; color: var(--text); text-align: right; max-width: 58%; }

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--on-accent);
  animation: checkBounce 0.4s ease;
}

.success-icon svg { width: 36px; height: 36px; }

.success-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.success-sub {
  font-size: var(--text-sm);
  color: var(--text-2);
  text-align: center;
  margin-bottom: var(--space-5);
  line-height: 1.6;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.vk-reminder-block {
  text-align: center;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.vk-reminder-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--space-3);
}

.vk-reminder-steps {
  text-align: left;
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 auto var(--space-3);
  padding-left: 1.25rem;
  max-width: 320px;
}

.vk-reminder-steps li + li {
  margin-top: var(--space-2);
}

.vk-reminder-note {
  margin-bottom: var(--space-4) !important;
  font-size: var(--text-xs) !important;
}

.vk-reminder-block a.btn-primary {
  display: inline-block;
  text-decoration: none;
}

.book-wrap .empty-state {
  text-align: center;
  color: var(--text-3);
  padding: var(--space-6) 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.err-msg { color: var(--danger); font-size: var(--text-sm); margin-top: var(--space-2); }

.book-wrap .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.5);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: var(--space-2);
}

@keyframes spin { to { transform: rotate(360deg); } }

.not-found {
  text-align: center;
  padding: 60px var(--space-5);
  color: var(--text-2);
}

.not-found h2 {
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.book-step-panel[hidden] { display: none !important; }

/* Юридический футер /book — мини-блок, все ссылки сохранены */
.book-legal-footer-wrap {
  width: 100%;
  max-width: 540px;
  margin-top: var(--space-5);
  padding: var(--space-3) 0 var(--space-2);
  border-top: 1px solid var(--border);
  background: transparent;
  text-align: center;
}

.book-legal-footer-wrap--mini .book-legal-footer-inner {
  gap: 6px;
}

.book-legal-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.book-legal-salon-line {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-2);
  max-width: 40rem;
}

.book-legal-salon-line a {
  color: var(--accent);
  text-decoration: none;
}

.book-legal-salon-line a:hover {
  text-decoration: underline;
}

.book-legal-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-3);
  max-width: 40rem;
}

.book-legal-note--disclaimer {
  color: var(--text-3);
}

.book-legal-platform {
  width: 100%;
  max-width: 40rem;
}

.book-legal-facts-inline {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 2px 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-3);
}

.book-legal-facts-inline > span:not(.book-legal-fact-sep) {
  max-width: 100%;
}

.book-legal-fact-k {
  font-weight: 600;
  color: var(--text-2);
}

.book-legal-fact-sep {
  margin: 0 5px;
  color: var(--border);
  user-select: none;
}

.book-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 4px 0 0;
  margin: 0;
  border: none;
}

.book-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-2);
  text-decoration: none;
  background: color-mix(in srgb, var(--bg-2) 80%, var(--surface));
  border: 1px solid var(--border);
  white-space: nowrap;
  text-align: center;
  max-width: 100%;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

@media (hover: hover) {
  .book-legal-links a:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
    text-decoration: none;
  }
}

.book-legal-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-2);
  margin-bottom: var(--space-3);
  line-height: 1.55;
  min-height: 44px;
}

.consent-row input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
}

.consent-row a { color: var(--accent); text-decoration: underline; }

@media (max-width: 768px) {
  .book-wrap {
    padding: var(--space-3) var(--page-pad, 12px) var(--space-10);
  }

  .book-header {
    margin-bottom: var(--space-4);
    width: 100%;
    max-width: 540px;
    padding: var(--space-3) 0;
  }

  .salon-card {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .salon-card--has-cover {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .salon-brand-cover-box {
    height: 108px;
  }

  .salon-brand-logo {
    width: 52px;
    height: 52px;
  }

  .salon-card--has-cover.salon-card--has-logo .salon-brand-logo {
    margin-top: -26px;
  }

  .salon-card--has-cover .salon-card-head {
    padding: var(--space-3) var(--space-4) 0;
  }

  .salon-card--has-cover.salon-card--has-logo .salon-card-head {
    padding-top: var(--space-2);
  }

  .salon-card--has-cover .salon-card-body {
    padding: var(--space-2) var(--space-4) var(--space-4);
  }

  .salon-name {
    font-size: var(--text-lg);
    line-height: 1.3;
    word-break: break-word;
  }

  .book-shell { padding: 0 var(--space-3); }
  .panel { padding: var(--space-4); }
  .step-bar { gap: 6px; }

  .stepper {
    gap: 0;
    overflow: hidden;
    width: 100%;
  }

  .step-label {
    font-size: 0.8125rem;
    line-height: 1.2;
  }

  .panel-title {
    outline: none;
  }

  .book-step-panel .panel-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
  }

  .book-step-panel .btn-back {
    display: none;
  }

  .stepper .step {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    padding: 0;
    min-height: 44px;
  }

  .stepper .step:disabled {
    opacity: 0.45;
    cursor: default;
  }

  .salon-card-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
    min-height: 44px;
  }

  .salon-card-chevron {
    display: inline;
    font-size: 12px;
    color: var(--text-3);
    transition: transform 0.2s ease;
  }

  .salon-card-toggle[aria-expanded="false"] .salon-card-chevron {
    transform: rotate(-90deg);
  }

  .date-more-btn {
    width: 100%;
    margin-top: 8px;
    min-height: 44px;
    justify-content: center;
  }

  .consent-scroll-box {
    max-height: none;
  }

  .consent-row a {
    display: inline-block;
    padding: 4px 0;
    min-height: 44px;
    line-height: 44px;
  }

  .book-confirm-inline {
    display: none;
  }

  .slots-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 0;
    color: var(--text-2);
    font-size: var(--text-sm);
  }

  .slots-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
  }

  .book-mobile-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 12px var(--page-pad, 16px) calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--topbar-bg);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -4px 24px rgba(var(--shadow-color, 0, 0, 0), 0.08);
  }

  .book-mobile-bar.is-hidden {
    display: none !important;
  }

  .book-bar-back {
    flex: 0 0 auto;
    min-width: 44px;
  }

  .book-bar-back.is-hidden {
    display: none;
  }

  .book-bar-next {
    flex: 1;
    min-height: 48px;
  }

  .book-confirm-inline {
    display: none;
  }

  .book-wrap.has-mobile-bar {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  body:has(#__cookie_banner__) .book-wrap.has-mobile-bar {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }

  .book-legal-footer-wrap {
    width: 100%;
    max-width: 540px;
    margin-top: var(--space-4);
    padding-bottom: max(var(--space-3), env(safe-area-inset-bottom, 0px));
  }

  .book-legal-links a {
    min-height: 32px;
    padding: 4px 9px;
  }
}

@media (max-width: 520px) {
  .book-entry-choices--triple {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .book-entry-choices--triple .book-entry-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    min-height: 56px;
    padding: var(--space-3) var(--space-4);
  }

  .book-entry-choices--triple .book-entry-card-text {
    align-items: flex-start;
  }

  .demo-banner-row {
    align-items: flex-start;
  }

  .demo-banner-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (min-width: 521px) and (max-width: 768px) {
  .book-entry-choices--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .book-entry-choices--triple .book-entry-card {
    min-height: 88px;
    padding: var(--space-3) var(--space-2);
  }

  .book-entry-choices--triple .book-entry-card-title {
    font-size: 12px;
  }

  .book-entry-choices--triple .book-entry-card-sub {
    display: none;
  }
}

@media (max-width: 520px) {
  .book-entry-tile {
    min-height: 48px;
    padding: 12px 14px;
    justify-content: flex-start;
  }
}

@media (min-width: 769px) {
  .book-entry-choices--triple {
    gap: 12px;
  }

  .book-entry-choices--triple .book-entry-card {
    min-height: 108px;
    padding: var(--space-5) var(--space-4);
  }

  .book-entry-card-icon {
    width: 42px;
    height: 42px;
  }

  .book-entry-choices--triple .book-entry-card-title {
    font-size: 14px;
  }

  .book-entry-choices--triple .book-entry-card-sub {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .panel { padding: var(--space-4); }
  .item-grid { grid-template-columns: 1fr; gap: 10px; }
  .book-entry-choices { grid-template-columns: 1fr; }
  .book-entry-option { padding: var(--space-4); }
  .step-label { font-size: 0.8125rem; line-height: 1.2; }
  .date-chip { min-width: 68px; min-height: 76px; }
}

.consent-scroll-box {
  max-height: 8rem;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: var(--radius-md, 8px);
  background: var(--surface-muted, rgba(0, 0, 0, 0.03));
}

.book-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: var(--radius-md, 8px);
  background: var(--danger);
  color: var(--on-accent);
  font-size: var(--text-sm, 0.875rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

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

/* Desktop: шире колонка записи — не «телефонная полоска» на мониторе */
@media (min-width: 769px) {
  .book-wrap {
    --book-content-max: min(720px, 94vw);
    padding-top: var(--space-10);
    padding-bottom: var(--space-16);
    background:
      radial-gradient(ellipse 85% 55% at 50% -8%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 58%),
      var(--bg-deep);
  }

  .book-header,
  .salon-card,
  .demo-banner,
  .stepper,
  .panel,
  .book-wrap .w-full-max,
  .book-legal-footer-wrap {
    max-width: var(--book-content-max);
  }

  .book-legal-note {
    font-size: 11px;
  }

  .item-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: var(--space-4);
  }

  .salon-brand-cover-box {
    height: 168px;
  }

  .salon-brand-logo {
    width: 72px;
    height: 72px;
  }

  .salon-card--has-cover.salon-card--has-logo .salon-brand-logo {
    margin-top: -36px;
  }

  .panel {
    padding: var(--space-8);
  }

  .step-dot {
    width: 40px;
    height: 40px;
  }

  .step:not(:last-child)::after {
    top: 18px;
  }

  .step-label {
    font-size: var(--text-sm);
  }

  /* На десктопе «Далее/Назад» — под контентом, не fixed-bar снизу экрана */
  .book-mobile-bar {
    display: flex;
    position: static;
    width: 100%;
    max-width: var(--book-content-max);
    margin-top: var(--space-4);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .book-mobile-bar.is-hidden {
    display: none !important;
  }

  .book-wrap.has-mobile-bar {
    padding-bottom: var(--space-16);
  }

  body:has(#__cookie_banner__) .book-wrap.has-mobile-bar {
    padding-bottom: var(--space-16);
  }

  .book-bar-next {
    max-width: 280px;
    margin-left: auto;
  }

  .book-confirm-inline {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .book-wrap {
    --book-content-max: min(880px, 90vw);
  }

  .item-grid {
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  }

  .salon-brand-cover-box {
    height: 184px;
  }
}

@media (min-width: 1280px) {
  .book-wrap {
    --book-content-max: min(960px, 86vw);
  }
}

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.book-modal.is-hidden {
  display: none;
}

.book-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.book-modal-panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.book-modal-panel h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.book-modal-lead {
  margin: 0 0 var(--space-4);
  color: var(--text-2);
  line-height: 1.45;
}

.book-modal-panel .form-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.book-modal-panel .form-input {
  margin-bottom: var(--space-3);
}

.book-modal-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.success-cabinet-block {
  text-align: left;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.success-cabinet-title {
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.success-cabinet-list {
  margin: 0 0 var(--space-3);
  padding-left: 1.25rem;
  color: var(--text-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.contact-login-hint a {
  font-weight: 500;
}
