.realwork-foryou-grid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 0;
}

@media (max-width: 1439px) {
  .realwork-foryou-grid {
    padding: 40px 0;
  }
}

@media (max-width: 1279px) {
  .realwork-foryou-grid {
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }
}

.container .content .realwork-foryou-img {
  border-radius: 30px;
  overflow: hidden;
  object-fit: cover;
  object-position: 15% center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 759px;
}

@media (max-width: 1279px) {
  .container .content .realwork-foryou-img {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: calc(83.8vw - 64px);
  }
}

@media (max-width: 799px){
  .container .content .realwork-foryou-img {
    height: calc(100vw - 32px);
  }
}

.realwork-foryou-info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: auto;
  max-width: 753px;
}

@media (max-width: 1279px) {
  .realwork-foryou-info {
    max-width: none;
  }
}

.realwork-foryou-card-white {
  border: 1px solid #000CB5;
  background-color: white;
  position: relative;
  padding: 32px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 3;
}

.realwork-foryou-star {
  position: absolute;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.container .content .realwork-foryou-star-1 {
  top: -70px;
  right: 0;
  height: 142px;
  width: 142px;
}

.container .content .realwork-foryou-star-2 {
  bottom: -124px;
  left: -117px;
  height: 236px;
  width: 236px;
}

@media (max-width: 1279px) {
 .container .content .realwork-foryou-star-2 {
    bottom: -86px;
    left: 30px;
    height: 120px;
    width: 120px;
  }
}

@media (hover: hover) {
  .realwork-foryou-star:hover {
    transform: scale(1.1);
  }
}

.realwork-foryou-card-blue {
  border: 1px solid #000CB5;
  background-color: #AFCCFF;
  position: relative;
  padding: 32px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}

.foryou-popup-content {
  width: 100%;
  height: 100%;
  padding: 134px 60px;
}

@media (max-width: 1279px) {
  .foryou-popup-content {
    padding: 127px 32px;
  }
}

@media (max-width: 799px) {
  .foryou-popup-content {
    padding: 117px 16px;
  }
}

.foryou-popup-content .spoiler {
  background-color: #EAEDFF;
}

.realwork-foryou {
  position: relative;
}

.realwork-foryou .realwork-bg-element {
  position: absolute;
  top: 15%;
  left: -50%;
  z-index: -1;
}

@media (max-width: 1279px) {
  .realwork-foryou .realwork-bg-element {
    top: auto;
    bottom: -63%;
    width: 180%;
    opacity: .8;
  }
}

@media (max-width: 799px) {
  .realwork-foryou .realwork-bg-element {
    display: none;
  }
}