+%====================== Page geometry
+\usepackage{geometry} % page geometry
+\geometry{left=2.0cm}
+\geometry{right=2.0cm}
+\geometry{top=2.0cm}
+\geometry{bottom=1.5cm}
+\parindent=1.0cm % first indent in section
+\righthyphenmin=2 % hyphen last charecter
+
+\setsecnumdepth{subsubsection} % section numration depth
+
+
+
+%\pagestyle{plain}
+%\pagenumbering{roman}
+%\renewcommand{\chapterheadstart}{
+%%\vspace*{\beforechapskip}
+%\hrule\medskip}
+%\renewcommand{\chapnamefont}{\normalfont\large\scshape}
+%\renewcommand{\chapnumfont}{\normalfont\large\scshape}
+%\renewcommand{\chaptitlefont}{\normalfont\large\scshape}
+%\renewcommand{\printchaptername}{\normalfont\large\scshape История}
+%\renewcommand{\chapternamenum}{ }
+%\renewcommand{\printchapternum}{\chapnumfont \thechapter}
+%\renewcommand{\afterchapternum}{. }
+%\renewcommand{\afterchapskip}{\vspace{2ex}}
+%\renewcommand{\afterchaptertitle}{\par\nobreak\medskip\hrule\vskip
+%\afterchapskip}
+%}
+\chapterstyle{madsen} % one of chapter header style for memoir documentclass
+%\renewcommand{\printchaptername}{\normalfont\large\scshape Chapter}
+\renewcommand{\chapterheadstart}{}
+%\renewcommand{\beforechapskip}{\vspace{2pt}}