.command_foto {
  width: 100%;
  object-fit: contain;
  /* border-radius: 20px; */
}

.projects-item {
  padding: 0;
  justify-content: space-between;
  overflow: hidden;
}

.projects-item_text_contain {
  padding: 20px 15px;
  background-color: #fff;
  border-radius: 0 0 20px 20px;
  opacity: 1;
  color: black;
  bottom: 0;
  right: 0;
  left: 0;
  position: absolute;
  /* border-top: 1px solid #787878; */
  padding-top: 10%;
  max-height: 30%;
  height: 29%;
}

.projects-item_text_contain .projects-item_span {
  background-color: #162950;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.projects-item_text_contain .projects-item_title {
  color: black;
  font-weight: 500;
}

@media (min-width: 1500px) {
  .projects-item_text_contain .projects-item_title {
    font-size: 26px;
    line-height: 1.2;
  }
}

@media (max-width: 1500px) {
  .projects-item_text_contain .projects-item_title {
    font-size: 18px;
    line-height: 1.2;
  }
}

@media (max-width: 1212px) {
  .projects-item_title {
    font-size: 17px;
    line-height: 20px;
  }
}
/* .projects-item:hover .projects-item_text_contain,
.projects-item:hover .projects-item_head_img {
  opacity: 0;
} */

.projects-item_head_img {
  height: 100%;
  background-color: #fff;
  overflow: hidden;
  opacity: 1;
  z-index: 10;
  border-bottom: 1px solid #b0b0b0;
  height: 60%;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  display: flex;
}

.projects-item_head_img img {
  /* width: 100%; */
  /* object-position: bottom; */
  object-fit: contain;
  object-position: center;
  object-fit: cover;
  height: 100%;
}

@media (max-width: 940px) {
  .projects-item_title {
    font-size: 25px;
    line-height: 30px;
  }

  .projects-item_text_contain .projects-item_span {
    font-size: 14px;
    line-height: 14px;
  }
  .projects-item_text_contain {
    /* padding: 11px 15px;
    padding-top: 40px; */
  }
}

@media (max-width: 800px) {
  .projects-item_text_contain .projects-item_title {
    font-size: 16px;
    line-height: 18px;
  }

  .projects-item_text_contain .projects-item_span {
    font-size: 14px;
    line-height: 14px;
  }
}

@media (max-width: 600px) {
  .projects-item_text_contain .projects-item_title {
    font-size: 14px;
    line-height: 18px;
    /* height: 43px; */
  }

  .projects-item_text_contain .projects-item_title {
    /* padding: 10px; */
  }

  .projects-item_text_contain .projects-item_span {
    font-size: 12px;
    line-height: 14px;
    margin-bottom: 9px;
    padding: 1px 4px;
  }
  .projects-item {
    height: 57vw;
  }
}

@media (max-width: 400px) {
  .projects-item_text_contain .projects-item_span {
    font-size: 11px;
    line-height: 14px;
    margin-bottom: 6px;
    padding: 1px 4px;
  }

  .projects-item_text_contain .projects-item_title {
    font-size: 9px;
    line-height: 9px;
  }

  .projects-item_text_contain {
    padding: 9px 9px;
    padding-top: 20px;
  }
}

@media (max-width: 940px) {
  .projects-item_head_img {
    height: 60%;
  }
}

@media (max-width: 700px) {
  .projects-item_head_img {
    height: 53%;
  }

  .projects-item_text_contain {
    height: 35%;
    max-height: 35%;
    padding-top: 30px;
  }
}

@media(max-width: 450px) and (min-width: 400px) {
  .projects-item_text_contain {
    height: 30%;
  }
  .projects-item_text_contain .projects-item_title {
    font-size: 14px;
    line-height: 1;
  }
}

.posmotret {
  z-index: 100;
}

.projects-item_0 {
  opacity: 0;
  user-select: none;
}

@media (max-width: 968px) {
  .projects-item_0 {
    display: none;
  }
}

@media (min-width: 1229px) {
  .main_bg_box_img {
    right: -381px;
    /* top: -166px; */
  }
  #span_main_window.span_main_window-adel-2 {
    bottom: 17%;
  }
}

#span_main_window {
  display: block;
}
#span_main_window.span_main_window-dinislam-2 {
  bottom: 15%;
}
#span_main_window.span_main_window-adel-2 {
  bottom: 18%;
}

.main_bg_box_img p {
  bottom: 20%;
}

@media (max-width: 700px) {
  .main_bg_box_img p {
    bottom: -10px;
  }
  #span_main_window.span_main_window-dinislam-2 {
    bottom: -20px;
  }
  #span_main_window.span_main_window-adel-2 {
    bottom: -20px;
  }
}
@media (max-width: 700px) {
  .main_bg_box_img {
    padding-top: 20px;
  }
  .main_bg_box_img-adel {
    padding-top: 0;
  }
  .main_bg_box_img img:last-child {
    transform: scale(1.6);
  }
}

/* .projects-item:hover .projects-item_span {
  display: block;
}

.projects-item:hover .projects-item_title {
  display: block;
}

.projects-item:hover .posmotret {
  display: none;
} */
.projects-item {
  /* border: 1px solid transparent; */
  transition: 0.3s;
}
.projects-item:hover {
  /* border: 1px solid #fff; */
  /* animation-name: blinker;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(1, 0, 0, 1);
  animation-duration: 2s;
  -webkit-animation-name: blinker;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: cubic-bezier(1, 0, 0, 1);
  -webkit-animation-duration: 2s; */
  box-shadow: 0px 0px 18px -2px rgba(255, 255, 255, 0.5);
}

/* @keyframes blinker {
  from {
    border: 1px solid #fff;;
  }
  to {
    border: 1px solid transparent;;
  }
}

@-webkit-keyframes blinker {
  from {
    border: 1px solid #fff;;
  }
  to {
    border: 1px solid transparent;;
  }
} */
/* .projects-item:hover .projects-item_text_contain, .projects-item:hover .projects-item_head_img{
  opacity: 1;
} */

.projects-item .posmotret {
  display: flex;
}

.projects-item {
  max-height: 460px;
}

@media (min-width: 1750px) {
  .projects-item_head_img img {
    width: 100%;
    object-fit: contain;
    object-position: top;
    object-fit: cover;
  }

  .projects-item_head_img {
    align-items: flex-start;
  }
}


.command_foto_contain{
  padding-top: 50px;
  padding-bottom: 50px;
  border-radius: 20px;
  /* background-color: #fff; */
}
/* .restal_swiper_logo {
  background: url(/img/logorest.png) center center no-repeat;
  background-size: contain;
  height: 50px;
} */

@media(max-width: 700px){
  .command_foto_contain{
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .restal_swiper_logo {
    display: none;
  }
}