* {
  box-sizing: border-box;
}

.quiz-page {
  padding: 24px 0 44px;
}

.quiz-shell {
  padding: 14px 42px 42px;
}

.quiz-top {
  margin-bottom: 28px;
}

.quiz-kicker {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(33, 28, 23, 0.62);
}

.quiz-title {
  margin: 0;
  text-align: center;
  font-family: "Merriweather", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  font-weight: 600;
  color: #181512;
}

.quiz-subtitle {
  margin: 14px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(30, 25, 20, 0.88);
}

.quiz-progress {
  margin: 28px auto 0;
  max-width: 760px;
}

.quiz-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(33, 28, 23, 0.62);
}

.quiz-progress__track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(108, 92, 69, 0.10);
  overflow: hidden;
}

.quiz-progress__fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b6925a 0%, #e0c28f 100%);
  transition: width 0.35s ease;
}

.quiz-card {
  max-width: 900px;
  margin: 0 auto;
  /* padding: 26px 0 0; */
}

.quiz-question {
  display: none;
  animation: fadeUp 0.35s ease;
}

.quiz-question.is-active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-question__title {
  margin: 0 0 18px;
  text-align: center;
  font-family: "Merriweather", serif;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 600;
  color: #181512;
}

.quiz-question__prompt {
  margin: 0 auto 28px;
  max-width: 720px;
  text-align: center;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(30, 25, 20, 0.69);
  text-wrap: pretty;
}

.quiz-answers {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.quiz-answer {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(108, 92, 69, 0.10);
  border-radius: 24px;
  background: linear-gradient(69deg, rgba(138, 124, 105, 0.18) 0%, rgba(246, 234, 218, 0.82) 50%, rgba(138, 124, 105, 0.14) 100%);
  color: #181512;
  padding: 18px 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(.22,.61,.36,1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.quiz-answer:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(108, 92, 69, 0.18);
}

.quiz-answer__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  margin-right: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 700;
  vertical-align: top;
}

.quiz-answer__text {
  display: inline;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(30, 25, 20, 0.94);
}

.quiz-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.quiz-image-answer {
  border: 1px solid rgba(108, 92, 69, 0.10);
  border-radius: 26px;
  background: #efe4d4;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.28s cubic-bezier(.22,.61,.36,1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.quiz-image-answer:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 92, 69, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 28px rgba(0, 0, 0, 0.08);
}

.quiz-image-answer__img {
  aspect-ratio: 4 / 3;
  background: #ddd0bd;
  overflow: hidden;
}

.quiz-image-answer__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-image-answer__body {
  padding: 14px 16px 16px;
  text-align: center;
}

.quiz-image-answer__body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(33, 28, 23, 0.62);
}

.quiz-image-answer__body span {
  font-size: 17px;
  line-height: 1.45;
  color: rgba(30, 25, 20, 0.92);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 760px;
  margin: 30px auto 0;
}

.quiz-nav__btn {
  border: 1px solid rgba(108, 92, 69, 0.10);
  border-radius: 999px;
  background: #e8dfd0;
  opacity: 0.5;
  color: #181512;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.quiz-nav__btn:hover {
  background: rgba(108, 92, 69, 0.06);
  transform: translateY(-1px);
}

.quiz-nav__btn[disabled] {
  opacity: 0.38;
  cursor: default;
  transform: none;
}

.quiz-helper {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #8b1d1d;
  min-height: 15px;
}


.quiz-final {
  display: none;
  animation: fadeUp 0.35s ease;
  max-width: 920px;
  margin: 0 auto;
  padding-top: 10px;
}

.quiz-final.is-active {
  display: block;
}

.quiz-final__box {
  background: #e6d7c3;
      background: linear-gradient(135deg, rgba(138, 124, 105, 0.18) 0%, rgba(246, 234, 218, 0.82) 50%, rgba(138, 124, 105, 0.14) 100%);
  border-radius: 30px;
  padding: 34px 34px 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.quiz-final__title {
  margin: 10px 10px 18px;
  text-align: center;
  font-size: 44px;
  max-width: 52ch;
  line-height: 1.14;
  font-weight: 700;
  color: #0f0d0c;
}

.quiz-final__text {
  margin: 0 auto 18px;
  max-width: 760px;
  text-align: center;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(15, 13, 12, 0.92);
}

.quiz-final__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 24px auto 20px;
}

.quiz-final__input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  outline: none;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.32);
  color: #181512;
  font-size: 18px;
  border-bottom: 2px solid rgba(108, 92, 69, 0.16);
}

.quiz-final__input::placeholder {
  color: rgba(33, 28, 23, 0.62);
}

.quiz-final__note {
  margin: 0 auto 24px;
  max-width: 760px;
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(15, 13, 12, 0.94);
}

.quiz-final__actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* .quiz-final__submit {
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  padding: 16px 34px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
} */

.quiz-final__submit.contact-btn {
  background: #191818;
  padding: 16px 34px;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  justify-self: unset;
}

.quiz-final__submit:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.quiz-final__micro {
  margin-top: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: rgba(15, 13, 12, 0.50);
}

.quiz-result {
  display: none;
  animation: fadeUp 0.35s ease;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding-top: 16px;
}

.quiz-result.is-active {
  display: block;
}

.quiz-result__kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(33, 28, 23, 0.62);
}

.quiz-result__title {
  margin: 0 0 14px;
  font-family: "Merriweather", serif;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  color: #181512;
}

.quiz-result__lead {
  margin: 0 auto 28px;
  max-width: 720px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(30, 25, 20, 0.92);
}

.quiz-result__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.quiz-result__card {
  border-radius: 24px;
  background: linear-gradient(135deg, #e8dfd0 0%, #ddd0bd 100%);
  border: 1px solid rgba(108, 92, 69, 0.10);
  padding: 22px 20px;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.04);
}

.quiz-result__card h3 {
  margin: 0 0 10px;
  font-family: "Merriweather", serif;
  font-size: 28px;
  line-height: 1.1;
  color: #181512;
}

.quiz-result__card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(30, 25, 20, 0.9);
}

/* MODAL WINDOW */
.quiz-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.quiz-exit-modal.is-open {
  display: flex;
}

.quiz-exit-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.quiz-exit-modal__window {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 480px;

  padding: 32px;

  background: #f6efe3;
  border-radius: 24px;
}

.quiz-exit-modal__title {
  margin: 0 0 12px;
  font-size: 28px;
  text-align: center;
}

.quiz-exit-modal__text {
  margin: 0 0 24px;
  font-size: 16px;
  text-align: center;
  opacity: 0.69;
}

.quiz-exit-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.quiz-exit-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;

  background: none;
  border: 0;
  cursor: pointer;
  font-size: 24px;
}

.quiz-exit-modal__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.quiz-exit-modal .contact-btn--outline {
  border-color: rgba(133, 133, 133, 0.28);
  color: rgba(103, 102, 102, 0.9);
  background: rgba(233, 232, 232, 0.35);
  font-weight: 500;
}

.quiz-exit-modal .contact-btn {
  font-weight: 500;
  letter-spacing: 0.02em;
}

#quizLeaveBtn {
  animation: none;
}

#quizLeaveBtn::before,
#quizLeaveBtn::after {
  display: none;
}

/* RESPONSIVE. TABLET 900px  */

/* =========================
   QUIZ RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
  .quiz-shell {
    padding: 20px 38px 34px;
  }

  .quiz-title {
    font-size: 42px;
  }

  .quiz-subtitle {
    font-size: 17px;
  }

  .quiz-question__title {
    font-size: 30px;
  }

  .quiz-question__prompt {
    font-size: 18px;
  }

  .quiz-answer__text {
    font-size: 17px;
  }

  .quiz-final__title {
    font-size: 40px;
  }
}

@media (max-width: 900px) {
  .quiz-page {
    padding: 22px 0 46px;
  }

  .quiz-shell {
    padding: 22px 30px 30px;
    border-radius: 28px;
  }

  .quiz-top {
    margin-bottom: 24px;
  }

  .quiz-title {
    font-size: 36px;
  }

  .quiz-subtitle {
    max-width: 680px;
    font-size: 16px;
  }

  .quiz-progress {
    margin-top: 20px;
  }

  .quiz-question__title {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .quiz-question__prompt {
    max-width: 640px;
    margin-bottom: 20px;
    font-size: 16px;
  }

  .quiz-answers {
    max-width: 700px;
    gap: 12px;
  }

  .quiz-answer {
    padding: 16px 18px;
    border-radius: 20px;
  }

  .quiz-answer__text {
    font-size: 16px;
  }

  .quiz-image-grid {
    max-width: 700px;
    gap: 16px;
  }

  .quiz-final__box {
    padding: 36px 56px;
    border-radius: 26px;
  }

  .quiz-final__title {
    margin: 8px auto 16px;
    font-size: 36px;
  }

  .quiz-final__text,
  .quiz-final__note {
    font-size: 16px;
  }

  .quiz-final__input {
    padding: 15px 20px;
    font-size: 16px;
  }

  .quiz-result__cards {
    grid-template-columns: 1fr;
  }

  .quiz-result__card h3 {
    font-size: 25px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 14px;
  }

  .quiz-page {
    padding: 16px 0 30px;
  }

  .quiz-shell {
    padding: 18px 18px 22px;
    border-radius: 24px;
  }

  .quiz-title {
    font-size: 30px;
  }

  .quiz-subtitle {
    font-size: 15px;
    line-height: 1.55;
  }

  .quiz-progress {
    margin-top: 16px;
  }

  .quiz-progress__meta {
    font-size: 12px;
  }

  .quiz-question__title {
    font-size: 24px;
  }

  .quiz-question__prompt {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
  }

  .quiz-answer {
    padding: 15px;
    border-radius: 18px;
  }

  .quiz-answer__label {
    min-width: 28px;
    height: 28px;
    margin-right: 10px;
    font-size: 12px;
  }

  .quiz-answer__text {
    font-size: 14px;
  }

  .quiz-image-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quiz-nav {
    margin-top: 22px;
    gap: 10px;
  }

  .quiz-nav__btn {
    flex: 1;
    padding: 11px 16px;
    font-size: 14px;
  }

  .quiz-final__box {
    padding: 24px 16px 22px;
    border-radius: 22px;
  }

  .quiz-final__title {
    font-size: 30px;
  }

  .quiz-final__fields {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 20px auto 18px;
  }

  .quiz-final__text,
  .quiz-final__note {
    font-size: 15px;
  }

  .quiz-final__submit.contact-btn {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .quiz-shell {
    padding: 16px 14px 20px;
    border-radius: 22px;
  }

  .quiz-title {
    font-size: 27px;
  }

  .quiz-subtitle {
    font-size: 14px;
  }

  .quiz-question__title {
    font-size: 22px;
  }

  .quiz-question__prompt {
    font-size: 14px;
  }

  .quiz-answer {
    padding: 14px;
    border-radius: 16px;
  }

  .quiz-answer__text {
    font-size: 13.5px;
  }

  .quiz-final__title {
    font-size: 26px;
  }

  .quiz-final__input {
    padding: 13px 16px;
    font-size: 15px;
  }

  .quiz-result__card h3 {
    font-size: 21px;
  }

  .quiz-result__card p {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .quiz-page {
    padding: 14px 0 24px;
  }

  .quiz-shell {
    padding: 14px 12px 18px;
    border-radius: 20px;
  }

  .quiz-title {
    font-size: 25px;
  }

  .quiz-question__title {
    font-size: 20px;
  }

  .quiz-answer {
    padding: 13px;
  }

  .quiz-final__box {
    padding: 20px 12px 18px;
  }

  .quiz-final__title {
    font-size: 24px;
  }

  .quiz-final__submit.contact-btn {
    max-width: 100%;
    padding: 11px 16px;
    font-size: 14px;
  }
}


