Late Gothic brick church from the 16th century, financed by the standard-bearer Stanisław Zalewski, replacing a 14th century wooden church