\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[magyar]{babel}
\usepackage{lmodern}

\usepackage[margin=1.8cm]{geometry}
\usepackage[plain,headings]{nccfancyhdr}
\pagestyle{fancy}
\lhead{Név:}
\chead{Neptun kód:}
\rhead{Csoport:\hspace{3cm}}
\begin{document}
\def\hl{
  \vspace*{3.5cm}\noindent\rule{\textwidth}{0.4pt}\\

}

\hl \hl \hl \hl \hl
\end{document}
