\usepackage{color}
\definecolor{szary}{gray}{0.5}
\SetSectionFormatting[breakbefore,wholewidth]{chapter}
        {0\p@}
        {\FormatRigidChapterHeading{4.4\baselineskip}{12\p@}%
           {\color{szary}\hrule\vspace{5mm}\hfill\large\@chapapp\space}{\hrule\vspace{10mm}\color{black}\LARGE}\vspace{2mm}\hrulefill\\\vspace{-4mm}\hrulefill}
        {1.6\baselineskip}
