/* FR-745 · Product Tour — overlay, spotlight и подсказка.
   Затемнение рисует не отдельный слой, а сама подсветка: огромный spread
   box-shadow закрывает всё, кроме «окна» над элементом. Клики по кабинету
   перехватывает прозрачный .tour-blocker под ней. */
.tour-blocker { position: fixed; inset: 0; z-index: 199; }
/* цели нет — затемняем экран целиком */
.tour-blocker.dim { background: rgba(20, 15, 8, .55); }

.tour-spot {
  position: fixed; z-index: 200; pointer-events: none; border-radius: 14px;
  box-shadow: 0 0 0 100vmax rgba(20, 15, 8, .55), 0 0 0 2px var(--accent);
  transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
}

.tour-tip {
  position: fixed; z-index: 201; width: 340px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-pop);
  padding: 16px 18px 14px; font-family: var(--body);
}
.tour-tip__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.tour-count {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tour-skip {
  background: none; border: 0; padding: 0; font: inherit; font-size: 13px;
  color: var(--muted); text-decoration: underline; cursor: pointer;
}
.tour-skip:hover { color: var(--ink); }
.tour-tip h4 { margin: 0 0 6px; font-family: var(--head); font-size: 17px; }
.tour-tip p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.tour-bar {
  height: 3px; border-radius: 3px; background: var(--line);
  margin: 14px 0 12px; overflow: hidden;
}
.tour-bar i { display: block; height: 100%; background: var(--accent); transition: width .2s ease; }
.tour-nav { display: flex; gap: 8px; justify-content: flex-end; }
.tour-nav .btn { padding: 8px 16px; font-size: 13.5px; }

/* Телефон: подсказка во всю ширину экрана с полями, кнопки — под палец. */
@media (max-width: 820px) {
  .tour-tip { width: calc(100vw - 24px); padding: 14px 16px 12px; }
  .tour-tip h4 { font-size: 16px; }
  .tour-nav .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-spot, .tour-bar i { transition: none; }
}
