.diag-items {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}

section.diag.section {
  margin: 0 10.7%;
  padding: 100px 0;
  background-color: #fff;
}

.diag-item.diag-item4, .diag-item.diag-item3 {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: end;
}

.diag-item.diag-item4 {
  align-items: end;
}

.diag-item.diag-item2 {
  align-items: end;
  justify-content: start;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(0, 0, 0, .3);
}

.diag-item .diag-item__title, .diag-item ul {
  width: 250px;
  color: rgba(0, 0, 0, .7);
}

.diag-item.diag-item1 {
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, .3);
}

.diag-item.diag-item3 {
  border-right: 1px solid rgba(0, 0, 0, 0.3);
}

.diag-item {
  width: calc(50% - 0.5px);
  aspect-ratio: auto;
  min-height: 327px;
}

.diag.section>div {
  background-image: url(https://dev.verbamayr.ru/img/bg-diag.svg) !important;
  background-size: 37% !important;
  background-repeat: no-repeat;
  background-position: center;
}

.diag-item .diag-item__title {
  font-size: 22px !important;
  line-height: 1.3em;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .9em;
}

.diag-item ul li {
  list-style: disc;
  list-style-position: outside;
  margin-left: 17px;
}

.diag-item ul {
  opacity: 1;
  transition: opacity .5s ease;
}

section.diag.section {
  margin: 0 10.7%;
  padding: 100px 0;
  background-color: #fff;
  max-width: 100%;
  margin: 0 10.7%;
}

.text-content {
  background-color: #f8f8f8;
  padding: 80px 10.7%;
}

.text-content p {
  width: 100%;
  max-width: 100%;
}

.hero .container {
  z-index: 1 !important;
}

.hero__picture {
  z-index: 0 !important;
}

@media screen and (max-width: 767px) {
  .diag-items {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  section.diag.section {
    margin: 0 10.7%;
    padding: 100px 0;
    background-color: #fff;
  }

  .diag-item.diag-item4, .diag-item.diag-item3 {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: end;
  }

  .diag-item.diag-item4 {
    align-items: end;
  }

  .diag-item.diag-item2 {
    align-items: end;
    justify-content: start;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(0, 0, 0, .3);
  }

  .diag-item .diag-item__title, .diag-item ul {
    width: 150px;
    color: rgba(0, 0, 0, .7);
  }

  .diag-item.diag-item1 {
    border-right: 1px solid rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, .3);
  }

  .diag-item.diag-item3 {
    border-right: 1px solid rgba(0, 0, 0, 0.3);
  }

  .diag-item {
    width: calc(50% - 0.5px);
    aspect-ratio: 930 / 1000;
    height: 265px;
    min-height: 265px;
  }

  .diag.section>div {
    background-image: url(https://dev.verbamayr.ru/img/bg-diag.svg) !important;
    background-size: 56% !important;
    background-repeat: no-repeat;
    background-position: center;
  }

  .diag .section__title {
    font-size: 41px;
    line-height: 1;
    margin-bottom: 50px;
  }

  .diag-item .diag-item__title {
    font-size: 14px !important;
    cursor: pointer;
  }

  .diag-item ul li {
    list-style: disc;
    list-style-position: outside;
    margin-left: 11px;
  }

  .diag-item ul {
    opacity: 1;
    transition: opacity .5s ease;
    font-size: 12px;
  }

  section.diag.section {
    margin: 0 10.7%;
    padding: 50px 0;
    background-color: #fff;
    max-width: 90%;
    margin: 0 auto;
  }
}