/* SMTP for CRM — lean layout (hosting-family structure, not LMS clone) */

.so-page-smtp-for-crm .soc-hero {
  min-height: min(760px, 100vh);
  padding: 120px 0 64px;
}

.soc-hero__layout {
  align-items: center;
}

.soc-hero .so3-hero__sub {
  max-width: 36ch;
}

.soc-hero-art {
  justify-self: end;
  width: min(100%, 480px);
  padding: 22px 22px 18px;
  border-radius: var(--so3-r-panel, 24px);
  background: linear-gradient(165deg, rgba(55, 55, 85, 0.72) 0%, rgba(38, 38, 64, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-20px);
}

.soc-hero-art__flow {
  display: grid;
  grid-template-columns: 92px 28px minmax(88px, 1fr) 28px 104px;
  align-items: center;
  gap: 0 4px;
}

.soc-hero-art__crm,
.soc-hero-art__inbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px 14px;
  border-radius: 16px;
  background: rgba(34, 34, 59, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.soc-hero-art__crm {
  min-height: 168px;
}

.soc-hero-art__inbox {
  align-items: center;
  justify-content: center;
  min-height: 132px;
  color: #fff;
}

.soc-hero-art__inbox .so3-ico {
  color: #cc75ff;
}

.soc-hero-art__caption {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.soc-hero-art__row {
  display: block;
  height: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.soc-hero-art__row--active {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  color: #fff;
  background: rgba(129, 87, 246, 0.28);
  border: 1px solid rgba(225, 117, 255, 0.55);
  box-shadow: 0 0 16px rgba(129, 87, 246, 0.28);
}

.soc-hero-art__smtp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.soc-hero-art__smtp-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #9b6cff 0%, #8157f6 55%, #5b35c9 100%);
  box-shadow: 0 0 0 6px rgba(129, 87, 246, 0.18), 0 0 36px rgba(193, 93, 224, 0.45);
}

.soc-hero-art__arrow {
  height: 2px;
  background: linear-gradient(90deg, #c55de0 0%, #7f56f6 100%);
  border-radius: 2px;
  position: relative;
}

.soc-hero-art__flow > .soc-hero-art__arrow:nth-child(2) {
  transform: translateX(15px);
}

.soc-hero-art__flow > .soc-hero-art__arrow:nth-child(4) {
  transform: translateX(-15px);
}

.soc-hero-art__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #7f56f6;
  border-top: 2px solid #7f56f6;
  transform: translateY(-50%) rotate(45deg);
}

.soc-hero-art__return {
  height: 28px;
  margin: 4px 46px 0 46px;
  border: 0;
  border-bottom: 1.5px dashed rgba(225, 117, 255, 0.45);
  border-left: 1.5px dashed rgba(225, 117, 255, 0.45);
  border-right: 1.5px dashed rgba(225, 117, 255, 0.45);
  border-radius: 0 0 16px 16px;
}

.soc-hero-art__status {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.soc-hero-art__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.soc-hero-art__chip--ok {
  color: #32ff7e;
  background: rgba(50, 255, 126, 0.12);
  border: 1px solid rgba(50, 255, 126, 0.35);
}

.soc-hero-art__chip--fail {
  color: #ff8a8a;
  background: rgba(212, 79, 79, 0.14);
  border: 1px solid rgba(212, 79, 79, 0.4);
}

@media (max-width: 900px) {
  .soc-hero-art {
    justify-self: stretch;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .so-page-smtp-for-crm .soc-hero {
    min-height: auto;
    padding: 96px 0 48px;
  }

  .soc-hero-art__flow {
    grid-template-columns: 1fr 20px 72px 20px 1fr;
  }

  .soc-hero-art__crm,
  .soc-hero-art__inbox {
    min-height: 120px;
  }

  .soc-hero-art__smtp-node {
    width: 56px;
    height: 56px;
  }
}

.soc-perks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.soc-bitrix {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px 40px;
  align-items: center;
  padding: 36px 40px;
  border-radius: var(--so3-r-card, 20px);
  background: linear-gradient(135deg, #373755 0%, #22223b 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(129, 87, 246, 0.18);
}

.soc-bitrix__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 34rem;
}

.soc-bitrix h2 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  color: #fff;
}

.soc-bitrix p {
  margin: 0;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.45;
}

.soc-bitrix__art {
  justify-self: end;
  width: 100%;
  max-width: 420px;
}

.soc-bitrix__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.soc-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 20px 28px;
}

.soc-case h2 {
  flex: 1 1 auto;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.soc-case .so3-btn {
  flex: 0 0 auto;
}

/* 3-step timeline: tighter than default 4/5-col stretch */
.som-timeline--3 {
  max-width: 860px;
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px 24px;
}

.som-timeline--3::before {
  left: 16%;
  right: 16%;
}

.som-timeline--3 .som-timeline__body {
  max-width: 220px;
}

.som-form__field textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--so3-border, #e7e7e7);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: inherit;
  line-height: 1.45;
  resize: vertical;
}

@media (max-width: 960px) {
  .soc-perks {
    grid-template-columns: 1fr 1fr;
  }

  .soc-bitrix {
    grid-template-columns: 1fr;
    padding: 32px 28px;
  }

  .soc-case {
    padding: 20px 28px;
  }

  .soc-bitrix__art {
    justify-self: center;
    order: -1;
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .soc-perks {
    grid-template-columns: 1fr;
  }

  .soc-bitrix {
    padding: 28px 22px;
  }

  .soc-case {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
  }

  .soc-bitrix__copy {
    max-width: none;
  }

  .soc-bitrix p {
    max-width: none;
  }
}
