/* Стили exam-лендингов (ОГЭ/ЕГЭ). Подключается ТОЛЬКО на этих страницах через slot="head".
   Карточные секции переведены на стандартные курсовые блоки (Variants/Benefits/.wr-varianty-img),
   заголовки — глобальные .block-header+.border-animate. Здесь остаётся только то, чему нет
   стандартного аналога: hero-факты, нумерованные шаги, таблицы, чек-лист, FAQ и форма-диагностика. */

/* ── hero: лид-абзац + факты-чипы ── */
.exam-hero-text {
  max-width: 780px;
  margin: 18px 0 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.5;
}

.exam-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.exam-hero-facts li {
  padding: 16.5px .75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
}

/* ── ритм секций ── */
.exam-section {
  margin: 56px 0;
}

.wrapper_content_curse {
  padding-top: 42px;
}

.wrapper_content_curse .curse_page_block_content {
  margin-top: 0;
}

.wrapper_content_curse .exam-section:first-of-type {
  margin-top: 34px;
}

/* подзаголовки внутри стандартного блока «картинка+текст» и двухколоночных секций */
.wr-varianty-img .block-title,
.exam-section .block-title {
  margin-bottom: 24px;
}

/* .btn-warning красится градиентом через :before/:after с отрицательным z-index;
   на белой карточке (.topic-card «Если мало времени») он прятался — изолируем стекинг-контекст. */
.btn-warning {
  isolation: isolate;
}

/* на странице несколько .main-feedback (после «Что отрабатываем», диагностика, запись);
   глобальный margin-bottom:180px тут слишком большой — задаём умеренные отступы. */
.main-feedback {
  margin: 48px 0;
}

/* ── чек-лист (иконка через ::before) ── */
.exam-check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-check-list li {
  position: relative;
  padding-left: 34px;
}

.exam-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: url("/img/exam/check-orange.svg") center / contain no-repeat;
}

/* ── нумерованные шаги (счётчик через CSS) ── */
.exam-steps {
  display: grid;
  gap: 14px;
  counter-reset: exam-step;
}

.exam-step {
  position: relative;
  min-height: 74px;
  padding: 18px 20px 18px 70px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eee;
}

.exam-step::before {
  counter-increment: exam-step;
  content: counter(exam-step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ff6b03;
  color: #fff;
  font-weight: 700;
}

/* ── список «Сколько времени нужно»: срок (оранжевый) + стратегия ── */
.exam-terms {
  list-style: none;
  margin: 0;
  padding: 0;
}

.exam-terms li {
  padding: 12px 0;
  border-bottom: 1px dashed #eef0f4;
}

.exam-terms li:first-child {
  padding-top: 0;
}

.exam-terms li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.exam-terms__term {
  display: block;
  font-weight: 800;
  color: #ff6b03;
  margin-bottom: 3px;
}

.exam-terms__desc {
  color: #5c5c5c;
  font-size: 15px;
  line-height: 1.5;
}

/* ── список «Что отрабатываем» (оранжевый чек + жирный лид-заголовок) ── */
.exam-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.exam-feature-list li {
  position: relative;
  padding: 12px 0 12px 40px;
  border-bottom: 1px dashed #e9edf2;
  color: #5c5c5c;
  line-height: 1.55;
}

.exam-feature-list li:last-child {
  border-bottom: 0;
}

.exam-feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 20px;
  height: 20px;
  background: url("/img/exam/check-orange.svg") center / contain no-repeat;
}

.exam-feature-list strong {
  color: #252525;
}

/* ── диагностика: квиз + лид-форма + шаги «после заявки» ── */
.exam-quiz {
  margin-bottom: 20px;
  padding: 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.exam-quiz-step {
  margin-bottom: 22px;
}

.exam-quiz-step:last-child {
  margin-bottom: 0;
}

.exam-quiz-title {
  margin-bottom: 12px;
  color: #252525;
  font-size: 18px;
  font-weight: 700;
}

.exam-quiz-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  height: 100%;
  margin: 0 0 8px;
  padding: 9px 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  color: #555;
  background: #fafafa;
  line-height: 1.35;
}

/* кастомная радио-кнопка: оранжевый контур всегда + оранжевая точка при выборе.
   Точку центрируем через grid place-content (не зависит от box-sizing/системных отступов). */
.exam-quiz-option input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  box-sizing: border-box;
  display: grid;
  place-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #ff6b03;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.exam-quiz-option input:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b03;
}

.exam-after-request {
  counter-reset: exam-step;
  margin: 26px 0 30px;
}

.exam-after-request .exam-step {
  height: 100%;
  background: #fff;
}

/* ── FAQ (нативные <details>) ── */
.exam-faq details {
  margin-bottom: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.exam-faq summary {
  padding: 16px 18px;
  color: #252525;
  font-weight: 700;
  cursor: pointer;
}

.exam-faq p {
  margin: 0;
  padding: 0 18px 18px;
  color: #5c5c5c;
}

/* ── липкая панель CTA (только на мобильных) ── */
.exam-sticky {
  display: none;
}

@media (max-width: 991px) {
  .exam-hero-text {
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .wrapper_content_curse {
    padding-top: 30px;
  }

  .wrapper_content_curse .exam-section:first-of-type {
    margin-top: 26px;
  }

  .exam-hero-facts {
    margin-bottom: 22px;
  }

  .exam-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #eee;
  }

  .exam-sticky .btn {
    flex: 1;
    white-space: nowrap;
  }
}
