.quiz-section {
  margin-top: -50px;
}

.quiz-title {
  font-weight: 400;
  font-size: 36px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #19345f;
  font-family: 'Cygre';
}

.quiz-subtitle {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.39;
  letter-spacing: -0.03em;
  color: rgba(11, 39, 82, 0.71);
  max-width: 530px;
}

.quiz-head {
  margin-bottom: 34px;
}

.quiz-body-top {
  display: -moz-box;
  display: flex;
  -moz-box-align: end;
  align-items: flex-end;
  -moz-box-pack: justify;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 50px;
}

.quiz-body-title {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #0b2752;
  font-family: 'Cygre';
}

.quiz-control {
  display: -moz-box;
  display: flex;
  -moz-box-align: center;
  align-items: center;
  gap: 8px;
}

.quiz-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: -moz-inline-box;
  display: inline-flex;
  -moz-box-align: center;
  align-items: center;
  -moz-box-pack: center;
  justify-content: center;
  border-radius: 4px;
  -moz-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}

.quiz-btn.no-active {
  cursor: not-allowed;
}

.quiz-btn.no-active svg path {
  stroke: #626262;
}

.quiz-btn:not(.no-active):hover {
  background: #03066c;
}

.quiz-btn:not(.no-active):hover svg path {
  stroke: #fff;
}

.quiz-btn svg path {
  -moz-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}

.quiz-row {
  display: -moz-box;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 15px;
}

.quiz-col-1-5 {
  width: -moz-calc((100% - 60px) / 5);
  width: calc((100% - 60px) / 5);
  position: relative;
  cursor: pointer;
  display: -moz-box;
  display: flex;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  flex-direction: column;
}

.quiz-original-input {
  display: none;
}

.quiz-original-input:checked + .quiz-input-style:before {
  opacity: 1;
}

.quiz-input-style {
  position: absolute;
  left: 15px;
  top: 15px;
  border: 1px solid #0b2752;
  width: 20px;
  height: 20px;
  font-style: normal;
}

.quiz-input-style:before {
  content: '';
  position: absolute;
}

[type="radio"] + .quiz-input-style {
  border-radius: 50%;
}

[type="radio"] + .quiz-input-style:before {
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: #0b2752;
  opacity: 0;
  top: 50%;
  left: 50%;
  margin-left: -5px;
  margin-top: -5px;
}

[type="checkbox"] + .quiz-input-style {
  border-radius: 3px;
}

[type="checkbox"] + .quiz-input-style:before {
  background-image: url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.5 0.5L2.53374 6.5L0.5 4.45476' stroke='%23E4EAEF' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  width: 9px;
  height: 9px;
  top: 50%;
  left: 50%;
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  opacity: 0;
}

[type="checkbox"]:checked + .quiz-input-style {
  background: #0b2752;
}

.quiz-input-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 20px;
  height: 20px;
  display: -moz-inline-box;
  display: inline-flex;
  -moz-box-align: center;
  align-items: center;
  -moz-box-pack: center;
  justify-content: center;
}

.quiz-input {
  -moz-box-flex: 1;
  flex-grow: 1;
  display: -moz-box;
  display: flex;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  flex-direction: column;
  padding: 16px;
  background: #e4eaef;
  border-radius: 8px;
}

.quiz-input-image {
  width: 100%;
  text-align: center;
}

.quiz-input-title {
  display: block;
  padding-top: 10px;
  margin-top: auto;
  width: 100%;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #0b2752;
  font-family: 'Cygre';
}

.quiz-step-btn {
  margin-top: 34px;
  text-align: center;
}

.quiz-step-btn button {
  display: -moz-inline-box;
  display: inline-flex;
  padding-left: 50px;
  padding-right: 50px;
}

.quiz-row-2 {
  display: -moz-box;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.quiz-col-1-2 {
  position: relative;
  width: -moz-calc(50% - 12px);
  width: calc(50% - 12px);
  background: #e4eaef;
  border-radius: 8px;
}

.quiz-input-flex {
  padding: 16px 16px 16px 56px;
  background: #e4eaef;
  border-radius: 8px;
  display: -moz-box;
  display: flex;
  -moz-box-align: center;
  align-items: center;
  cursor: pointer;
  gap: 20px;
}

.quiz-input-flex-image {
  width: 28.5%;
  flex-shrink: 0;
}

.quiz-input-flex-info .quiz-input-title {
  padding-top: 0;
}

.quiz-input-flex-descr {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.39;
  letter-spacing: -0.03em;
  color: rgba(11, 39, 82, 0.71);
  margin-top: 10px;
  display: block;
}

.quiz-row-3 {
  display: -moz-box;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 50px;
}

.quiz-simple-item {
  position: relative;
  padding-left: 36px;
  cursor: pointer;
}

.quiz-simple-item .quiz-input-style {
  top: 50%;
  margin-top: -10px;
  left: 0;
}

.quiz-step-last {
  background: #e4eaef;
  border-radius: 8px;
  padding: 32px 64px;
  display: -moz-box;
  display: flex;
  -moz-box-align: center;
  align-items: center;
  -moz-box-pack: justify;
  justify-content: space-between;
  gap: 24px;
}

.quiz-step-last-title {
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: #0b2752;
  font-family: 'Cygre';
}

.quiz-step-last-subtitle {
  margin-top: 8px;
  line-height: 1.39;
  letter-spacing: -0.03em;
  color: rgba(11, 39, 82, 0.71);
}

.quiz-step-last-form {
  max-width: 450px;
}

.form-input input {
  height: 40px;
  border: 1px solid #4e6383;
  border-radius: 20px;
  padding: 3px 24px;
  width: 100%;
}

.form-input input {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.form-input input:focus,
.form-input input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.form-submit {
  position: relative;
  margin-top: 16px;
}

.form-submit .wpcf7-spinner {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 5px auto 0;
}

.form-submit button {
  width: 100%;
  min-height: 40px;
}

.form-submit button:disabled {
  opacity: 0.6;
}

.form-submit button:disabled:hover {
  background: #0b2752;
  color: #fff;
}

.form-submit button:disabled:hover svg path {
  stroke: #fff;
}

.form-konf {
  margin-top: 16px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.27;
  letter-spacing: -0.01em;
  color: #4e6383;
}

.form-konf .wpcf7-list-item {
  display: block;
  margin-left: 0;
}

.form-konf label {
  display: block;
  position: relative;
  padding-left: 32px;
  cursor: pointer;
}

.form-konf label input {
  display: none;
}

.form-konf label a {
  text-decoration: underline;
}

.form-konf label input:checked + span:after {
  opacity: 1;
}

.form-konf .wpcf7-list-item-label:before {
  content: '';
  position: absolute;
  border: 1px solid #4e6383;
  border-radius: 3px;
  width: 18px;
  height: 18px;
  left: 0;
  top: 50%;
  margin-top: -9px;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.form-konf .wpcf7-list-item-label:after {
  content: '';
  position: absolute;
  border-radius: 3px;
  width: 18px;
  height: 18px;
  left: 0;
  top: 50%;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin-top: -9px;
  border-color: #2c8efb;
  background-color: #2c8efb;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
  background-size: 8px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
}

span.wpcf7-not-valid-tip {
  display: none !important;
}

input.wpcf7-not-valid {
  border-color: red !important;
}

[data-name="modal-ok"] header {
  margin-bottom: 0 !important;
  -moz-box-align: center;
  align-items: center;
}

[data-name="modal-ok"] .card {
  padding-top: 50px;
  padding-bottom: 50px;
}

.modal-ok-descr {
  margin-top: 24px;
  max-width: 500px;
}

.quiz {
  position: relative;
  overflow: hidden;
  -moz-transition: height .35s ease;
  transition: height .35s ease;
}

.quiz-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -moz-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  -moz-transition: transform .35s ease, opacity .35s ease, visibility .35s, -moz-transform .35s ease;
  transition: transform .35s ease, opacity .35s ease, visibility .35s;
  transition: transform .35s ease, opacity .35s ease, visibility .35s, -moz-transform .35s ease;
}

.quiz-step.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
}

.quiz-step.is-prev {
  -moz-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  transform: translateX(-100%);
}

.quiz-step.is-next {
  -moz-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
}

[data-step="service"] .quiz-input-style {
  display: none;
}

[data-name="modal-quiz"] {
  width: 100%;
  max-width: 1200px;
}

[data-name="modal-quiz"] .card {
  min-height: -moz-calc(100vh - 2em - 6px);
  min-height: calc(100vh - 2em - 6px);
}

.quiz-error {
  -moz-transition: .3s ease;
  transition: .3s ease;
  text-align: center;
  height: 0;
  overflow: hidden;
}

.quiz-error.active {
  padding-top: 34px;
  opacity: 1;
  height: auto;
}

.quiz-error.active .quiz-error-descr {
  -moz-transition: .3s ease;
  transition: .3s ease;
  height: 3.5rem;
  opacity: 1;
}

.quiz-error-descr {
  display: -moz-inline-box;
  display: inline-flex;
  padding: 10px 30px;
  -moz-box-align: center;
  align-items: center;
  -moz-box-pack: center;
  justify-content: center;
  opacity: 0;
  background-color: #ffeabe;
  color: red;
  font-weight: 500;
  border-radius: 3rem;
  -moz-transition: .3s ease;
  transition: .3s ease;
}

[data-step="contacts"].active + .quiz-step-btn {
  display: none !important;
}

.quiz-answers-hidden {
  display: none !important;
}

.quiz-step-last-form .wpcf7-response-output {
  display: none !important;
}

.open-quiz {
  position: fixed;
  bottom: 0;
  background: rgba(228, 234, 239, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  left: 0;
  width: 100%;
  z-index: 10001;
  padding: 32px 0;
}

.open-quiz-row {
  display: -moz-box;
  display: flex;
  -moz-box-align: center;
  align-items: center;
  -moz-box-pack: justify;
  justify-content: space-between;
  gap: 20px;
}

.open-quiz-title {
  font-weight: 400;
  font-size: 32px;
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: #0b2752;
  font-family: 'Cygre';
}

.open-quiz-subtitle {
  font-size: 24px;
  line-height: 1.24;
  letter-spacing: -0.03em;
  color: rgba(11, 39, 82, 0.7);
}

* + .open-quiz-subtitle {
  margin-top: 8px;
}

.btn-open-quiz {
  padding-left: 24px;
  padding-right: 20px;
  white-space: nowrap;
}

.open-quiz-sep {
  -moz-box-flex: 1;
  flex-grow: 1;
  border-top: 1.50px solid #0b2752;
  margin: 0 90px;
}

@media screen and (max-width: 1440px) {
  .open-quiz-title {
    font-size: 22px;
  }

  .open-quiz-subtitle {
    font-size: 18px;
  }

  .open-quiz-sep {
    margin: 0 40px;
  }
}

@media screen and (max-width: 1400px) {
  .quiz-title {
    font-size: 32px;
  }
}

@media screen and (max-width: 1199px) {
  .quiz-head {
    margin-bottom: 30px;
  }

  .quiz-body-top {
    margin-bottom: 30px;
  }

  .quiz-row {
    gap: 15px;
  }

  .quiz-col-1-5 {
    width: -moz-calc((100% - 45px) / 4);
    width: calc((100% - 45px) / 4);
  }

  .quiz-input-title {
    font-size: 18px;
  }

  .quiz-step-btn {
    margin-top: 30px;
  }

  .quiz-row-2 {
    gap: 20px;
  }

  .quiz-col-1-2 {
    width: -moz-calc(50% - 10px);
    width: calc(50% - 10px);
  }

  .quiz-input-flex {
    gap: 16px;
  }

  .quiz-row-3 {
    gap: 20px;
  }

  .quiz-step-last {
    padding: 24px;
  }

  .open-quiz {
    padding: 24px 0;
  }
}

@media screen and (max-width: 1024px) {
  .open-quiz {
    padding: 0 0 15px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .open-quiz-left,
  .open-quiz-sep {
    display: none;
  }

  .open-quiz-row {
    -moz-box-pack: center;
    justify-content: center;
  }

  .btn-open-quiz {
    box-shadow: 0 0 1px 2px #fff;
  }
}

@media screen and (max-width: 960px) {
  .quiz-col-1-5 {
    width: -moz-calc((100% - 30px) / 3);
    width: calc((100% - 30px) / 3);
  }

  .quiz-row-2 {
    gap: 15px;
  }

  .quiz-input-flex {
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    flex-direction: column;
    gap: 10px;
    padding-left: 16px;
    padding-top: 56px;
  }

  .quiz-input-flex-image {
    width: 100%;
    max-width: 210px;
  }

  .quiz-row-3 {
    gap: 15px;
  }

  .quiz-step-last {
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    flex-direction: column;
  }

  .quiz-step-last-info {
    text-align: center;
  }
}

@media screen and (max-width: 767px) {
  .quiz-input-title {
    font-size: 16px;
  }
}

@media screen and (max-width: 640px) {
  .quiz-col-1-5 {
    width: -moz-calc((100% - 15px) / 2);
    width: calc((100% - 15px) / 2);
  }
}

@media screen and (max-width: 479px) {
  .quiz-col-1-5 {
    width: 100%;
  }

  .quiz-input {
    padding: 15px 10px;
  }

  .quiz-input-style {
    top: 10px;
    left: 10px;
  }

  .quiz-input-btn {
    top: 10px;
    right: 10px;
  }

  .quiz-col-1-2 {
    width: 100%;
  }
}