* {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #f9fafb;
    min-height: 100vh;
  }
  
  header {
    padding: 40px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }
  
  header h1 {
    margin: 0 0 10px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s ease-out;
  }
  
  header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    animation: fadeIn 0.8s ease-out 0.2s both;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  /* Прогресс-бар */
  .progress-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }
  
  .progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 0.5s ease;
    animation: glow 1s infinite;
  }
  
  @keyframes glow {
    0%, 100% {
      box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }
    50% {
      box-shadow: 0 0 20px rgba(76, 175, 80, 1);
    }
  }
  
  .progress-text {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  main {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    perspective: 1000px;
  }
  
  /* Шаги */
  .step {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    animation: slideUp 0.5s ease-out;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .step-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-out;
  }
  
  @keyframes bounce {
    0% {
      transform: scale(0) rotateZ(-180deg);
    }
    70% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1) rotateZ(0deg);
    }
  }
  
  .step h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    color: #667eea;
    text-align: center;
  }
  
  .step p {
    margin: 0 0 20px;
    text-align: center;
    opacity: 0.7;
    font-size: 1rem;
  }
  
  .task-description {
    font-weight: 600;
    color: #333;
    margin-bottom: 30px !important;
  }
  
  .task-image {
    margin: 30px 0;
    text-align: center;
    animation: fadeIn 0.6s ease-out 0.3s both;
  }
  
  .task-image svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  }
  
  input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s;
  }
  
  input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  }
  
  /* Кнопки и опции */
  .options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
  }
  
  .option,
  .btn-start,
  .btn-restart {
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-align: left;
    background: #f0f0f0;
    color: #333;
  }
  
  .option:hover {
    background: #e0e0e0;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .btn-start,
  .btn-restart {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    width: 100%;
    font-size: 1.1rem;
  }
  
  .btn-start:hover,
  .btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  }
  
  .btn-start:active,
  .btn-restart:active {
    transform: translateY(0);
  }
  
  /* Финальный экран */
  .final-screen {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
  }
  
  .trophy {
    font-size: 6rem;
    margin-bottom: 30px;
    animation: spin 1s ease-out;
  }
  
  @keyframes spin {
    0% {
      transform: scale(0) rotateZ(-360deg);
    }
    100% {
      transform: scale(1) rotateZ(0deg);
    }
  }
  
  .final-screen h2 {
    font-size: 2.5rem;
    margin: 0 0 20px;
    color: #667eea;
  }
  
  #finalScore {
    font-size: 1.5rem;
    font-weight: 600;
    color: #764ba2;
    margin: 20px 0;
  }
  
  .congrats {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 20px 0 40px;
  }
  
  /* Анимация правильного ответа */
  .correct-animation {
    animation: popIn 0.5s ease-out;
  }
  
  @keyframes popIn {
    0% {
      transform: scale(0.8);
      opacity: 0;
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Мобильная адаптивность */
  @media (max-width: 600px) {
    header h1 {
      font-size: 1.8rem;
    }
  
    header p {
      font-size: 0.95rem;
    }
  
    .step {
      padding: 25px 15px;
    }
  
    .step h2 {
      font-size: 1.4rem;
    }
  
    .step-icon {
      font-size: 3rem;
    }
  
    main {
      margin: 20px auto;
    }
  
    .option,
    .btn-start {
      font-size: 0.95rem;
      padding: 12px 15px;
    }
  }
  
  /* ===== ШАГ 0: ВВЕДЕНИЕ ===== */

.intro-container {
  animation: fadeIn 0.6s ease-out;
}

.intro-header {
  text-align: center;
  margin-bottom: 30px;
}

.intro-header .step-icon {
  font-size: 5rem;
  animation: bounce 0.8s ease-out;
  margin-bottom: 10px;
  display: inline-block;
}

@keyframes bounce {
  0% {
    transform: scale(0) rotateZ(-180deg);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1) rotateZ(0deg);
  }
}

.intro-header h2 {
  margin: 0;
  font-size: 2.2rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Warning Box */
.warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 25px;
}

.warning-box p {
  margin: 8px 0;
  color: #856404;
  font-size: 0.95rem;
}

.warning-box strong {
  color: #ff6b6b;
}

/* Story Box */
.story-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-left: 4px solid #667eea;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.story-box h3 {
  margin: 0 0 15px;
  color: #667eea;
  font-size: 1.2rem;
}

.story-box p {
  margin: 12px 0;
  line-height: 1.6;
  color: #333;
}

.story-box strong {
  color: #764ba2;
}

.friends-list {
  margin: 15px 0;
  padding-left: 25px;
}

.friends-list li {
  margin: 10px 0;
  color: #333;
  font-size: 0.95rem;
}

/* Rules Container */
.rules-container {
  margin-bottom: 30px;
}

.rules-container h3 {
  color: #333;
  margin: 0 0 20px;
  font-size: 1.2rem;
}

.rule-item {
  display: flex;
  margin-bottom: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s;
}

.rule-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rule-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  margin-right: 15px;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.rule-text strong {
  display: block;
  color: #333;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.rule-desc {
  color: #666;
  font-size: 0.85rem;
}

/* Tasks Preview */
.tasks-preview {
  background: #f0f7ff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

.tasks-preview h3 {
  margin: 0 0 20px;
  color: #1976d2;
  font-size: 1.2rem;
}

.task-card {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: white;
  border-radius: 6px;
  border-left: 4px solid #667eea;
  transition: all 0.3s;
}

.task-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.task-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.task-content h4 {
  margin: 0 0 5px;
  color: #333;
  font-size: 0.95rem;
}

.task-content p {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
}

/* Info Box */
.info-box {
  background: #e3f2fd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.info-box p {
  margin: 10px 0;
  color: #1976d2;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Registration Form */
.registration-form {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 30px;
  margin-top: 30px;
}

.registration-form h3 {
  margin: 0 0 10px;
  color: #667eea;
  font-size: 1.3rem;
  text-align: center;
}

.form-hint {
  text-align: center;
  color: #666;
  margin: 0 0 25px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
  background: white;
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-hint-small {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 0.85rem;
}

/* Terms Link */
.terms-link {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  margin-top: 15px;
}

.terms-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.terms-link a:hover {
  text-decoration: underline;
}

/* Мобильная адаптивность */
@media (max-width: 600px) {
  .intro-header h2 {
    font-size: 1.6rem;
  }

  .intro-header .step-icon {
    font-size: 3.5rem;
  }

  .story-box {
    padding: 15px;
  }

  .tasks-preview {
    padding: 15px;
  }

  .task-card {
    flex-direction: column;
  }

  .task-emoji {
    font-size: 1.5rem;
  }

  .registration-form {
    padding: 20px;
  }

  .rule-item {
    padding: 12px;
  }

  .rule-number {
    width: 35px;
    height: 35px;
    font-size: 0.95rem;
  }
}

/* ===== СТИЛЬ ДЛЯ ШАГА 1 (ПО ОБРАЗЦУ ШАГА 0) ===== */

.step[data-step="1"] {
    animation: slideUp 0.5s ease-out;
  }
  
  .step[data-step="1"] .step-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-out;
  }
  
  /* Ситуация (красная рамка, как warning) */
  .situation-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 20px;
  }
  
  .situation-box h3 {
    margin: 0 0 12px;
    color: #856404;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .situation-box p {
    margin: 0;
    color: #333;
    line-height: 1.6;
  }
  
  .situation-box strong {
    color: #ff6b6b;
  }
  
  /* Видео контейнер */
  .video-container {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .video-placeholder {
    width: 100%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 16/9;
  }
  
  .video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .video-label {
    text-align: center;
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 1rem;
  }
  
  /* Задача (зелёная рамка, как в шаге 0) */
  .task-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 4px solid #667eea;
    padding: 25px;
    border-radius: 8px;
    margin: 20px;
  }
  
  .task-box h3 {
    margin: 0 0 15px;
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
  }
  
  .task-box ol {
    margin: 0;
    padding-left: 25px;
  }
  
  .task-box li {
    margin: 12px 0;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
  }
  
  /* Форма (как в шаге 0) */
  .answer-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  
  .form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
  }
  
  .section-title {
    margin: 0 0 15px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .section-hint {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 15px;
    font-weight: 500;
  }
  
  .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.3s;
    user-select: none;
    font-weight: 500;
    color: #333;
  }
  
  .checkbox-label:hover {
    background: #f0f0f0;
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
  }
  
  .checkbox-label input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
  }
  
  .checkbox-label input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }
  
  /* Текстовые поля */
  .form-textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    background: white;
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
    transition: all 0.3s;
    width: 100%
  }
  
  .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  }
  
  .form-textarea::placeholder {
    color: #999;
  }
  
  /* Счётчик символов */
  .char-counter {
    font-size: 0.85rem;
    color: #999;
    text-align: right;
    font-weight: 500;
  }
  
  /* Инфо блок с баллами (как task-card в шаге 0) */
  .scoring-info {
    background: #e3f2fd;
    border: 2px solid #90caf9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
  }
  
  .scoring-info h4 {
    margin: 0 0 15px;
    color: #1976d2;
    font-size: 1.15rem;
    font-weight: 600;
  }
  
  .scoring-info ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
  }
  
  .scoring-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
  }
  
  .scoring-info li:before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
  }
  
  /* Кнопка отправки (как btn-start) */
  .btn-submit-step {
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: all 0.3s;
    margin-top: 15px;
  }
  
  .btn-submit-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  }
  
  .btn-submit-step:active {
    transform: translateY(0);
  }
  
  /* Мобильная адаптивность */
  @media (max-width: 600px) {
    .situation-box,
    .task-box,
    .video-container {
      padding: 15px;
    }
  
    .task-box h3,
    .section-title {
      font-size: 1rem;
    }
  
    .checkbox-label {
      padding: 10px 12px;
    }
  
    .form-textarea {
      min-height: 100px;
    }
  
    .scoring-info {
      padding: 15px;
    }
  
    .btn-submit-step {
      padding: 14px 20px;
      font-size: 1rem;
    }
  }
  
  /* Специальный стиль для аудио-плейсхолдера шага 2 */
.audio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: var(--radius-base);
    position: relative;
  }
  
  .audio-placeholder audio {
    max-width: 500px;
    width: 100%;
  }
  
/* Шаг 3: оформление баннера с iPhone */
.step[data-step="3"] .video-placeholder {
    background: radial-gradient(circle at top, #1f2937, #020617);
    padding: 16px;
  }
  
  .step[data-step="3"] .video-placeholder img {
    display: block;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  }
  
  /* Шаг 4: оформление иллюстрации с паролями */
.step[data-step="4"] .video-placeholder {
    background: radial-gradient(circle at top, #111827, #020617);
    padding: 16px;
  }
  
  .step[data-step="4"] .video-placeholder img {
    display: block;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  }
  
  /* Шаг 5: оформление учебной статьи */
.fake-news-article {
    background: var(--color-surface);
    border-radius: var(--radius-base);
    padding: var(--space-16);
    border: 1px solid var(--color-border);
    max-height: 320px;
    overflow-y: auto;
  }
  
  .fake-news-article h4 {
    margin-top: 0;
    margin-bottom: var(--space-12);
    color: var(--color-error);
    font-size: var(--font-size-lg);
  }
  
  .fake-news-article p {
    margin-bottom: var(--space-10);
    line-height: 1.5;
  }

  /* Финальный шаг */
.step[data-step="final"] {
    animation: slideInUp 0.5s ease-out;
    padding: var(--space-24);
    max-width: 800px;
    margin: 0 auto;
  }
  
  .step[data-step="final"] .video-placeholder {
    background: radial-gradient(circle at top, #111827, #020617);
  }
  
  .step[data-step="final"] .video-placeholder img {
    display: block;
    max-width: 260px;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  }
  