/* ============== HELP SECTION (What we help you do) — FORCE LIGHT / BRAND ============== */

.section-help{
  position: relative;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(36px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

/* мягкий фон в брендовых оттенках */
.section-help::before{
  content:"";
  position:absolute;
  inset:-200px -120px auto -120px;
  height: 520px;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(closest-side at 25% 40%, rgba(59,130,246,0.14), transparent 65%),
    radial-gradient(closest-side at 70% 30%, rgba(94,234,212,0.12), transparent 70%),
    radial-gradient(closest-side at 60% 80%, rgba(59,130,246,0.08), transparent 70%);
  filter: blur(2px);
  opacity: .95;
}

.section-help .container{
  position: relative;
  z-index: 1;
}

.help-title{
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 clamp(22px, 3vw, 34px);
  color: var(--text);
  text-wrap: pretty;
}

.help-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  align-items: stretch;
}

.help-card{
  /* “glass” как в других секциях */
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(3,7,18,0.08);
  border-radius: 22px;
  box-shadow:
    0 18px 40px rgba(3,7,18,0.10),
    0  2px 10px rgba(3,7,18,0.06);
  padding: 26px 24px 22px;

  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  text-align: center;

  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .help-card{ background: rgba(255,255,255,0.90); }
}

.help-card:hover{
  transform: translateY(-1px);
  box-shadow:
    0 22px 52px rgba(3,7,18,0.12),
    0  2px 12px rgba(3,7,18,0.07);
  border-color: rgba(3,7,18,0.10);
}

.help-icon{
  display: grid;
  place-items: center;
  margin: 4px auto 14px;
}

.help-card-title{
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  color: rgba(3,7,18,0.92);
}

.help-list{
  list-style: none;
  padding: 0;
  margin: 0 0 18px;

  display: grid;
  gap: 10px;
  text-align: left;

  width: min(320px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.help-list li{
  position: relative;
  padding-left: 28px;
  line-height: 1.4;
  color: rgba(3,7,18,0.74);
  opacity: 0.98;
}

/* брендовая галочка */
.help-list li::before{
  content:"";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(94,234,212,0.18);
  border: 1px solid rgba(94,234,212,0.45);
}

.help-list li::after{
  content:"";
  position: absolute;
  left: 5px;
  top: 0.53em;
  width: 8px;
  height: 4px;
  border-left: 3px solid rgba(94,234,212,1);
  border-bottom: 3px solid rgba(94,234,212,1);
  transform: rotate(-45deg);
}

/* Кнопка-пилюля (бренд) */
.help-btn{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 46px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    rgba(94,234,212,0.34),
    rgba(59,130,246,0.28)
  );
  border: 1px solid rgba(59,130,246,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.70),
    0 10px 18px rgba(59,130,246,0.10);

  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: rgba(3,7,18,0.90);

  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.help-btn:hover{
  transform: translateY(-1px);
  background: linear-gradient(
    90deg,
    rgba(94,234,212,0.40),
    rgba(59,130,246,0.34)
  );
  border-color: rgba(59,130,246,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.76),
    0 14px 22px rgba(59,130,246,0.14);
}

.help-btn:active{ transform: translateY(0); }

.help-btn:focus-visible{
  outline: 3px solid rgba(59,130,246,0.30);
  outline-offset: 3px;
}

.help-note{
  margin: clamp(18px, 2.4vw, 26px) auto 0;
  max-width: 980px;
  border-radius: 18px;
  padding: 18px 20px;
  text-align: center;

  background: linear-gradient(
    90deg,
    rgba(59,130,246,0.14),
    rgba(59,130,246,0.06),
    rgba(94,234,212,0.10)
  );
  border: 1px solid rgba(59,130,246,0.14);
  box-shadow: 0 10px 26px rgba(3,7,18,0.08);

  color: rgba(3,7,18,0.74);
}

.help-more{
  margin-top: 18px;
  text-align: center;
}

.help-more-link{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  color: rgba(3,7,18,0.78);
}

.help-more-link:hover{
  background-image: linear-gradient(90deg, var(--primary), var(--primary2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Responsive */
@media (max-width: 920px){
  .help-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .help-grid{ grid-template-columns: 1fr; }
  .help-card{ padding: 22px 18px 18px; }
}

/* якорь формы */
#consult-form{
  scroll-margin-top: 96px; /* подстрой под высоту шапки */
}

/* ============== HELP reveal on scroll ============== */

/* Прячем только если JS включён (html.js уже добавляется у тебя в <head>) */
.js .help-card{
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  will-change: transform, opacity;
}

/* Когда карточка стала видимой */
.js .help-card.is-visible{
  animation: helpCardIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes helpCardIn{
  from{
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
  to{
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Доступность: если пользователь отключил анимации */
@media (prefers-reduced-motion: reduce){
  .js .help-card{
    opacity: 1;
    transform: none;
    animation: none !important;
    will-change: auto;
  }
}
