:root {
  --orange: #f97316;
  --orange-dark: #c2410c;
  --orange-soft: #fff7ed;
  --ink: #171717;
  --muted: #6b7280;
  --line: #fed7aa;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body {
  background: #fff;
}

.shell {
  width: min(100%, 580px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px 42px;
}

.quiz-card {
  width: 100%;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.step {
  animation: enter .22s ease-out;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.progress {
  width: 82%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffedd5;
  margin: 0 auto 70px;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #fb923c);
  transition: width .25s ease;
}

.block {
  margin: 0 0 18px;
}

.content h1,
.content h2,
.content h3,
.alert h1,
.alert h2,
.alert h3 {
  margin: 0 0 12px;
  line-height: 1.12;
  letter-spacing: 0;
}

.content h1 {
  font-size: 34px;
}

.content h2,
.alert h2 {
  font-size: 30px;
}

.content h3 {
  font-size: 22px;
}

.content p,
.alert p {
  margin: 0 0 10px;
  color: #27272a;
  font-size: 16px;
  line-height: 1.45;
}

.ql-align-center {
  text-align: center;
}

.ql-size-small {
  font-size: 12px;
}

.media-wrap {
  width: min(100%, calc(5.6px * var(--media-width, 84)));
  margin-left: auto;
  margin-right: auto;
}

.media {
  display: block;
  width: 100%;
  max-height: var(--media-max-height, 520px);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
}

.alert {
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  background: #fed7aa;
  box-shadow: none;
}

.options {
  display: grid;
  gap: 12px;
  width: 100%;
}

.options.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(194, 65, 12, .08);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.options.vertical.with-images {
  gap: 14px;
}

.options.vertical.with-images .option {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(132px, auto) 38px;
  align-items: end;
  justify-items: center;
  gap: 8px;
  padding: 0 0 12px;
  overflow: hidden;
  text-align: center;
}

.options.vertical.with-images .option img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  flex: none;
  border-radius: 8px 8px 0 0;
}

.options.vertical.with-images .option span:not(.emoji) {
  font-size: 18px;
  line-height: 1.1;
}

.option:hover,
.option:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: var(--orange);
  background: var(--orange-soft);
}

.option .emoji {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #ffedd5;
  font-size: 22px;
}

.option img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 72px;
}

.option p {
  margin: 0;
}

.btn {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fb923c, var(--orange));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(249, 115, 22, .28);
}

.btn:hover {
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
}

.loader,
.loading-title {
  text-align: center;
  font-weight: 800;
}

.loading-track {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffedd5;
  border: 1px solid var(--line);
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: var(--orange);
  transition: width .35s linear;
}

.result-chart {
  width: min(100%, 460px);
  margin-left: auto;
  margin-right: auto;
}

.result-chart svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.chart-grid path {
  fill: none;
  stroke: #d4d4d8;
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.chart-reveal {
  transform-origin: bottom;
  animation: chartRise .95s cubic-bezier(.22, .9, .32, 1) both;
}

.chart-area {
  fill: url(#chartFill);
}

.chart-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
}

.chart-points circle {
  fill: #fff;
  stroke: #a3a3a3;
  stroke-width: 4;
}

.chart-points .featured {
  stroke: var(--orange-dark);
}

.chart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  font: 800 16px/1 Inter, Arial, Helvetica, sans-serif;
  color: #111827;
  background: #fff;
  border: 1px solid #e4e4e7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
}

.chart-pill.goal {
  color: #fff;
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.chart-label {
  fill: #52525b;
  font: 14px Inter, Arial, Helvetica, sans-serif;
}

@keyframes chartRise {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.chart-track,
.metric-track {
  height: 12px;
  border-radius: 999px;
  background: #ffedd5;
  overflow: hidden;
}

.chart-track span,
.metric-track span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: inherit;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  row-gap: 7px;
  width: min(100%, 448px);
  margin-left: auto;
  margin-right: auto;
}

.metric {
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.metric strong {
  display: block;
  min-height: 18px;
  margin: 0 0 2px;
  color: #030712;
  font-size: 14px;
  line-height: 1.1;
}

.metric-label {
  display: block;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.25;
}

.metric-track {
  position: relative;
  height: 8px;
  margin-top: 4px;
  overflow: visible;
  background: repeating-linear-gradient(
    90deg,
    #d7d7d7 0 39px,
    transparent 39px 45px
  );
}

.metric-track span {
  width: var(--metric-value);
  background: repeating-linear-gradient(
    90deg,
    var(--metric-color) 0 39px,
    transparent 39px 45px
  );
}

.metric-track i {
  position: absolute;
  left: var(--metric-value);
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #d1d5db;
  transform: translate(-50%, -50%);
}

.metric.red {
  --metric-color: #ef4444;
}

.metric.green {
  --metric-color: #22c55e;
}

.metric.yellow {
  --metric-color: #eab308;
}

.quotes {
  display: grid;
  gap: 8px;
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
}

.quote {
  padding: 10px 16px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.quote strong {
  display: block;
  margin: 4px 0 10px;
  color: #030712;
  font-size: 16px;
  line-height: 1.15;
}

.quote p {
  margin: 0;
  color: #5f6573;
  font-size: 16px;
  line-height: 1.42;
}

.stars {
  color: #fbbc04;
  letter-spacing: 0;
  font-size: 15px;
  line-height: 1;
}

.price {
  text-align: center;
  padding: 22px 18px 24px;
  border-radius: 8px;
  border: 2px solid var(--orange);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.16);
}

.price .before {
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  margin-top: 8px;
  text-decoration: none;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--orange-dark);
  text-decoration-thickness: 3px;
}

.price .value {
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  color: var(--orange-dark);
  margin: 8px 0 6px;
}

.price .value + div {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

strong[style],
span[style],
em[style] {
  color: inherit;
}

.content [style*="22, 163, 74"],
.alert [style*="22, 163, 74"],
.content [style*="220, 38, 38"],
.alert [style*="220, 38, 38"],
.content [style*="255, 0, 0"],
.alert [style*="255, 0, 0"] {
  color: var(--orange-dark) !important;
  background-color: transparent !important;
}

@media (max-width: 430px) {
  .shell {
    padding: 12px 12px 30px;
  }

  .content h1 {
    font-size: 26px;
  }

  .content h2,
  .alert h2 {
    font-size: 22px;
  }

  .options.cols-2 {
    grid-template-columns: 1fr 1fr;
  }

  .option {
    min-height: 58px;
    padding: 10px;
  }
}
