/* Version 30: migration process on the planning page. */
.migration-section {
  color: #ffffff;
  background: #064f63;
}

.migration-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 40px;
}

.migration-heading .section-label {
  margin-bottom: 22px;
  color: #a4e2ed;
  letter-spacing: 0;
}

.migration-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.migration-heading h2 em {
  color: #a4e2ed;
  font-style: normal;
}

.migration-heading > p {
  max-width: 480px;
  margin: 0 0 4px;
  color: #d7e9ed;
  font-size: 18px;
  line-height: 1.65;
}

.migration-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.migration-step {
  --step-tint: #e0f1f5;
  display: flex;
  min-width: 0;
  overflow: hidden;
  color: #123b47;
  border-radius: 6px;
  background: #ffffff;
  flex-direction: column;
}

.migration-step--2 { --step-tint: #f5eacb; }
.migration-step--3 { --step-tint: #deeee5; }

.migration-step__visual {
  position: relative;
  height: 214px;
  padding: 22px 26px 14px;
  background: var(--step-tint);
}

.migration-step__phase {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.migration-step__phase > span {
  color: #39606a;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.migration-step__phase strong {
  color: #123b47;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.migration-device {
  position: relative;
  height: 142px;
}

.migration-device > img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  filter: drop-shadow(0 12px 10px rgba(18, 59, 71, 0.13));
  transition: transform 200ms ease;
}

.migration-device > span {
  position: absolute;
  right: 0;
  bottom: 7px;
  opacity: 0.6;
}

.migration-transfer {
  display: grid;
  grid-template-columns: 70px minmax(20px, 1fr) 70px;
  align-items: center;
  gap: 16px;
  height: 146px;
}

.migration-transfer > div {
  display: grid;
  justify-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.migration-transfer > div > img {
  width: 38px;
  height: 38px;
}

.migration-transfer__line {
  position: relative;
  height: 2px;
  margin-top: -26px;
  background: #9a7937;
}

.migration-transfer__line::after {
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #9a7937;
  border-right: 2px solid #9a7937;
  content: "";
  transform: rotate(45deg);
}

.migration-checks {
  display: grid;
  gap: 10px;
  padding-top: 22px;
}

.migration-checks > span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.migration-checks img {
  width: 22px;
  height: 22px;
}

.migration-step__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 26px 24px;
}

.migration-step__content h3 {
  margin: 0 0 14px;
  color: #123b47;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.migration-step__content p {
  margin: 0 0 26px;
  color: #52656b;
  font-size: 16px;
  line-height: 1.65;
}

.migration-step__result {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #dfe8eb;
}

.migration-step__result > span {
  color: #52656b;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.migration-step__result > strong {
  color: #123b47;
  font-size: 14px;
  font-weight: 600;
}

.migration-assurance {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #538494;
}

.migration-assurance > img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  filter: invert(1);
}

.migration-assurance strong {
  color: #ffffff;
  font-size: 17px;
  letter-spacing: 0;
}

.migration-assurance p {
  margin: 4px 0 0;
  color: #d7e9ed;
  font-size: 14px;
}

.migration-assurance > a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-left: auto;
  padding: 12px 0;
  color: #ffffff;
  border-bottom: 1px solid #a4e2ed;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.migration-assurance > a:hover {
  color: #a4e2ed;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .migration-step:hover .migration-device > img {
    transform: translateY(-5px);
  }
}

@media (max-width: 1180px) {
  .migration-heading { gap: 28px; }
  .migration-heading h2 { font-size: 42px; }
  .migration-step__content h3 { font-size: 24px; }
  .migration-step__content { padding: 24px 20px; }
  .migration-step__visual { padding-inline: 20px; }
}

@media (max-width: 900px) {
  .migration-heading { grid-template-columns: 1fr; gap: 20px; }
  .migration-heading > p { max-width: 640px; }
  .migration-steps { grid-template-columns: 1fr; gap: 18px; }
  .migration-step { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .migration-step__visual { height: 100%; min-height: 214px; }
  .migration-assurance { flex-wrap: wrap; align-items: flex-start; }
  .migration-assurance > div { flex: 1; }
  .migration-assurance > a { margin-left: 50px; }
}

@media (max-width: 540px) {
  .migration-heading h2 { font-size: 34px; }
  .migration-heading > p { font-size: 16px; }
  .migration-step { display: flex; }
  .migration-step__visual { height: 196px; min-height: 0; }
  .migration-step__content { padding: 24px; }
  .migration-step__content h3 { font-size: 26px; }
  .migration-device > img { height: 138px; }
  .migration-transfer { height: 130px; }
  .migration-assurance { gap: 14px; }
  .migration-assurance > a { margin-left: 0; flex-basis: 100%; }
}
