.hf-test {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  min-height: 510px;
}

@media screen and (max-width: 1919px) {
  .hf-test {
    min-height: 26.5625vw;
  }
}

.hf-test-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px;
  border-radius: 30px;
  background-color: #C4A585;
  color: #fff;
  flex: 1;
}

@media screen and (max-width: 1919px) {
  .hf-test-left {
    gap: 2.0834vw;
    padding: 2.0834vw;
    border-radius: 1.5625vw;
  }
}

.hf-test-title {
  font-size: 48px;
  font-weight: 500;
  line-height: 62px;
  max-width: 640px;
}

@media screen and (max-width: 1919px) {
  .hf-test-title {
    font-size: 2.5vw;
    line-height: 3.2295vw;
    max-width: 33.3334vw;
  }
}

.hf-test-footer {
  margin-top: auto;
  max-width: 560px;
}

@media screen and (max-width: 1919px) {
  .hf-test-footer {
    max-width: 29.167vw;
  }
}

.hf-test-sub-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 42px;
}

@media screen and (max-width: 1919px) {
  .hf-test-sub-title {
    font-size: 1.6665vw;
    line-height: 2.1875vw;
  }
}

.hf-test-sub-text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 22px;
}

@media screen and (max-width: 1919px) {
  .hf-test-sub-text {
    margin-top: 0.8335vw;
    font-size: 0.8335vw;
    line-height: 1.146vw;
  }
}

.hf-test-right {
  padding: 40px;
  border-radius: 30px;
  background-color: #EFE9E3;
  flex: 1;
}

@media screen and (max-width: 1919px) {
  .hf-test-right {
    padding: 2.0834vw;
    border-radius: 1.5625vw;
  }
}

.hf-test-progress-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 40px;
}

@media screen and (max-width: 1919px) {
  .hf-test-progress-block {
    gap: 2.0834vw;
  }
}

.hf-test-progress {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media screen and (max-width: 1919px) {
  .hf-test-progress {
    height: 1.042vw;
    gap: 0.521vw;
  }
}

.hf-test-progress div {
  flex: 1;
  height: 4px;
  border-radius: 5px;
  background-color: #fff;
}

@media screen and (max-width: 1919px) {
  .hf-test-progress div {
    height: 0.2085vw;
    border-radius: 0.2605vw;
  }
}

.hf-test-progress div.active {
  background-color: #C4A585;
}

.hf-test-questions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (max-width: 1919px) {
  .hf-test-questions {
    gap: 2.0834vw;
  }
}

.hf-test-questions-panel {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media screen and (max-width: 1919px) {
  .hf-test-questions-panel {
    gap: 0.8335vw;
  }
}

.hf-test-question {
  display: none;
  flex-direction: column;
  max-width: 684px;
}

@media screen and (max-width: 1919px) {
  .hf-test-question {
    max-width: 31.417vw;
  }
}

.hf-test-question-text {
  color: #2D2D2D;
  font-size: 14px;
  line-height: 130%;
  margin-bottom: 32px;
}

@media screen and (max-width: 1919px) {
  .hf-test-question-text {
    font-size: 0.7295vw;
    margin-bottom: 1.6665vw;
  }
}

.hf-test-question-text p:not(:first-child) {
  margin-top: 8px;
}

@media screen and (max-width: 1919px) {
  .hf-test-question-text p:not(:first-child) {
    margin-top: 0.4165vw;
  }
}

.hf-test-question-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 32px;
}

@media screen and (max-width: 1919px) {
  .hf-test-question-title {
    font-size: 1.042vw;
    line-height: 1.25vw;
    margin-bottom: 1.6665vw;
  }
}

.hf-test-question-radio-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

@media screen and (max-width: 1919px) {
  .hf-test-question-radio-container {
    gap: 0.7815vw;
  }
}

.hf-test-question-radio {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #C4A585;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: none;
}

@media screen and (max-width: 1919px) {
  .hf-test-question-radio {
    width: 1.146vw;
    height: 1.146vw;
    border: 0.1045vw solid #C4A585;
  }
}

.hf-test-question-radio input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
}

.hf-test-question-radio-check {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #C4A585;
  cursor: pointer;
  opacity: 0;
}

@media screen and (max-width: 1919px) {
  .hf-test-question-radio-check {
    width: 0.521vw;
    height: 0.521vw;
  }
}

.hf-test-question-radio input:checked+.hf-test-question-radio-check {
  opacity: 1;
}

.hf-test-question-radio-container:not(:last-child) {
  margin-bottom: 24px;
}

@media screen and (max-width: 1919px) {
  .hf-test-question-radio-container:not(:last-child) {
    margin-bottom: 1.25vw;
  }
}

.hf-test-question-radio-label {
  position: relative;
  font-size: 20px;
  line-height: 26px;
  color: #2D2D2D;
  width: 100%;
}

.hf-test-question-input-label {
  position: relative;
  font-size: 20px;
  line-height: 26px;
  color: #2D2D2D;
  width: 100%;
}

.hf-test-question-input-field {
  margin-top: 8px;
  padding: 0 16px;
  display: block;
  border: 1px solid #B6B4B3;
  max-width: 198px;
  width: 100%;
  height: 60px;
  font-size: 20px;
  line-height: 26px;
  color: #2D2D2D;
}

.hf-test-question-input-field.error {
  border-color: red;
}

.hf-test-question-input-error {
  color: red;
  font-size: 14px;
  line-height: 20px;
}

.hf-test-question-input-field::-webkit-outer-spin-button,
.hf-test-question-input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hf-test-question-input-field {
  -moz-appearance: textfield;
}

@media screen and (max-width: 1919px) {
  .hf-test-question-radio-label {
    font-size: 1.042vw;
    line-height: 1.3545vw;
  }

  .hf-test-question-input-label {
    font-size: 1.042vw;
    line-height: 1.3545vw;
  }

  .hf-test-question-input-field {
    height: 3.5vw;
  }
}

.hf-test-question-radio-ava {
  position: relative;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 50%;
}

@media screen and (max-width: 1919px) {
  .hf-test-question-radio-ava {
    width: 4.167vw;
    height: 4.167vw;
  }
}

.hf-test-question-radio-ava img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
}

.hf-test-question-variant {
  display: none;
  position: absolute;
  top: calc(50% - 11px);
  left: 60px;
}

@media screen and (max-width: 1919px) {
  .hf-test-question-variant {
    position: absolute;
    top: calc(50% - 0.573vw);
    left: 3.125vw;
  }
}

.hf-test-question.selected .hf-test-question-variant {
  display: block;
}

.hf-test-question-variant svg {
  display: block;
  width: 22px;
  height: auto;
}

@media screen and (max-width: 1919px) {
  .hf-test-question-variant svg {
    width: 1.146vw;
  }
}

.hf-test-questions-buttons {
  display: flex;
  gap: 24px;
  align-items: center;
  max-width: 516px;
  width: 100%;
  flex: none;
}

@media screen and (max-width: 1919px) {
  .hf-test-questions-buttons {
    gap: 0.8335vw;
    max-width: 23.036vw;
  }
}

.hf-test-questions-prev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
  border-radius: 12px;
  background-color: #fff;
  height: 64px;
  color: #2D2D2D;
  font-size: 20px;
  font-weight: 500;
  transition: background 300ms, color 300ms;
  white-space: nowrap;
  cursor: pointer;
}

@media screen and (max-width: 1919px) {
  .hf-test-questions-prev {
    padding: 0 1.4585vw;
    border-radius: 0.625vw;
    height: 3.3335vw;
    font-size: 1.042vw;
  }
}

.hf-test-questions-prev:hover {
  background-color: #F3F1EF;
}

.hf-test-questions-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
  width: 100%;
  max-width: 384px;
  border-radius: 12px;
  background-color: #fff;
  height: 64px;
  color: #2D2D2D;
  font-size: 20px;
  font-weight: 500;
  transition: background 300ms, color 300ms;
  white-space: nowrap;
  cursor: pointer;
}

@media screen and (max-width: 1919px) {
  .hf-test-questions-next {
    padding: 0 1.4585vw;
    border-radius: 0.625vw;
    height: 3.3335vw;
    font-size: 1.042vw;
    max-width: 20vw;
  }
}

.hf-test-questions-next:hover {
  background-color: #F3F1EF;
}

.hf-test-questions-noty {
  font-size: 14px;
  line-height: 18px;
  color: #67676B;
}

.hf-test-img {
  margin-bottom: 8px;
}

.hf-test-questions-approval {
  font-size: 14px;
  line-height: 18px;
  color: #B6B4B3;
}

@media screen and (max-width: 1919px) {
  .hf-test-questions-noty {
    font-size: 0.7295vw;
    line-height: 0.9375vw;
  }

  .hf-test-questions-approval {
    font-size: 0.7295vw;
    line-height: 0.9375vw;
  }
}

.hf-test-questions-noty p:not(:first-child) {
  margin-top: 4px;
}

@media screen and (max-width: 1919px) {
  .hf-test-questions-noty p:not(:first-child) {
    margin-top: 0.2085vw;
  }
}

.hf-test-finish {
  display: none;
  flex-direction: column;
  height: 100%;
  gap: 40px;
}

@media screen and (max-width: 1919px) {
  .hf-test-finish {
    gap: 2.0834vw;
  }
}

.hf-test-finish-result {
  font-size: 32px;
  font-weight: 500;
  line-height: 52px;
  margin-bottom: 32px;
  color: #AD9275;
  text-align: center;
}

@media screen and (max-width: 1919px) {
  .hf-test-finish-result {
    font-size: 2.0834vw;
    line-height: 2.7085vw;
    margin-bottom: 1.6665vw;
  }
}

.hf-test-finish-title {
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: #2D2D2D;
  text-align: center;
}

.hf-test-finish-description {
  font-size: 20px;
  line-height: 26px;
  color: #2D2D2D;
  text-align: center;
  /* max-width: 390px; */
}

.hf-test-finish-block {
  height: 100%;
}

@media screen and (max-width: 1919px) {
  .hf-test-finish-title {
    font-size: 1.042vw;
    line-height: 1.3545vw;
  }

  .hf-test-finish-description {
    font-size: 1.042vw;
    line-height: 1.3545vw;
    /* max-width: 20.3125vw; */
  }
}

.hf-test-finish-panel {
  margin-bottom: 16px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hf-test-finish-type {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media screen and (max-width: 1919px) {
  .hf-test-finish-panel {
    gap: 0.8335vw;
  }
}

.hf-test-finish-button {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  flex: none;
}

@media screen and (max-width: 1919px) {
  .hf-test-finish-button {
    gap: 1.25vw;
  }
}

.hf-test-finish-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
  width: 100%;
  border-radius: 12px;
  background-color: #fff;
  height: 64px;
  color: #2D2D2D;
  font-size: 20px;
  font-weight: 500;
  transition: background 300ms, color 300ms;
  white-space: nowrap;
  cursor: pointer;
}

@media screen and (max-width: 1919px) {
  .hf-test-finish-button a {
    padding: 0 1.4585vw;
    border-radius: 0.625vw;
    height: 3.3335vw;
    font-size: 1.042vw;
  }
}

.hf-test-finish-button a:last-child {
  background-color: #C4A585;
  color: #fff;
}

.hf-test-finish-button a:hover {
  background-color: #F3F1EF;
  color: #2D2D2D;
}

.hf-test-finish-noty {
  font-size: 14px;
  line-height: 18px;
  color: #67676B;
}

@media screen and (max-width: 1919px) {
  .hf-test-finish-noty {
    font-size: 0.7295vw;
    line-height: 0.9375vw;
  }
}

.hf-test-finish-noty p:not(:first-child) {
  margin-top: 4px;
}

@media screen and (max-width: 1919px) {
  .hf-test-finish-noty p:not(:first-child) {
    margin-top: 0.2085vw;
  }
}

.hf-test-finish-noty p:last-child {
  color: #B6B4B3;
}

.hf-test-question-counter-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 60px;
}

.hf-test-question-counter-button {
  width: 60px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
  border-radius: 5px;
  border: 1px solid #B6B4B3;
  color: #67676B;
  user-select: none;
}

.hf-test-question-counter-button:hover {
  background-color: #C4A585;
  color: #fff;
}

.hf-test-question-counter-input {
  margin: 0 4px;
  width: 80px;
  height: 100%;
  cursor: pointer;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
  border-radius: 5px;
  border: 1px solid #B6B4B3;
  color: #67676B;
}

.hf-test-question-counter-input::-webkit-outer-spin-button,
.hf-test-question-counter-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media screen and (max-width: 1023px) {
  .hf-test {
    min-height: auto;
    flex-direction: column;
  }

  .hf-test-left {
    padding: 40px;
    border-radius: 30px;
    min-height: 430px;
    gap: 40px;
  }

  .hf-test-title {
    font-size: 36px;
    line-height: 130%;
    max-width: none;
  }

  .hf-test-sub-text {
    font-size: 16px;
    line-height: 20px;
    margin-top: 16px;
  }

  .hf-test-footer {
    max-width: 560px;
  }

  .hf-test-sub-title {
    font-size: 26px;
    line-height: 130%;
  }

  .hf-test-question-input-field {
    height: 40px;
  }

  .hf-test-right {
    padding: 40px;
    border-radius: 30px;
  }

  .hf-test-question {
    max-width: 100%;
  }

  .hf-test-progress {
    height: 20px;
    gap: 10px;
  }

  .hf-test-progress-block {
    gap: 40px;
  }

  .hf-test-progress div {
    height: 4px;
    border-radius: 4px;
  }

  .hf-test-question-title {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 32px;
  }

  .hf-test-question-text {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .hf-test-question-text p:not(:first-child) {
    margin-top: 8px;
  }

  .hf-test-question-radio-ava {
    width: 80px;
    height: 80px;
  }

  .hf-test-question-radio-label {
    font-size: 20px;
  }

  .hf-test-question-input-label {
    font-size: 20px;
  }

  .hf-test-question-radio-container {
    gap: 15px;
  }

  .hf-test-question-radio-container:not(:last-child) {
    margin-bottom: 24px;
  }

  .hf-test-questions {
    gap: 40px;
  }

  .hf-test-question-radio {
    width: 22px;
    height: 22px;
    border-width: 2px;
  }

  .hf-test-question-radio-check {
    width: 10px;
    height: 10px;
  }

  .hf-test-questions-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hf-test-questions-buttons {
    gap: 24px;
    max-width: none;
  }

  .hf-test-questions-next {
    font-size: 16px;
    padding: 0 16px;
    max-width: 300px;
    border-radius: 12px;
    height: 52px;
  }

  .hf-test-questions-prev {
    font-size: 16px;
    padding: 0 30px;
    border-radius: 12px;
    height: 52px
  }

  .hf-test-questions-noty {
    font-size: 14px;
    line-height: 130%;
  }

  .hf-test-finish-result {
    font-size: 26px;
    line-height: 130%;
    margin-bottom: 32px;
  }

  .hf-test-finish-description {
    font-size: 20px;
    line-height: 26px;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .hf-test-finish {
    gap: 40px;
  }

  .hf-test-finish-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hf-test-finish-button a {
    font-size: 16px;
    padding: 0 16px;
    max-width: 300px;
    border-radius: 12px;
    height: 52px;
  }

  .hf-test-finish-noty {
    font-size: 14px;
    line-height: 130%;
  }

  .hf-test-finish-title {
    font-size: 20px;
    /* max-width: 400px; */
  }

  .hf-test-questions-approval {
    font-size: 14px;
    line-height: 130%;
  }

  .hf-test-finish-button {
    max-width: none;
    gap: 16px;
  }

  .hf-test-questions-noty p:not(:first-child) {
    margin-top: 4px;
  }

  .hf-test-question-variant {
    top: calc(50% - 11px);
    left: 50px;
  }

  .hf-test-question-variant svg {
    width: 22px;
  }
}

@media screen and (max-width: 767px) {
  .hf-test-title {
    font-size: 30px;
    max-width: 360px;
  }

  .hf-test-title br {
    display: none;
  }

  .hf-test-left {
    min-height: auto;
    padding: 24px;
  }

  .hf-test-sub-title {
    font-size: 22px;
  }

  .hf-test-sub-title br {
    display: none;
  }

  .hf-test-sub-text {
    font-size: 14px;
  }

  .hf-test-sub-text br {
    display: none;
  }

  .hf-test-question-input-field {
    max-width: 100%;
    width: 100%;
  }

  .hf-test-right {
    padding: 24px;
  }

  .hf-test-progress-block {
    gap: 16px;
  }

  .hf-test-progress div {
    height: 2px;
  }

  .hf-test-question-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .hf-test-question-radio-container:not(:last-child) {
    margin-bottom: 20px;
  }

  .hf-test-question-radio-container {
    gap: 12px;
  }

  .hf-test-question-radio-label {
    font-size: 16px;
  }

  .hf-test-question-input-label {
    font-size: 16px;
  }

  .hf-test-question-radio-ava {
    width: 42px;
    height: 42px;
  }

  .hf-test-questions {
    gap: 24px;
  }

  .hf-test-questions-panel {
    gap: 16px;
  }

  .hf-test-questions-buttons {
    gap: 16px;
    flex-direction: column;
  }

  .hf-test-questions-prev {
    width: 100%;
    order: 1;
  }

  .hf-test-question-variant {
    left: 40px;
  }

  .hf-test-finish-description {
    font-size: 20px;

  }

  .hf-test-finish-button {
    flex-direction: column;
  }

  .hf-test-finish-button a {
    max-width: none;
  }

  .hf-test-questions-next {
    max-width: none;
  }
}