.projects {
  background-color: #000;
  padding: 50px 0 200px;
  z-index: 1;
  position: relative;
  overflow: hidden;
}
.projects-wrapper {
  color: #dedede;
}
.projects-wrapper__header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 33px;
}
.projects-items {
  display: flex;
  flex-direction: column;
  gap: 150px;
}
.projects__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-right: 15px;
}
.projects__head .social {
  scale: 1;
}
.projects__head .social__link svg use {
  transform-origin: 71%;
  -webkit-transform-origin-x: 71%;
}
.projects-item {
  position: relative;
  background-color: rgba(128, 128, 128, 0.3);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid #808080;
  border-radius: 15px;
  padding: 30px 65px 30px 50px;
}
.projects-item:nth-child(even) {
  flex-flow: row-reverse;
}
.projects-item:nth-child(even) .projects-item__figure {
  transform: scale(-1, -1);
  left: 45%;
  animation-duration: 70s;
}
.projects-item:nth-child(even) .projects-item-full {
  margin-left: 0;
}
.projects-item:nth-child(even) .projects-item-full__svg {
  order: -1;
  transform: scaleX(-1);
}
.projects-item-full {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  transition: scale 0.5s;
}
.projects-item-full:hover {
  scale: 1.05;
}
.projects-item__photo {
  max-width: 800px;
  display: flex;
  margin-bottom: -30px;
  flex-direction: column;
  justify-content: space-between;
}
.projects-item__photo img {
  height: 100%;
  width: 100%;
  border-radius: 10px 10px 0 0;
  margin-right: 65px;
  -o-object-fit: contain;
  object-fit: contain;
}
.projects-item__info {
  max-width: 525px;
}
.projects-item__title {
  font-family: "Ermilov";
  font-weight: bold;
  font-size: clamp(26px, 5vw, 50px);
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 34px;
}
.projects-item__subtitle {
  font-family: "Ermilov";
  font-weight: bold;
  font-size: clamp(18px, 5vw, 36px);
  text-transform: uppercase;
  margin-bottom: 55px;
}
.projects-item__descr {
  font-size: clamp(14px, 3vw, 16px);
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 100px;
}
.projects-item__tags {
  display: flex;
  gap: 30px;
}
.projects-item__figure {
  position: absolute;
  z-index: -1;
  left: -10%;
  top: 0;
  filter: blur(2px);
  animation: upAndDown 50s linear infinite alternate;
}
.projects-item__dev {
  display: flex;
  gap: 30px;
  margin-bottom: 15px;
}
.projects-item__dev-child {
  border: 1px solid rgb(240, 31, 1);
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
  align-items: center;
  border-radius: 33px;
}
.projects-item__dev-child p {
  font-size: 16px;
  text-transform: uppercase;
  padding: 5px 10px 5px 5px;
}
.projects-item__dev-child--bitrix {
  border: 1px solid rgb(240, 31, 1);
}
.projects-item__dev-child--react {
  border: 1px solid rgb(0, 194, 255);
}
.projects-item__tags {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  text-transform: uppercase;
}
@media screen and (max-width: 1700px) {
  .projects-items {
    gap: 90px;
    align-items: center;
  }
  .projects-item {
    width: -moz-fit-content;
    width: fit-content;
    flex-direction: column-reverse;
  }
  .projects-item__photo {
    gap: 15px;
    margin-bottom: 0;
  }
  .projects-item__photo img {
    margin-right: 0;
  }
  .projects-item__title {
    margin-bottom: 0;
  }
  .projects-item__subtitle {
    margin-bottom: 20px;
  }
  .projects-item__descr {
    margin-bottom: 50px;
  }
  .projects-item:nth-child(even) {
    flex-flow: column-reverse;
  }
}
@media screen and (max-width: 850px) {
  .projects__head .social {
    gap: 10px;
  }
  .projects__head .social__tel {
    font-size: 16px;
    min-height: 40px;
  }
  .projects__head .social__link {
    min-width: 40px;
    min-height: 40px;
  }
  .projects__head .social__link svg use {
    transform: scale(0.8);
    transform-origin: 71%;
    -webkit-transform-origin-x: 71%;
  }
}
@media screen and (max-width: 650px) {
  .projects__head {
    padding-right: 8px;
  }
  .projects__head .social {
    gap: 8px;
  }
  .projects__head .social__tel {
    font-size: 12px;
    min-height: 30px;
  }
  .projects__head .social__link {
    min-width: 30px;
    min-height: 30px;
    width: 30px;
    height: 30px;
  }
  .projects__head .social__link svg use {
    transform: scale(0.6);
    transform-origin: center;
    -webkit-transform-origin-x: 40%;
    -webkit-transform-origin-y: 40%;
  }
}
@media screen and (max-width: 520px) {
  .projects {
    padding-bottom: 50px;
  }
  .projects-items {
    gap: 50px;
  }
  .projects-item {
    padding: 20px;
  }
  .projects-item__tags {
    font-size: 12px;
  }
  .projects-item__descr {
    margin-bottom: 10px;
  }
}