:root {
	--white-color: #fff;
	--iris: #4d5ae5;
	--navy-blue: #2e2f42;
	--slate: #434455;
	--cloud: #f4f4fd;
	--cornflower: #e7e9fc;
	--ocean: #404bbf;
	--green: #31d0aa;
}

body {
	font-family: "Roboto", sans-serif;
	color: var(--slate);
	background-color: var(--white-color);
}

ul,
ol {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
img {
	padding: 0px;
	margin: 0px;
}

img {
	display: block;
}

a {
	text-decoration: none;
}

.container {
	width: 1158px;
	padding: 0 15px;
	margin-left: auto;
	margin-right: auto;
}

.section-header {
	color: var(--navy-blue);
	font-weight: 700;
	font-size: 36px;
	line-height: 1.11;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: capitalize;
}

header {
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.32px;
	padding: 24px 0;
	justify-content: space-between;
	border-bottom: 1px solid var(--cornflower);
	box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
}

.header .container {
	display: flex;
	justify-content: space-between;
}

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

.logo {
	font-family: "Raleway", sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.17;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--iris);
	margin-right: 76px;
	display: flex;
}

.logo .header-logo {
	color: var(--navy-blue);
}

.header-nav-list {
	display: flex;
	gap: 40px;
}

.header-nav-link {
	font-weight: 500;
	color: var(--navy-blue);
	padding: 24px 0;
	transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav-link.current {
	position: relative;
}

.header-nav-link.current::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 4px;
	border-radius: 2px;
	background-color: var(--ocean);
}

.header-address {
	font-style: normal;
}

.header-address-list {
	display: flex;
	gap: 40px;
}

.contacts-link {
	color: var(--slate);
	transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav-link:hover,
.header-nav-link:focus,
.contacts-link:hover,
.contacts-link:focus,
.header-nav-link.current {
	color: var(--ocean);
}

.hero {
	background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/hero.jpg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 188px 0;
	max-width: 1440px;
	margin: 0 auto;
}

.main-title {
	font-weight: 700;
	font-size: 56px;
	line-height: 1.07;
	letter-spacing: 0.02em;
	color: var(--white-color);
	text-align: center;
	margin: 0 auto 48px;
	max-width: 496px;
}

.hero-button {
	font-family: "Roboto", sans-serif;
	background: var(--iris);
	font-weight: 500;
	line-height: 1.5;
	color: var(--white-color);
	letter-spacing: 0.04em;
	cursor: pointer;
	border: none;
	border-radius: 4px;
	padding: 16px 32px;
	display: block;
	margin: 0 auto;
	min-width: 169px;
	box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
	transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-button:hover,
.hero-button:focus {
	background: var(--ocean);
}

.features {
	padding: 120px 0;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	white-space: nowrap;
	clip-path: inset(100%);
	clip: rect(0, 0, 0, 0);
	overflow: hidden;
}

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

.features-list-item {
	width: calc((100% - 72px) / 4);
}

.features-list-item .icon-container {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 112px;
	background-color: var(--cloud);
	border-radius: 4px;
	border: 1px solid #8e8f99;
	margin-bottom: 8px;
}

.features-list-item-header {
	color: var(--navy-blue);
	margin-bottom: 8px;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.features-list-item-text {
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--slate);
}

.team {
	background-color: var(--cloud);
	padding: 120px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.team-header {
	margin-bottom: 72px;
}

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

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

.team-card-bottom-container {
	padding: 32px 0px;
}

.team-card-header {
	color: var(--navy-blue);
	text-align: center;
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.team-card-text {
	text-align: center;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--slate);
	margin-bottom: 8px;
}

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

.social-list-item {
	width: 40px;
	height: 40px;
}

.social-link {
	width: 100%;
	height: 100%;
	background-color: var(--iris);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link.team-social:focus, 
.social-link.team-social:hover {
	background-color: var(--ocean);
}

.social-icon {
	fill: var(--cloud);
}

.portfolio {
	padding: 120px 0 120px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.portfolio-header {
	margin-bottom: 72px;
}

.portfolio-list {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 24px;
	list-style: none;
	padding: 0;
}

.portfolio-item {
	background-color: var(--white-color);
	transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
	box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08), 0px 1px 1px rgba(46, 47, 66, 0.16), 0px 2px 1px rgba(46, 47, 66, 0.08);
}

.portfolio-item:hover .image-container-text {
	transform: translateY(0%);
}

.portfolio-item .image-container {
	position: relative;
	overflow: hidden;
}

.portfolio-item .image-container-text {
	position: absolute;
	top: 0;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--cloud);
	padding: 40px 32px;
	background-color: #4d5ae5;
	height: 100%;
	width: 100%;
	transform: translateY(100%);
	transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-description-container {
	padding: 32px 16px;
	display: flex;
	flex-direction: column;
	align-items: start;
	border: 1px solid var(--cornflower);
	border-top: none;
}

.portfolio-item-header {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--navy-blue);
	margin-bottom: 8px;
}

.portfolio-item-text {
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--slate);
}

.footer {
	padding: 100px 0;
	background-color: var(--navy-blue);
}

.footer .container {
	display: flex;
	align-items: baseline;
}

.footer-logo-paragraph {
	margin-right: 120px;
}

.footer .logo {
	display: inline-block;
	margin-bottom: 16px;
}

.footer-logo {
	color: var(--cloud);
	margin-bottom: 16px;
}

.footer-text {
	width: 264px;
	color: var(--cloud);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.32px;
}

.footer-social-media-paragraph {
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--white-color);
	margin-bottom: 16px;
}

.social-list.footer-social {
	gap: 16px;
}

.social-link.footer-social:focus, 
.social-link.footer-social:hover {
	background-color: var(--green);
}