﻿/* quadrat-auto.ru — чёрный / голубой, форма «Квадрат» */
:root {
  --black: #070708;
  --card: #0e0e11;
  --card-edge: rgba(255, 255, 255, 0.07);
  --accent: #5b9fd4;
  --accent-hot: #7eb8e0;
  --accent-deep: #3a7eb0;
  --accent-soft: #a8d4f0;
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(170, 176, 188, 0.95);
  --error: #f87171;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--black);
  overflow: hidden;
}

@media (max-width: 720px) {
  body {
    overflow-y: auto;
  }
}

.viewport {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.viewport__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.viewport__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.viewport__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.02);
}

.viewport__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(91, 159, 212, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.92));
}

.viewport__grid {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

.center-card {
  position: relative;
  z-index: 1;
  width: min(100%, 28.5rem);
  max-height: calc(100dvh - 1rem);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(91, 159, 212, 0.08), transparent 28%),
    var(--card);
  border-radius: 16px;
  border: 1px solid var(--card-edge);
  box-shadow:
    0 0 0 1px rgba(91, 159, 212, 0.08),
    0 28px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.center-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-hot), var(--accent-deep), transparent);
  pointer-events: none;
  opacity: 0.85;
}

.center-card__brand {
  display: none;
}

.panel__inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.55rem 1.25rem 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 159, 212, 0.45) transparent;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.view--quiz.is-active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 22.5rem;
  box-sizing: border-box;
}

.view--loading.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 22.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

.view--final.is-active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 22.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

.center-card.is-flow-locked {
  flex-shrink: 0;
}


/* —— Старт: композиция Квадрат —— */
.start-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-height: 100%;
}

.q-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
}

.q-brand__mark {
  width: 1.05rem;
  height: 1.05rem;
  background: linear-gradient(145deg, var(--accent-hot), var(--accent-deep));
  box-shadow: 0 0 18px rgba(91, 159, 212, 0.55);
}

.q-brand__text {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.q-hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.38rem, 3vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.q-hero__b {
  background: linear-gradient(100deg, #b5daf2 0%, #7eb8e0 42%, #3a7eb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.q-hero__lead {
  margin: 0.55rem 0 0;
  font-size: clamp(0.95rem, 2.3vw, 1.08rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(232, 236, 245, 0.78);
}

.q-offer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(91, 159, 212, 0.35);
  background:
    linear-gradient(135deg, rgba(91, 159, 212, 0.16), rgba(91, 159, 212, 0.04)),
    rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}


.q-offer__sq {
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #6baee0, #3a7eb0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 20px rgba(91, 159, 212, 0.35);
  flex-shrink: 0;
}

.q-offer__pct {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.q-offer__title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.q-offer__desc {
  display: none;
}

.q-cta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.btn-premium,
#btn-start.btn-premium {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 1.05rem 1.15rem;
  border-radius: 10px;
  font-family: var(--display);
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(165deg, #6baee0 0%, #5b9fd4 40%, #2f6a9a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 34px rgba(91, 159, 212, 0.38);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: transform 0.15s var(--ease), filter 0.15s ease;
}

.btn-premium:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-premium:active {
  transform: translateY(1px);
}

.btn-premium__chev {
  font-size: 1.05em;
  opacity: 0.9;
  transition: transform 0.2s var(--ease);
}

.btn-premium:hover .btn-premium__chev {
  transform: translateX(3px);
}

.q-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.q-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  padding: 0.65rem 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.q-metric__n {
  font-family: var(--display);
  font-size: clamp(0.82rem, 2.2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-soft);
  line-height: 1.15;
}

.q-metric__l {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.25;
}

.q-signals {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
}

.q-signals li {
  position: relative;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
  padding-left: 0.7rem;
}

.q-signals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--accent);
}

/* —— Квиз / финал (типографика как у донора) —— */
.quiz-top {
  margin-bottom: 0.55rem;
}

.step-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  width: 100%;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 0.48rem 0.95rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.step-pill__prefix {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.88em;
  color: var(--muted);
}

.step-pill__count {
  color: var(--accent-soft);
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.step-pill__sep {
  margin: 0 0.12em;
  opacity: 0.55;
}

.step-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
  overflow: hidden;
}

.step-track__fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-hot));
  transition: width 0.2s ease;
}

.quiz-stages {
  flex: 1 1 auto;
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
}

.quiz-stage {
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
}

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

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: clamp(0.92rem, 1.28vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.quiz-stage .field-label {
  font-family: var(--display);
  font-size: clamp(1.84rem, 2.56vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  overflow-wrap: break-word;
}

.field {
  width: 100%;
  padding: 0.92rem 1.05rem;
  font: inherit;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(91, 159, 212, 0.32);
  border-radius: 10px;
  outline: none;
}

.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(91, 159, 212, 0.25);
}

.field-error {
  min-height: 1rem;
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--error);
}

.quiz-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  flex-shrink: 0;
  min-height: 8.25rem;
}

/* место под «Не знаю VIN» всегда, чтобы высота не прыгала */
#btn-dont-know-vin[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px;
  font-weight: 700;
}

.btn--primary {
  width: 100%;
  padding: 1.05rem 1.1rem;
  color: #fff;
  background: linear-gradient(165deg, #6baee0 0%, #5b9fd4 45%, #2f6a9a 100%);
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
}

.btn--quiz-vin-skip,
.btn--quiz-back {
  background: transparent;
  color: var(--muted);
  padding: 0.55rem;
  font-size: clamp(0.84rem, 1.2vw, 0.95rem);
  font-weight: 600;
}

.btn--quiz-back {
  text-decoration: underline;
}

.view--loading.is-active {
  gap: 0.85rem;
  padding: 0.35rem 0;
}

.loading__icon {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto;
  flex-shrink: 0;
}

.loading__ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent-hot);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  box-sizing: border-box;
}

/* без квадрата внутри — только крутящийся круг */
.loading__core {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.25;
}

.loading__hint {
  margin: 0;
  text-align: center;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 600;
  color: var(--muted);
  max-width: 18rem;
}

.progress {
  width: 100%;
  max-width: 16rem;
  margin: 0.25rem auto 0;
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.45rem;
}

.progress__value {
  color: var(--accent-soft);
  font-size: 1.1em;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.progress__bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-hot));
  transition: width 0.08s linear;
}

.final__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}

.final__lead {
  margin: 0;
  text-align: center;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.block-label {
  margin: 0;
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.messenger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0;
  min-width: 0;
  flex-shrink: 0;
}

.msg-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.4rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.4));
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.msg-btn__icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  display: block;
  flex-shrink: 0;
}

.msg-btn__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}

.msg-btn__text {
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

.msg-btn:hover {
  border-color: rgba(91, 159, 212, 0.45);
  color: #fff;
}

.msg-btn.is-selected {
  border-color: rgba(91, 159, 212, 0.65);
  color: var(--accent-soft);
  background: linear-gradient(180deg, rgba(91, 159, 212, 0.14), rgba(0, 0, 0, 0.5));
  box-shadow: 0 0 0 1px rgba(91, 159, 212, 0.2);
}

.nickname-block.is-collapsed {
  display: none;
}

.view--final .field-label {
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
}

.view--final .field {
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
}

.view--final .field-error {
  min-height: 0.85rem;
  margin-top: 0.15rem;
  font-size: 0.72rem;
}

.view--final .btn--primary {
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  flex-shrink: 0;
}

.final__scroller {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.center-card:has(#view-quiz.is-active) .req-footer,
.center-card:has(#view-loading.is-active) .req-footer,
.center-card:has(#view-final.is-active) .req-footer {
  display: none;
}

.req-footer {
  padding: 0.5rem 0.9rem 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.55rem;
  line-height: 1.35;
  color: rgba(156, 163, 175, 0.75);
  text-align: center;
}

.req-footer strong {
  display: block;
  color: rgba(168, 212, 240, 0.9);
  font-size: 0.6rem;
  margin-bottom: 0.15rem;
}

@media (max-width: 720px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .viewport {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    align-items: flex-end;
    justify-content: stretch;
    padding: 0;
  }

  .viewport__bg img {
    object-position: right 28%;
  }

  .viewport__scrim {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.42) 40%, rgba(0, 0, 0, 0.78) 58%, rgba(0, 0, 0, 0.94) 100%),
      radial-gradient(ellipse 90% 50% at 50% 18%, rgba(91, 159, 212, 0.16), transparent 55%);
  }

  .center-card {
    width: 100%;
    max-height: 60dvh;
    height: auto;
    border-radius: 18px 18px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45);
  }

  /* на старте — без скролла, кнопка в кадре */
  .center-card:has(#view-start.is-active) {
    max-height: 60dvh;
  }

  .center-card:has(#view-quiz.is-active),
  .center-card:has(#view-loading.is-active) {
    max-height: 82dvh;
  }

  .center-card:has(#view-final.is-active) {
    max-height: 92dvh;
  }

  .panel__inner {
    padding: 0.85rem 0.95rem 0.7rem;
    overflow: hidden;
  }

  .center-card:has(#view-loading.is-active) .panel__inner,
  .center-card:has(#view-quiz.is-active) .panel__inner,
  .center-card:has(#view-final.is-active) .panel__inner {
    overflow: hidden;
  }

  .center-card:has(#view-final.is-active) .final__scroller {
    overflow: hidden;
    gap: 0.32rem;
  }

  .center-card:has(#view-final.is-active) .panel__inner {
    padding: 0.75rem 0.85rem 0.65rem;
  }

  .view--final .final__lead {
    display: none;
  }

  .view--final .msg-btn {
    min-height: 40px;
    padding: 0.3rem 0.35rem;
  }

  .view--final .field {
    padding: 0.62rem 0.7rem;
  }

  .view--final .btn--primary {
    padding: 0.78rem 0.9rem;
  }

  .view--loading .loading__icon {
    width: 3rem;
    height: 3rem;
  }

  .view--loading .loading__title {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
  }

  .view--loading .loading__hint {
    font-size: clamp(0.88rem, 3.6vw, 1rem);
  }

  .view--loading .progress__meta {
    font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  }

  .view--loading .progress__value {
    font-size: 1.15em;
  }

  .view--loading .progress {
    max-width: 100%;
  }

  .start-stack {
    gap: 0.55rem;
    min-height: 0;
    animation: none;
  }

  .q-brand {
    gap: 0.4rem;
  }

  .q-brand__mark {
    width: 0.85rem;
    height: 0.85rem;
  }

  .q-brand__text {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .q-hero__title {
    font-size: 1.12rem;
    gap: 0.15rem;
  }

  .q-hero__lead {
    margin-top: 0.3rem;
    font-size: 0.88rem;
  }

  .q-offer {
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
  }

  .q-offer__sq {
    width: 2.65rem;
    height: 2.65rem;
  }

  .q-offer__pct {
    font-size: 0.8rem;
  }

  .q-offer__title {
    font-size: 0.82rem;
  }

  .q-offer__desc {
    font-size: 0.7rem;
  }

  .btn-premium,
  #btn-start.btn-premium {
    padding: 0.9rem 1rem;
    font-size: 0.78rem;
    animation: none;
    flex-shrink: 0;
  }

  .q-metrics {
    gap: 0.3rem;
  }

  .q-metric {
    padding: 0.4rem 0.2rem;
  }

  .q-metric__n {
    font-size: 0.72rem;
  }

  .q-metric__l {
    font-size: 0.58rem;
  }

  .q-signals {
    gap: 0.2rem 0.55rem;
    padding-top: 0;
  }

  .q-signals li {
    font-size: 0.62rem;
    padding-left: 0.55rem;
  }

  .req-footer {
    display: none;
  }

  .messenger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .msg-btn {
    min-height: 64px;
    padding: 0.4rem;
  }

  .msg-btn__icon {
    width: 24px;
    height: 24px;
  }

  .msg-btn__text {
    font-size: clamp(0.8rem, 3.4vw, 0.9rem);
  }

  .step-pill {
    font-size: clamp(0.88rem, 3.8vw, 1.05rem);
    padding: 0.45rem 0.85rem;
  }

  .quiz-stage .field-label {
    font-size: clamp(1.56rem, 6.8vw, 1.8rem);
    margin-bottom: 0.55rem;
  }

  .field {
    font-size: max(16px, clamp(0.84rem, 3.6vw, 0.95rem));
    padding: 0.78rem 0.92rem;
  }

  .btn--primary {
    font-size: clamp(0.84rem, 3.4vw, 0.95rem);
    padding: 0.95rem 1rem;
  }

  .btn--quiz-back,
  .btn--quiz-vin-skip {
    font-size: clamp(0.82rem, 3.5vw, 0.95rem);
    padding: 0.55rem 0.85rem;
  }

  .view--quiz .quiz-stages {
    min-height: clamp(96px, 20vh, 150px);
  }

  .final__title {
    font-size: clamp(0.98rem, 4vw, 1.18rem);
  }

  .final__lead {
    font-size: clamp(0.84rem, 3.5vw, 0.96rem);
  }

  .block-label {
    font-size: clamp(0.78rem, 3.2vw, 0.88rem);
  }

  .view--final .msg-btn {
    min-height: 56px;
  }
}

@media (max-width: 720px) and (max-height: 700px) {
  .center-card:has(#view-start.is-active) {
    max-height: 62dvh;
  }

  .q-signals {
    display: none;
  }

  .q-hero__lead {
    display: none;
  }

  .q-offer__desc {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-brand__mark,
  .loading__ring {
    animation: none !important;
  }
}
