/* ---------- Превью ---------- */
.hero { background:transparent; border-radius:0; padding:20px; box-shadow:none; }
.hero h1 { margin:0 0 8px 0; }

/* кнопка старт по центру */
.hero .start { margin-top:16px; display:flex; justify-content:center; }

/* Красивая жирная кнопка старта */
#btnStart{
  background: linear-gradient(135deg,#111 0%, #2b2b2b 100%);
  color:#fff; border:none;
  padding:14px 24px; font-size:18px; font-weight:700;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
#btnStart:hover{ filter:brightness(1.05); }
#btnStart:active{ transform:translateY(1px); box-shadow:0 6px 18px rgba(0,0,0,.14); }

/* Большое описание под кнопкой */
.hero .desc {
  margin-top:14px;
  color:#4b5563;
  line-height:1.55;
  font-size:16px;
}

/* ---------- Режим прохождения ---------- */
.qapp   { position:relative; }
.qtop   { position:sticky; top:0; z-index:5; background:#f6f7fb; padding:10px 0 8px; margin:0 0 12px 0; }
.qtop .inner { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 8px; }
.home   { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; font-size:14px; border-radius:999px; border:1px solid #e5e7eb; background:#fff; text-decoration:none; }
.home:hover { background:#f9fafb; }
.qbar { flex:1; height:6px; background:#eaecef; border-radius:6px; overflow:hidden; }
.qbar > div { height:6px; width:0%; background:#111; }

/* Фикс одинаковой высоты экрана для карточек */
.qsteps {
  position:relative;
  min-height:calc(100dvh - 150px); /* экран минус верхняя панель и низ */
}

/* ---------- Карточки: мягкий кросс-фейд без сдвига ---------- */
.qcard{
  position:absolute; inset:0;
  display:none; opacity:0;
  background:transparent; box-shadow:none; border-radius:0; padding:16px;
}
.qcard.active{ display:block; opacity:1; transition:opacity .25s ease; }
/* старые классы направлений нейтрализуем */
.qcard.enter-right, .qcard.enter-left, .qcard.exit-left, .qcard.exit-right { transform:none; }

/* Внутренняя ширина и центрирование контента */
.qinner { max-width:680px; margin:0 auto; padding:6px 12px; }

/* Текст вопроса — по центру */
.question-text { font-size:20px; font-weight:600; margin:6px 0 14px; text-align:center; }
@media (max-width:480px){
  .question-text { font-size:19px; }
}

/* Ответы — крупные, удобные для тапа, центр */
.qcard .form-row { margin:10px 0; display:flex; justify-content:center; }
.qcard label {
  display:flex; align-items:center; gap:12px;
  width:min(640px, 100%);          /* не шире контейнера */
  padding:14px 16px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  font-size:18px;
}

/* Радио — больше, лучшее попадание */
.qcard input[type="radio"]{
  width:22px; height:22px; flex:0 0 auto;
  accent-color:#111;
}

/* Низ — кнопка Назад (прилипает) */
.qbottom { position:sticky; bottom:0; z-index:4; padding-top:10px; margin-top:12px;
  background:linear-gradient(180deg, rgba(246,247,251,0) 0%, #f6f7fb 40%);
}
.qbottom .btn { min-width:110px; }

/* ---------- Обложка теста над заголовком ---------- */
.hero { text-align:center; }
.hero-title { margin-top: 8px; }

.hero-cover { margin:4px 0 10px; }
.hero-cover img{
  display:block;
  width:100%;            /* вписывается в родителя */
  max-width:420px;       /* верхний предел на десктопе */
  aspect-ratio:1 / 1;    /* квадрат */
  object-fit:cover;      /* «режет» по центру */
  border-radius:16px;
  box-shadow:0 4px 20px rgba(0,0,0,.06);
  margin:0 auto;
}

/* мобильные правки */
@media (max-width:480px){
  .hero{ padding:16px; }
  .hero .desc{ font-size:15px; }
  .hero-cover img{ max-width:360px; }  /* меньше, чтобы точно не выпирала */
}
/* === preview на фоне + белой простыней ниже (оверрайды, чтобы ничего не сломать) === */

/* фон для верхнего блока превью */
.intro-hero{ 
  background:linear-gradient(180deg,#f6f9ff 0%, #fdfefe 100%);
  padding:42px 20px 28px;
}

/* внутри превью оставляем центрирование как было */
.intro-hero .hero{
  background:transparent;       /* убираем белую карточку */
  border-radius:0;
  box-shadow:none;
  padding:0;                    /* отступы даёт .intro-hero */
  text-align:center;
}

/* изображение делаем компактнее, но опираемся на ваши текущие правила */
.intro-hero .hero-cover img{
  max-width:220px;              /* было 420 — на превью меньше, аккуратнее */
  aspect-ratio:auto;
  object-fit:contain;
  border-radius:16px;
}

/* белая простыня под описанием и «Ещё тесты» */
.sheet{
  max-width:900px;
  margin:0 auto;
  padding:0 20px 28px;
}
.sheet .block{
  background:#fff;
  border-radius:16px;
  padding:24px 22px;
  box-shadow:0 2px 24px rgba(0,0,0,.06);
}
.sheet .desc{ margin:0; }
/* ---- Красивая верстка описания (включается, когда есть HTML) ---- */
.desc.rich{ margin-top:18px; color:#4b5563; line-height:1.65; font-size:16px; text-align:left; }
.desc.rich .lead{ font-size:20px; line-height:1.5; color:#111827; font-weight:600; margin:0 0 10px; }
.desc.rich ul{ margin:12px 0 0 0; padding:0; list-style:none; }
.desc.rich ul li{ display:inline-block; margin:6px 6px 0 0; padding:6px 10px; background:#fff; border:1px solid #e5e7eb; border-radius:999px; font-size:14px; }

.desc.rich .chips{ margin-top:10px; }          /* список-чипсы через [chips] */
.desc.rich .chips li{ display:inline-block; }

.desc.rich .note{ margin-top:10px; font-size:14px; color:#6b7280; }
/* Для описаний с HTML (rich) делаем выравнивание по левому краю */
.desc.rich {
  text-align: left !important;
  max-width: 720px;
  margin: 18px auto;
}

