/* Автопостинг и закрытые группы — общий блок лендингов /promo и /promo/first200 */

.autopost-section {
  --ap-purple: #6a03be;
  --ap-purple-soft: #f3e9ff;
  --ap-text: #16141c;
  --ap-muted: #5c5666;
  background: #fff;
}

.autopost-section img {
  border-radius: 0;
}

.autopost-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px 40px;
  align-items: center;
}

.autopost-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ap-text);
}

.autopost-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.autopost-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.autopost-copy h2 span {
  color: var(--ap-purple);
}

.autopost-lead {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--ap-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.autopost-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.autopost-features li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.autopost-check {
  display: grid;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  place-items: center;
  border-radius: 50%;
  background: var(--ap-purple);
  color: #fff;
  flex: 0 0 auto;
}

.autopost-check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.autopost-features strong {
  display: block;
  color: var(--ap-text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.autopost-features span {
  display: block;
  margin-top: 4px;
  color: var(--ap-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.autopost-visual {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.autopost-apps {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.autopost-app {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--ap-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.autopost-app__icon {
  width: 72px;
  height: 72px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(22, 20, 28, 0.12);
}

.autopost-app__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.autopost-app__icon--tg {
  border-radius: 50%;
  background: #2aabee;
}

.autopost-app__icon--max {
  border-radius: 18px;
  background: transparent;
}

.autopost-phone-img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 18px 32px rgba(22, 20, 28, 0.16));
}

.autopost-flow {
  margin-top: 42px;
  padding: 28px 24px 26px;
  border-radius: 22px;
  background: #f6f4f8;
  box-shadow: 0 10px 30px rgba(22, 20, 28, 0.05);
}

.autopost-flow h3 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.autopost-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ap-step;
}

.autopost-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.autopost-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(50% + 28px);
  width: calc(100% - 36px);
  height: 0;
  border-top: 2px dotted #c4a3e4;
}

.autopost-step__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(106, 3, 190, 0.1);
  color: var(--ap-purple);
}

.autopost-step__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.autopost-step__icon--pay {
  color: #2563eb;
}

.autopost-step__icon--bot {
  background: #22c55e;
  color: #fff;
}

.autopost-step__icon--lock {
  color: #2563eb;
}

.autopost-steps p {
  margin: 0;
  max-width: 150px;
  color: var(--ap-text);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .autopost-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .autopost-visual {
    order: -1;
  }

  .autopost-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .autopost-steps li {
    grid-template-columns: 46px 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
  }

  .autopost-steps li:not(:last-child)::after {
    top: calc(100% + 2px);
    left: 22px;
    width: 0;
    height: 16px;
    border-top: 0;
    border-left: 2px dotted #c4a3e4;
  }

  .autopost-steps p {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .autopost-apps {
    gap: 18px;
  }

  .autopost-app__icon {
    width: 60px;
    height: 60px;
  }

  .autopost-app__icon--max {
    border-radius: 14px;
  }
}
