:root {
  --bg-main: #04110b;
  --bg-card: #0b1f16;
  --bg-card-alt: #0f261c;
  --bg-offer: #132d21;
  --accent-primary: #36f28f;
  --accent-secondary: #2ac77a;
  --accent-alert: #ff5555;
  --text-primary: #f0fff4;
  --text-secondary: #c8e5d5;
  --text-muted: #93b4a3;
  --border-soft: rgba(54, 242, 143, 0.18);
  --font-base: 'Archivo', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p {
  margin: 0;
}

body {
  font-family: var(--font-base);
}

.quiz-body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(54, 242, 143, 0.08), transparent 60%), var(--bg-main);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.quiz-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 28px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.quiz-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-logo {
  height: 240px;
  width: auto;
  display: block;
}

.quiz-wrapper {
  flex: 1;
  padding: 0 18px 52px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.quiz-slide {
  display: none;
  max-width: 960px;
  width: min(960px, 100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.quiz-slide.is-active {
  display: block;
  animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  padding: 32px 40px;
  position: relative;
  box-shadow: 0 34px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.slide-card--center {
  align-items: center;
  text-align: center;
}

.slide-card--wide {
  gap: 32px;
  align-items: stretch;
  text-align: left;
}

.slide-card--intro {
  text-align: center;
  align-items: center;
  gap: 32px;
}

.slide-card--offer {
  gap: 28px;
  background: var(--bg-offer);
}

.offer-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
}

.offer-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 620px;
}

.offer-highlight {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.offer-bonus {
  font-size: 0.98rem;
  color: var(--accent-primary);
  max-width: 620px;
}

.offer-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonials {
  display: grid;
  gap: 16px;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.testimonial {
  background: rgba(4, 17, 11, 0.55);
  border-radius: 16px;
  border: 1px solid rgba(54, 242, 143, 0.18);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  display: block;
}

.price-card {
  background: rgba(54, 242, 143, 0.12);
  border: 1px solid rgba(54, 242, 143, 0.4);
  border-radius: 22px;
  padding: 18px 28px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.price {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent-primary);
}

.price-tag {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slide-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
}

.slide-lead {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.5;
}

.slide-help {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.slide-note {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.slide-note.quote {
  font-style: italic;
  color: var(--accent-primary);
}

.slide-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.slide-instruction {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge--success {
  background: rgba(54, 242, 143, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(54, 242, 143, 0.36);
}

.info-box {
  width: min(460px, 100%);
  background: rgba(8, 26, 17, 0.72);
  border: 1px solid rgba(54, 242, 143, 0.2);
  border-radius: 20px;
  padding: 28px 32px;
  text-align: left;
}

.info-box--list {
  width: min(520px, 100%);
}

.info-box h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.info-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  display: grid;
  gap: 10px;
  font-size: 1rem;
  text-align: left;
}

.quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-btn--primary {
  background: linear-gradient(125deg, var(--accent-primary), #1cb46d);
  color: #04110b;
  box-shadow: 0 18px 36px rgba(54, 242, 143, 0.35);
}

.quiz-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(54, 242, 143, 0.45);
}

.quiz-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.quiz-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.quiz-btn--large {
  width: 100%;
  padding: 18px 32px;
  font-size: 1.1rem;
}

.loader-icon {
  width: 92px;
  height: 92px;
}

.loader-icon svg {
  width: 100%;
  height: 100%;
}

.loader-icon--pulse {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 242, 143, 0.35), rgba(54, 242, 143, 0) 65%);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.loader-icon .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.loader-icon .indicator {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 6;
  stroke-dasharray: 125;
  stroke-dashoffset: 90;
  stroke-linecap: round;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    stroke-dashoffset: 90;
    transform: rotate(0deg);
    transform-origin: center;
  }
  to {
    stroke-dashoffset: -160;
    transform: rotate(360deg);
    transform-origin: center;
  }
}

.progress {
  width: min(380px, 100%);
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
}

.progress__bar--animated {
  width: 0;
  animation: fillBar 5s ease forwards;
}

@keyframes fillBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.progress--thin {
  width: 160px;
  height: 6px;
  border: 1px solid rgba(54, 242, 143, 0.25);
  background: rgba(255, 255, 255, 0.05);
  margin: 0 auto;
}

.progress--thin .progress__bar {
  width: 0;
  transition: width 0.25s ease;
}

.progress__label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.status-list {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
}

.status--done {
  color: var(--accent-primary);
}

.slide-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.chip--alert {
  background: rgba(255, 85, 85, 0.1);
  color: var(--accent-alert);
  border: 1px solid rgba(255, 85, 85, 0.4);
  text-transform: uppercase;
}

.chip--success {
  background: rgba(54, 242, 143, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(54, 242, 143, 0.4);
  text-transform: uppercase;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 12px;
  width: 100%;
}

.number-grid button {
  background: var(--bg-card-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, border 0.15s ease, background 0.15s ease;
}

.number-grid button.selected {
  background: rgba(54, 242, 143, 0.16);
  border-color: rgba(54, 242, 143, 0.6);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(36, 167, 101, 0.2);
}

.number-grid button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.number-grid button.guided-target {
  border-color: rgba(54, 242, 143, 0.8);
  background: rgba(54, 242, 143, 0.18);
  color: var(--accent-primary);
  animation: glow 1.2s ease-in-out infinite alternate;
}

.number-grid button.guided-success {
  background: rgba(54, 242, 143, 0.28);
  border-color: rgba(54, 242, 143, 0.9);
  color: var(--accent-primary);
}

.number-grid button.guided-error {
  animation: shake 0.35s ease;
  border-color: rgba(255, 85, 85, 0.6);
  color: var(--accent-alert);
}

.number-grid button.guided-target,
.number-grid button.guided-success {
  animation-duration: 1.2s;
}

@keyframes glow {
  from {
    box-shadow: 0 0 12px rgba(54, 242, 143, 0.25);
    transform: translateY(0);
  }
  to {
    box-shadow: 0 0 20px rgba(54, 242, 143, 0.45);
    transform: translateY(-2px);
  }
}

.guided-feedback {
  min-height: 24px;
  font-size: 0.95rem;
  color: var(--accent-primary);
  text-align: center;
}

.slide-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.foot-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.validation-message {
  margin-top: -12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--accent-alert);
  opacity: 0;
  transition: opacity 0.2s ease;
  text-align: center;
}

.validation-message.is-visible {
  opacity: 1;
}

.validation-message.is-success {
  color: var(--accent-primary);
}

.quiz-btn.shake {
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}

.result-box {
  background: rgba(10, 30, 21, 0.92);
  border-radius: 28px;
  padding: 40px 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 16px;
  align-items: center;
  justify-items: center;
  max-width: 420px;
}

.result-box--positive {
  border-color: rgba(54, 242, 143, 0.5);
}

.result-box--negative {
  border-color: rgba(255, 85, 85, 0.4);
}

.result-icon {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.summary-card {
  gap: 32px;
}

.summary-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  width: 100%;
}

.summary-item {
  background: rgba(12, 32, 23, 0.65);
  border-radius: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.summary-item h3 {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.summary-item p {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
}

.summary-item span {
  font-size: 1rem;
  color: var(--accent-primary);
}

.summary-item--highlight {
  border-color: rgba(54, 242, 143, 0.4);
  background: rgba(54, 242, 143, 0.1);
}

.summary-total {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.summary-total strong {
  color: var(--accent-primary);
  font-size: 1.6rem;
}

.benefits {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
  text-align: left;
}

.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: left;
}

.plan {
  background: rgba(4, 17, 11, 0.6);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(54, 242, 143, 0.18);
  text-align: center;
  display: grid;
  gap: 8px;
}

.plan-title {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.plan strong {
  font-size: 1.5rem;
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .quiz-header {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 10px 0;
  }

  .slide-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .info-box {
    width: 100%;
  }

  .number-grid {
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  }
}
