body {
	min-width: 340px;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	background-color: #1E124C;
	color: #fff;
}

/* preload img for o-mnie*/
body::after{
   position: absolute; width:0; height:0; overflow:hidden; z-index:-1;
   content: url(../img/krzysztof-palubicki.jpg);
}

section {
	margin: 150px auto 40px auto;
}

.js_enabled #cookie-message {
	display: none;
}

#cookie-message {
	margin: 0 auto;
	padding: 1em;
	position: fixed;
	bottom: 15px;
	right: 15px;
	width: 300px;
	border: 2px solid #df7d50;
	font-size: 12px;
	font-weight: 200;
}

#cookie-message a {color: #fff;}

/* ================================== */
/* ładowanie */
/* ================================== */

div.loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	background-color: #1E124C;
	opacity: 0;
	pointer-events: none;
}

div.loader.transi {transition: opacity 1s;}

div.loader.display {opacity: 1;}

div.loader #loader_sygnet {
	position: relative;
	top: 60px;
	left: 60px;
}

.sygnet_stroke {
	stroke-dasharray: 100;
	animation: dash 5s linear;
}

@keyframes dash {
  to {
    stroke-dashoffset: 1000;
  }
}

/* ================================== */
/* nagłowek */
/* ================================== */

.logo, h1#typo {text-decoration: none;}

#logo {
	display: inline-block;
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 250px;
	padding: 60px;
}

#logo h1 {
  color: white;
  position: relative;
  left: 100px;
  top: -33px;
  font-size: 27px;
	white-space: nowrap;
}

#logo h1 span {
  color: #DF7D50;
  text-transform: uppercase;
  font-size: 13px;
  display: block;
  letter-spacing: 1px;
  line-height: 0.8;
}

header {padding: 20px 30px;}

/* ================================== */
/* nawigacja */
/* ================================== */

nav {
  margin: 5px 0 0 0;
	z-index: 2;
	position: relative;
	float: right; /*temporary for now*/
}

nav a {
  color: #fff;
  margin: 0 10px 0 0;
  text-decoration:  none;
	padding-bottom: 4px;
}

nav a:last-child {margin: 0;}

nav a.active {border-bottom: 2px solid #df7d50;}

nav a:hover {border-bottom: 2px solid #df7d50;}

/* ================================== */
/* typografia */
/* ================================== */


h1, h2, h3 {color: #DF7D50;}

h1 {
	font-size: 24px;
	font-weight: 700;
}

em {font-style: italic;}

ul li {
	font-weight: 200;
	list-style: url(../img/bullet.png);
	list-style-position: inside;
	line-height: 1.75;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

section p {
  margin: 0 0 20px 0;
	font-weight: 300;
	line-height: 1.75;
}

/* section p:last-child {margin: 0;} */

/* ================================== */
/* strona główna */
/* ================================== */

.statement {
	display: block;
	margin: 0 auto 75px;
	color: #df7d50;
	text-align: center;
	font-size: 2em;
	font-weight: 500;
}

@media screen and (min-width: 900px) {

	div.home {
		display: grid;
		grid-template-columns: 150px 500px 350px 1fr;
		grid-row-gap: 25px;
		grid-column-gap: 50px;
	}

	.statement {
		grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: span 2;
    place-self: center;
		margin: 75px 0 0;
    font-size: 4em;
		text-align: left;
	}

	.tresc1 {
    grid-column-start: 2;
    grid-row-start: 3;
	}

	.tresc2 {grid-column-start: 3;}

}

@media screen and (min-width: 551px) and (max-width: 889px) {

	.statement {
		margin-top: 200px;
		padding: 0 80px;
	}

	 .tresc1, .tresc2 {
		 padding: 0 75px;
	 }

}


@media screen and (max-width: 1200px) {
	.tresc2 {grid-column-start: 2;}
}


/* ================================== */
/* o mnie */
/* ================================== */

div.o-mnie em {color: #DF7D50;}



@media screen and (min-width: 551px) {

	.o-mnie {
    max-width: 600px;
		margin-left: 160px;
		margin-top: 200px;
	}

	.charakt {
    padding-right: 30px;
	}

}

@media screen and (min-width: 900px) {
	.portret {
	  position: absolute;
	  width: 50%;
	  right: 0;
	  top: 0;
	  z-index: -1;
	}
}

/* ================================== */
/* oferta*/
/* ================================== */

.oferta {
	max-width: 100%;
	margin: 150px 0 75px;
	text-align: center;
}

.oferta__pozycja {
  display: inline-block;
  width: 540px;
	margin: 30px 15px;
  /* padding: 50px 50px 80px; */
  box-shadow: 0 30px 24px rgba(0,0,0,0.25);
  border-radius: 27px;
	text-align: left;
	min-height: 500px;
	vertical-align: top;
}

.oferta h2 {
  font-size: 3em;
  font-weight: 200;
}

.oferta__pozycja h3 {
  font-size: 1.5em;
  font-weight: 400;
  margin-bottom: 15px;
  text-align: center;
  padding: 0 50px;
}

.oferta__pozycja .hero{
	width: 100%;
	padding-bottom: 66.66%;
	background-size: contain;
	background-color: #df7d50;
}

#zycie div.hero {background-image: url("../img/oferta_zycie.png");}
#ochrona div.hero {background-image: url("../img/oferta_ochrona-zdrowia.png");}
#leczenie div.hero {background-image: url("../img/oferta_leczenie-zagraniczne.png");}
#wypadki div.hero {background-image: url("../img/oferta_wypadki.png");}
#emerytura div.hero {background-image: url("../img/oferta_emerytura-bez-obaw.png");}
#dziecko div.hero {background-image: url("../img/oferta_przyszlosc-dziecka.png");}
#firma div.hero {background-image: url("../img/oferta_firma.png");}
#podroze div.hero {background-image: url("../img/oferta_podroze.png");}
#auto div.hero {background-image: url("../img/oferta_samochod.png");}
#dom div.hero {background-image: url("../img/oferta_dom.png");}

.oferta__pozycja p {
  text-align: center;
  color: #bdbdbd;
  font-size: 0.8em;
	margin: 0;
	padding: 10px 80px;
	font-weight: 501;
	letter-spacing: 0.5px;
}



@media screen and (max-width: 550px) {

	.oferta__pozycja {
    width: 85%;
    margin: 30px 0;
		padding: 50px 0 25px;
	}

	.oferta__pozycja p {
		margin-top: 22px;
		padding: 0 10px;
	}

}

@media screen and (max-width: 1200px) {

	.oferta__pozycja {min-height: 0;}

}

@media screen and (min-width: 1100px) {



}

@media screen and (min-width: 1200px) {

	.oferta {
    max-width: 1200px;
    margin: 100px auto 100px;
	}
	.oferta__pozycja#ochrona p,
	.oferta__pozycja#emerytura p,
	.oferta__pozycja#dom p,
	.oferta__pozycja#leczenie p,
	.oferta__pozycja#wypadki p,
	.oferta__pozycja#zycie p {
		margin: 23px 0 0 0;
	}

	.oferta__pozycja p {
		margin: 32px 0 0 0;
		padding: 0px 80px;
	}

}


/* ================================== */
/* kontakt */
/* ================================== */

.kontakt h2 {margin: 0;}

.kontakt table {
  display: inline-block;
  margin-right: 50px;
	margin-bottom: 50px;
  font-weight: 200;
	text-align: left;
}

td a {

    text-decoration: none;
    color: #fff;

}

td {
  border: 2px solid #df7d50;
  padding: 5px;
}

.kontakt__head {width: 330px;}
.kontakt__prefix {width: 64px;}

.kontakt__mapa {

    display: inline-block;
    max-width: 375px;
    text-align: center;

}

.map {
	max-width: 300px;
  height: 257px;
  background-image: url(../img/mapa.png);
  background-size: contain;
  display: inline-block;
  width: 100%;
  background-repeat: no-repeat;

}


@media screen and (max-width: 550px) {

	.kontakt {text-align: center;}
	.kontakt table {margin-right: 0;}

}

@media screen and (min-width: 551px) {

	.kontakt {
		max-width: 1200px;
    margin-left: 160px;
    margin-top: 235px;
		text-align: left;
		}

}




/* ================================== */
/* mobile */
/* ================================== */

@media screen and (max-width: 550px) {

	#logo {
		position: static;
    width: 100%;
    padding: 60px 5px;
	}

	div.loader #loader_sygnet {
		position: static;
		width: 100%;
		margin-top: 60px;
	}

	#logo h1 {
    position: static;
    margin: 0 auto;
    width: 270px;
	}

	#logo h1 span {text-align: center;}

	#sygnet {
    width: 100%;
    margin: 0 auto 10px;
	}
	nav {
		width: 205px;
		margin: 0 auto;
		float: none;
	}

	section {
		margin: 40px auto 40px auto;
		padding: 0 20px;
	}

}
