.question-header {
  width: min(900px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.brand-logo {
  width: 150px;
  height: 88px;
  display: block;
  object-fit: contain;
}

.question-header h1 {
  max-width: 860px;
  margin: 0;
  color: var(--lova-purple);
  font-size: 16.36px;
  line-height: 1.5;
  font-weight: 600;
  text-wrap: balance;
}

.selection-grid {
  display: grid;
  justify-content: center;
  align-items: stretch;
}

.visual-choice {
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.visual-choice-panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.visual-choice:hover .visual-choice-panel {
  transform: translateY(-1px);
}

.visual-choice-title {
  display: block;
  color: var(--lova-text);
  font-size: 13.64px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.selection-circle,
.multi-check {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: block;
  border-radius: 50%;
  background: url("../assets/selection-empty.svg") center / 46px 46px no-repeat;
}

.visual-choice.is-selected .selection-circle,
.multi-choice-card.is-selected .multi-check {
  background-image: url("../assets/selection-checked-vivid.svg");
}

/* Usage */
.usage-grid {
  width: 620px;
  max-width: 100%;
  margin: 34px auto 0;
  grid-template-columns: repeat(2, 295px);
  gap: 30px;
}

.usage-card {
  width: 295px;
  height: 350px;
}

.usage-card .visual-choice-panel {
  padding: 25px 15px;
  gap: 10px;
  border-radius: 32px;
}

.usage-card.is-selected .visual-choice-panel {
  background: #fff;
  box-shadow: 0 0 47.8px rgba(0, 0, 0, 0.1);
}

.usage-image-wrap {
  width: 265px;
  height: 214px;
  display: grid;
  place-items: center;
}

.usage-image {
  width: 265px;
  height: 214px;
  display: block;
  object-fit: contain;
}

/* Range */
.range-people {
  width: min(960px, 100%);
  margin: 45px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 38px;
}

.range-people.has-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px;
}

.range-person {
  min-width: 0;
}

.person-label,
.section-label {
  position: relative;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0 auto 13px;
  padding: 6px 17px;
  display: block;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 500;
  text-align: center;
  background: var(--lova-purple);
}

.person-label::after,
.section-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--lova-purple);
  transform: translateX(-50%);
}

.person-chip.visually-hidden::after {
  display: none;
}

.measurement-value {
  height: 115px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.measurement-value strong {
  color: var(--lova-text);
  font-size: 92px;
  line-height: 110px;
  font-weight: 200;
  letter-spacing: -0.05em;
}

.measurement-value span {
  margin: 0 0 23px 4px;
  color: var(--lova-purple);
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
}

.range-people.has-two .measurement-value {
  height: 92px;
}

.range-people.has-two .measurement-value strong {
  font-size: 70px;
  line-height: 88px;
}

.range-people.has-two .measurement-value span {
  margin-bottom: 19px;
  font-size: 16px;
}

.range-shell {
  position: relative;
  width: min(827px, 100%);
  height: 74px;
  margin: 0 auto;
}

.range-input {
  --range-progress: 25%;

  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 44px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.range-input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--lova-purple) 0 var(--range-progress),
    #e3e3e3 var(--range-progress) 100%
  );
}

.range-input::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: #e3e3e3;
}

.range-input::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--lova-purple);
}

.range-input::-webkit-slider-thumb {
  width: 41px;
  height: 41px;
  margin-top: -18.5px;
  appearance: none;
  border: 3px solid var(--lova-purple);
  border-radius: 50%;
  background: #fff;
}

.range-input::-moz-range-thumb {
  width: 35px;
  height: 35px;
  border: 3px solid var(--lova-purple);
  border-radius: 50%;
  background: #fff;
}

.range-scale {
  position: absolute;
  top: 41px;
  left: 0;
  width: 100%;
  height: 19px;
  background:
    linear-gradient(90deg, transparent 0 0),
    repeating-linear-gradient(
      90deg,
      #d5d5d5 0 2px,
      transparent 2px calc(5% - 1px),
      #d5d5d5 calc(5% - 1px) 5%
    );
  mask: linear-gradient(#000 0 0) top / 100% 8px no-repeat;
  opacity: 0.9;
}

.range-people.has-two .range-shell {
  width: 100%;
}

/* Body and sleep groups */
.person-sections {
  width: min(930px, 100%);
  margin: 40px auto 0;
}

.person-sections.has-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.person-selection-section {
  min-width: 0;
}

.shape-grid {
  width: min(860px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.shape-choice {
  min-width: 0;
  height: 220px;
}

.shape-choice .visual-choice-panel {
  padding: 18px 9px 14px;
  justify-content: space-between;
  gap: 10px;
  border-radius: 30px;
}

.shape-choice.is-selected .visual-choice-panel {
  background: #fff;
  box-shadow: 0 0 41.8px rgba(0, 0, 0, 0.08);
}

.body-icon,
.body-icon img {
  width: 135px;
  height: 135px;
  display: block;
  object-fit: contain;
}

.person-sections.has-two .shape-grid {
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.person-sections.has-two .shape-choice {
  height: 165px;
}

.person-sections.has-two .shape-choice .visual-choice-panel {
  padding: 13px 4px 10px;
  border-radius: 22px;
}

.person-sections.has-two .body-icon,
.person-sections.has-two .body-icon img {
  width: 82px;
  height: 105px;
}

.person-sections.has-two .visual-choice-title {
  font-size: 11px;
}

.sleep-grid {
  width: min(800px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, 179px);
  gap: 20px;
}

.sleep-choice {
  width: 179px;
  height: 281px;
}

.sleep-choice .visual-choice-panel {
  padding: 12px 8px 13px;
  gap: 8px;
  border-radius: 30px;
}

.sleep-choice.is-selected .visual-choice-panel {
  background: #fff;
  box-shadow: 0 0 41.8px rgba(0, 0, 0, 0.08);
}

.sleep-illustration,
.sleep-illustration img {
  width: 92px;
  height: 170px;
  display: block;
  object-fit: contain;
}

.sleep-choice:not(.is-selected) .sleep-illustration img {
  filter: grayscale(1);
}

.sleep-sections.has-two {
  width: min(960px, 100%);
  gap: 26px;
}

.sleep-sections.has-two .sleep-grid {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.sleep-sections.has-two .sleep-choice {
  width: 100%;
  height: 195px;
}

.sleep-sections.has-two .sleep-choice .visual-choice-panel {
  padding: 9px 3px 10px;
  gap: 5px;
  border-radius: 22px;
}

.sleep-sections.has-two .sleep-illustration,
.sleep-sections.has-two .sleep-illustration img {
  width: 66px;
  height: 112px;
}

.sleep-sections.has-two .selection-circle {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  background-size: 36px 36px;
}

.sleep-sections.has-two .visual-choice-title {
  font-size: 10px;
  line-height: 1.15;
}

/* Multi-choice */
.multi-choice-grid {
  width: min(650px, 100%);
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.multi-choice-card {
  width: 100%;
  min-height: 68px;
  padding: 10px 20px 10px 13px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  color: var(--lova-text);
  text-align: left;
  background: #fff;
  box-shadow: 0 4px 21px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.multi-choice-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.14);
}

.multi-choice-text {
  min-width: 0;
  font-size: 13.64px;
  line-height: 1.35;
  font-weight: 400;
}

/* Navigation */
.quiz-navigation {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 15;
  width: min(430px, calc(100% - 40px));
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateX(-50%);
}

.navigation-button {
  min-width: 142px;
  min-height: 48px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  color: #4f93ff;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  background: transparent;
  cursor: pointer;
  transition: transform var(--transition), color var(--transition), opacity var(--transition);
}

.navigation-button:hover:not(:disabled) {
  color: #407fe5;
  transform: translateY(-1px);
}

.navigation-button:disabled {
  color: #bdbdbd;
  cursor: default;
}

.navigation-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.validation-message {
  position: absolute;
  left: 50%;
  bottom: 51px;
  width: min(430px, 90vw);
  margin: 0;
  color: #c14868;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
  transform: translateX(-50%);
}

.shake {
  animation: shake 300ms ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}


.person-sections.has-two .body-icon,
.person-sections.has-two .body-icon img,
.sleep-sections.has-two .sleep-illustration,
.sleep-sections.has-two .sleep-illustration img {
  max-width: 100%;
}
