/*
 * Главная: блок «Заработайте на первой же галерее — мы поможем» и заявка на помощь с запуском
 * (патч 430, ТЗ-главная-помощь-с-запуском.md). Держим вне bundle.css, как presentation.css:
 * подключается только на главной и не требует пересборки общего бандла. Токены (--purple,
 * --radius-*, --shadow, --line) — из дизайна главной.
 */

.main-page #start-help {
  scroll-margin-top: 16px;
}

.main-page .start-help-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
  padding: 44px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124, 58, 237, 0.16);
  background:
    radial-gradient(circle at 6% 0%, rgba(192, 132, 252, 0.22), transparent 36%),
    linear-gradient(160deg, #fff, #f2eaff);
  box-shadow: var(--shadow);
}

.main-page .start-help-card .lead {
  max-width: 54ch;
}

.main-page .start-help-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: start-help-step;
}

.main-page .start-help-steps li {
  position: relative;
  padding: 14px 16px 14px 62px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.main-page .start-help-steps li::before {
  counter-increment: start-help-step;
  content: counter(start-help-step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
}

.main-page .start-help-steps strong {
  display: block;
  color: var(--text);
}

.main-page .start-help-steps span {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  color: var(--muted);
}

.main-page .start-help-form {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: 0 18px 50px rgba(67, 37, 117, 0.1);
}

.main-page .start-help-form h3 {
  margin: 0 0 18px;
  font-size: 1.3rem;
  color: var(--text);
}

.main-page .start-help-field {
  margin: 0 0 14px;
}

.main-page .start-help-field label,
.main-page .start-help-legend {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.main-page .start-help-optional {
  font-weight: 400;
  color: var(--muted);
}

.main-page .start-help-form input[type="text"],
.main-page .start-help-form input[type="tel"],
.main-page .start-help-form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  border: 1px solid rgba(24, 19, 38, 0.16);
  border-radius: 14px;
  background: #fff;
}

.main-page .start-help-form input:focus,
.main-page .start-help-form select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.main-page .start-help-field.has-error input {
  border-color: #e11d48;
}

.main-page .start-help-channels {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.main-page .start-help-channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.main-page .start-help-channel-list label {
  position: relative;
  cursor: pointer;
}

.main-page .start-help-channel-list input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.main-page .start-help-channel-list span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: #fff;
  font-weight: 600;
  color: var(--text);
  transition: background 160ms ease, color 160ms ease;
}

.main-page .start-help-channel-list input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
}

.main-page .start-help-channel-list input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}

.main-page .start-help-form .button {
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.main-page .start-help-promise {
  margin: 12px 0 0;
  font-size: 0.92rem;
  text-align: center;
  color: var(--text);
}

.main-page .start-help-consent {
  margin: 6px 0 0;
  font-size: 0.8rem;
  text-align: center;
  color: var(--muted);
}

.main-page .start-help-consent a {
  color: var(--purple);
}

.main-page .start-help-errors {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  color: #9f1239;
  background: #fff1f2;
}

.main-page .start-help-errors p {
  margin: 0;
}

/* Ловушка для ботов: поле есть в разметке, но человек его не видит и не заполняет. */
.main-page .start-help-trap {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.main-page .start-help-done {
  padding: 12px 4px;
  text-align: center;
}

.main-page .start-help-done-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
}

.main-page .start-help-done p {
  margin: 10px 0 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .main-page .start-help-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 22px;
  }
}

@media (max-width: 767.98px) {
  .main-page .start-help-card {
    padding: 26px 16px;
    border-radius: var(--radius-lg);
  }

  .main-page .start-help-form {
    padding: 20px 16px;
  }

  /* На 375 px надпись кнопки иначе переносится на вторую строку. */
  .main-page .start-help-form .button {
    padding: 0 12px;
    font-size: 0.95rem;
  }
}
