/* ===== CSS VARIABLES ===== */
:root {
  --color-bg: #0c1220;
  --color-bg-light: #131d2e;
  --color-bg-card: #182538;
  --color-accent: #4fc3f7;
  --color-accent-hover: #81d4fa;
  --color-accent-glow: rgba(79, 195, 247, 0.12);
  --color-accent-glow-strong: rgba(79, 195, 247, 0.25);
  --color-text: #eaf0f6;
  --color-text-secondary: #8fa3b8;
  --color-text-muted: #567089;
  --color-btn-text: #071019;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-hover: rgba(255, 255, 255, 0.16);
  --color-border-active: var(--color-accent);
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-btn: 50px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --color-accent-secondary: #a78bfa;
  --shadow-glow: 0 0 30px var(--color-accent-glow);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font);
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--color-accent);
  color: var(--color-btn-text);
}

/* ===== QUIZ CONTAINER ===== */
.quiz-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.quiz-container .quiz-screen {
  max-width: 780px;
  margin: 0 auto;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: flex;
}

.screen.slide-out-left {
  animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.screen.slide-in-right {
  animation: slideInRight 0.35s cubic-bezier(0.0, 0, 0.2, 1) forwards;
}
.screen.slide-out-right {
  animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.screen.slide-in-left {
  animation: slideInLeft 0.35s cubic-bezier(0.0, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(-80px); opacity: 0; }
}
@keyframes slideInRight {
  from { transform: translateX(80px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(80px); opacity: 0; }
}
@keyframes slideInLeft {
  from { transform: translateX(-80px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ===== START PAGE ===== */
.start-page {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  position: relative;
}

.start-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.start-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: bgZoom 20s ease-in-out infinite alternate;
}

@keyframes bgZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.08); }
}

.start-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 18, 32, 0.97) 0%,
    rgba(12, 18, 32, 0.88) 40%,
    rgba(12, 18, 32, 0.55) 70%,
    rgba(12, 18, 32, 0.25) 100%
  );
  z-index: 1;
}

.start-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4rem 3rem;
}

.start-content__inner {
  max-width: 540px;
}

.start-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(79, 195, 247, 0.08);
  border: 1px solid rgba(79, 195, 247, 0.18);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.start-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.start-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.start-title span {
  color: var(--color-accent);
}

.start-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 2.25rem;
}

.start-subtitle strong {
  color: var(--color-text);
  font-weight: 600;
}

.start-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.start-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  backdrop-filter: blur(4px);
}

.start-feature svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.start-legal {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  transition: var(--transition);
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
  color: var(--color-btn-text);
  font-size: 1rem;
  padding: 1rem 2.75rem;
  border-radius: var(--radius-btn);
  border: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(79, 195, 247, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(79, 195, 247, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(79, 195, 247, 0.15);
}

.btn-back {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.btn-back:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-2px);
}

/* ===== QUIZ SCREENS ===== */
.quiz-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  padding: 2rem 3rem;
  position: relative;
}

/* Subtle background gradient for quiz screens */
.quiz-screen::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}

.quiz-header {
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

/* ===== PROGRESS STEPS ===== */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  background: var(--color-bg);
}

.step-circle.active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-btn-text);
  box-shadow: 0 0 20px var(--color-accent-glow-strong), 0 0 6px var(--color-accent-glow);
  transform: scale(1.08);
}

.step-circle.done {
  border-color: var(--color-accent);
  background: rgba(244, 228, 186, 0.1);
  color: var(--color-accent);
}

.step-circle.done::after {
  content: '✓';
  font-size: 0.8rem;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-circle.done span {
  display: none;
}

.step-line {
  width: 48px;
  height: 2px;
  background: var(--color-border);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.step-line.filled {
  background: var(--color-accent);
}

.step-line.filled::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(79,195,247,0.5), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== QUIZ BODY ===== */
.quiz-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
}

.quiz-question {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.quiz-hint {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

/* ===== ANSWERS ===== */
.answers {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.answer-option {
  cursor: pointer;
  display: block;
}

.answer-option input {
  display: none;
}

.answer-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition);
  user-select: none;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
}

.answer-box::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--color-border-hover);
  flex-shrink: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radio buttons get circle */
.answers-single .answer-box::before {
  border-radius: 50%;
}

.answer-box:hover {
  border-color: var(--color-border-hover);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  transform: translateX(4px);
}

.answer-option input:checked + .answer-box {
  border-color: var(--color-accent);
  background: rgba(79, 195, 247, 0.06);
  color: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-accent), inset 0 0 20px rgba(79, 195, 247, 0.04);
}

.answer-option input:checked + .answer-box::before {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: inset 0 0 0 3px var(--color-bg-card);
}

/* ===== TEXT INPUT ===== */
.input-text {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
  transition: var(--transition);
  min-height: 140px;
  line-height: 1.6;
}

.input-text::placeholder {
  color: var(--color-text-muted);
}

.input-text:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(79, 195, 247, 0.03);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.15);
}

/* ===== QUIZ FOOTER ===== */
.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.btn-next {
  margin-left: auto;
}

/* ===== LEAD FORM ===== */
.quiz-body--form {
  justify-content: flex-start;
  padding-top: 4rem;
}

.form-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 1.75rem;
}

.form-desc strong {
  color: var(--color-text);
  font-weight: 600;
}

.form-bonuses {
  margin-bottom: 2.25rem;
  padding: 1.25rem 1.5rem;
  background: rgba(79, 195, 247, 0.04);
  border: 1px solid rgba(79, 195, 247, 0.1);
  border-radius: var(--radius);
}

.form-bonuses__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.form-bonuses ul {
  list-style: none;
  padding: 0;
}

.form-bonuses li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.form-bonuses li:last-child {
  margin-bottom: 0;
}

.form-bonuses li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.85rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
}

.input-field {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.input-field::placeholder {
  color: var(--color-text-muted);
  font-weight: 400;
}

.input-field:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(79, 195, 247, 0.03);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.15);
}

.btn-submit {
  margin-top: 0.5rem;
  width: 100%;
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

.form-policy {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* ===== THANKS PAGE ===== */
.quiz-body--thanks {
  align-items: center;
  text-align: center;
  justify-content: center;
}

.thanks-icon {
  margin-bottom: 1.75rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 0 40px var(--color-accent-glow);
}

@keyframes zoomBounce {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.thanks-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 440px;
  margin-bottom: 2.25rem;
}

.btn-telegram {
  text-decoration: none;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(42, 171, 238, 0.3);
}

.btn-telegram:hover {
  box-shadow: 0 6px 30px rgba(42, 171, 238, 0.45);
  transform: translateY(-2px);
}

.btn-telegram svg {
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .start-bg__overlay {
    background: linear-gradient(
      to bottom,
      rgba(12, 18, 32, 0.4) 0%,
      rgba(12, 18, 32, 0.85) 45%,
      rgba(12, 18, 32, 0.98) 100%
    );
  }

  .start-content {
    align-items: flex-end;
    padding: 2rem 1.5rem 3rem;
  }

  .start-title {
    font-size: 1.65rem;
  }

  .start-subtitle {
    font-size: 0.95rem;
  }

  .start-features {
    gap: 0.5rem;
  }

  .start-feature {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .quiz-screen {
    padding: 1.5rem 1.25rem;
  }

  .quiz-screen::before {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
  }

  .quiz-question {
    font-size: 1.25rem;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .step-line {
    width: 28px;
  }

  .btn-primary {
    padding: 0.85rem 2rem;
    font-size: 0.93rem;
  }

  .answer-box {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .quiz-body--form {
    padding-top: 2.5rem;
  }

  .form-bonuses {
    padding: 1rem 1.15rem;
  }
}

@media (max-width: 480px) {
  .start-title {
    font-size: 1.4rem;
  }

  .start-subtitle {
    font-size: 0.88rem;
  }

  .quiz-question {
    font-size: 1.12rem;
  }

  .step-line {
    width: 18px;
  }

  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }

  .answer-box::before {
    width: 18px;
    height: 18px;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border-hover);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}
