* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: linear-gradient(145deg, #f6f9fc 0%, #e9f1f8 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.card {
  max-width: 400px;
  width: 100%;
  background: #ffffff;
  border-radius: 40px;
  padding: 80px 24px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 20, 40, 0.25);
  position: relative;
  transition: all 0.3s ease;
}

/* ——— Логотип (слева) ——— */
.logo {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f6fe;
  padding: 4px 12px 4px 8px;
  border-radius: 30px;
  border: 1px solid #d0dfee;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.logo-icon {
  overflow: hidden;
  border-radius: 25%; /* превращает квадрат в круг */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 24px;

}

.logo-icon img {
  max-height: 100%;
  max-width: 100%;
  display: block;
}

.logo-text {
  font-weight: 600;
  font-size: 1rem;
  color: #0b1e33;
  letter-spacing: 0.3px;
}

/* ——— Кнопка "Как это работает" (справа) ——— */
.help-button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0f6fe;
  border: 1px solid #d0dfee;
  border-radius: 30px;
  padding: 4px 12px 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #685CAF;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  z-index: 5;
}

.help-button:hover {
  background: #e2edfc;
  border-color: #2a7de1;
}

.help-button:active {
  transform: scale(0.95);
}

.help-button span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: 22px;
}

.help-button span img {
  max-height: 100%;
  max-width: 100%;
  display: block;
}

/* ——— Всплывающая подсказка ——— */
.help-tooltip {
  display: none;
  position: absolute;
  top: 60px;
  right: 16px;
  background: #ffffff;
  border: 1px solid #d0dfee;
  border-radius: 20px;
  padding: 16px 20px;
  max-width: 280px;
  box-shadow: 0 12px 30px rgba(0,20,40,0.15);
  z-index: 10;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1f3a57;
}

.help-tooltip.show {
  display: block;
}

.help-tooltip strong {
  display: block;
  margin-bottom: 6px;
  color: #0b1e33;
}

.help-tooltip ul {
  padding-left: 18px;
  margin-top: 6px;
}

.help-tooltip ul li {
  margin-bottom: 4px;
}

/* ——— Заголовок (две строки с разными цветами) ——— */
h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  text-align: left;
  padding: 0;
  line-height: 1.2;
}

.black-text {
  color: #0b1e33;
}

.purple-text {
  color: #685CAF;
}

/* ——— Подзаголовок (без </>) ——— */
.subhead {
  margin-bottom: 16px;
  text-align: left;
}

.subhead-text {
  font-size: 1rem;
  color: #4a6479;
  font-weight: 400;
  line-height: 1.4;
  padding: 4px 0;
}

/* ——— Стили для картинки – убраны border-radius и box-shadow ——— */
.subhead-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0 24px;
}

/* ——— Блоки функций ——— */
.features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8faff;
  padding: 12px 16px;
  border-radius: 16px;
  transition: background 0.2s;
  border: 1px solid #eef4fa;
}

.feature-item:hover {
  background: #f0f6fe;
  border-color: #cbdcee;
}

.feature-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  color: #2a7de1;
}

.feature-content {
  flex: 1;
}

.feature-content strong {
  display: block;
  font-size: 0.95rem;
  color: #0b1e33;
  margin-bottom: 2px;
}

.feature-content p {
  color: #3d5a73;
  font-size: 0.85rem;
  line-height: 1.3;
  margin: 0;
}

/* ——— Кнопка "Начать" (фиолетовая) ——— */
.btn-start {
  background: #685CAF;               /* фиолетовый */
  color: white;
  border: none;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 60px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 8px 20px -6px rgba(104, 92, 175, 0.4);
  letter-spacing: 0.3px;
}

.btn-start:hover {
  background: #5A4C9E;               /* более тёмный фиолетовый */
}

.btn-start:active {
  transform: scale(0.97);
}

/* ——— Этапы (скрыты по умолчанию) ——— */
.step {
  display: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px dashed #d0dfee;
  animation: fadeUp 0.4s ease;
}

.step.active {
  display: block;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.step h2 {
  font-size: 1.5rem;
  color: #0b1e33;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.step h2 small {
  font-size: 0.8rem;
  font-weight: 400;
  color: #4a6479;
  background: #eef4fa;
  padding: 2px 12px;
  border-radius: 30px;
}

.goal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}

.goal-btn {
  background: #f0f6fe;
  border: 2px solid transparent;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0b1e33;
  cursor: pointer;
  transition: all 0.2s;
}

.goal-btn:hover {
  background: #e2edfc;
  border-color: #2a7de1;
}

.goal-btn.selected {
  background: #2a7de1;
  color: white;
  border-color: #2a7de1;
}

.trajectory-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
}

.trajectory-list li {
  background: #f8faff;
  padding: 10px 16px;
  margin-bottom: 8px;
  border-radius: 14px;
  border-left: 5px solid #2a7de1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #0b1e33;
}

.trajectory-list li span {
  background: #d0dfee;
  color: #1f3a57;
  border-radius: 30px;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8faff;
  padding: 10px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid #eef4fa;
}

.task-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #2a7de1;
  cursor: pointer;
  flex-shrink: 0;
}

.task-item label {
  flex: 1;
  font-size: 0.9rem;
  color: #0b1e33;
  cursor: pointer;
}

.task-item.done label {
  text-decoration: line-through;
  color: #7a94ab;
}

.progress-bar {
  margin: 16px 0 12px;
  height: 8px;
  background: #e2edfc;
  border-radius: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #2a7de1;
  border-radius: 30px;
  transition: width 0.4s ease;
}

.progress-text {
  font-weight: 500;
  font-size: 0.9rem;
  color: #1f3a57;
}

.security-note {
  margin-top: 24px;
  padding: 14px 16px;
  background: #eef6e6;
  border-radius: 16px;
  border-left: 5px solid #2a9d8f;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #1e4a3b;
}

.security-note strong {
  font-weight: 600;
}

.btn-secondary {
  background: #eef4fa;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0b1e33;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: #dce8f2;
}

.flex-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ——— Адаптив для маленьких экранов (менее 420px) ——— */
@media (max-width: 420px) {
  .card {
      padding: 70px 16px 24px;
  }
  h1 {
      font-size: 1.4rem;
  }
  .subhead-text {
      font-size: 0.9rem;
      padding: 4px 0;
  }
  .subhead-image {
      margin: 10px 0 18px;
  }
  .feature-item {
      padding: 10px 12px;
  }
  .feature-icon {
      font-size: 1.2rem;
      width: 30px;
  }
  .feature-content strong {
      font-size: 0.85rem;
  }
  .feature-content p {
      font-size: 0.8rem;
  }
  .btn-start {
      font-size: 1rem;
      padding: 12px 16px;
  }
  .help-button {
      font-size: 0.65rem;
      padding: 3px 10px 3px 6px;
  }
  .help-button span {
      height: 18px;
      width: 18px;
  }
  .logo {
      padding: 3px 8px 3px 6px;
  }
  .logo-text {
      font-size: 0.85rem;
  }
}