/************************************************************************************************************** CASES */
.cases {
  max-width: var(--mw);
  margin: var(--block-margin);
  padding: var(--block-padding);
}

.case {
  padding-bottom: 30px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: start;
  cursor: pointer;
  color: unset;
  text-decoration: none;
}

.case_photo {
  width: 45%;
}

.case__photo {
  width: 100%;
  border-radius: var(--border-radius);
  height: 300px;
  object-position: top;
}

.case_descr {
  width: calc(55% - 20px);
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}

.case_comment {
  color: var(--advantage-text-color);
  font-style: italic;
}

@media only screen and (max-width: 1024px) {
  .case_photo {
    width: 40%;
  }

  .case__photo {
    height: 100%;
    object-fit: cover;
  }

  .case_descr {
    width: 60%;
  }
}

@media only screen and (max-width: 860px) {
  .cases {
    /*padding: var(--block-padding);*/
    padding: 0;
  }

  .case {
    flex-direction: column;
    justify-content: start;
  }

  .case_photo {
    width: 100%;
  }

  .case__photo {
    border-radius: 0;
  }

  .case_descr {
    width: calc(100% - 40px);
    padding-inline-start: 0;
    padding: var(--block-padding);
    padding-top: 0;
  }
}