/* Стили онбординг-тура: оверлей с вырезом, рамка подсветки, тултип, кнопка ?,
   вводный блок в видео-попапе. Подключается после styles/main.css. */

/* Затемняющий оверлей. Вырез под цель формируется через clip-path из JS. */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(15, 29, 47, 0.55);
}

/* Рамка-подсветка поверх выреза. Не перехватывает клики, чтобы реальный
   элемент оставался доступен через вырез. */
.onboarding-ring {
  position: fixed;
  z-index: 9501;
  display: none;
  border: 2px solid #2E5DA0;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(46, 93, 160, 0.25);
  pointer-events: none;
  transition: left 0.2s ease, top 0.2s ease, width 0.2s ease, height 0.2s ease;
}

/* Карточка-подсказка. */
.onboarding-tooltip {
  position: fixed;
  z-index: 9600;
  max-width: 340px;
  width: max-content;
  padding: 18px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 29, 47, 0.28);
  color: #536276;
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.onboarding-tooltip--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.onboarding-tooltip__title {
  margin-bottom: 8px;
  color: #1E3A5F;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.3;
}

.onboarding-tooltip__body {
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.5;
}

.onboarding-tooltip__body p {
  margin-bottom: 8px;
}

.onboarding-tooltip__body p:last-child {
  margin-bottom: 0;
}

.onboarding-tooltip__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
}

.onboarding-tooltip__next {
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1E3A5F, #2E5DA0);
  color: #fff;
  font-weight: 700;
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.2;
}

.onboarding-tooltip__skip {
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #8A97A6;
  font-size: clamp(11px, 1vw, 13px);
  text-decoration: underline;
}

.onboarding-tooltip__skip:hover {
  color: #536276;
}

/* Круглая кнопка ? в шапке. */
.onboarding-help-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #536276;
  border-radius: 50%;
  background: transparent;
  color: #536276;
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
}

.onboarding-help-btn:hover {
  border-color: #1E3A5F;
  color: #1E3A5F;
}

/* Вводный блок в видео-попапе карточки. */
.video-popup__intro {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #F5F7FA;
  border-radius: 10px;
}

.video-popup__intro-title {
  margin-bottom: 6px;
  color: #1E3A5F;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 700;
}

.video-popup__intro-text {
  color: #536276;
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.5;
}

/* Во время тура открытый видео-попап карточки поднимается над затемнением
   (но остаётся под тултипом тура, чтобы кнопка «Дальше» была доступна). */
body.onboarding-active .video-popup {
  z-index: 9550;
}
