/* ============================================================
   prof_test.css
   ============================================================ */

/* -- Обёртка — минимальная высота чтобы подвал не прыгал -- */
.ptests-wrap {
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Mulish', sans-serif;
  color: #1a2640;
  min-height: 520px;
  padding-bottom: 48px;
}

/* -- Выбор теста -- */
.ptests-heading {
  font-family: 'Geologica', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0b1f4a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2b8fff;
}

.ptests-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ptests-card {
  background: #fff;
  border: 1.5px solid #d0e0f5;
  border-radius: 14px;
  padding: 24px 20px;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.ptests-card:hover {
  border-color: #2b8fff;
  box-shadow: 0 8px 24px rgba(0,87,184,0.13);
  transform: translateY(-4px);
}

/* -- Иконка карточки — CSS-плейсхолдер, SVG не нужен -- */
.ptests-card-icon {
  width: 48px;
  height: 48px;
  background: #e8f2ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;   /* эмодзи или текстовая иконка */
  line-height: 1;
}

/* Первая карточка — иконка «опросник» */
.ptests-cards .ptests-card:nth-child(1) .ptests-card-icon::before {
  content: '📋';
}

/* Вторая карточка — иконка «профориентация» */
.ptests-cards .ptests-card:nth-child(2) .ptests-card-icon::before {
  content: '🎯';
}

.ptests-card-title {
  font-family: 'Geologica', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0b1f4a;
  margin: 0;
  line-height: 1.35;
}
.ptests-card-desc {
  font-size: 13.5px;
  color: #6b7a99;
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.ptests-card-cta {
  font-size: 13.5px;
  font-weight: 700;
  color: #2b8fff;
}

/* -- Секция теста — минимальная высота -- */
.ptests-section {
  min-height: 480px;
}

/* -- Кнопка назад -- */
.ptests-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f4f7fb;
  border: 1.5px solid #d0e0f5;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Mulish', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0057b8;
  cursor: pointer;
  margin-bottom: 24px;
  transition: background 0.2s, border-color 0.2s;
}
.ptests-back::before {
  content: '←';
  font-size: 15px;
}
.ptests-back:hover { background: #e8f2ff; border-color: #2b8fff; }

/* -- Заголовок теста -- */
.ptests-test-header { margin-bottom: 20px; }
.ptests-tag {
  display: inline-block;
  background: #e8f2ff;
  color: #0057b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.ptests-title {
  font-family: 'Geologica', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0b1f4a;
  margin: 0 0 6px;
}
.ptests-subtitle { font-size: 14px; color: #6b7a99; margin: 0; line-height: 1.5; }

/* -- Прогресс -- */
.ptests-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.ptests-bar {
  flex: 1;
  height: 6px;
  background: #e8f2ff;
  border-radius: 50px;
  overflow: hidden;
}
.ptests-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, #0057b8, #2b8fff);
  border-radius: 50px;
  transition: width 0.4s ease;
}
.ptests-plabel { font-size: 13px; font-weight: 700; color: #6b7a99; white-space: nowrap; }

/* -- Блок вопроса -- */
.ptest-q {
  background: #fff;
  border: 1.5px solid #d0e0f5;
  border-radius: 14px;
  padding: 24px;
}
.ptest-qtext {
  font-family: 'Geologica', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0b1f4a;
  margin: 0 0 18px;
  line-height: 1.5;
}

/* -- Вариант ответа -- */
.ptest-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1.5px solid #e8f2ff;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14.5px;
  color: #1a2640;
  line-height: 1.45;
  transition: background 0.2s, border-color 0.2s;
  font-family: 'Mulish', sans-serif;
}
.ptest-opt:hover { background: #f4f7fb; border-color: #d0e0f5; }
.ptest-opt input[type="radio"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #0057b8;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* -- Кнопки -- */
.ptest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 28px;
  background: #0057b8;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Mulish', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(0,87,184,0.28);
}
.ptest-btn:hover { background: #2b8fff; transform: translateY(-2px); }
.ptest-btn-finish { background: #166534; box-shadow: 0 4px 14px rgba(22,101,52,0.28); }
.ptest-btn-finish:hover { background: #15803d; }

/* -- Результат -- */
.ptest-result {
  background: #fff;
  border: 1.5px solid #d0e0f5;
  border-radius: 14px;
  padding: 28px 24px;
}
.ptest-result h3,
.ptest-result h2 {
  font-family: 'Geologica', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0b1f4a;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2b8fff;
}
.ptest-result p { font-size: 15px; line-height: 1.65; color: #1a2640; margin: 0 0 10px; }
.ptest-result ul { padding-left: 20px; margin: 8px 0 12px; font-size: 14.5px; line-height: 1.65; color: #1a2640; }
.ptest-result ul li { margin-bottom: 5px; }
.ptest-result strong,
.ptest-result b { color: #0057b8; }
.ptest-result em { font-style: italic; color: #6b7a99; }

/* -- Адаптив -- */
@media (max-width: 600px) {
  .ptests-cards { grid-template-columns: 1fr; }
  .ptests-title { font-size: 18px; }
  .ptest-q { padding: 16px; }
  .ptest-qtext { font-size: 15px; }
  .ptest-opt { font-size: 13.5px; padding: 9px 12px; }
  .ptest-btn { width: 100%; }
}