:root {
  --font-family: 'Inter', sans-serif;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-grey: #79797a;
  --color-grey-light: #b7b6b6;
  --color-grey-transparent: #0000001a;
  --color-beige: #f6f6f6;
  --color-box-light-green: #e6f4e6;
  --color-green-brand: #4aa438;
  --color-green-light: #e6f4e6;
  --color-error: #df2632;
  --landing-benefits-gap: 32px;
  --bg-gradient-black: linear-gradient(
    263.83deg,
    #000000 36.56%,
    rgba(0, 0, 0, 0) 231.98%
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-black);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.color-grey {
  color: var(--color-grey);
}

.color-green {
  color: var(--color-green-brand);
}

.title {
  margin: 0;
  padding: 0;
}

.title--l {
  font-size: 39px;
  line-height: 41px;
  font-weight: 700;
}

.title--m {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
}

.title--s {
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
}

.title--xs {
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
}

p.text {
  margin: 0;
  padding: 0;
}

.text--l {
  font-size: 24px;
  line-height: 32px;
}

.text--s {
  font-size: 18px;
  line-height: 22px;
}

.text--xs {
  font-size: 16px;
  line-height: 24px;
}

.text--xxs {
  font-size: 14px;
  line-height: 20px;
}

.text--medium {
  font-weight: 500;
}

.text--semibold {
  font-weight: 600;
}

.btn {
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 16px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  transition: 0.3s;
}

.btn--small {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.btn--black {
  background: var(--bg-gradient-black);
  color: var(--color-white);
}

.btn--black:hover:not(:disabled) {
  opacity: 0.8;
  color: var(--color-white);
}

.btn--black:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--white {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-black);
}

.btn--white:hover {
  opacity: 0.8;
}

.btn--full {
  width: 100%;
  margin-top: 24px;
}

.quiz {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.quiz:has([data-step='landing'].step--active) {
  height: 100vh;
  overflow: hidden;
}

.label {
  width: fit-content;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.label--grey {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #efecec;
  color: var(--color-grey);
  font-size: 18px;
  line-height: 22px;
}

.label__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4aa438;
  flex-shrink: 0;
  animation: label-dot-pulse 2s ease-in-out infinite;
}

@keyframes label-dot-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .label__dot {
    animation: none;
  }
}

.quiz__main {
  flex: 1;
  padding: 32px 16px 64px;
  min-height: 0;
}

.quiz__main:has([data-step='landing'].step--active) {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.quiz__stage:has([data-step='landing'].step--active) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.step[data-step='landing'].step--active {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.quiz__stage {
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz__stage--animating {
  overflow: hidden;
}

.step {
  display: none;
}

.step--active {
  display: block;
  opacity: 1;
  transform: none;
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.step--enter {
  opacity: 0;
  transform: translateY(10px);
}

.step--leave {
  opacity: 0;
  transform: translateY(-10px);
}

@media (prefers-reduced-motion: reduce) {
  .quiz__stage,
  .step--active {
    transition: none;
  }
}

.step__inner {
  max-width: 720px;
  margin: 0 auto;
}

.panel {
  padding: 40px;
  border-radius: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-grey-transparent);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.panel--beige {
  padding: 120px 48px;
  background: var(--color-beige);
  border: 0;
  box-shadow: none;
}

.step__inner--landing {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 151px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 65px;
}

.landing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.landing-layout__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.landing-layout__hero {
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.landing-layout__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--landing-benefits-gap);
  max-width: none;
  margin: 0;
  padding: 0;
}

.landing-layout__benefits .benefits__item {
  padding: 0;
}

.step__inner--form {
  max-width: 960px;
}

.step__inner--thankyou {
  text-align: center;
}

.step__inner--thankyou .title--l {
  margin-bottom: 16px;
}

.step__inner--thankyou .text--s {
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.step__inner > .title--xs,
.quiz__eyebrow {
  text-align: center;
  margin-bottom: 20px;
}

.step[data-step='questions'] .panel {
  padding: 32px;
}

.step[data-step='questions'] .progress {
  margin-bottom: 20px;
}

.step[data-step='questions'] .question {
  margin-bottom: 16px;
}

.quiz-content {
  min-height: 0;
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-content--leave {
  opacity: 0;
  transform: translateY(-6px);
}

.quiz-content--enter {
  opacity: 0;
  transform: translateY(6px);
}

@media (prefers-reduced-motion: reduce) {
  .quiz-content {
    transition: none;
  }
}

.hero__image {
  display: block;
  width: 100%;
  max-height: min(52vh, 420px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.benefits__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.benefits__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 0;
  border-radius: 50%;
  background-color: var(--color-green-light);
}

.benefits__icon-image {
  display: block;
  width: 20px;
  height: 20px;
}

.progress {
  margin-bottom: 32px;
}

.progress__label {
  margin-bottom: 8px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress__bar {
  height: 4px;
  background: var(--color-beige);
  border-radius: 2px;
  overflow: hidden;
}

.progress__fill {
  display: block;
  height: 100%;
  background: var(--color-green-brand);
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.question {
  margin-bottom: 24px;
  text-align: center;
}

.question .text {
  margin-top: 8px;
}

.option-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 2px solid var(--color-grey-transparent);
  border-radius: 16px;
  background: var(--color-white);
  overflow: hidden;
  text-align: left;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}

.option-card:hover {
  border-color: var(--color-green-brand);
  box-shadow: 0 4px 16px rgba(74, 164, 56, 0.12);
  transform: translateY(-2px);
}

.option-card.is-selected {
  border-color: var(--color-green-brand);
  box-shadow: 0 0 0 1px var(--color-green-brand);
}

.option-cards--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.option-card__image {
  display: block;
  width: 100%;
  height: 102px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  padding: 8px 12px 0;
}

.option-card__label {
  padding: 10px 12px 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-black);
  text-align: center;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-row {
  width: 100%;
  padding: 20px 24px;
  border: 2px solid var(--color-grey-transparent);
  border-radius: 16px;
  background: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: var(--color-black);
  transition:
    border-color 0.3s,
    background 0.3s;
}

.option-row:hover {
  border-color: var(--color-green-brand);
  background: var(--color-box-light-green);
}

.option-row.is-selected {
  border-color: var(--color-green-brand);
  background: var(--color-box-light-green);
}

.option-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--color-grey-transparent);
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition:
    border-color 0.3s,
    background 0.3s;
}

.option-check:has(input:checked) {
  border-color: var(--color-green-brand);
  background: var(--color-box-light-green);
}

.option-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-green-brand);
  flex-shrink: 0;
}

.other-field {
  margin-top: 24px;
}

.other-field[hidden] {
  display: none;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.send__intro {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.send__intro .title--m {
  margin-bottom: 16px;
}

.send__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.send__contact {
  display: block;
  font-size: 18px;
  line-height: 22px;
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.3s;
}

.send__contact:hover {
  color: var(--color-grey);
}

.send__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.send__field {
  position: relative;
}

.send__field--full {
  grid-column: 1 / -1;
}

.send__input {
  width: 100%;
  height: 48px;
  padding: 21px 14px 5px;
  border: 1px solid var(--color-grey-light);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 120%;
  color: var(--color-black);
  background: var(--color-white);
  transition: 0.3s;
}

.send__input.form__error {
  border-color: var(--color-error);
}

.send__label {
  position: absolute;
  left: 14px;
  right: 15px;
  top: 0;
  line-height: 46px;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  transition: 0.3s;
}

.send__input:focus + .send__label,
.send__input.filled + .send__label {
  font-size: 10px;
}

.send__span {
  display: inline-block;
  margin: 0 0 2px;
  font-weight: 100;
  font-size: 16px;
  line-height: 152%;
  color: var(--color-grey);
  transition: 0.3s;
}

.send__input:hover + .send__label .send__span,
.send__input:focus + .send__label .send__span,
.send__input.filled + .send__label .send__span {
  transform: translateY(-12px);
  font-size: 12px;
}

.send__input.form__error + .send__label .send__span {
  color: var(--color-error);
}

.send__input:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--color-white) inset !important;
  -webkit-text-fill-color: #000 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.field {
  margin-bottom: 16px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-grey);
}

.field__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-grey-light);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-black);
  background: var(--color-white);
  transition: border-color 0.3s;
}

.field__input:focus {
  outline: none;
  border-color: var(--color-green-brand);
}

.field__input.is-error {
  border-color: var(--color-error);
}

.form-error {
  margin-bottom: 16px;
  color: var(--color-error);
}

.form-error[hidden] {
  display: none;
}

/*
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  width: min(640px, calc(100% - 32px));
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-grey-transparent);
  border-radius: 16px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}
*/

@media screen and (max-width: 991px) {
  .quiz:has([data-step='landing'].step--active) {
    height: auto;
    overflow: visible;
  }

  .step[data-step='landing'].step--active {
    display: block;
  }

  .quiz__stage:has([data-step='landing'].step--active) {
    display: block;
  }

  .quiz__main:has([data-step='landing'].step--active) {
    padding: 0;
  }

  .step__inner--landing {
    padding-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
    gap: 24px;
    min-height: auto;
  }

  .quiz-content {
    min-height: 0;
  }

  .step[data-step='questions'] .panel {
    padding: 24px 20px;
  }

  .quiz__eyebrow {
    margin-bottom: 16px;
  }

  .step[data-step='questions'] .progress {
    margin-bottom: 16px;
  }

  .step[data-step='questions'] .question {
    margin-bottom: 12px;
  }

  .option-card__image {
    height: 76px;
    padding: 4px 8px 0;
  }

  .option-cards--cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .option-card__label {
    padding: 8px 10px 10px;
    font-size: 14px;
  }

  .option-cards {
    gap: 10px;
  }

  .option-row {
    padding: 14px 16px;
    font-size: 15px;
  }

  .landing-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-layout__intro {
    align-items: center;
    text-align: center;
  }

  .landing-layout__benefits {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__image {
    max-height: none;
  }

  .title--l {
    font-size: 35px;
    line-height: 43px;
  }

  .title--m {
    font-size: 24px;
    line-height: 30px;
  }

  .title--s {
    font-size: 22px;
    line-height: 28px;
  }

  .text--l {
    line-height: 30px;
  }

  .form-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .panel--beige {
    padding: 36px;
  }
}

@media screen and (max-width: 767px) {
  .title--l {
    font-size: 26px;
    line-height: 31px;
  }

  .quiz__main:has([data-step='questions'].step--active),
  .quiz__main:has([data-step='form'].step--active),
  .quiz__main:has([data-step='thankyou'].step--active) {
    padding: 24px 12px 32px;
  }

  .step[data-step='questions'] .panel {
    padding: 16px 14px;
  }

  .quiz__eyebrow {
    margin-bottom: 12px;
  }

  .step[data-step='questions'] .progress {
    margin-bottom: 12px;
  }

  .step[data-step='questions'] .question {
    margin-bottom: 10px;
  }

  .step[data-step='questions'] .quiz__eyebrow.title--m {
    font-size: 18px;
    line-height: 24px;
  }

  .step[data-step='questions'] .question .title--s {
    font-size: 20px;
    line-height: 26px;
  }

  .option-card__image {
    height: 60px;
  }

  .option-cards--cols-3 {
    grid-template-columns: 1fr;
  }

  .option-card__label {
    padding: 8px;
    font-size: 13px;
  }

  .option-cards {
    gap: 8px;
  }

  .option-row {
    padding: 12px 14px;
    font-size: 14px;
  }

  .option-cards,
  .option-checks {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .panel--beige {
    padding: 24px 20px;
  }

  .send__grid {
    grid-template-columns: 1fr;
  }

  /*
  .cookie-banner {
    left: 0;
    bottom: 0;
    width: 100%;
    transform: none;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }
  */
}

@media screen and (max-width: 575px) {
  .quiz__main:has([data-step='questions'].step--active),
  .quiz__main:has([data-step='form'].step--active),
  .quiz__main:has([data-step='thankyou'].step--active) {
    padding-top: 20px;
  }

  .quiz__main {
    padding-top: 24px;
  }

  .btn {
    width: 100%;
  }

  .landing-layout__intro .btn {
    width: auto;
    min-width: 240px;
  }

  .text--l {
    font-size: 20px;
    line-height: 26px;
  }
}
