.blocks-image-text__container {
  display: flex;
  padding: 48px 100px;
  z-index: 1;
  max-width: 1192px;
  margin: 0 auto;
  position: relative;
  flex-direction: column;
  z-index: 3;
  gap: 64px;

  @media (max-width: 1400px) {
    padding: 48px 50px;
  }
  @media (max-width: 1000px) {
    padding: 32px 16px;
  }
  @media (max-width: 768px) {
    flex-direction: column;
    gap: 0;
  }
}

.blocks-image-text__image {
  width: 252px;
  min-width: 252px;
  img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
  }
}

.blocks-image-text__header {
  display: flex;
  align-items: center;
  position: relative;
  padding: 32px 0;
  gap: 115px;
  &.left {
    flex-direction: row-reverse;
    @media (max-width: 768px) {
      flex-direction: column;
    }
  }
  @media (max-width: 768px) {
    flex-direction: column;
  padding:  0;

  gap: 32px;

  }
  &.light {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      color: white;
      margin-bottom: 8px;
    }
    p,
    ul li {
      color: #ffffffbf;
    }
    span.subheader {
      color: rgba(255, 255, 255, 0.5);
      svg {
        path {
          fill: rgba(255, 255, 255, 0.5);
        }
      }
    }
  }
  @media (max-width: 768px) {
    width: 100%;
    height: auto;
    min-height: 0;
  }
  img {
    width: 100%;
    max-width: 276px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 16px;
    @media (max-width: 768px) {
      position: relative;
      object-position: top;
      max-height: 600px;
      margin-top: 0;
    }
  }
}
.blocks-image-text__points {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  @media (max-width: 768px) {
  margin-top: 32px;
  }
}
.blocks-image-text__content {
  &.light {
    .point {
      border: 1px solid rgba(255, 255, 255, 0.15);

      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      p.title {
        color: white !important;
      }
      div.desc {
        p,
        ul li {
          color: #ffffffbf !important;
          margin-bottom: 0;
        }
      }
    }
  }
  .point {
    display: flex;
    gap: 8px;
    flex-direction: column;
    border: 1px solid rgba(25, 19, 37, 0.15);
    padding: 24px;
    border-radius: 4px;
    width: calc(33.33% - 11px);
    min-height: 204px;
    @media (max-width: 900px) {
      width: calc(50% - 8px);
    }
    @media (max-width: 600px) {
      width: 100%;
      min-height: 180px;
      gap: 48px;
    }
    p.title {
      color: #191325;
      font-size: 19px;
      font-weight: 600;
      margin-bottom: 8px;
      @media (max-width: 768px) {
        font-size: 16px;
      }
      @media (max-width: 768px) {
        div.desc {
          p {
            font-size: 14px;
          }
        }
      }
    }
  }
  .point-last {
    width: calc(33.33% - 11px);
    padding: 24px;
    padding-bottom: 80px;
    text-decoration: none;
    min-height: 204px;
    position: relative;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    @media (max-width: 900px) {
      width: calc(50% - 8px);
    }
    @media (max-width: 600px) {
      width: 100%;
      min-height: 0;
      gap: 48px;
    }
    &:hover {
      .offer-page__item-icon {
        height: 120px;
        width: 120px;
      }
      &::after {
        opacity: 1;
      }
      &::before {
        background-color: #191325;
      }
      svg {
        path {
          &:nth-child(2) {
            fill: #ff924f;
          }
        }
      }
    }
    &::after {
      content: "";
      background: linear-gradient(198deg, #c8ff50 0, #e5c64f 53%, #7b4fff 100%);
      position: absolute;
      left: -1px;
      top: -1px;
      width: calc(100% + 2px);
      height: calc(100% + 2px);
      z-index: 0;
      opacity: 0;
      transition: 0.4s;
    }
    &::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: #251f30;
      z-index: 1;
      transition: 0.4s;
    }
    .point__text {
      z-index: 2;
    }
    p.title {
      color: #ffffff;
      font-size: 19px;
      font-weight: 600;
      margin-bottom: 8px;

      font-family: var(--mainfont);
    }

    svg {
      position: absolute;
      right: 24px;
      bottom: 32px;
      z-index: 1;
      path {
        transition: 0.4s;
      }
    }
  }
}

.blocks-image-text.is-prep .blocks-image-text__image,
.blocks-image-text.is-prep .blocks-image-text__content,
.blocks-image-text.is-prep .blocks-image-text__cats .cat,
.blocks-image-text.is-prep .blocks-image-text__content .button {
  opacity: 0;
  transform: translateY(30px);
}

.blocks-image-text.is-prep.left .blocks-image-text__image {
  transform: translateX(-40px) scale(0.96);
}
.blocks-image-text.is-prep.right .blocks-image-text__image {
  transform: translateX(40px) scale(0.96);
}

.blocks-image-text.animate-in .blocks-image-text__image {
  animation: tiImageIn 0.8s cubic-bezier(0.22, 0.65, 0.25, 1) both;
}
.blocks-image-text.animate-in .blocks-image-text__content {
  animation: tiFadeUp 0.7s cubic-bezier(0.22, 0.65, 0.25, 1) 0.2s both;
}
.blocks-image-text.animate-in .blocks-image-text__cats .cat {
  animation: tiFadeUp 0.6s cubic-bezier(0.22, 0.65, 0.25, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms + 0.35s);
}
.blocks-image-text.animate-in .blocks-image-text__content .button {
  animation: tiFadeUp 0.6s cubic-bezier(0.22, 0.65, 0.25, 1) 0.6s both;
}

@keyframes tiImageIn {
  0% {
    opacity: 0;
    transform: translateX(-40px) scale(0.96);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}
@keyframes tiFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blocks-image-text.animate-in .blocks-image-text__image,
  .blocks-image-text.animate-in .blocks-image-text__content,
  .blocks-image-text.animate-in .blocks-image-text__cats .cat,
  .blocks-image-text.animate-in .blocks-image-text__content .button {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
