.years-work {
  margin-top: -15px;
  padding-top: 20px;
  padding-bottom: 20px;

  @media (width < 1024px) {
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

.years-work__container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  @media (width < 768px) {
    flex-direction: column;
    align-items: flex-start;
  }
}

.years-work__years {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  @media (width < 768px) {
    display: none;
  }
}

.years-work__years-count {
  margin-right: 20px;

  font-size: 80px;
  line-height: 1;
  font-weight: 900;
  color: var(--color-grey);

  @media (width < 1024px) {
    font-size: 60px;
  }
}

.years-work__years-text {
  width: 250px;
  max-width: 100%;
  margin-bottom: 12px;

  font-size: 28px;
  line-height: 1;
  font-weight: 200;
  color: var(--color-black-extra-light);

  @media (width < 1024px) {
    width: 180px;
    margin-bottom: 8px;

    font-size: 20px;
  }
}

.years-work__diagnostics {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  @media (width < 768px) {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }
}

.years-work__diagnostics-text {
  padding: 0 0 0 15px;
  margin-right: 40px;

  border-left: 5px solid var(--color-accent);
  color: var(--color-black-extra-light);
  font-size: 25px;
  line-height: 1;
  font-weight: 200;

  @media (width < 1024px) {
    font-size: 20px;
  }

  @media (width < 768px) {
    padding-left: 10px;
    margin-right: 20px;
  }
}

.years-work__btn {
  width: 240px;

  font-weight: 200;

  @media (width < 1024px) {
    width: auto;
  }
}
