/* =========================================================
   SETUP PAGE (cards) — scoped to .setup
   ========================================================= */

.setup .nowrap{ white-space: nowrap; }

.setup .setup-hero{
  margin: 16px 0 22px;
  padding: 16px;
  border-radius: 16px;
  background: #f3f4ff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.setup .setup-hero__title{
  font-weight: 800;
  margin-bottom: 12px;
}

.setup .setup-hero__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.setup .mini-card{
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.06);
  min-width: 0;
}

.setup .mini-card__num{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #e5edff;
  flex: 0 0 auto;
}

.setup .mini-card__text{
  line-height: 1.25;
  font-weight: 700;
  min-width: 0;
}

.setup .step-card{
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  max-width: 100%;
}

.setup .step-card__head{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  min-width: 0;
}

.setup .step-badge{
  min-width: 58px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 16px;
  background: #f3f4ff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  flex: 0 0 auto;
}

.setup .step-title{
  margin: 0;
  line-height: 1.1;
}

.setup .step-sub{
  margin: 8px 0 0 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

/* Всегда 1 колонка (и на ПК, и на телефоне) */
.setup .platform-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.setup .platform-card{
  background: #f3f4ff;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.06);
  min-width: 0;
}

.setup .platform-card__icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #e5edff;
  flex: 0 0 auto;
}

.setup .platform-card__body{
  min-width: 0;
  flex: 1 1 auto;
}

.setup .platform-card__title{
  font-weight: 800;
}

.setup .platform-card__desc{
  margin-top: 4px;
  line-height: 1.35;
  font-weight: 600;
}

.setup .platform-card__cta{
  white-space: nowrap;
  padding-left: 8px;
  font-weight: 800;
  flex: 0 0 auto;
  align-self: flex-start;
}

.setup .note{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  gap: 10px;
}

.setup .note__icon{
  flex: 0 0 auto;
}

.setup .info-box{
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #f3f4ff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  max-width: 100%;
}

.setup .kpi-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.setup .steps{
  margin: 0;
  padding-left: 20px;
  line-height: 1.45;
}

.setup .steps li{
  margin: 10px 0;
}

.setup .substeps{
  margin-top: 8px;
  padding-left: 18px;
}

.setup .substeps li{
  margin: 8px 0;
}

.setup .split{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.setup .split__col{
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #f3f4ff;
  max-width: 100%;
}

.setup .pill{
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.setup .pill--main{
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.setup .faq-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

/* ИКОНКА + ЗАГОЛОВОК В ОДНУ СТРОКУ (FAQ) */
.setup .faq-card{
  padding: 14px;
  border-radius: 16px;
  background: #f3f4ff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 8px;
  row-gap: 10px;
  align-items: start;
  min-width: 0;
}

.setup .faq-card__icon{
  grid-column: 1;
  grid-row: 1;
  line-height: 1;
  margin: 0;
}

.setup .faq-card__title{
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.setup .faq-card__text{
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  line-height: 1.45;
  font-weight: 600;
}

.setup .back-row{
  margin-top: 14px;
}

.setup .back-row .btn{
  width: 100%;
  justify-content: center;
}

/* мелкая мобилка */
@media (max-width: 420px){
  .setup .step-card{ padding: 14px; }
  .setup .step-badge{ min-width: 52px; }
}

/* Шаг 2 — без общего фона, как в шаге 1 */
.setup .step-card .info-box{
  background: transparent;
  border: none;
  padding: 0;
}

.setup .step-card .kpi-grid{
  margin-top: 4px;
}
