.quiz-page {
  background: #0b0f19;
  color: #e4e9f3;
}

.quiz-page [hidden] {
  display: none !important;
}

.quiz-page .wrap.quiz-wrap {
  max-width: 1400px;
  padding: max(92px, calc(var(--navH, 0px) + 38px)) 20px 24px;
  overflow-x: clip;
}

.quiz-page .sq-main {
  max-width: 1190px;
  margin: 0 auto;
}

.quiz-page .sq-main * {
  box-sizing: border-box;
}

.quiz-page .sq-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #e4e9f3;
  margin-bottom: 25px;
}

.quiz-page .sq-back-home:hover {
  color: #fff;
}

.quiz-page .sq-intro {
  margin-bottom: 29px;
}

.quiz-page .sq-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #9ab9d9;
  margin-bottom: 12px;
}

.quiz-page .sq-dot {
  width: 7px;
  height: 7px;
  background: #83b8eb;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(131, 184, 235, 0.12);
}

.quiz-page .sq-intro h1 {
  text-align: left;
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

.quiz-page .sq-intro h1 span {
  color: #91b8e2;
}

.quiz-page .sq-intro>p {
  color: #e4e9f3;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.quiz-page .sq-layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 19px;
  align-items: start;
}

.quiz-page .sq-aside {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  padding: 24px 20px;
  background: linear-gradient(155deg, #17273b 0%, #111a28 90%);
}

.quiz-page .sq-aside-top .sq-small-title {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  color: #91b5df;
  margin-bottom: 10px;
}

.quiz-page .sq-aside-top strong {
  display: block;
  font-size: 19px;
  line-height: 1.3;
}

.quiz-page .sq-aside-top p {
  color: #e4e9f3;
  margin: 10px 0 25px;
  line-height: 1.7;
  font-size: 14px;
}

.quiz-page .sq-step-list {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quiz-page .sq-step-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 9px;
  padding: 10px 11px;
  color: #e4e9f3;
  font-size: 14px;
  font-weight: 550;
  transition:
    background 0.15s,
    color 0.15s;
}

.quiz-page .sq-step-list li>span {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #7097c0;
}

.quiz-page .sq-step-list li.is-current {
  color: #f5f9ff;
  background: rgba(116, 162, 217, 0.18);
}

.quiz-page .sq-step-list li.is-current>span {
  color: #a7cefa;
}

.quiz-page .sq-step-list li.is-done {
  color: #e4e9f3;
}

.quiz-page .sq-step-list li.is-done>span {
  color: #84d6b5;
}

.quiz-page .sq-private {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin-top: 22px;
  padding-top: 16px;
  display: flex;
  align-items: start;
  gap: 9px;
  color: #8bc3af;
}

.quiz-page .sq-private p {
  margin: 0;
  color: #e4e9f3;
  font-size: 13px;
  line-height: 1.5;
}

.quiz-page .sq-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(140, 176, 215, 0.22);
  border-radius: 17px;
  background: linear-gradient(160deg,
      rgba(24, 39, 59, 0.95),
      rgba(15, 24, 38, 0.97) 46%);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.15);
}

.quiz-page .sq-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 30px 14px;
  color: #98bce4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quiz-page .sq-progress-track {
  height: 4px;
  margin: 0 30px;
  border-radius: 20px;
  background: rgba(164, 188, 216, 0.12);
  overflow: hidden;
}

.quiz-page .sq-progress-track>span {
  display: block;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #729edd, #8ad1ba);
  transition: width 0.26s ease;
}

.quiz-page #sq-form {
  margin: 0;
}

.quiz-page .sq-step {
  padding: 26px 30px 15px;
  min-height: 370px;
}

.quiz-page .sq-step-heading {
  margin-bottom: 27px;
}

.quiz-page .sq-kicker {
  display: block;
  font-size: 11px;
  color: #88afda;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.quiz-page .sq-step-heading h2 {
  text-align: left;
  color: #f3f7ff;
  margin: 0 0 10px;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.3;
}

.quiz-page .sq-step-heading h2:focus {
  outline: 0;
}

.quiz-page .sq-step-heading p {
  margin: 0;
  color: #e4e9f3;
  font-size: 14px;
  line-height: 1.75;
}

.quiz-page .sq-field {
  margin-bottom: 24px;
  min-width: 0;
}

.quiz-page .sq-label {
  display: block;
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 11px;
  line-height: 1.5;
  color: #e8f0ff;
}

.quiz-page .sq-label em,
.quiz-page .sq-consent em {
  color: #e69e9e;
  font-style: normal;
}

.quiz-page .sq-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.quiz-page .sq-choice {
  position: relative;
  min-width: 0;
  display: block;
  cursor: pointer;
}

.quiz-page .sq-choice>input,
.quiz-page .sq-pill>input,
.quiz-page .sq-check>input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.quiz-page .sq-choice>span {
  position: relative;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(158, 183, 216, 0.22);
  border-radius: 12px;
  background: rgba(15, 25, 41, 0.66);
  padding: 15px 17px;
  transition:
    border-color 0.18s,
    background 0.18s,
    transform 0.18s;
}

.quiz-page .sq-choice:hover>span {
  border-color: rgba(157, 194, 240, 0.5);
  background: rgba(41, 68, 98, 0.37);
}

.quiz-page .sq-choice input:checked+span {
  border-color: #7cb3ed;
  background: linear-gradient(125deg,
      rgba(66, 108, 153, 0.35),
      rgba(56, 109, 112, 0.2));
  box-shadow: inset 0 0 0 1px rgba(104, 163, 222, 0.2);
}

.quiz-page .sq-choice input:checked+span::after {
  content: "✓";
  position: absolute;
  top: 11px;
  right: 12px;
  color: #96d8bd;
  font-size: 14px;
  font-weight: 800;
}

.quiz-page .sq-choice input:focus-visible+span,
.quiz-page .sq-pill input:focus-visible+span,
.quiz-page .sq-check input:focus-visible+span {
  outline: 2px solid #97c3f3;
  outline-offset: 3px;
}

.quiz-page .sq-choice b {
  display: block;
  padding-right: 15px;
  color: #edf4ff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.quiz-page .sq-choice small {
  font-size: 15px;
  line-height: 1.5;
  color: #e4e9f3;
}

.quiz-page .sq-choice-grid--compact .sq-choice>span {
  min-height: 66px;
  padding: 15px 17px;
}

.quiz-page .sq-pills {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.quiz-page .sq-pill {
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.quiz-page .sq-pill>span {
  display: block;
  padding: 10px 14px;
  border: 1px solid rgba(158, 183, 216, 0.23);
  background: rgba(15, 25, 41, 0.65);
  border-radius: 9px;
  font-size: 15px;
  color: #e4e9f3;
  transition:
    background 0.18s,
    border-color 0.18s;
}

.quiz-page .sq-pill input:checked+span {
  background: rgba(78, 126, 168, 0.31);
  color: #fff;
  border-color: #7fb2e4;
}

.quiz-page input[type="text"],
.quiz-page input[type="url"],
.quiz-page input[type="email"],
.quiz-page input[type="tel"],
.quiz-page textarea {
  font: inherit;
  width: 100%;
  border: 1px solid rgba(158, 183, 216, 0.28);
  background: #0c1523;
  color: #eff6ff;
  border-radius: 10px;
  padding: 13px 15px;
  outline: 0;
  font-size: 15px;
  line-height: 1.5;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}

.quiz-page textarea {
  resize: vertical;
  min-height: 102px;
}

.quiz-page input::placeholder,
.quiz-page textarea::placeholder {
  color: #b5c8df;
  opacity: 1;
}

.quiz-page input:focus,
.quiz-page textarea:focus {
  border-color: #85b4ed;
  box-shadow: 0 0 0 3px rgba(128, 173, 222, 0.12);
}

.quiz-page .sq-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.quiz-page .sq-check {
  position: relative;
  cursor: pointer;
  min-width: 0;
}

.quiz-page .sq-check>span {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid rgba(158, 183, 216, 0.2);
  background: rgba(15, 25, 41, 0.62);
  border-radius: 9px;
  font-size: 15px;
  color: #e4e9f3;
  min-height: 49px;
  line-height: 1.5;
  transition:
    background 0.18s,
    border-color 0.18s;
}

.quiz-page .sq-check>span::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid #718da9;
  border-radius: 5px;
}

.quiz-page .sq-check:hover>span {
  border-color: rgba(157, 194, 240, 0.5);
}

.quiz-page .sq-check input:checked+span {
  background: rgba(61, 104, 142, 0.3);
  border-color: #75a8dc;
}

.quiz-page .sq-check input:checked+span::before {
  content: "✓";
  color: #0b1523;
  font-size: 12px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  border-color: #a4dec7;
  background: #a4dec7;
}

.quiz-page .sq-two-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.quiz-page .sq-help {
  font-size: 14px;
  color: #e4e9f3;
  margin: 10px 0 0;
}

.quiz-page .sq-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(158, 183, 216, 0.18);
  border-radius: 11px;
  padding: 16px;
  background: rgba(10, 20, 33, 0.7);
  font-size: 14px;
  color: #e4e9f3;
  line-height: 1.65;
  cursor: pointer;
}

.quiz-page .sq-consent input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: #91c4fa;
  margin: 2px 0 0;
  cursor: pointer;
}

.quiz-page .sq-consent a {
  text-decoration: underline;
  color: #a9d2fb;
  text-underline-offset: 3px;
}

.quiz-page .sq-data-note {
  margin: 12px 0 8px;
  font-size: 12px;
  color: #e4e9f3;
}

.quiz-page .sq-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.quiz-page .sq-form-error {
  color: #ffd7d7;
  background: rgba(171, 61, 75, 0.13);
  border: 1px solid rgba(239, 121, 133, 0.5);
  border-radius: 10px;
  padding: 11px 14px;
  margin: 0 30px 13px;
  font-size: 13px;
  line-height: 1.5;
}

.quiz-page .sq-navigation {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 30px 27px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.quiz-page .sq-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 19px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.18s,
    background 0.18s,
    border-color 0.18s;
  border: 1px solid transparent;
}

.quiz-page .sq-btn:hover {
  transform: translateY(-1px);
}

.quiz-page .sq-btn--primary {
  background: linear-gradient(115deg, #315b83, #286471);
  color: #fff;
  border-color: rgba(147, 193, 224, 0.36);
}

.quiz-page .sq-btn--primary:hover {
  background: linear-gradient(115deg, #4174a1, #347d86);
}

.quiz-page .sq-btn--secondary {
  border-color: rgba(151, 181, 214, 0.3);
  background: rgba(99, 139, 175, 0.1);
  color: #d0e5fb;
}

.quiz-page .sq-btn:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.quiz-page .sq-required-note {
  font-size: 14px;
  color: #e4e9f3;
  margin-right: auto;
}

.quiz-page .sq-success {
  min-height: 460px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 60px 35px;
}

.quiz-page .sq-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: #b9f4d8;
  background: rgba(84, 170, 129, 0.18);
  border: 1px solid rgba(127, 214, 173, 0.38);
}

.quiz-page .sq-success h2 {
  font-size: 27px;
  margin: 5px 0 0;
}

.quiz-page .sq-success p {
  max-width: 440px;
  margin: 0 0 12px;
  font-size: 15px;
  color: #e4e9f3;
  line-height: 1.7;
}

.quiz-page .sq-bottom-note {
  text-align: center;
  margin-top: 21px;
  color: #e4e9f3;
  font-size: 13px;
}

.quiz-page .sq-bottom-note a {
  color: #a1c8f3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiz-page .footer {
  max-width: 1190px;
  margin: 60px auto 0;
}

@media (max-width: 980px) {
  .quiz-page .sq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .quiz-page .sq-aside {
    display: none;
  }

  .quiz-page .sq-main {
    max-width: 760px;
  }
}

@media (max-width: 620px) {
  .quiz-page .wrap.quiz-wrap {
    padding: max(78px, calc(var(--navH, 0px) + 23px)) 15px 20px;
  }

  .quiz-page .sq-back-home {
    margin-bottom: 20px;
  }

  .quiz-page .sq-intro {
    margin-bottom: 22px;
  }

  .quiz-page .sq-intro h1 {
    font-size: 27px;
  }

  .quiz-page .sq-card {
    border-radius: 14px;
  }

  .quiz-page .sq-progress-top {
    padding: 19px 17px 13px;
  }

  .quiz-page .sq-progress-track {
    margin: 0 17px;
  }

  .quiz-page .sq-step {
    padding: 23px 17px 13px;
    min-height: 310px;
  }

  .quiz-page .sq-step-heading {
    margin-bottom: 24px;
  }

  .quiz-page .sq-step-heading h2 {
    font-size: 23px;
  }

  .quiz-page .sq-choice-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .quiz-page .sq-choice>span {
    min-height: 66px;
    padding: 13px 15px;
  }

  .quiz-page .sq-check-grid {
    grid-template-columns: 1fr;
  }

  .quiz-page .sq-two-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .quiz-page .sq-navigation {
    padding: 19px 17px 22px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .quiz-page .sq-btn {
    min-height: 43px;
    padding: 10px 13px;
    font-size: 13px;
  }

  .quiz-page .sq-required-note {
    order: 3;
    flex-basis: 100%;
    font-size: 13px;
  }

  .quiz-page .sq-form-error {
    margin: 0 17px 12px;
  }

  .quiz-page .sq-consent {
    padding: 14px;
  }

  .quiz-page .sq-success {
    min-height: 380px;
    padding: 40px 20px;
  }

  .quiz-page .footer {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .quiz-page .sq-btn,
  .quiz-page .sq-choice>span,
  .quiz-page .sq-progress-track>span,
  .quiz-page .sq-pill>span,
  .quiz-page .sq-check>span {
    transition: none !important;
  }
}

/* Уточнение условий самостоятельного редактирования */
.quiz-page .sq-edit-section {
  margin-top: 27px;
  padding-top: 23px;
  border-top: 1px solid rgba(158, 183, 216, 0.22);
}

.quiz-page .sq-help--lead {
  margin: -3px 0 13px;
  line-height: 1.7;
  font-size: 13px;
  color: #e4e9f3;
}

.quiz-page .sq-edit-details {
  border: 1px solid rgba(145, 184, 226, 0.22);
  background: rgba(62, 91, 125, 0.1);
  border-radius: 13px;
  padding: 18px 18px 2px;
  margin: 0 0 25px;
}

.quiz-page .sq-edit-details textarea {
  min-height: 155px;
}

.quiz-page .sq-field.is-invalid input:not([type="radio"]):not([type="checkbox"]),
.quiz-page .sq-field.is-invalid textarea {
  border-color: #e69e9e;
  box-shadow: 0 0 0 2px rgba(230, 158, 158, 0.13);
}

/* Подсветка незаполненных обязательных вопросов */
.quiz-page .sq-field.is-invalid>.sq-label {
  color: #ffb2bc;
  background: rgba(220, 65, 80, 0.1);
  outline: 1px solid #e66b7b;
  outline-offset: 5px;
  border-radius: 4px;
}

/* Подсветка согласия на обработку данных */
.quiz-page .sq-consent.is-invalid {
  border-color: #e66b7b;
  box-shadow: 0 0 0 2px rgba(230, 107, 123, 0.15);
}

@media (max-width: 620px) {
  .quiz-page .sq-edit-details {
    padding: 14px 13px 1px;
  }
}