/* =========================================================
   USTAWIENIA OGÓLNE
   ========================================================= */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 1px;
	background: grey;
}


/* =========================================================
   GŁÓWNY UKŁAD STRONY
   ========================================================= */

.wrapper {
	display: flex;
	flex-flow: row wrap;

	width: 100%;
	max-width: 1340px;

	margin: 0 auto;

	font-weight: bold;
	text-align: center;
}

.wrapper > * {
	padding-bottom: 3px;
	flex: 0 0 100%;
}


/* =========================================================
   NAGŁÓWEK
   ========================================================= */

.header {
	background: transparent;
	border-radius: 0 0 14px 14px;
	order: 0;
}

.header img {
	display: block;
	width: 100%;
	height: auto;
}


/* =========================================================
   LEWA KOLUMNA - MENU
   ========================================================= */

.aside-1 {
	background: #3B5872;
	order: 1;
}


/* =========================================================
   GŁÓWNA TREŚĆ
   ========================================================= */

.main {
	text-align: center;

	background: lightblue;

	width: 100%;
	max-width: 100%;
	min-width: 0;

	overflow: hidden;

	box-sizing: border-box;

	order: 2;
}


/* =========================================================
   PRAWA KOLUMNA - WYŁĄCZONA
   ========================================================= */

.aside-2 {
	display: none !important;
}


/* =========================================================
   STOPKA
   ========================================================= */

.footer {
	flex: 0 0 100%;

	margin-top: 35px;
	padding: 18px;

	background: #f4f5f6;

	border-top: 1px solid #d8dde1;
	border-radius: 0;

	text-align: center;

	font-size: 13px;
	font-weight: normal;
	letter-spacing: 0.5px;

	color: #76828b;

	order: 3;
}


/* =========================================================
   KOMPUTER - DWIE KOLUMNY
   ========================================================= */

@media all and (min-width: 800px) {

	.aside-1 {
		flex: 0 0 220px;
		width: 220px;
	}

	.main {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}

	.header {
		flex: 0 0 100%;
	}

	.footer {
		flex: 0 0 100%;
	}
}


/* =========================================================
   TABLET / TELEFON
   ========================================================= */

@media all and (max-width: 799px) {

	.aside-1 {
		flex: 0 0 100%;
		width: 100%;
	}

	.main {
		flex: 0 0 100%;
		width: 100%;
	}
}


/* =========================================================
   MENU POZIOME
   ========================================================= */

.navigation {
	display: flex;
	flex-flow: row wrap;

	justify-content: flex-end;

	list-style: none;

	margin: 0;
	padding: 0;

	background: #2F5876;
}

.navigation a {
	display: block;

	padding: 1em;

	text-decoration: none;

	color: white;
}

.navigation a:hover {
	background: #1565C0;
}


/* =========================================================
   MENU POZIOME - MNIEJSZY EKRAN
   ========================================================= */

@media all and (max-width: 800px) {

	.navigation {
		justify-content: space-around;
	}
}


/* =========================================================
   MENU POZIOME - TELEFON
   ========================================================= */

@media all and (max-width: 600px) {

	.navigation {
		flex-flow: column wrap;
		padding: 0;
	}

	.navigation a {
		text-align: center;
		padding: 10px;

		border-top:
			1px solid rgba(255, 255, 255, 0.3);

		border-bottom:
			1px solid rgba(0, 0, 0, 0.1);
	}

	.navigation li:last-of-type a {
		border-bottom: none;
	}
}


/* =========================================================
   LINKI W LEWYM MENU
   ========================================================= */

#submenu a {
	text-decoration: none;
	color: #d3d3d3;
}

#submenu a:hover {
	color: #ffffff;
}