@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Manrope:wght@200..800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fdf7f0;
}

:root {
  --font-family: "Manrope", sans-serif;
  --second-family: "Cormorant Garamond", sans-serif;

  --curent-size: 420;
}

.container {
  margin: 0 auto;
  width: calc((380 / var(--curent-size)) * 100vw);
}

.hero-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: calc((10 / var(--curent-size)) * 100vw) 0
    calc((18 / var(--curent-size)) * 100vw) 0;
}

.hero-head {
  display: flex;
  align-items: center;
  gap: calc((10 / var(--curent-size)) * 100vw);
  width: 100%;
}

.hero-head img {
  width: calc((178 / var(--curent-size)) * 100vw);
  height: calc((178 / var(--curent-size)) * 100vw);
}

.hero-head div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc((8 / var(--curent-size)) * 100vw);
}

.hero-head div p {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: calc((20 / var(--curent-size)) * 100vw);
  color: #19120b;
}

.hero-head div span {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: calc((15 / var(--curent-size)) * 100vw);
  line-height: 150%;
  color: #5e5b59;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: calc((10 / var(--curent-size)) * 100vw);
  margin-top: calc((20 / var(--curent-size)) * 100vw);
}

.hero-center h3 {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: calc((38 / var(--curent-size)) * 100vw);
  line-height: 100%;
  letter-spacing: -0.03em;
  text-align: center;
  color: #352920;
}

.hero-center h3 span {
  color: #d46859;
}

.hero-center p {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: calc((22 / var(--curent-size)) * 100vw);
  line-height: 130%;
  text-align: center;
  color: #5e5b59;
}

.hero-center > h6 {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: calc((18 / var(--curent-size)) * 100vw);
  line-height: 130%;
  text-align: center;

  color: #5e5b59;
}

.hero-center > h6 span {
  font-weight: 300;
  color: #d46859;
}

.hero-data > img {
  margin: calc((20 / var(--curent-size)) * 100vw) auto;
  width: calc((280 / var(--curent-size)) * 100vw);
  height: auto;
}

.hero-data > button {
  width: 100%;
  padding: calc((17 / var(--curent-size)) * 100vw) 0;
  border-radius: calc((5 / var(--curent-size)) * 100vw);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eb5744;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: calc((24 / var(--curent-size)) * 100vw);
  line-height: 130%;
  color: #fbf7f3;
  border: none;
}

.hero-data > a {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: calc((12 / var(--curent-size)) * 100vw);
  line-height: 130%;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #5e5b59;
  margin-top: calc((10 / var(--curent-size)) * 100vw);
  padding-top: calc((20 / var(--curent-size)) * 100vw);
  width: 100%;
  text-align: center;
  position: relative;
}

.hero-data > a:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc((1 / var(--curent-size)) * 100vw);
  background: linear-gradient(180deg, #ce6844 0%, #c25e39 50%, #b4512d 100%);
  opacity: 0.5;
}

/* =========================
   QUIZ MODAL
   ========================= */

body.quiz-open {
  overflow: hidden;
}

.hero-start {
  cursor: pointer;
}

.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.quiz-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quiz-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(53, 41, 32, 0.42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.quiz-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  height: min(760px, calc(100dvh - 36px));
  overflow: hidden;
  border: 1px solid rgba(206, 104, 68, 0.18);
  border-radius: 22px;
  background: #fdf7f0;
  box-shadow: 0 28px 80px rgba(74, 48, 32, 0.2);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.28s ease;
}

.quiz-modal.is-open .quiz-modal__dialog {
  transform: translateY(0) scale(1);
}

.quiz-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(212, 104, 89, 0.09);
  cursor: pointer;
}

.quiz-modal__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: #5e5b59;
}

.quiz-modal__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.quiz-modal__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.quiz-shell,
.quiz-step {
  width: 100%;
  height: 100%;
}

.quiz-step {
  display: none;
  flex-direction: column;
  padding: 30px 30px 24px;
  animation: quiz-step-in 0.24s ease both;
}

.quiz-step.is-active {
  display: flex;
}

@keyframes quiz-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-progress {
  flex: 0 0 auto;
  padding-right: 42px;
}

.quiz-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-family: var(--font-family);
  font-size: 12px;
  line-height: 130%;
  font-weight: 500;
  color: #7d7772;
}

.quiz-progress__track {
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(212, 104, 89, 0.14);
}

.quiz-progress__fill {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ce6844 0%, #eb5744 100%);
}

.quiz-question {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0 14px;
}

.quiz-question h2,
.quiz-result__item h2 {
  max-width: 440px;
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 36px;
  line-height: 98%;
  letter-spacing: -0.03em;
  color: #352920;
}

.quiz-question__note {
  margin-top: 10px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 145%;
  color: #7d7772;
}

.quiz-answers {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.quiz-answer {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(94, 91, 89, 0.17);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.48);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 13px;
  line-height: 138%;
  text-align: left;
  color: #5e5b59;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.quiz-answer:hover {
  border-color: rgba(212, 104, 89, 0.55);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.quiz-answer.is-selected {
  border-color: #d46859;
  background: rgba(212, 104, 89, 0.08);
  color: #352920;
}

.quiz-answer__dot {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1.5px solid rgba(94, 91, 89, 0.45);
  border-radius: 50%;
  position: relative;
}

.quiz-answer.is-selected .quiz-answer__dot {
  border-color: #d46859;
}

.quiz-answer.is-selected .quiz-answer__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #eb5744;
}

.quiz-back {
  flex: 0 0 auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 0;
  background: transparent;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 12px;
  color: #7d7772;
  cursor: pointer;
}

.quiz-back:hover {
  color: #d46859;
}

.quiz-result {
  justify-content: center;
}

.quiz-result__label {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(212, 104, 89, 0.09);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 12px;
  line-height: 130%;
  color: #d46859;
}

.quiz-result__item {
  display: none;
  margin-top: 18px;
}

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

.quiz-result__item p {
  margin-top: 16px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #5e5b59;
}

.quiz-result__button {
  width: 100%;
  margin-top: 30px;
  padding: 16px 20px;
  border: 0;
  border-radius: 7px;
  background: #eb5744;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  line-height: 130%;
  color: #fbf7f3;
  cursor: pointer;
}

.quiz-result__after {
  margin-top: 9px;
  font-family: var(--font-family);
  font-size: 11px;
  line-height: 140%;
  text-align: center;
  color: #8c8580;
}

.quiz-back--result {
  margin-top: 14px;
}

@media (max-width: 560px) {
  .quiz-modal {
    padding: 10px;
  }

  .quiz-modal__dialog {
    width: 100%;
    height: min(720px, calc(100dvh - 20px));
    border-radius: 16px;
  }

  .quiz-step {
    padding: 24px 20px 18px;
  }

  .quiz-modal__close {
    top: 15px;
    right: 15px;
  }

  .quiz-progress {
    padding-right: 38px;
  }

  .quiz-question h2,
  .quiz-result__item h2 {
    font-size: 31px;
  }

  .quiz-answer {
    padding: 12px;
    font-size: 12.5px;
  }
}

@media (max-height: 690px) {
  .quiz-step {
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .quiz-question {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .quiz-question h2,
  .quiz-result__item h2 {
    font-size: 28px;
  }

  .quiz-answers {
    gap: 7px;
    margin-top: 14px;
  }

  .quiz-answer {
    padding: 9px 11px;
    font-size: 11.5px;
    line-height: 132%;
  }

  .quiz-question__note {
    margin-top: 7px;
    font-size: 11px;
  }
}

/* =========================
   GETCOURSE FORM · FINAL QUIZ STEP
   ========================= */
.quiz-form-step {
  overflow-y: auto;
  justify-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 104, 89, 0.35) transparent;
}

.quiz-form__intro {
  padding: 22px 42px 0 0;
}

.quiz-form__intro h2 {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 36px;
  line-height: 98%;
  letter-spacing: -0.03em;
  color: #352920;
}

.quiz-form__intro p {
  margin-top: 12px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
  color: #7d7772;
}

#ltForm9061217.quiz-form,
#ltForm9061217 {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 22px;
  font-family: var(--font-family);
}

#ltForm9061217 > input[type="hidden"] {
  display: none;
}

.quiz-form__fields {
  display: grid;
  gap: 10px;
}

.quiz-form__field {
  display: block;
}

.quiz-form__input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(94, 91, 89, 0.18);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.58);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  color: #352920;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.quiz-form__input::placeholder {
  color: #928b86;
}

.quiz-form__input:focus {
  border-color: rgba(212, 104, 89, 0.8);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(212, 104, 89, 0.08);
}

.quiz-form__phone-note {
  margin-top: -3px;
  font-family: var(--font-family);
  font-size: 11px;
  line-height: 140%;
  color: #8c8580;
}

.quiz-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  cursor: pointer;
}

.quiz-form__consent input {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: #eb5744;
}

.quiz-form__consent span {
  font-family: var(--font-family);
  font-size: 11px;
  line-height: 145%;
  color: #7d7772;
}

.quiz-form__consent a {
  color: #d46859;
  text-decoration: underline;
}

.quiz-form__submit {
  width: 100%;
  margin-top: 18px;
  padding: 16px 20px;
  border: 0;
  border-radius: 7px;
  background: #eb5744;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  line-height: 130%;
  color: #fbf7f3;
  cursor: pointer;
}

.quiz-form__after {
  margin-top: 9px;
  font-family: var(--font-family);
  font-size: 11px;
  line-height: 140%;
  text-align: center;
  color: #8c8580;
}

.quiz-back--form {
  margin-top: 16px;
  margin-bottom: 4px;
}

@media (max-width: 560px) {
  .quiz-form__intro {
    padding-top: 16px;
  }

  .quiz-form__intro h2 {
    font-size: 31px;
  }

  #ltForm9061217.quiz-form,
  #ltForm9061217 {
    margin-top: 18px;
  }
}

@media (max-height: 690px) {
  .quiz-form__intro {
    padding-top: 8px;
  }

  .quiz-form__intro h2 {
    font-size: 28px;
  }

  .quiz-form__intro p {
    margin-top: 8px;
    font-size: 11.5px;
  }

  #ltForm9061217.quiz-form,
  #ltForm9061217 {
    margin-top: 14px;
  }

  .quiz-form__input {
    min-height: 44px;
    font-size: 13px;
  }

  .quiz-form__submit {
    margin-top: 14px;
    padding: 13px 18px;
  }
}
