@font-face {
	font-family: opensans;
	font-style: normal;
	font-weight: normal;
	src: url("fonts/OpenSans-Regular.woff2") format("woff2"),
	     url("fonts/OpenSans-Regular.woff") format("woff");
}
@font-face {
	font-family: opensans;
	font-style: normal;
	font-weight: bold;
	src: url("fonts/OpenSans-ExtraBold.woff2") format("woff2"),
	     url("fonts/OpenSans-ExtraBold.woff") format("woff");
}

* { box-sizing: border-box }

:root { scroll-behavior: smooth }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: stretch;
	line-height: 1.5;
	font-family: opensans, sans;
	font-size: 18px;
}

header {
	background-color: #fff;
	padding: 1em 1em 4em;
	background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, .95)), url("bmw.jpg") center center no-repeat;
	background-size: cover;
}
header .top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1em 0;
	margin-bottom: 5em;
}
header .logo {
	height: 4em;
}
header nav {
	display: flex;
	align-items: center;
	font-weight: bold;
}
header nav a {
	display: block;
	padding: 1em;
	color: inherit;
	text-decoration: none;
}
header nav a:hover {
	color: #d55;
}
header section {
	max-width: 50em;
	margin: 0 auto;
	text-align: justify;
}
header h1 {
	font-size: 4em;
	text-align: center;
}

main {
	flex-grow: 1;
	color: #fff;
	text-align: center;
	padding: 4em 1em 6em 1em;
}
main .wrap {
	max-width: 60em;
	margin: 0 auto;
}
main h2 {
	font-size: 4em;
}
main#sluzby {
	background: linear-gradient(rgba(30, 30, 100, .6), rgba(30, 30, 50, .9)), url("mini.jpg") center center no-repeat;
	background-size: cover;
}
main#cenik {
	background: linear-gradient(rgba(30, 30, 30, .6), rgba(30, 30, 30, .9)), url("shop.jpg") center center no-repeat;
	background-size: cover;
}
main#cenik .wrap {
	max-width: 80em;
}
main#cenik h3 {
	font-size: 1.8em;
	margin-bottom: 1.5em;
}
main table {
	width: 100%;
	text-align: left;
	border: 2px solid #666;
	border-radius: .5rem;
	padding: 1rem;
}
main table td, main table th {
	padding: .3em 0;
}

footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
footer>div {
	height: 100%;
	min-height: 40em;
}
footer>div:nth-child(1) {
	color: #fff;
	background-color: #800;
	padding: 5em 1em;
	background: linear-gradient(rgba(200, 20, 20, .7), rgba(30, 30, 30, .9)), url("light.jpg") center center no-repeat;
	background-size: cover;
}
footer>div:nth-child(1) .wrap {
	max-width: 30em;
	margin: 0 auto;
}
footer .grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
footer h2 {
	font-size: 4em;
}
footer a {
	color: #fff;
}
footer .name {
	font-size: 2em;
	font-weight: bold;
	margin-bottom: 2rem;
}
footer .map {
	display: block;
	width: 100%;
	height: 100%;
}

.grid {
	display: grid;
	grid-column-gap: 3em;
	grid-row-gap: 1em;
}
.grid.columns-2 { grid-template-columns: repeat(2, 1fr) }
.grid.columns-3 { grid-template-columns: repeat(3, 1fr) }

@media screen and (max-width: 800px) {
	body { font-size: 16px }
	header .logo { height: 2em }
	header h1 { font-size: 3em }
	footer { grid-template-columns: 1fr }
	footer>div { min-height: 35em }
	.grid.columns-2, .grid.columns-3 { grid-template-columns: 1fr }
}
