/* ============================================================
   Modul-WP — режим пробного осмотра шаблона
   ============================================================ */
.tour-root {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  font-family: var(--p-sans);
  color: #14131a;
}

.tour-spot {
  position: fixed;
  z-index: 1;
  border: 2px solid #d9ff57;
  border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(8, 10, 16, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
  pointer-events: none;
  opacity: 0;
  transition: top 0.35s var(--ease, ease), left 0.35s var(--ease, ease), width 0.35s var(--ease, ease), height 0.35s var(--ease, ease), opacity 0.25s;
}

.tour-card {
  position: fixed;
  z-index: 3;
  width: 382px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
  transition: opacity 0.25s, transform 0.35s var(--ease, ease);
}
.tour-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(20, 19, 26, 0.12);
  border-radius: 50%;
  background: #f7f4ee;
  font-size: 13px;
  cursor: pointer;
}
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 34px; }
.tour-kicker {
  font-family: var(--p-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p-accent);
  font-weight: 500;
}
.tour-count { font-family: var(--p-mono); font-size: 8.5px; color: #8d8b98; }
.tour-card h3 { margin-top: 12px; font-family: var(--p-display); font-size: 24px; line-height: 1.1; letter-spacing: -0.035em; color: #14131a; }
.tour-text { margin-top: 10px; font-size: 12.5px; line-height: 1.65; color: #5f5d69; }
.tour-tip {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f7f4ee;
  border-left: 3px solid var(--p-accent);
  font-size: 10.5px;
  line-height: 1.5;
  color: #4a4854;
}
.tour-try {
  width: 100%;
  margin-top: 16px;
  height: 42px;
  border: 1px solid rgba(20, 19, 26, 0.12);
  border-radius: 999px;
  background: #f7f4ee;
  font-size: 11.5px;
  font-weight: 700;
  color: #14131a;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.tour-try:hover { background: #f0ece3; border-color: rgba(20, 19, 26, 0.25); }
.tour-nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(20, 19, 26, 0.1); }
.tour-back, .tour-next {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 19, 26, 0.14);
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tour-back:disabled { opacity: 0.35; cursor: default; }
.tour-next { background: var(--p-accent); border-color: transparent; color: var(--p-btn-ink); }
.tour-dots { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.tour-dot { width: 5px; height: 5px; padding: 0; border: 0; border-radius: 50%; background: #d8d5cd; cursor: pointer; }
.tour-dot.is-active { width: 16px; border-radius: 3px; background: var(--p-accent); }

.tour-intro {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 16, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.tour-intro-card {
  width: min(600px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 36px;
  border-radius: 26px;
  background: #fff;
  color: #14131a;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.6);
}
.tour-intro-card h2 { margin-top: 12px; font-family: var(--p-display); font-size: clamp(30px, 4vw, 42px); line-height: 1.04; letter-spacing: -0.04em; }
.tour-intro-card h2 em { font-style: normal; color: var(--p-accent); }
.tour-intro-card > p { margin-top: 14px; max-width: 480px; font-size: 12.5px; line-height: 1.65; color: #5f5d69; }
.tour-intro-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.tour-intro-list li { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid rgba(20, 19, 26, 0.09); border-radius: 9px; font-size: 10.5px; color: #3c3b47; }
.tour-intro-list b { font-family: var(--p-mono); font-size: 8.5px; color: var(--p-accent); }
.tour-intro-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.tour-start, .tour-skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--p-accent);
  color: var(--p-btn-ink);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.tour-start:hover { filter: brightness(1.07); }
.tour-skip { background: transparent; border-color: rgba(20, 19, 26, 0.16); color: #3c3b47; font-weight: 600; }
.tour-skip:hover { background: #f7f4ee; }

.tour-finish {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 16, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.tour-finish-card { width: min(560px, 100%); padding: 34px; border-radius: 24px; background: #fff; text-align: center; }
.tour-finish-card h2 { margin-top: 10px; font-family: var(--p-display); font-size: 34px; letter-spacing: -0.04em; }
.tour-finish-card p { margin: 12px auto 0; max-width: 430px; font-size: 12px; line-height: 1.65; color: #5f5d69; }
.tour-finish-stats { display: flex; justify-content: center; gap: 22px; margin-top: 20px; padding: 14px 0; border-block: 1px solid rgba(20, 19, 26, 0.1); }
.tour-finish-stats span { font-size: 9px; color: #6d6b79; }
.tour-finish-stats b { display: block; margin-bottom: 2px; font-family: var(--p-display); font-size: 17px; color: #14131a; letter-spacing: -0.03em; }
.tour-finish-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }

/* --- демо-окна --- */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: var(--p-sans);
}
.demo-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 16, 0.68); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.demo-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  color: #14131a;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.6);
}
.demo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 19, 26, 0.12);
  border-radius: 50%;
  background: #f7f4ee;
  font-size: 13px;
  cursor: pointer;
}
.demo-modal-kicker { font-family: var(--p-mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p-accent); }
.demo-modal-panel h2 { margin-top: 10px; font-family: var(--p-display); font-size: 28px; line-height: 1.08; letter-spacing: -0.04em; }
.demo-modal-lead { margin-top: 10px; font-size: 12px; line-height: 1.6; color: #5f5d69; }
.demo-booking-service { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: #f7f4ee; }
.demo-booking-service span { font-size: 9px; color: #6d6b79; }
.demo-booking-service b { font-size: 11px; }
.demo-modal-form { display: grid; gap: 8px; margin-top: 12px; }
.demo-modal-form input, .demo-modal-form select, .demo-modal-form textarea {
  width: 100%;
  border: 1px solid rgba(20, 19, 26, 0.14);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 11px;
  font-family: var(--p-sans);
  background: #fff;
  color: #14131a;
  outline: none;
}
.demo-modal-form input:focus, .demo-modal-form select:focus, .demo-modal-form textarea:focus { border-color: var(--p-accent); }
.demo-modal-form .tour-start { width: 100%; margin-top: 2px; }
.demo-modal-form small, .demo-modal-note { font-size: 8.5px; line-height: 1.45; color: #8d8b98; }
.demo-modal-note { margin-top: 14px; }
.demo-modal-success { text-align: center; padding: 14px 0 4px; }
.demo-modal-success > span { width: 58px; height: 58px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--p-accent); color: var(--p-btn-ink); font-size: 24px; }
.demo-modal-success h2 { margin-top: 14px; }
.demo-modal-success p { margin: 10px auto 0; max-width: 380px; font-size: 11.5px; line-height: 1.6; color: #5f5d69; }
.demo-modal-success .tour-start { margin-top: 18px; }

.demo-service-list { display: grid; gap: 7px; margin-top: 16px; }
.demo-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(20, 19, 26, 0.1);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: var(--p-sans);
  color: #14131a;
}
.demo-service-item:hover { border-color: var(--p-accent); background: #fbfaf7; }
.demo-service-item img { width: 58px; height: 42px; border-radius: 6px; object-fit: cover; }
.demo-service-item div { display: flex; flex-direction: column; gap: 1px; }
.demo-service-item b { font-size: 10.5px; }
.demo-service-item span { font-size: 8.5px; color: #6d6b79; }
.demo-service-item em { margin-left: auto; font-style: normal; font-size: 8.5px; font-weight: 700; color: var(--p-accent); white-space: nowrap; }
.demo-info-list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.demo-info-list li { display: flex; gap: 8px; font-size: 11px; line-height: 1.5; color: #3c3b47; }
.demo-info-list li::before { content: "✓"; color: var(--p-accent); font-weight: 700; }
.demo-info-specs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.demo-info-specs span { font-family: var(--p-mono); font-size: 8px; padding: 4px 7px; border-radius: 4px; background: #f7f4ee; color: #5f5d69; }
.demo-modal-ok { width: 100%; margin-top: 18px; }

/* --- лайтбокс --- */
.demo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 54px 70px;
  background: rgba(8, 10, 16, 0.9);
  font-family: var(--p-sans);
}
.demo-lightbox figure { margin: 0; max-width: min(1080px, 100%); max-height: calc(100vh - 100px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.demo-lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7); }
.demo-lightbox figcaption { font-size: 10px; color: rgba(255, 255, 255, 0.62); }
.demo-lightbox-close, .demo-lightbox-arrow {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.demo-lightbox-close { top: 18px; right: 18px; }
.demo-lightbox-arrow { top: 50%; transform: translateY(-50%); }
.demo-lightbox-arrow.is-prev { left: 18px; }
.demo-lightbox-arrow.is-next { right: 18px; }
.demo-lightbox-arrow:hover, .demo-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* --- кнопки в демо --- */
.demo-tour-btn { border-color: rgba(217, 255, 87, 0.5) !important; color: #d9ff57 !important; }
.demo-tour-btn:hover { background: rgba(217, 255, 87, 0.12) !important; }
.demo-tour-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(217, 255, 87, 0.5);
  background: rgba(11, 14, 23, 0.9);
  color: #d9ff57;
  font-family: var(--p-sans);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.demo-tour-fab span { font-size: 8px; }
.demo-tour-fab:hover { background: #0b0e17; border-color: #d9ff57; }
.demo-card-link { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.demo-gallery figure[data-demo-photo] { cursor: zoom-in; }

@media (max-width: 900px) {
  .tour-card {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    width: auto;
    max-height: 56vh;
    transform: none !important;
    padding: 20px;
  }
  .tour-card h3 { font-size: 21px; }
  .tour-intro-card { padding: 24px 20px; }
  .tour-intro-list { grid-template-columns: 1fr; }
  .tour-intro-actions .tour-start, .tour-intro-actions .tour-skip { width: 100%; }
  .tour-finish-card { padding: 26px 20px; }
  .demo-modal { padding: 10px; }
  .demo-modal-panel { padding: 24px 18px; max-height: calc(100vh - 20px); }
  .demo-lightbox { padding: 56px 12px; }
  .demo-lightbox-arrow.is-prev { left: 8px; }
  .demo-lightbox-arrow.is-next { right: 8px; }
}
