@font-face {
  font-family: "Nordeco";
  src: url("/assets/fonts/nordeco-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nordeco";
  src: url("/assets/fonts/nordeco-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nordeco";
  src: url("/assets/fonts/nordeco-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nordeco";
  src: url("/assets/fonts/nordeco-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --text: #101010;
  --muted: #7a7a7a;
  --line: #d9d9d9;
  --track: #eeeeec;
  --accent: #ffb300;
  --error: #a51212;
  --shadow: 0 -18px 35px rgba(0, 0, 0, 0.08);
  --content-x: clamp(28px, 6vw, 112px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: "Nordeco", Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

.quiz-shell {
  min-height: 100vh;
  background: var(--background);
}

.intro-view {
  min-height: 100vh;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: clamp(70px, 10vh, 86px) 24px 52px;
  text-align: center;
}

.intro-title {
  max-width: 900px;
  margin: 0 0 28px;
  font-size: clamp(38px, 4.1vw, 64px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 650px;
  margin: 0 0 54px;
  color: #252525;
  font-size: 24px;
  line-height: 1.32;
  font-weight: 400;
}

.intro-list {
  display: grid;
  gap: 34px;
  margin: 0 0 62px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.intro-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 17px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
}

.check-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--text);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.button {
  border: 0;
  min-height: 64px;
  border-radius: 999px;
  padding: 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text);
  background: var(--accent);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button-primary {
  min-width: min(440px, calc(100vw - 48px));
}

.button-dark {
  background: var(--text);
  color: #ffffff;
}

.button-outline {
  background: #ffffff;
  color: var(--text);
  border: 1.5px solid var(--text);
}

.step-view {
  min-height: 100vh;
  padding-bottom: 138px;
}

.progress-track {
  width: calc(100% - 80px);
  height: 8px;
  margin: 0 auto;
  background: var(--track);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--text);
  transform-origin: left center;
  transition: width 220ms ease;
}

.progress-meta {
  width: calc(100% - 80px);
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #2e2e2e;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 300;
}

.progress-meta span {
  white-space: nowrap;
}

.step-content {
  width: min(820px, calc(100% - var(--content-x) * 2));
  margin-left: var(--content-x);
  padding-top: clamp(58px, 8vh, 96px);
}

.step-content.centered {
  margin-left: auto;
  margin-right: auto;
}

.question-title {
  margin: 0 0 28px;
  font-size: 32px;
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: 0;
}

.options {
  display: grid;
  gap: 16px;
}

.option {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  color: #1d1d1d;
  font-size: 20px;
  line-height: 1.24;
  font-weight: 400;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #777777;
  margin-top: 1px;
  display: inline-grid;
  place-items: center;
  transition: border-color 160ms ease, background 160ms ease;
}

.radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0;
}

.option input:checked + .radio {
  border-color: var(--text);
  background: var(--text);
}

.option input:checked + .radio::after {
  opacity: 1;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 104px;
  padding: 18px 36px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.bottom-hint {
  justify-self: center;
  color: #a0a0a0;
  font-size: 14px;
  font-weight: 300;
}

.nav-button {
  width: 100%;
  min-height: 72px;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.field {
  width: 100%;
  min-height: 64px;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  padding: 0 26px;
  background: #ffffff;
  color: var(--text);
  font-size: 18px;
  outline: 0;
}

.field::placeholder {
  color: #9b9b9b;
}

.field:focus {
  border-color: var(--text);
}

.legal {
  display: grid;
  gap: 10px;
  margin: 4px 0 8px;
  color: #4c4c4c;
  font-size: 13px;
  line-height: 1.35;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--text);
}

.legal a {
  color: var(--text);
  text-underline-offset: 2px;
}

.form-error {
  min-height: 22px;
  color: var(--error);
  font-size: 15px;
  line-height: 1.35;
}

.result-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 600;
}

.result-price {
  margin: 0 0 26px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 300;
}

.result-copy {
  max-width: 720px;
  margin: 0 0 30px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 300;
}

.match-list {
  display: grid;
  gap: 12px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 300;
}

.match-list strong {
  font-weight: 600;
}

.result-aside {
  max-width: 720px;
  margin-top: 34px;
  color: #292929;
}

.result-aside h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

.result-aside p {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 300;
}

.result-aside a {
  color: var(--text);
  font-weight: 400;
  text-underline-offset: 3px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.result-actions .button {
  width: min(100%, 520px);
}

.result-actions .button-primary {
  min-width: 0;
}

.button-link {
  text-decoration: none;
}

@media (max-width: 760px) {
  :root {
    --content-x: 24px;
  }

  .intro-view {
    align-content: start;
    padding-top: 62px;
  }

  .intro-title {
    margin-bottom: 24px;
    font-size: 38px;
  }

  .intro-copy {
    margin-bottom: 42px;
    font-size: 19px;
  }

  .intro-list {
    gap: 24px;
    margin-bottom: 44px;
  }

  .intro-list li {
    grid-template-columns: 26px 1fr;
    gap: 14px;
    font-size: 19px;
  }

  .check-dot {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .progress-track,
  .progress-meta {
    width: calc(100% - 32px);
  }

  .progress-meta {
    margin-top: 12px;
    font-size: 14px;
  }

  .step-view {
    padding-bottom: 132px;
  }

  .step-content {
    width: calc(100% - 48px);
    padding-top: 52px;
  }

  .question-title {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .options {
    gap: 15px;
  }

  .option {
    grid-template-columns: 24px 1fr;
    gap: 12px;
    font-size: 17px;
  }

  .radio {
    width: 23px;
    height: 23px;
  }

  .bottom-nav {
    min-height: 96px;
    padding: 14px 16px;
    grid-template-columns: 1fr 1fr;
  }

  .bottom-hint {
    display: none;
  }

  .nav-button {
    min-height: 60px;
    padding: 0 24px;
  }

  .field {
    min-height: 58px;
    font-size: 16px;
  }

  .result-title {
    font-size: 34px;
  }

  .result-price {
    font-size: 21px;
  }

  .result-copy,
  .match-list {
    font-size: 17px;
  }

  .result-actions .button {
    width: 100%;
  }
}
