/* Маячok — minimal custom CSS, respects light/dark mode */

.mascot {
  font-size: 72px;
  animation: gentleBounce 2s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.mascot img {
  height: 72px;
  width: auto;
}

.landing-inner {
  max-width: 480px;
  animation: fadeInUp 0.6s ease-out;
}

.lang-switch {
  margin-top: 40px;
}

.lang-sep {
  margin: 0 4px;
  opacity: 0.4;
}

.progress-bar {
  position: relative;
  margin-bottom: 28px;
}

.progress-bar .progress {
  height: 8px;
  border-radius: 50px;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -22px;
  font-size: 0.78rem;
}

.question-number {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.question-text {
  margin-bottom: 28px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.option {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option:hover {
  transform: translateX(4px);
}

.option input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #888;
  border-radius: 50%;
  margin-right: 14px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.option input[type="radio"]:checked {
  border-color: hsl(130, 25%, 55%);
  background: hsl(130, 25%, 55%);
}

.option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

@media (prefers-color-scheme: dark) {
  .option input[type="radio"] {
    border-color: #666;
    background: #2a2a2a;
  }

  .option input[type="radio"]:checked {
    border-color: hsl(130, 25%, 55%);
    background: hsl(130, 25%, 55%);
  }

  .option input[type="radio"]:checked::after {
    background: white;
  }
}

.result-container {
  max-width: 520px;
}

.result-card {
  padding: 40px 32px;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease-out 0.2s both;
}

.score-number {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.score-max {
  font-size: 0.85rem;
}

.risk-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}

.recommendation {
  line-height: 1.7;
  margin-bottom: 24px;
}

.crisis-alert {
  text-align: left;
  margin-bottom: 24px;
  background-color: #fdf2f8;
  border-left: 4px solid #ec4899;
  color: #831843;
}

.crisis-alert h2 {
  color: #be185d;
}

.crisis-alert .button {
  background-color: #ec4899;
  color: white;
  border: none;
}

.crisis-alert .button:hover {
  background-color: #db2777;
}

.crisis-phone {
  font-size: 1.3rem;
  font-weight: 700;
}

.survey {
  margin-top: 28px;
  text-align: left;
}

.survey .label {
  font-size: 0.88rem;
}

.survey .button {
  margin-top: 8px;
}

.help-container {
  max-width: 640px;
}

.resource-box {
  background: #fff7ed;
  border-left: 4px solid #f59e0b;
}

.resource-box p {
  margin-bottom: 0.3rem;
}

.help-text {
  color: #666;
  font-size: 0.9rem;
}

.ai-prompt {
  font-family: monospace;
  font-size: 0.85rem;
  background: #fafafa;
}

@media (prefers-color-scheme: dark) {
  .resource-box {
    background: #2a1f0f;
    border-left-color: #f59e0b;
  }

  .resource-box p,
  .resource-box h3,
  .resource-box h2 {
    color: #e0e0e0;
  }

  .help-text {
    color: #aaa;
  }

  .ai-prompt {
    background: #1a1a1a;
    color: #e0e0e0;
  }
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}



.footer-source {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer-source a {
  text-decoration: none;
}

.footer-source a:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .result-card { padding: 28px 20px; }
  .score-circle { width: 100px; height: 100px; }
  .score-number { font-size: 1.8rem; }
  .mascot { font-size: 56px; }
}
