* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #111;
  background: #fff;
}
b {
  font-weight: 600;
  color: #ff7700;
}

.header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ff7700;
}

.header__container {
  max-width: 940px;
  height: 54px;
  margin: 0 auto;
  padding: 0 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  max-width: 120px;
}
.header__logo img {
  width: 100%;
}

.header__advertising {
  padding: 8px 16px;
  border-radius: 8px;
  background: #ebf9ec;

  font-size: 12px;
  font-weight: 400;
  color: #000;
}

.main {
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 16px 0;
}

.article {
  max-width: 940px;
  margin: 0 auto;
}

.article__title {
  max-width: 620px;
  margin: 0 auto 24px;

  font-size: 40px;
  font-weight: 700;
  text-align: left;
}

.article__subtitle {
  max-width: 620px;
  margin: 24px auto 16px;

  font-size: 24px;
  font-weight: 700;
}

.article__text {
  max-width: 620px;
  margin: 0 auto 16px;

  font-size: 16px;
  font-weight: 400;
}

.article__image {
  display: block;
  width: 100%;
  max-width: 940px;
  height: auto;
  margin: 24px auto;
}

.footer {
  margin-top: 0;
  background: #000;
  color: #fff;
}

.footer__container {
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 16px;
}

.footer__title {
  margin: 0 0 8px;

  font-size: 14px;
  font-weight: 700;
}

.footer__text {
  margin: 0;
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;

  margin-top: 24px;
}

.footer__links a {
  color: #ff7700;
  font-size: 14px;
  font-style: italic;
  text-decoration: none;
}

.footer__copyright {
  margin: 24px 0 0;

  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: #9e9999;
}

@media (max-width: 767px) {
  .main {
    padding: 32px 12px 24px;
  }

  .article__title {
    font-size: 32px;
  }
}

.button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-button {
  display: inline-block;
  padding: 16px;
  background: #ff7700;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
 :root {
  --orange: #ff7a00;
  --orange-dark: #e56d00;
  --peach: #fff3e6;
  --track: #ffe8cc;
  --text: #111;
  --muted: #8a8a8a;
  --border: #e6e6e6;
  --error: #d93025;
  --green: #1a8f1a;
  --radius: 8px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}

.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.quiz-wrap{
    background-color: #FF7700;
    max-width: 940px;
    margin: 24px auto;
    padding: 40px 16px;
}
h1.page-title {
  margin: 0 0 20px;
  text-align: center;
  color: #fff;
font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px 22px;

}

/* top bar */
.back {
  display: none;
  align-items: center;
  gap: 6px;
  margin: -4px 0 8px;
  padding: 8px 8px 8px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font:
    500 13px/1 Inter,
    sans-serif;
  cursor: pointer;
}
.back.visible {
  display: inline-flex;
}
.back:hover {
  color: var(--text);
}
.progress {
  height: 6px;
  border-radius: 6px;
  background: var(--track);
  overflow: hidden;
  margin-bottom: 26px;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: 6px;
  transition: width 0.35s ease;
}

/* steps */
.step {
  display: none;
}
.step.active {
  display: block;
}
.step h2 {
  margin: 0 0 8px;
  text-align: center;
  font:
    800 22px/1.25 Montserrat,
    Inter,
    sans-serif;
}
.step .sub {
  margin: 0 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.step h2:last-child,
.step h2 + .choices {
  margin-top: 22px;
}
.step h2 + .field,
.step h2 + .field-group {
  margin-top: 20px;
}

/* choice buttons */
.choices {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 12px;
  max-width: 380px;
  margin: 0 auto 22px;
}
.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 68px;
  padding: 12px 6px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--peach);
  color: var(--text);
  font:
    600 14px/1.2 Inter,
    sans-serif;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.choice svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
}
.choice:hover {
  border-color: var(--orange);
}
.choice:active {
  transform: scale(0.97);
}
.choice.selected {
  border-color: var(--orange);
  background: #ffe6cc;
}

/* fields */
.field {
  margin-bottom: 12px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font:
    400 16px/1 Inter,
    sans-serif; /* 16px = no zoom on iOS */
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder {
  color: #b5b5b5;
}
.field input:focus,
.cc-btn:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
}
.field.invalid input,
.field.invalid .cc-btn {
  border-color: var(--error);
}
.err {
  min-height: 0;
  margin-top: 6px;
  color: var(--error);
  font-size: 12.5px;
  line-height: 1.35;
}
.err:empty {
  display: none;
}

.btn {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 6px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font:
    600 15px/1 Inter,
    sans-serif;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: var(--orange-dark);
}
.btn:active {
  transform: scale(0.99);
}
.btn:disabled {
  opacity: 0.65;
  cursor: default;
}
.btn:focus-visible,
.choice:focus-visible,
.back:focus-visible {
  outline: 3px solid rgba(255, 122, 0, 0.45);
  outline-offset: 2px;
}

/* phone */
.phone {
  display: flex;
  gap: 8px;
}
.cc {
  position: relative;
  flex: 0 0 auto;
}
.cc-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font:
    500 15px/1 Inter,
    sans-serif;
  cursor: pointer;
  outline: none;
}
.cc-btn img,
.cc-list img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  background: #eee;
}
.cc-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
}
.cc-list {
  position: absolute;
  z-index: 10;
  top: 54px;
  left: 0;
  width: min(260px, calc(100vw - 64px));
  max-height: 230px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.cc-list[hidden] {
  display: none;
}
.cc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.cc-list li span:nth-of-type(1) {
  flex: 1;
}
.cc-list li span:nth-of-type(2) {
  color: var(--muted);
}
.cc-list li:hover,
.cc-list li[aria-selected="true"] {
  background: var(--peach);
}
.phone input {
  flex: 1;
  min-width: 0;
}

/* consent */
.consent {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  color: #9a9a9a;
  font-size: 11.5px;
  line-height: 1.45;
}
.consent .lock {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border-radius: 50%;
  background: #d6f3d6;
  display: grid;
  place-items: center;
}
.consent .lock svg {
  width: 8px;
  height: 8px;
  stroke: var(--green);
}
.consent.hidden {
  display: none;
}

/* result screens */
.result {
  text-align: center;
  padding: 14px 0 10px;
}
.result .big-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border: 5px solid var(--green);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.result .big-check svg {
  width: 38px;
  height: 38px;
  stroke: var(--green);
  stroke-width: 3.2;
}
.result h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.result p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-error {
  margin-top: 10px;
  color: var(--error);
  font-size: 13px;
  text-align: center;
}
.form-error:empty {
  display: none;
}

.step.active {
  animation: in 0.25s ease;
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .step.active {
    animation: none;
  }
  .progress > i,
  .choice,
  .btn {
    transition: none;
  }
}

/* mobile */
@media (max-width: 480px) {
  body {
    padding: 16px 12px calc(20px + env(safe-area-inset-bottom));
    justify-content: flex-start;
  }
  h1.page-title {
    font-size: 16px;
    margin: 8px 0 16px;
  }
  .card {
    padding: 16px 16px 18px;
  }
  .progress {
    margin-bottom: 20px;
  }
  .step h2 {
    font-size: 19px;
  }
  .choices {
    gap: 8px;
  }
  .choice {
    font-size: 13px;
    min-height: 76px;
  }
  .btn {
    height: 52px;
  }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .cc-btn {
    height: 50px;
  }
}
