/* Migration hub + ESP landings — extends home-v3.css */

/* Заголовки шагов и сроков — в одну строку (без ограничения 640px) */
.som-head--wide {
  max-width: none;
}

.som-head--wide h2 {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .som-head--wide h2 {
    white-space: normal;
  }
}

/* Единый вид kicker'ов: внутри .so3-head правило .so3-head p перебивало
   .so3-section-kicker (делало серым и крупнее) — возвращаем малый фиолетовый. */
.so3-head .so3-section-kicker {
  color: var(--so3-purple);
  font-size: 0.72rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.so3-head .so3-section-kicker--light {
  color: #cc75ff;
}

.som-hero--compact {
  min-height: auto;
  padding-bottom: clamp(48px, 6vw, 72px);
}

.som-hero--compact .so3-hero__arc,
.som-hero--compact .so3-hero__panel {
  display: none;
}

.som-hero__inner {
  padding-top: clamp(120px, 14vw, 156px);
}

.som-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.som-scope__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.som-scope__list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px 12px 44px;
  border-radius: 14px;
  background: var(--so3-soft);
  font-size: 1rem;
  line-height: 1.4;
}

.som-scope__list--yes li::before,
.som-scope__list--no li::before {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
}

.som-scope__list--yes li::before {
  content: "✓";
  color: #3d9a5f;
}

.som-scope__list--no li::before {
  content: "×";
  color: #c45c5c;
}

.som-timelines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.som-timelines__card {
  padding: 24px;
  border-radius: var(--so3-r-card);
  background: var(--so3-white);
  border: 1px solid var(--so3-border);
  box-shadow: var(--so3-shadow-soft);
}

.som-timelines__card h3 {
  margin: 0 0 8px;
  font-family: var(--so3-display);
  font-size: 1.25rem;
  width: fit-content;
  background: var(--so3-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.som-timelines__card p {
  margin: 0;
  color: var(--so3-muted);
}

.som-landings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.som-landings-head {
  max-width: none;
}

.som-landings-head h2 {
  white-space: normal;
}

.som-landings-head__l1 {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .som-landings-head__l1 {
    white-space: normal;
  }
}

.som-landings__card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 18px 16px;
  border-radius: 14px;
  background: #f4f2f8;
  border: 1px solid transparent;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.som-landings__card:hover {
  background: #ebe6f6;
  border-color: #ddd4f5;
  transform: translateY(-1px);
  box-shadow: none;
}

.som-landings__card img {
  display: block;
  max-height: 32px;
  max-width: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* SendGrid / Mailgun / AWS — больше padding в файле */
.som-landings__card--lg img {
  max-height: 44px;
  max-width: 96%;
}

/* Mandrill / Sendsay — ещё крупнее */
.som-landings__card--xl img {
  max-height: 54px;
  max-width: 98%;
}

@media (min-width: 900px) {
  .som-landings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .som-landings {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.som-why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.som-why__card {
  padding: 22px;
  border-radius: var(--so3-r-card);
  background: linear-gradient(145deg, #f7f3ff 0%, #efe8ff 55%, #f9f8fb 100%);
  border: 1px solid #e0d4ff;
  box-shadow: 0 8px 28px rgba(129, 87, 246, 0.06);
}

.som-why__card .so3-ico-box {
  background: var(--so3-grad) !important;
  color: #fff !important;
  border: none !important;
}

.som-why__card .so3-ico-box .so3-ico {
  stroke: #fff;
}

.som-why__card h3 {
  margin: 12px 0 8px;
  font-size: 1.125rem;
  white-space: nowrap;
}

.som-why__card p {
  margin: 0;
  color: var(--so3-muted);
}

/* Compare — яркая цветная врезка */
/* Врезка сравнения идёт сразу после «Зачем переезжать» — прижимаем к нему сверху */
.som-compare-band {
  padding-top: 0;
}

.som-compare-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 32px) clamp(24px, 3.5vw, 40px);
  border-radius: var(--so3-r-panel);
  background: var(--so3-grad);
  color: #fff;
  box-shadow: 0 20px 48px rgba(129, 87, 246, 0.28);
}

.som-compare-link__copy {
  min-width: 0;
}

.som-compare-link h2 {
  margin: 0 0 4px;
  color: #fff;
}

.som-compare-link p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.som-compare-link .so3-btn {
  flex-shrink: 0;
}

/* Form + trust aside */
.som-form__head {
  max-width: none;
  margin-bottom: 28px;
}

.som-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.som-trust {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  /* Верх плашки = верх первого input (пропускаем label «Ваше имя» + gap). */
  margin-top: calc(0.9375rem * 1.35 + 6px);
  /* Высота: от верха 1-го input до низа 3-го (3×50 + 2×(label+gap+16)). */
  min-height: calc(3 * 50px + 2 * (0.9375rem * 1.35 + 6px + 16px));
  box-sizing: border-box;
  /* Чуть меньше сверху / чуть больше снизу — блок выше центра, края соразмерны */
  padding: 18px 22px 22px;
  border-radius: var(--so3-r-card);
  background: linear-gradient(145deg, #f7f3ff 0%, #efe8ff 55%, #f9f8fb 100%);
  border: 1px solid #e0d4ff;
}

.som-trust h3 {
  margin: 0;
  font-family: var(--so3-display);
  font-size: 1.25rem;
  line-height: 1.2;
  text-align: center;
}

.som-trust__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0;
}

.som-trust__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #d8c9ff;
  background: #fff;
  text-decoration: none;
  color: var(--so3-text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .som-trust {
    margin-top: 0;
    min-height: 0;
  }
}

.som-form {
  max-width: none;
}

.som-form__el {
  display: grid;
  gap: 16px;
}

.som-form__field {
  display: grid;
  gap: 6px;
}

.som-form__field span {
  font-size: 0.9375rem;
  color: var(--so3-muted);
}

.som-form__field input,
.som-form__field select,
.som-form__field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #8e8d9b;
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.som-form__field select {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8e9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.som-form__field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.45;
}

.som-form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.45;
}

.som-form__check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.som-form__check a {
  color: var(--so3-purple);
}

.som-form__submit {
  width: 100%;
  margin-top: 8px;
}

.som-form__status {
  margin: 0;
  font-size: 0.9375rem;
}

.som-form__status[data-state="ok"] {
  color: #2f7a4f;
}

.som-form__status[data-state="err"] {
  color: #b33a3a;
}

@media (max-width: 900px) {
  .som-scope,
  .som-timelines,
  .som-why,
  .som-ice__inner,
  .som-form-layout {
    grid-template-columns: 1fr;
  }

  .som-ice__inner {
    grid-template-areas:
      "intro"
      "includes"
      "diagram"
      "cta";
  }

  .som-ice__diagram {
    align-self: start;
  }

  .som-why__card h3 {
    white-space: normal;
  }

  .som-compare-link {
    align-items: flex-start;
  }
}

/* Ice breaker offer */
.som-ice {
  background: linear-gradient(135deg, #f9f8fb 0%, #f3efff 100%);
}

.som-ice__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "intro    ."
    "includes diagram"
    "cta      .";
  column-gap: 40px;
  row-gap: 0;
  align-items: start;
}

.som-ice__intro {
  grid-area: intro;
}

.som-ice__cta {
  grid-area: cta;
  justify-self: start;
  margin-top: 16px;
}

.som-ice__intro h2 {
  line-height: 1.2;
}

.som-ice__sub {
  margin: 0 0 20px;
  color: var(--so3-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.som-ice__includes {
  grid-area: includes;
  margin: 0;
  padding: 18px 18px 18px 20px;
  list-style: none;
  display: grid;
  gap: 12px;
  border-radius: 16px;
  background: rgba(129, 87, 246, 0.06);
  border: 1px solid #e0d4ff;
}

.som-ice__includes li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.som-ice__includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--so3-grad);
}

.som-ice__timeline {
  margin: 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(129, 87, 246, 0.06);
  border: 1px solid #e0d4ff;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--so3-muted);
}

.som-ice__timeline strong {
  color: var(--so3-text);
}

.som-ice__diagram {
  grid-area: diagram;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-radius: var(--so3-r-panel);
  background: var(--so3-bg);
  color: var(--so3-white);
  box-shadow: var(--so3-shadow-panel);
}

.som-ice__flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.som-ice__flow span {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.som-ice__flow i {
  font-style: normal;
  opacity: 0.5;
  text-align: center;
}

.som-ice__primary {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.som-ice__flow--fallback {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.som-ice__fail {
  color: #ffb4b4;
}

.som-ice__brand {
  background: var(--so3-grad) !important;
  font-weight: 600;
}

/* Process timeline — 4 steps, brand dots */
.som-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.som-timeline::before {
  top: 27px;
  left: 12%;
  right: 12%;
}

.som-timeline li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

.som-timeline__dot {
  width: 54px !important;
  height: 54px !important;
  margin-bottom: 18px;
  border: none !important;
  background: var(--so3-grad) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(129, 87, 246, 0.28);
  display: grid !important;
  place-items: center;
  line-height: 0;
  font-size: 0;
}

.som-timeline__dot .so3-ico {
  display: block;
  margin: 0 !important;
  stroke: #fff;
}

.som-timeline__body {
  display: grid;
  gap: 6px;
  max-width: 240px;
}

.som-timeline__body strong {
  margin-bottom: 0 !important;
  font-size: 1rem !important;
  line-height: 1.3;
}

.som-timeline__body span {
  font-size: 0.875rem !important;
  line-height: 1.45 !important;
  min-height: calc(1.45em * 2);
}

@media (max-width: 900px) {
  .som-timeline {
    grid-template-columns: 1fr !important;
  }

  .som-timeline::before {
    display: none;
  }

  .som-timeline li {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 0 0 20px;
  }

  .som-timeline__dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .som-timeline__body {
    max-width: none;
  }
}
