/* Module 4 — Document management */

.manage {
  background: #fff;
}

.manage__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.manage__content {
  flex: 0 1 440px;
  text-align: right;
}

.manage__title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: #2d2e5f;
  line-height: 1.3;
  margin-bottom: 24px;
}

.manage__desc {
  font-size: 16px;
  color: #666;
  line-height: 1.85;
}

.manage__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.manage__visual-bg {
  position: relative;
  width: 100%;
  max-width: 680px;
  min-height: min(560px, 72vh);
  background: #f5f5f7;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.manage__phones {
  position: relative;
  width: min(500px, 88%);
  height: min(500px, 62vh);
}

.manage__phone {
  position: absolute;
  height: auto;
  opacity: 0;
  will-change: opacity;
}

.manage__phone--1 {
  /* left: 0;
  top: 6%; */
  left: 6%;
  top: 6%;
  width: 50%;
  z-index: 1;
}

.manage__phone--2 {
  /* right: 0;
  bottom: 6%; */
  right: 6%;
  bottom: -6%;
  /* width: 54%; */
  width: 60%;
  z-index: 2;
}

.manage.is-inview .manage__phone--1 {
  animation: managePhoneIn 0.65s ease forwards;
  animation-delay: 0.15s;
}

.manage.is-inview .manage__phone--2 {
  animation: managePhoneIn 0.65s ease forwards;
  animation-delay: 0.55s;
}

@keyframes managePhoneIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html[dir="rtl"] .manage__inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .manage__content {
  text-align: left;
}

html[dir="rtl"] .manage__visual {
  justify-content: flex-start;
}

html[dir="rtl"] .manage__phone--1 {
  left: auto;
  right: 0;
}

html[dir="rtl"] .manage__phone--2 {
  right: auto;
  left: 0;
}

@media (max-width: 1024px) {
  .manage__inner {
    flex-direction: column;
    justify-content: center;
    padding: 48px 32px;
    gap: 40px;
  }

  .manage__content {
    flex: 0 0 auto;
    max-width: 100%;
    text-align: center;
  }

  .manage__visual {
    width: 100%;
    justify-content: center;
  }

  .manage__visual-bg {
    min-height: min(440px, 50vh);
    max-width: 100%;
  }

  .manage__phones {
    width: min(360px, 92%);
    height: min(360px, 42vh);
  }

  html[dir="rtl"] .manage__inner {
    flex-direction: column;
  }

  html[dir="rtl"] .manage__content {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .manage__phones {
    width: min(300px, 95%);
    height: min(300px, 38vh);
  }
}
