* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 10px;
	font-family: 'Roboto', sans-serif;
	line-height: 1.6;
}

body {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.281), rgba(0, 0, 0, 0.315)), url("img/redCar.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
}

li a {
	text-decoration: none;
	color: #eee;
}


.brand a {
	text-decoration: none;
	color: #eee;
}

header {
	width: 100%;
	height: 80vh;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.418), rgba(0, 0, 0, 0.418)), url("img/header.jpg") center no-repeat;
	background-size: cover;
	position: relative;
	overflow: hidden;
	border-top: .2rem solid #dc143c;
}

.header {
	max-width: 120rem;
	width: 90%;
	margin: 0 auto;
}

.menu-toggle {
	position: fixed;
	top: 2.5rem;
	right: 2.5rem;
	color: #eeeeee;
	font-size: 3rem;
	cursor: pointer;
	z-index: 1000;
	display: none;
}

nav {
	padding-top: 5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-transform: uppercase;
	font-size: 1.6rem;
}

.brand {
	font-size: 3.5rem;
	font-weight: 300;
	transform: translateX(-100rem);
	animation: slideIn .7s forwards;
}


.brand .red {
	color: crimson;
}

nav ul {
	display: flex;
}

nav ul li {
	list-style: none;
	transform: translateX(100rem);
	animation: slideIn .5s forwards;
}

nav ul li:nth-child(1) {
	animation-delay: 0s;
}

nav ul li:nth-child(2) {
	animation-delay: .5s;
}

nav ul li:nth-child(3) {
	animation-delay: 1s;
}

nav ul li:nth-child(4) {
	animation-delay: 1.5s;
}

nav ul li a {
	padding: 1rem 0;
	margin: 0 3rem;
	position: relative;
	letter-spacing: 2px;
}

nav ul li a:last-child {
	margin-right: 0;
}

nav ul li a::before,
nav ul li a::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 2px;
	background-color: #dc143c;
	left: 0;
	transform: scaleX(0);
	transition: all .5s;
}

nav ul li a::before {
	top: 0;
	transform-origin: left;
}

nav ul li a::after {
	bottom: 0;
	transform-origin: right;
}

.overlay {
	background-color: rgba(0,0,0,.95);
	position: fixed;
	right: 0;
	left: 0;
	top: 0;
	bottom: 0;
	transition: opacity 650ms;
	transform: scale(0);
	opacity: 0;
    display: none;
}

nav ul li a:hover::before,
nav ul li a:hover::after {
	transform: scaleX(1);
}

@keyframes slideIn {
	from{

	}
	to{
		transform: translateX(0);
	}
}






/* SERVICES */

h2 {
	font-size: 4rem;
	text-align: center;
	color: #dc143c;
}

h3 {
	font-size: 3rem;

}

p {
	font-size: 1.5rem;
	padding: 1rem;
}

ul {
	list-style-type: square;
}

ul, ol {
	font-size: 1.5rem;
	list-style-position: inside;
}

h2, p {
	margin-bottom: 1rem;
}

img {
	max-width: 90%;
	height: 20vh;
	margin: 0 auto;
	padding: 1rem;
	display: block;
	border: 1px solid #f0f0f0;
}

.btn img {
	display: inline-block;
	width: 20%;
	height: 20%;
	border: none;
	margin: 0 auto;
}

section {
	padding: 3rem 0;
}

.container {
	margin: 0 auto;
	width: min(90%, 120.5rem);
	background-color: rgba(24, 24, 24, 0.925);
	padding: .5rem;
}

.split {
	display: flex;
	flex-direction: column;
	color: #fff;
}






/* FOOTER */

h3 {
	color: #eee;
	border-bottom: 1px solid #dc143c;
}


i {
	padding: 1rem;
	color: #dc143ca2;
}

footer {
	background-color: #000;
	padding: 3rem;
	border-bottom: 2px solid #dc143c;
	border-top: 1px solid #dc143c;
}

.footer {
	display: flex;
	justify-content: space-between;
	width: 65%;
	margin: 0 auto;
}

/* ADDRESS */
.address p {
	color: #eee;
	border-bottom: 1px solid #dc143c;
}

.address a {
	text-decoration: none;
	color: #eee;
	font-size: 2rem;
	padding: 1rem 0;

}

.call {
	font-size: .5rem;
}


/* WORK-TIME */
table {
	margin: 0 2rem;
	}

	tr {
		color: #eee;
		font-size: 1.5rem;
	}

	th {
		text-align: right;
		padding: 0 1rem;
	}

	th, td {
		border-bottom: 1px solid #dc143ca2;
	}



	/* MAP */
.map {
	border-bottom: 2px solid #dc143c;
	border-top: 2px solid #dc143c;
}

.map iframe {
	left:0;
	top:0;
	height:100%;
	width:100%;
}

.rights {
	text-align: end;
	color: #eee;
	border-bottom: 1px solid #dc143c;
}






















/* MEDIA QUERIES*/


/* HEADER */

@media screen and (max-width: 780px) {
	header {
		width: 100%;
}

	.menu-toggle {
        display: block;
    }

	nav {
		padding-top: 0;
		/* display: none; */
		flex-direction: column;
		justify-content: space-evenly;
		align-items: center;
		height: 70vh;
        text-align: center;
	}

	nav ul {
		flex-direction: column;
	}

	nav ul li {
		margin-top: 5rem;
	}

	nav ul li a {
		margin: 0;
		font-size: 2.5rem;
	}

	.brand {
        font-size: 5rem;
	}

    /* .overlay.menu-open,
    nav.menu-open {
        display: flex;
        transform: scale(1);
        opacity: 1;
    } */
}



/* SERVICES */

@media (min-width: 40em) {
	.split {
		flex-direction: row;
	}

	.split > * {
		flex-basis: 100%;
	}

	.split > * + * {
		margin-left: 2em;
	}
}

@media (max-width: 70em) {
	.btn img {
		width: 50%;
		margin: 0 auto;
	}
}



/* FOOTER */
@media screen and (max-width: 480px) {

	.footer {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.address {
		text-align: center;
		padding-bottom: .5rem;
	}

	.address a {
		display: inline-block;
	}

	.call {
		color: red;
	}

	.work-time {
		margin-bottom: 2rem;
	}

	.rights {
		font-size: 1rem;
	}
}



@media screen and (max-width: 768px) {
	.footer {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;
		width: 100%;
	}

	.address  {
		text-align: center;
		margin-bottom: 2rem;
	}

	.address a {
		display: inline-block;
	}

	.work-time {
		margin-bottom: 2rem;
	}

	.map {
		border-bottom: none;
	}

	.map iframe {
		width: 100%;
	}
}

@media screen and (max-width: 1024px) {
	.footer {
		width: 100%;
	}
}








