.head {
  position: relative;
  margin-bottom: 0;
  padding-top: 2rem;
  margin-top: 0;
  padding-bottom: 6rem;

  & .head-content {
    max-width: calc(312px + 25%);
    margin-bottom: 3rem;

    & p {
      color: #cccccc;
      line-height: 24px;
      font-weight: 300;
    }

    & h2 {
      color: #cccccc;
      font-size: 1rem;
      line-height: 24px;
      font-weight: 300;
    }

    & .case-labels--hero {
      list-style: none;
      padding: 0;
      margin: 1rem 0 0;
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;

      & li {
        font-size: 13px;
        line-height: 18px;
        color: #e6e6e6;
        border: 1px solid #4d4d4d;
        border-radius: 999px;
        padding: 0.25rem 0.625rem;
        background: rgba(255, 255, 255, 0.04);
      }
    }
  }

  & img {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translateY(24%);
    width: auto;
    height: clamp(286px, 37vw, 473px);
    max-width: min(62%, 836px);
    object-fit: contain;
    animation: levitate 3s ease-in-out infinite;
  }

  & img.case-hero-image.is-landscape {
    right: -4%;
    width: min(62%, 836px);
    height: auto;
    max-height: 473px;
  }

  & img.case-hero-image.is-portrait {
    width: auto;
    max-width: min(37%, 418px);
    height: clamp(308px, 44vw, 572px);
    max-height: 572px;
  }

  @media (max-width: 1262px) {
    & img {
      transform: translateY(28%);
      right: 0;
      max-width: min(59%, 704px);
      height: clamp(253px, 33vw, 374px);
    }

    & img.case-hero-image.is-landscape {
      right: -3%;
      width: min(59%, 704px);
      max-height: 374px;
    }

    & img.case-hero-image.is-portrait {
      max-width: min(33%, 352px);
      height: clamp(286px, 37vw, 462px);
      max-height: 462px;
    }
  }
  @media (max-width: 900px) {
    padding-bottom: 7.5rem;

    & h2 {
      font-size: 1.5rem;
    }

    & img {
      transform: translateY(30%);
      right: 0;
      max-width: min(66%, 572px);
      height: clamp(231px, 37vw, 297px);
    }

    & img.case-hero-image.is-landscape {
      right: -2%;
      width: min(66%, 572px);
      max-height: 297px;
    }

    & img.case-hero-image.is-portrait {
      max-width: min(42%, 275px);
      height: clamp(264px, 48vw, 374px);
      max-height: 374px;
    }
  }

  @media (max-width: 735px) {
    padding-bottom: 11rem;

    & img {
      height: auto;
      max-height: 253px;
      max-width: min(88%, 396px);
      right: 50%;
      transform: translate(50%, 38%);
    }

    & img.case-hero-image.is-landscape {
      width: min(88%, 396px);
      max-height: none;
    }

    & img.case-hero-image.is-portrait {
      width: auto;
      max-width: min(57%, 242px);
      max-height: 286px;
    }
  }
}

.tags-section {
  margin-block: 0;

  & .tags {
    margin-inline: 0;
    max-width: 50%;
    align-self: flex-start;
    padding-inline: 0;

    @media (max-width: 735px) {
      max-width: 100%;
    }
  }
}

.about {

  & .about__content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;

    @media (max-width: 1201px) {
      justify-content: center;
    }

    & .text-container {
      display: flex;
      flex-direction: column;
      gap: 3.75rem;
      max-width: 506px;

      font-weight: 300;
      line-height: 24px;

      @media (max-width: 1201px) {
        max-width: 612px;
      }

      & p {
        font-weight: 300;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0%;
        margin-block: 0 0.5rem;

        & strong {
          font-weight: 600;
        }
      }
    }

    & .images-container {
      display: flex;
      justify-content: end;
      flex-wrap: wrap;
      gap: 1rem;
      max-width: 612px;

      @media (max-width: 647px) {
        justify-content: center;
      }

      img {
        max-height: 407.0827331542969px;
        max-width: 506px;

        @media (max-width: 647px) {
          max-height: 212.9244842529297px;
          max-width: 327px;
        }
      }
    }
  }

  & p {
    margin-block: 0;
    font-weight: 300;
    line-height: 24px;
  }

  & a {
    display: flex;
    width: fit-content;
    align-items: end;
    
    font-weight: 500;
    line-height: 24px;
    text-decoration: underline;
    color: #666666;
    transition: 0.3s ease;

    &:hover {
      color: #333333;
      text-decoration: none;

      & .arrow-right {
        background-color: #333333;
      }
    }

    & .arrow-right {
      background-color: #666666;
      margin-left: 0.5rem;
    }
  }
}

.achievements {
  display: flex;
  gap: 2rem;

  @media (max-width: 1050px) {
    flex-direction: column;
    padding-inline: 0;

    order: 1;
  }

  @media (max-width: 1200px) {
    margin-bottom: 80px;
  }

  /* & .achievements-images {
    display: flex;
    width: 612px;
    padding-inline: 5%;
    gap: 1.5rem;
    margin-top: 30px;

    @media (max-width: 1050px) {
      order: 2;

      overflow: hidden;
      width: auto;
      align-self: center;
      padding-inline: 0%;
    }
  }

  & .achievements-images-сolumn {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    transform: rotateZ(10deg);
    transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
    will-change: transform, filter, opacity;

    &.animation-hidden {
      transform: translateX(-100%);
      filter: blur(40px);
      opacity: 0;
    }

    &.animation-show {
      filter: blur(0);
      opacity: 1;
    }

    &:nth-of-type(1) {
      margin-top: 65px;
      transition-delay: 0.2s;
    }

    & img {
      object-fit: cover;
      width: 100%;
      border-radius: 8px;
      border: 1px solid #333333;
      transform: skewY(-8.5deg);
      transition: transform 0.3s ease-in-out;
    }

    &.desktop {
      & img {
        width: 240px;
        height: 150px;

        @media (max-width: 1050px) {
          width: 100%;
          height: auto;
          aspect-ratio: 8/5;
        }
      }
    }
    &.mobile {
      & img {
        width: 96px;
        height: 208px;

        @media (max-width: 1050px) {
          width: 100%;
          height: auto;
          aspect-ratio: 8/5;
        }
      }
    }
  } */

  & .achievements-images {
    display: flex;
    width: 612px;
    padding-inline: 5%;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;

    @media (max-width: 1050px) {
      order: 2;
      /* overflow: hidden; */
      width: 100%;
      align-self: center;
      padding-inline: 0%;
    }

    & img {
      width: 100%;
      height: fit-content;
      max-width: 100%;
      max-height: 450px;
      object-fit: contain;
      /* transform: rotateZ(10deg) skewY(-8.5deg); */
      transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
      will-change: transform, filter, opacity;
      border-radius: 8px;
      /* border: 1px solid #333333; */

      &.animation-hidden {
        transform: translateX(-100%);
        filter: blur(40px);
        opacity: 0;
      }
  
      &.animation-show {
        filter: blur(0);
        opacity: 1;
      }

      @media (max-width: 1050px) {
        max-width: 80%;
        max-height: 400px;
      }
    }
  }

  & .achievements-content {
    flex: 1;

    @media (max-width: 1050px) {
      padding-inline: 1.5rem;
    }

    & ul {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;

      list-style: none;

      & li {
        font-weight: 300;
        position: relative;

        &.animation-left-to-right {
          transition: 0.5s ease, opacity 1s ease;

          &.animation-hidden {
            transform: translateX(-50%);
          }
        }

        &:before {
          position: absolute;
          content: '';
          width: 24px;
          height: 24px;
          -webkit-mask-size: cover;
          mask-size: cover;
          -webkit-mask-image: url("../../img/arrow-right.svg");
          mask-image: url("../../img/arrow-right.svg");
          background: linear-gradient(180deg, #8039E5 0%, #B939E5 50%, #E539BD 100%);
          left: -40px;
          transform: translateY(-15%);
        }
      }
    }
    & .contact-btn {
      margin-top: 60px;
      @media (max-width: 1050px) {
        display: none;
      }
    }
  }

  & > .contact-btn {
    display: none;

    @media (max-width: 1050px) {
      order: 3;
      margin-top: 1rem;
      display: flex;
      align-self: center;
      margin-inline: 5%;
    }
  }
}

.review-section {
  margin-bottom: 160px;

  @media (max-width: 1050px) {
    margin-bottom: 120px;
  }

  & .review {
    max-width: 400px;
    height: auto;
    margin-inline: auto;
    transition: 1s ease;

    &.animation-hidden {
      opacity: 0;
      filter: blur(20px);
      transform: translateY(-50%);
    }

    &.animation-show {
      opacity: 1;
      filter: blur(0);
      transform: translateY(0);
    }

    & .review__content:before {
      display: none;
    }
  }
}

.case-item {
  color: white;
}