\documentclass[twoside]{article}

\usepackage{sidenotes}
\usepackage[twoside, a5paper, outer=4cm, marginparwidth=3.7cm, marginparsep=3mm]{geometry}
% redefines sidenote size
\newcommand{\inlinen}[1]{\marginpar[\mbox{\begin{minipage}[h]{37mm}
    \fontsize{9}{10}\selectfont\raggedleft#1
  \end{minipage}}]{\fontsize{9}{10}\selectfont\parbox[t]{37mm} 
 {\raggedright#1}}}


\usepackage{fontspec}
\setmainfont{Times New Roman}
\setsansfont{Lato}


\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\sffamily\huge\bfseries\color{blue}}
{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titleformat{\section}
{\normalfont\sffamily\Large\bfseries\color{cyan}}
{\thesection}{1em}{}
\titleformat{\subsection}
{\normalfont\sffamily\large\bfseries\color{cyan}}
{\thesubsection}{1em}{}



\begin{document}






неприпод$\widearc{нес}\widehat{ённ}\widehat{ость}$











\end{document}
