GENERAL PART
SECTION II. CRIME
CHAPTER 4. Persons Who Are Liable to Criminal Liability
Article 24. Criminal Incapacity
(1) A person shall not be subject to criminal liability, who, at the time when committing a socially dangerous act, was in a state of irresponsibility, i.e. could not account for his actions or direct them as a consequence of a chronic mental disease, temporary mental derangement, weak-mindedness or other state of mental disease.
Mental disease or defect - national proceedings
EDIT.