/* ══════════════════════════════════════════════
   Воронка онбординга — Welcome → Тест → Оффер
   ══════════════════════════════════════════════ */

/* ── Welcome-экран ── */
.funnel-welcome {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: linear-gradient(180deg, #f9f5ef 0%, #ede4d8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  text-align: center;
  opacity: 0;
  animation: funnel-fade-in 0.5s ease forwards;
}
@keyframes funnel-fade-in {
  to { opacity: 1; }
}

.funnel-welcome-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(139,115,85,0.25);
}

.funnel-welcome-title {
  font-size: 22px;
  font-weight: 700;
  color: #3d3d3d;
  margin-bottom: 12px;
  line-height: 1.3;
}

.funnel-welcome-subtitle {
  font-size: 15px;
  color: #6b5b4a;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 340px;
}

.funnel-welcome-btn {
  width: 100%;
  max-width: 300px;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.funnel-welcome-btn.primary {
  background: linear-gradient(135deg, #8b7355 0%, #6b5a47 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(107,90,71,0.35);
  margin-bottom: 12px;
}
.funnel-welcome-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(107,90,71,0.45);
}
.funnel-welcome-btn.primary:active {
  transform: translateY(0);
}

.funnel-welcome-btn.secondary {
  background: transparent;
  color: #8b7355;
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
}
.funnel-welcome-btn.secondary:hover {
  background: rgba(139,115,85,0.08);
}

.funnel-welcome-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 320px;
  text-align: left;
}

.funnel-welcome-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #5a4d3f;
  line-height: 1.4;
}

.funnel-welcome-feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(139,115,85,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* ── Шаг даты рождения (внутри воронки) ── */
.funnel-birthdate {
  position: fixed;
  inset: 0;
  z-index: 10051;
  background: linear-gradient(180deg, #f9f5ef 0%, #ede4d8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  text-align: center;
  opacity: 0;
  animation: funnel-fade-in 0.4s ease forwards;
}

.funnel-birthdate-title {
  font-size: 20px;
  font-weight: 700;
  color: #3d3d3d;
  margin-bottom: 10px;
}

.funnel-birthdate-desc {
  font-size: 14px;
  color: #6b5b4a;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 320px;
}

.funnel-birthdate-input {
  width: 100%;
  max-width: 200px;
  padding: 12px 14px;
  border: 2px solid rgba(139,115,85,0.25);
  border-radius: 10px;
  font-size: 18px;
  text-align: center;
  color: #3d3d3d;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.funnel-birthdate-input:focus {
  border-color: #8b7355;
}
.funnel-birthdate-input::placeholder {
  color: #bbb;
  letter-spacing: 1px;
}

/* ── Модалка слабой сферы ── */
.funnel-sphere-modal {
  position: fixed;
  inset: 0;
  z-index: 10052;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  animation: funnel-fade-in 0.4s ease forwards;
}

.funnel-sphere-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.funnel-sphere-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.funnel-sphere-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
}
.funnel-sphere-icon svg {
  width: 28px;
  height: 28px;
}

.funnel-sphere-title {
  font-size: 18px;
  font-weight: 700;
  color: #3d3d3d;
  margin-bottom: 8px;
}

.funnel-sphere-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.funnel-sphere-desc {
  font-size: 14px;
  color: #6b5b4a;
  line-height: 1.5;
  margin-bottom: 24px;
}

.funnel-sphere-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b7355 0%, #6b5a47 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(107,90,71,0.3);
  transition: all 0.2s;
}
.funnel-sphere-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107,90,71,0.4);
}

/* ── Оффер в чате (140 руб) ── */
.funnel-offer-msg {
  background: linear-gradient(135deg, #f9f5ef, #ede4d8);
  border: 1px solid rgba(139,115,85,0.2);
  border-radius: 16px;
  padding: 20px 18px;
  margin: 12px 0;
  text-align: left;
}

.funnel-offer-title {
  font-size: 16px;
  font-weight: 700;
  color: #3d3d3d;
  margin-bottom: 12px;
}

.funnel-offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.funnel-offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: #5a4d3f;
  line-height: 1.4;
}

.funnel-offer-list li::before {
  content: '✓';
  color: #5bb374;
  font-weight: 700;
  flex-shrink: 0;
}

.funnel-offer-price {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #8b7355;
  margin-bottom: 14px;
}
.funnel-offer-price span {
  font-size: 16px;
  font-weight: 400;
  color: #999;
}

.funnel-offer-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b7355 0%, #6b5a47 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(107,90,71,0.3);
  transition: all 0.2s;
}
.funnel-offer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107,90,71,0.4);
}

/* ── Модалка ввода телефона (для оффера) ── */
.funnel-phone-modal {
  position: fixed;
  inset: 0;
  z-index: 10053;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  animation: funnel-fade-in 0.3s ease forwards;
}

.funnel-phone-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.funnel-phone-title {
  font-size: 18px;
  font-weight: 700;
  color: #3d3d3d;
  margin-bottom: 8px;
}

.funnel-phone-desc {
  font-size: 13px;
  color: #8b7355;
  margin-bottom: 20px;
}

.funnel-phone-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(139,115,85,0.25);
  border-radius: 12px;
  font-size: 18px;
  text-align: center;
  color: #3d3d3d;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
  box-sizing: border-box;
}
.funnel-phone-input:focus {
  border-color: #8b7355;
}

.funnel-phone-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b7355 0%, #6b5a47 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.2s;
}
.funnel-phone-submit:hover { transform: translateY(-1px); }

.funnel-phone-note {
  font-size: 11px;
  color: #aaa;
}

/* ── Анимация выхода ── */
.funnel-exit {
  animation: funnel-fade-out 0.3s ease forwards;
}
@keyframes funnel-fade-out {
  to { opacity: 0; pointer-events: none; }
}
