\documentclass[a4paper, 12pt]{article}

% UTF-8 fonts.
\usepackage{fontspec}
\usepackage{xunicode}

% Use sans serif-fonts as default.
\renewcommand{\familydefault}{\sfdefault}

% Polish dictionary.
\usepackage[polish]{babel}

% Set smaller margins.
\usepackage[
  includeheadfoot,
  top=1.25cm,
  bottom=1.25cm,
  left=2.5cm,
  right=2.5cm
]{geometry}

% Needed for custom colours.
\usepackage{color}

% Set header and footer.
\definecolor{hdrbgr}{RGB}{79, 98, 40}
\newcommand{\hdr}[2]{%
  \fcolorbox{black}{hdrbgr}{%
    % Subtract border and padding added by the framed box.
    \makebox[\textwidth - \fboxrule - \fboxrule - \fboxsep - \fboxsep][l]{%
      \color{white} \footnotesize%
      {#1}%
      \hfill%
      {#2}%
    }%
  }%
}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\chead{\hdr
  {\bfseries Nowe technologie}
  {Wydział Fizyki Uniwersytetu Warszawskiego}
}
\cfoot{\hdr{Sprawozdanie studenckie 2012}{\colorbox{black}{\thepage}}}

% Disable header underline.
\renewcommand{\headrulewidth}{0pt}

\begin{document}
\noindent Imię Nazwisko\\
\textit{Wydział}

\begin{center}
    \textbf{\LARGE Tytuł pracy}
\end{center}



\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
