.test-main {
  padding: 32px 0 100px;
  min-height: calc(100vh - 64px);
}

/* ─── WELCOME — стартовый экран с формой ─── */
.welcome-screen {
  padding: 40px 0 60px;
  min-height: calc(100vh - 64px);
  background: var(--gray-100);
}
.container-narrow { max-width: 560px; }

.welcome-card {
  padding: 36px 32px;
  text-align: left;
}
.welcome-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 1px;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.welcome-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}
.welcome-sub {
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 22px;
  font-size: var(--text-base);
}
.welcome-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.welcome-bullets li {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.5;
}
.welcome-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.welcome-form .input {
  margin-bottom: 12px;
}
.btn-start {
  margin-top: 6px;
}
.welcome-policy {
  font-size: var(--text-xs);
  color: var(--gray-600);
  text-align: center;
  margin-top: 14px;
  line-height: 1.55;
}

@media (max-width: 639px) {
  .welcome-screen { padding: 24px 0 40px; }
  .welcome-card { padding: 28px 22px; }
  .welcome-title { font-size: var(--text-xl); }
}

.question-num {
  font-size: var(--text-sm);
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.question-text {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 28px;
  min-height: 60px;
}

.answers { display: flex; flex-direction: column; gap: 10px; }

.answer-card {
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: var(--text-base);
  line-height: 1.5;
  text-align: left;
}
.answer-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: var(--shadow-card);
}
.answer-card.selected {
  border-color: var(--blue);
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  box-shadow: var(--shadow-card);
}

/* ─── ПОДСКАЗКА ПОД ВОПРОСОМ ─── */
.question-hint {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.5;
  margin-top: -16px;
  margin-bottom: 22px;
}

/* ─── ОТКРЫТЫЙ ВОПРОС (textarea) ─── */
.answer-textarea {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: var(--text-base);
  font-family: inherit;
  line-height: 1.55;
  color: var(--text);
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.answer-textarea::placeholder { color: var(--gray-600); }
.answer-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-card);
}
/* Поле «или своё» в гибридном вопросе */
.answer-textarea-own {
  margin-top: 10px;
  min-height: 64px;
}

/* ─── MULTI-MODE (чекбоксы) ─── */
.answer-card-multi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.answer-card-multi .check-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  background: var(--white);
  display: inline-block;
  margin-top: 1px;
  position: relative;
  transition: all 0.15s ease;
}
.answer-card-multi:hover .check-box {
  border-color: var(--blue);
}
.answer-card-multi.selected .check-box {
  background: var(--blue);
  border-color: var(--blue);
}
.answer-card-multi.selected .check-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.answer-card-multi .answer-text {
  flex: 1;
}
.answer-card-multi.selected {
  /* Убираем "толстый левый бордер" из single-варианта */
  border-left: 2px solid var(--blue);
}

/* Кнопка ДАЛЕЕ — fixed снизу на мобиле */
.btn-next-wrap {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-300);
  padding: 12px 20px;
  z-index: 100;
}
@media (min-width: 640px) {
  .btn-next-wrap {
    position: static;
    border-top: none;
    padding: 24px 0 48px;
    background: transparent;
  }
}

/* ЭКРАНЫ ПЕРЕХОДОВ */
.transition-screen {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 40px 0;
  background: var(--gray-100);
}
.transition-screen h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: 16px;
}
.transition-screen p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: var(--text-lg);
}
