.test-shell {
  padding: 62px 0 90px;
  background:
    radial-gradient(circle at 15% 5%, rgba(213, 31, 63, 0.2), transparent 26%),
    linear-gradient(155deg, #0b0a0c 38%, #170d12);
  min-height: calc(100vh - 150px);
}
.test-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 55px;
  align-items: end;
  margin-bottom: 42px;
}
.test-heading .kicker {
  grid-column: 1/-1;
}
.test-heading h1 {
  font-size: clamp(58px, 8vw, 104px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 18px 0 0;
}
.test-heading h1 span {
  color: var(--red);
}
.test-heading p {
  font-size: 18px;
  color: #d4c9cf;
  margin: 0;
  max-width: 590px;
}
.test-picker,
.quiz-card,
.result-card {
  background: linear-gradient(145deg, #191419, #100d10);
  border: 1px solid #4b303b;
  padding: 34px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
}
.test-picker h2 {
  font-size: 35px;
  margin: 0 0 23px;
}
.picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.test-choice {
  text-align: left;
  color: inherit;
  background: #151115;
  border: 1px solid #49343e;
  padding: 27px;
  cursor: pointer;
  transition: 0.18s;
}
.test-choice:hover,
.test-choice:focus-visible {
  transform: translateY(-3px);
  border-color: #b92c47;
  background: #211117;
  outline: none;
}
.test-choice .number {
  display: block;
  color: var(--red);
  font:
    700 16px Impact,"Arial Narrow";
  margin-bottom: 28px;
}
.test-choice strong {
  display: block;
  color: #fff;
  font:
    600 30px Impact,"Arial Narrow";
}
.test-choice small {
  display: block;
  color: #ff7188;
  margin: 7px 0 18px;
}
.test-choice p {
  color: #c9bdc3;
  min-height: 72px;
}
.test-choice .start {
  display: block;
  color: #fff;
  font-weight: 700;
  margin-top: 22px;
}
.privacy-note {
  margin-top: 22px;
  padding: 17px 18px;
  border-left: 3px solid var(--red);
  background: #171217;
  color: #cfc3c9;
  font-size: 14px;
}
.privacy-note strong {
  color: #fff;
}
.adult-note {
  font-size: 12px;
  color: #897c83;
  margin: 14px 0 0;
}
.quiz-card,
.result-card {
  max-width: 850px;
  margin: 0 auto;
}
.quiz-header,
.result-top,
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.quiz-header {
  padding-bottom: 23px;
  border-bottom: 1px solid #382a31;
  margin-bottom: 24px;
}
.quiz-header > span {
  color: #ff7188;
  font:
    600 14px Impact,"Arial Narrow";
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.text-button {
  appearance: none;
  border: 0;
  background: none;
  color: #bfb1b8;
  padding: 0;
  font: 600 13px Arial;
  cursor: pointer;
}
.text-button:hover {
  color: #fff;
}
.quiz-top {
  color: #bbaeb5;
  font: 600 13px Arial;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.progress {
  height: 5px;
  background: #33262d;
  margin: 14px 0 38px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), #ff7188);
  transition: width 0.25s ease;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  font:
    600 clamp(27px, 3vw, 37px)/1.2 Impact,"Arial Narrow",
    sans-serif;
  color: #fff;
  min-height: 90px;
}
.answers {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.answer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid #45343c;
  background: #151115;
  color: #d9cfd4;
  cursor: pointer;
  transition: 0.15s;
}
.answer:hover {
  border-color: #805063;
}
.answer.selected {
  border-color: var(--red);
  background: #2a1119;
  color: #fff;
}
.answer input {
  width: 19px;
  height: 19px;
  accent-color: var(--red);
}
.quiz-actions,
.result-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.result-card {
  max-width: 980px;
}
.result-card h2 {
  font-size: clamp(40px, 6vw, 68px);
  color: #ff7188;
  margin: 12px 0 0;
}
.result-lead {
  font-size: 19px;
  color: #ded4d9;
  max-width: 780px;
}
.score-list {
  display: grid;
  gap: 20px;
  margin: 32px 0;
}
.score-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}
.score-label strong {
  color: #ff7188;
}
.score-track {
  height: 10px;
  background: #34262d;
  overflow: hidden;
}
.score-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #9e172f, #ff526f);
}
.result-note {
  padding: 20px;
  border: 1px solid #583440;
  background: #171116;
  color: #cfc3c9;
}
.result-note strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}
.role-intro {
  color: #a99ba2;
  font-size: 14px;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 24px;
}
.role-card {
  position: relative;
  padding: 22px;
  background: #151115;
  border: 1px solid #49343e;
}
.role-card.top {
  border-color: #9e3348;
  background: linear-gradient(145deg, #271219, #151014);
}
.role-card h3 {
  font-size: 25px;
  margin: 0 70px 7px 0;
}
.role-card h4 {
  font: 400 25px/1.2 Impact, "Arial Narrow", sans-serif;
  color: #fff;
  margin: 0 0 8px;
}
.role-card h4 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #ff7188;
  text-underline-offset: 4px;
}
.role-card h4 a:hover,
.role-card h4 a:focus-visible {
  color: #ff9bac;
}
.result-section {
  margin-top: 30px;
}
.result-section > h3 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #fff;
}
.role-card .score-track {
  margin-top: 16px;
}
.topic-label {
  color: #ff9bac;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
}
.quiz-card .progress {
  margin-bottom: 10px;
}
.topic-skip {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.quiz-card .quiz-actions {
  align-items: center;
}
.role-card .percent {
  position: absolute;
  right: 20px;
  top: 21px;
  color: #ff7188;
  font:
    700 20px Impact,"Arial Narrow";
}
.role-card p {
  margin: 0;
  color: #c8bbc1;
  font-size: 14px;
}
.private-result {
  margin-top: 22px;
  padding: 14px 16px;
  background: #101010;
  color: #9f9298;
  font-size: 13px;
}
.private-result strong {
  color: #cfc4c9;
}
.result-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}
@media (max-width: 800px) {
  .test-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .test-heading .kicker {
    grid-column: auto;
  }
  .test-heading h1 {
    font-size: 67px;
  }
  .picker-grid {
    grid-template-columns: 1fr;
  }
  .test-choice p {
    min-height: 0;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .test-shell {
    padding: 45px 0 65px;
  }
  .test-heading h1 {
    font-size: 52px;
  }
  .test-picker,
  .quiz-card,
  .result-card {
    padding: 23px 18px;
  }
  .test-choice {
    padding: 22px;
  }
  .quiz-header {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
  legend {
    min-height: 118px;
    font-size: 27px;
  }
  .quiz-actions {
    flex-direction: column-reverse;
  }
  .quiz-actions .btn,
  .result-actions .btn {
    width: 100%;
    text-align: center;
  }
  .result-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .result-actions {
    flex-direction: column;
  }
}
