body {
	font-family: 'Roboto', sans-serif;
	color: #434455;
	background-color: #ffffff;
	margin: 0;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	list-style: none;
	margin: 0;
	padding: 0;
}

p {
	list-style: none;
	margin: 0;
	padding: 0;
}

.container {
	max-width: 1158px;
	margin: 0 auto;
	padding: 0 auto;
}

.header {
	padding: 24px 0 24px 0;
	border-bottom: 1px solid #e7e9fc;
}

.logo {
	width: 115px;
	height: 24px;
}

.nav {
	display: flex;
	align-items: center;
}

.menu {
	display: flex;
	gap: 40px;
	padding-left: 76px;
}

.menu a {
	position: relative;
	text-decoration: none;
	color: #2e2f42;
	font-weight: 500;
	font-size: 16px;
	transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu a:hover {
	color: #404bbf;
}

.menu a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -28px;
	height: 4px;
	width: 100%;
	border-radius: 2px;
	background-color: #404bbf;
	transform: scaleX(0);
	transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu a:hover::after {
	transform: scale(1);
}

.menu a:focus {
	color: #404bbf;
}

.contact ul {
	display: flex;
	gap: 40px;
	padding-left: 332px;
}

.contact a {
	text-decoration: none;
	color: #434455;
	font-size: 16px;
	transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact a:hover {
	color: #404bbf;
}

.contact a:focus {
	color: #404bbf;
}

.hero {
	background-color: #2e2f42;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-image:
		linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
		url('../images/bg.jpg');
	color: #ffffff;
	text-align: center;
	padding: 188px 0;
}

.hero h1 {
	font-size: 56px;
	font-weight: 700;
	padding-bottom: 48px;
}

.btn {
	background-color: #4d5ae5;
	color: #fff;
	width: 169px;
	height: 56px;
	border: none;
	padding: 16px 32px;
	font-weight: 500;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
	transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
	background-color: #404bbf;
}

.block-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 264px;
	height: 112px;
	border: 1px solid #8e8f99;
	border-radius: 4px;
	background-color: #f4f4fd;
}

.icons {
	width: 64px;
	height: 64px;
}

.features {
	padding: 120px 0;
}

.features-list {
	display: flex;
	gap: 24px;
}

.features-list h3 {
	font-size: 20px;
	font-weight: 500;
	width: 264px;
	padding: 8px 0 8px 0;
}

.features-list p {
	font-size: 16px;
	line-height: 1.5;
	width: 264px;
}

.team {
	background-color: #f4f4fd;
	padding: 120px 0;
	text-align: center;
}

.team h2 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 72px;
}

.team-list {
	display: flex;
	gap: 24px;
	justify-content: center;
}

.team-list li {
	background-color: #ffffff;
	border-radius: 0 0 4px 4px;
	box-shadow:
		0 2px 1px rgba(46, 47, 66, 0.08),
		0 1px 1px rgba(46, 47, 66, 0.16),
		0 1px 6px rgba(46, 47, 66, 0.08);
}

.contact-1 {
	display: flex;
	justify-content: center;
	gap: 24px;
	padding-bottom: 32px;
}

.svg {
	display: flex;
	width: 40px;
	height: 40px;
	background-color: #4d5ae5;
	border-radius: 30px;
	align-items: center;
	justify-content: center;
}

.contacts {
	width: 16px;
	height: 16px;
}

.svg:hover {
	transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
	background-color: rgba(64, 75, 191, 1);
}

.descr {
	padding: 32px 16px 16px 16px;
}

.team-list h3 {
	font-size: 20px;
	font-weight: 500;
	height: 24px;
}

.team-list p {
	font-size: 16px;
	color: #434455;
	height: 24px;
	padding-top: 8px;
}

.portfolio {
	padding: 120px 0;
	text-align: center;
}

.portfolio h2 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 72px;
}

.portfolio-list {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.portfolio-list h3 {
	font-size: 20px;
	font-weight: 500;
	text-align: left;
	padding-bottom: 8px;
}

.portfolio-list p {
	font-size: 16px;
	text-align: left;
}

.card {
	position: relative;
	overflow: hidden;
	background-color: #ffffff;
	border-radius: 0 0 4px 4px;
	min-width: 360px;
}

.overlay {
	position: absolute;
	top: 100%;
	width: 100%;
	height: 100%;
	text-align: left;
	background-color: rgba(77, 90, 229, 1);
	color: #f4f4fd;
	padding: 40px 32px 164px 32px;
	box-sizing: border-box;
	font-size: 14px;
	line-height: 1.5;
	transition: top 250ms cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
}

.overlay p {
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 2%;
}

.card:hover .overlay {
	top: 0;
}

.card:hover {
	box-shadow:
		0px 2px 1px 0px rgba(46, 47, 66, 0.08),
		0px 1px 1px 0px rgba(46, 47, 66, 0.16),
		0px 1px 6px 0px rgba(46, 47, 66, 0.08);
	transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lower {
	position: relative;
	border: 1px solid #e7e9fc;
	border-top: none;
	background-color: white;
	padding: 32px 16px;
	z-index: 2;
}

h4 {
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 2%;
}

.footer {
	display: flex;
	padding: 100px 0 100px 156px;
	background-color: #2e2f42;
	color: #ffffff;
}

.text-footer {
	width: 264px;
}

.text-footer p {
	line-height: 1.5;
	font-size: 16px;
}

.social-media {
	padding-left: 120px;
}

.social-media .svg:hover {
	background-color: rgba(49, 208, 170, 1);
}

.icons-social-media {
	display: flex;
	gap: 16px;
	padding-top: 16px;
}
