:root {
	--primary-text-color: #757575;
	--title-text-color: #212121;
	--accent-color: #2196f3;
	--second-text-color: #ffffff;
	--soc-primary-color: #afb1b8;
	--transition-effect: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
	color: var(--primary-text-color);
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0.03em;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}
ul {
	margin: 0;
	padding-left: 0;
}

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
	/* outline: tomato solid; */
}
.section {
	padding-top: 94px;
	padding-bottom: 94px;
}

/* скрытые заголовки */
.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;
}

/* заголовки */
.title {
	color: var(--title-text-color);
}
/* ссылки */
.link {
	text-decoration: none;
	transition: color var(--transition-effect);
}
/* списки */
.list {
	list-style: none;
}
img {
	display: block;
	max-width: 100%;
}

/* --------------------header--------------------- */
.header {
	border-bottom: 1px solid #ececec;
	padding-top: 24px;
	padding-bottom: 25px;
	/* height: 80px; */
}

.header > .container {
	display: flex;
	align-items: center;
}
.logo {
	color: var(--accent-color);
	text-decoration: none;
	font-family: "Raleway", sans-serif;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.19;
}
.nav-logo {
	margin-right: 93px;
}
.logo-black {
	color: #000000;
}

.nav .link,
.auth .link {
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: 0.02em;
}
.nav .link {
	color: var(--title-text-color);
}
.nav .link.current {
	position: relative;
	color: var(--accent-color);
}
.current::after {
	content: "";
	position: absolute;
	left: 0;
	border-radius: 2px;
	background-color: var(--accent-color);
	width: 100%;
	height: 4px;
	top: 47px;
}

.auth .link {
	color: currentColor;
	display: flex;
	align-items: center;
}

.link:hover,
.link:focus {
	color: var(--accent-color);
}

.nav.list {
	display: flex;
	gap: 50px;
}
.auth.list {
	display: flex;
	margin-left: auto;
	gap: 30px;
}
.contacts-icon {
	margin-right: 10px;
	fill: currentColor;
}

.header-item {
	background-position: center;
	background-size: contain;
}

/* ----------------------Hero--------------------- */
.hero {
	height: 600px;
	max-width: 1600px;
	background-color: #2f303a;
	text-align: center;
	padding-bottom: 0;
	padding-top: 0;
	margin-left: auto;
	margin-right: auto;
	background-image: linear-gradient(to right, rgba(47, 48, 58, 0.4), rgba(47, 48, 58, 0.4)), url(../images/Img.jpg);
	background-repeat: no-repeat;
	background-position: top;
}

.hero-container {
	padding-top: 200px;
	padding-bottom: 200px;
}

.hero .title {
	color: var(--second-text-color);
	text-transform: uppercase;
	font-weight: 900;
	font-size: 44px;
	line-height: 1.36;
	letter-spacing: 0.06em;
	margin-bottom: 30px;
	max-width: 696px;
	margin-left: auto;
	margin-right: auto;
}
/* button */

.hero-button {
	color: var(--second-text-color);
	background-color: var(--accent-color);
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.88;
	letter-spacing: 0.06em;
	border-radius: 4px;
	padding: 10px 32px;
	min-width: 200px;
	border: none;
	transition: color var(--transition-effect), background-color var(--transition-effect);
}
.hero-button:hover,
.hero-button:focus {
	background-color: #188ce8;
}

/* --------------------особенности------------------ */
.list.features-container {
	display: flex;
	gap: 30px;
}

.features-page {
	padding-bottom: 0;
}
.feature-box {
	width: 270px;
}

.feature-icon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	background-color: rgba(245, 244, 250, 1);
	margin-bottom: 30px;
	border-radius: 4px;
}

.features-page .title {
	font-size: 14px;
	line-height: 1.14;
	text-transform: uppercase;
	margin-bottom: 10px;
}
.features-text {
	font-size: 14px;
	line-height: 1.71;
	width: 270px;
}

/* --------------Чем мы занимаемся------------- */

.work .title {
	font-size: 36px;
	line-height: 1.17;
	text-align: center;
	margin-bottom: 50px;
}
.work-list {
	display: flex;
	gap: 30px;
}

.work-link {
	position: relative;
}

.work-text {
	position: absolute;
	bottom: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 70px;
	background-color: rgba(47, 48, 58, 0.8);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.14;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--second-text-color);
}

/* --------НАША КОМАНДА-------- */
.team-title {
	font-size: 36px;
	line-height: 1.17;
	text-align: center;
	margin-bottom: 50px;
}

.team {
	background-color: #f5f4fa;
}

.title.name {
	font-weight: 500;
	font-size: 16px;
	line-height: 1.19;
	margin-bottom: 10px;
	text-align: center;
}
.profession {
	font-size: 16px;
	line-height: 1.19;
	text-align: center;
	margin-bottom: 16px;
}
.team-item {
	flex-basis: calc(100% / 4);
	height: auto;
}
.team-list {
	display: flex;
	gap: 30px;
}

.team-content {
	padding: 30px 32px;
}

.team-item {
	background-color: #ffffff;
	border-radius: 0px 0px 4px 4px;
	box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2);
}

.team-soc {
	display: flex;
	justify-content: center;
	gap: 10px;
}
.soc-link {
	fill: currentColor;
}

.team-soc-link {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--soc-primary-color);
	transition: color var(--transition-effect), background-color var(--transition-effect);
}
.team-soc-link:hover,
.team-soc-link:focus {
	background-color: var(--accent-color);
	color: var(--second-text-color);
}

/* ----------------------clients-------------------- */
.clients-title {
	font-weight: 700;
	font-size: 36px;
	line-height: 1.17;
	text-align: center;
	letter-spacing: 0.03em;
	color: #212121;
	margin-bottom: 50px;
}
.clients-list {
	display: flex;
	justify-content: center;
	gap: 30px;
}

.clients-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 170px;
	height: 92px;
	color: #afb1b8;
	border: 1px solid #afb1b8;
	border-radius: 4px;
	transition: border var(--transition-effect), color var(--transition-effect);
}

.clients-logo {
	fill: currentColor;
}
.clients-link:hover,
.clients-link:focus {
	color: var(--accent-color);
	border: 1px solid var(--accent-color);
}

/* ----------------------footer-------------------- */

.soc-list {
	display: flex;
	justify-content: center;
	gap: 10px;
}
.footer-container {
	display: flex;
	align-items: baseline;
}
.soc-title {
	margin-bottom: 20px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.14;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #ffffff;
}
.footer {
	background-color: #2f303a;
	padding-top: 60px;
	padding-bottom: 60px;
	margin-left: auto;
	margin-right: auto;
}

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

.logo-white {
	color: var(--second-text-color);
}
.address {
	display: block;
	color: var(--second-text-color);
	font-style: normal;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.71;
	margin-bottom: 9px;
	margin-right: 70px;
}

.link-address {
	display: inline-block;
	color: rgba(255, 255, 255, 0.6);
	font-style: normal;
	font-size: 14px;
	line-height: 1.71;
	margin-bottom: 9px;
}
.link-tel {
	margin: 0;
}
.footer-soc-link {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--second-text-color);
}
.footer-soc-thumb {
	margin-right: 93px;
}
.footer-form-title {
	margin-bottom: 20px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.14;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #ffffff;
}
.footer-input {
	width: 358px;
	height: 50px;
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	padding: 15px 16px;
	margin-right: 12px;
	transition: border var(--transition-effect);
	color: var(--second-text-color);
}
.footer-input:hover,
.footer-input:focus {
	border-color: var(--accent-color);
}
.footer-input::placeholder {
	font-size: 16px;
	line-height: 1.25;
	letter-spacing: 0.03em;
	color: rgba(255, 255, 255, 0.6);
}
.footer-btn-submit {
	width: 200px;
	height: 50px;
	background-color: var(--accent-color);
	color: var(--second-text-color);
	padding: 10px 29px;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	border: none;
	cursor: pointer;
	letter-spacing: 0.06em;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.88;
	display: inline-flex;
	align-items: center;
	text-align: center;
}
.plane {
	fill: var(--second-text-color);
	width: 24px;
	height: 24px;
	margin-left: 10px;
}

/* -----------------PORTFOLIO---------------*/
.filter {
	margin-bottom: 54px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.button {
	background-color: #f5f4fa;
	color: var(--title-text-color);
	cursor: pointer;
	font-family: inherit;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.62;
	text-align: center;
	letter-spacing: 0.03em;
	border-radius: 4px;
	border: transparent;
	padding: 6px 22px;
	transition: background-color var(--transition-effect), color var(--transition-effect),
		box-shadow var(--transition-effect);
}
.button:hover,
.button:focus {
	background-color: var(--accent-color);
	color: var(--second-text-color);
	box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.12);
}

.projects-list {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}

.projects-item {
	flex-basis: calc(100% / 3);
	max-width: 370px;
	max-height: 404px;
	transition: box-shadow var(--transition-effect);
}

.projects-item:hover,
.projects-item:focus {
	box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.12), 0px 4px 4px rgba(0, 0, 0, 0.06), 1px 4px 6px rgba(0, 0, 0, 0.16);
}
.projects-title {
	font-size: 18px;
	line-height: 2;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
}
.projects-link {
	color: currentColor;
	text-decoration: none;
}

.projects-type {
	font-size: 16px;
	line-height: 1.88;
}

.filter-text-container {
	padding: 20px 24px;
	border-bottom: 1px solid #eeeeee;
	border-right: 1px solid #eeeeee;
	border-left: 1px solid #eeeeee;
}

.box {
	display: block;
	position: relative;
	overflow: hidden;
}
.projects-item:focus .overlay,
.projects-item:hover .overlay {
	transform: translateY(0);
}

.overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba(33, 150, 243, 0.9);
	top: 0;
	left: 0;
	padding: 63px 24px;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.56;
	letter-spacing: 0.03em;
	color: var(--second-text-color);
	transform: translateY(100%);
	overflow: auto;
	transition: transform var(--transition-effect);
}

/* --------------------MODAL-WINDOW------------------ */
.backdrop {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.2);
	top: 0;
	transition: opacity var(--transition-effect), visibility var(--transition-effect);
}

.modal-window {
	position: absolute;
	width: 528px;
	min-height: 581px;
	background-color: #ffffff;
	border-radius: 4px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1);
	transition: transform var(--transition-effect);
	padding: 40px;
	box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2);
}

.backdrop.is-hidden .modal-window {
	transform: translate(-50%, -50%) scale(0);
}

.close-button {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: transparent;
	border: 1px solid rgba(0, 0, 0, 0.1);
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	outline: transparent;
	transition: background-color var(--transition-effect), fill var(--transition-effect);
}
.close-button:hover,
.close-button:focus {
	fill: var(--accent-color);
}
.is-hidden {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.modal-title {
	font-weight: 700;
	font-size: 20px;
	line-height: 1.15;
	text-align: center;
	color: rgba(33, 33, 33, 1);
	letter-spacing: 0.03em;
	margin-bottom: 12px;
}

.input-field {
	width: 100%;
	height: 40px;
	border: 1px solid rgba(33, 33, 33, 0.2);
	border-radius: 4px;
	cursor: pointer;
	transition: border var(--transition-effect);
	padding: 12px 0 12px 42px;
}
.input-comment {
	margin-bottom: 20px;
	border: 1px solid rgba(33, 33, 33, 0.2);
	border-radius: 4px;
	height: 120px;
	resize: none;
	width: 100%;
	padding: 12px 16px;
	font-size: 12px;
	line-height: 1.17;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: border var(--transition-effect);
}

.input-comment::placeholder {
	color: rgba(117, 117, 117, 0.5);
}
input,
textarea {
	outline: transparent;
}

.input-comment::placeholder {
	color: rgba(117, 117, 117, 0.5);
}

.modal-field {
	margin-bottom: 10px;
}

.input-wrap {
	position: relative;
}
.input-icon {
	position: absolute;
	top: 50%;
	left: 15px;
	transform: translateY(-50%);
	transition: fill var(--transition-effect);
}

.agreement {
	line-height: 1.71;
	letter-spacing: 0.03em;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 30px;
}
.agreement > a {
	color: var(--accent-color);
}

.input-title {
	display: block;
	font-size: 12px;
	line-height: 1.17;
	letter-spacing: 0.01em;
	margin-bottom: 4px;
}

.check {
	height: 15px;
	width: 16px;
	border-radius: 2px;
	background-color: transparent;
	border: 2px solid #212121;
	fill: transparent;
	margin-right: 7px;
	display: flex;
	transition: background-color var(--transition-effect), border var(--transition-effect);
}
.agreement-input:checked + .agreement .check {
	background-color: var(--accent-color);
	border: none;
}
.btn-submit {
	padding: 10px 52px;
	background-color: var(--accent-color);
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	margin-left: auto;
	margin-right: auto;
	display: block;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.88;
	letter-spacing: 0.06em;
	color: #ffffff;
	border: none;
	width: 200px;
	height: 50px;
	cursor: pointer;
	transition: background-color var(--transition-effect);
}
.btn-submit:hover,
.btn-submit:focus {
	background-color: #188ce8;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
}
.input-field:hover,
.input-field:focus,
.input-comment:hover,
.input-comment:focus {
	border: 1px solid var(--accent-color);
}
.input-field:focus + .input-icon {
	fill: var(--accent-color);
}
