.content-box {
	width: 80%;
	/* 1920-nak a 400 (kétszer a széle) kb. a 20 százaléka. */
	margin: 0 auto;
}

.grey {
	background: #f5f5f5;
}

/* LAYOUT */

header {
	padding: 1rem 0;
}

header .content-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#logo {
	max-width: 12rem;
	/* Átszámítás: 260(px volt a terven):22(px)=11.81~12rem */

}

#main-menu li {
	display: inline-block;
	margin: 0 1rem;
}

#main-menu li a {
	text-transform: uppercase;
	font-weight: 600;
	color: inherit;
}

#tel a {
	display: inline-block;
	background: url(img/tel.svg) center left no-repeat;
	background-size: auto 100%;
	padding-left: 1rem;
	font-weight: 600;
	color: inherit;
}

#main-menu li a:hover,
#tel a:hover {
	color: #ffdb31;
}

section {
	margin-bottom: 4vw;
}

.home section {
	text-align: center;
}

#hero {
	background: url(img/hero-bg.jpg) center center no-repeat;
	background-size: cover;
	padding: 10vw 0;
	position: relative;
}

#hero img {
	position: absolute;
	bottom: 0;
	right: 15%;
	width: auto;
	height: 95%;
	margin-bottom: 0;
}

#hero-text {
	text-align: left;
	background: #ffdb31;
	padding: 1.5rem;
	max-width: 26rem;
	/* Átszámítás: 580(px volt a terven):22(px)=~26rem */
}

#main-content-top {
	background: url(img/hero-bg.jpg) center center no-repeat;
	background-size: cover;
	padding: 3rem 0;
	position: relative;
}

.services img {
	height: 5rem;
	/* Átszámítás: 110(px volt a terven):22(px)=5rem */
	width: auto;
	margin: 0 auto 1.5rem auto;
}

.services .grey {
	padding: 1rem;
	margin-bottom: 2rem;
	text-align: center;
}

.services a {
	display: block;
	color: inherit;
}

.services a:hover .grey {
	/* ??? NEM SÁRGUL! */
	background: #ffdb31;
}

.notice {
	background: #f5f5f5;
	padding: 0.5rem;
	max-width: 30rem;
	margin: 0 auto;
}

#portfolio .button {
	margin-top: 2rem;
}

#how-we-work .work-item {
	display: flex;
	justify-content: space-between;
	background: #f5f5f5;
	text-align: left;
	margin-bottom: 2rem;
}

#how-we-work p {
	font-size: smaller;
}

#how-we-work .work-item > div:first-of-type {
	width: 30%;
}

#how-we-work .work-item > div:last-of-type {
	width: 70%;
	padding: 0.5rem 1rem 0.5rem 1.5rem;
}

#how-we-work h3 span {
	color: #ffdb31;
}

#about {
	background: #f5f5f5;
	text-align: left;
	position: relative;
	z-index: 0;
}

.offset-left {
	padding-left: 10%;
	padding-right: 2rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

#offer {
	text-align: center;
	border-top: solid 0.25rem #f5f5f5;
	padding-top: 2rem;
}

#offer p {
	max-width: 45rem;
	/* Átszámítás: 1000(px volt a terven):22(px)=45.45~45rem */
	margin: 0 auto 1rem auto;
}

home #offer {
	border-top: none;
	padding-top: 0;
}

footer {
	background: #f5f5f5;
	padding: 1.5rem 0;
	font-size: small;
}

footer .content-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#foot-menu li,
#foot-info li {
	display: inline-block;
	margin: 0 1rem;
}

#foot-menu li a {
	color: inherit;
}

#copyright {
	padding: 1rem 0;
	font-size: small;
	text-align: center;
}

#newsletter {
	padding: 1rem 0;
	font-size: smaller;
	text-align: center;
	background: #ffdb31;
	color: #000;
}

#newsletter .flexi {
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}

#newsletter a {
	color: #000;
	font-weight: bold;
	text-decoration: underline;
}

#newsletter input[type="text"],
#newsletter input[type="email"] {
	font-family: inherit;
	border: solid 2px #000;
	border-radius: 0px;
	padding: 0.5rem;
	margin: 0 0.25rem;
	height: 2rem;
}

#newsletter input[type="submit"] {
	display: inline-block;
	background: #000;
	color: #ffdb31;
	border: none;
	border-radius: 0px;
	text-transform: uppercase;
	font-weight: bold;
	padding: 0.5rem 0.7rem;
	/* Átszámítás: 10(px):22(px)=0.45~0.5rem */
	margin: 0 0.25rem;
	height: 2rem;
}

#newsletter input[type="submit"]:hover {
	background: #ffdb31;
	color: #000;
	box-shadow: 2px 5px #000; 
}

/* MEDIA QUERIES */

@media screen and (max-width: 1280px) {
	.content-box {
		width: 90%;
	}

	.offset-left {
		padding-left: 5%;
	}
}

@media screen and (max-width: 1199px) {
	header .content-box {
		flex-wrap: wrap;
	}

	#main-menu {
		order: 3;
		width: 100%;
		text-align: center;
		margin-top: 1rem;
		padding-top: 1rem;
		border-top: solid 1px #ccc;
	}

	#hero img {
		right: 5%;

	}

	footer .content-box {
		display: block;
		text-align: center;
	}

	#foot-info {
		margin-bottom: 1rem;
	}
}

@media screen and (max-width: 860px) {

	#foot-info li,
	#foot-menu li {
		display: block;
		margin-bottom: 0.5rem;
	}
}


@media screen and (max-width: 767px) {
	#main-menu li {
		display: block;
		margin-bottom: 0.5rem;
	}

	#main-menu li:last-of-type {
		margin-bottom: 0;
	}

	#hero {
		padding: 2rem 0 26rem 0;
	}

	#hero img {
		right: 50%;
		margin-right: -8rem;
		height: auto;
		width: 16rem;
	}

	#hero-text {
		max-width: initial;
		text-align: center;

	}
}

@media screen and (max-width: 479px) {
	#logo {
		max-width: initial;
		width: 70%;
		margin: 0 auto 1rem auto;
	}

	#tel {
		margin: 0 auto;
	}

	h1,
	h2 {
		font-size: 2.25rem;
	}
}
