:root {
	/* colors */
	--brand: #2196f3;
	--brand-accent: #188ce8;
	--hero-bgd: #2f303a;
	--links-plus-buttons: #212121;
	--contacts: #757575;
	--team-and-selector-bgr: #f5f4fa;
	--original-white: #ffffff;
	--original-black: #000000;
}

body {
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	background-color: var(--original-white);
	color: var(--links-plus-buttons);
	letter-spacing: 0.03em;
}

/* Reset start --- */
/* Reset ul.list, a.link, h, img */

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

.link {
	text-decoration: none;
}

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

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

address {
	font-style: normal;
}

/* Reset end --- */

/* Components --- */

.section {
	padding: 94px 0;
}

.container {
	width: 1200px;
	padding-left: 15px;
	padding-right: 15px;
	margin-left: auto;
	margin-right: auto;
	/* outline: 2px solid orange;*/
}

.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;
}

/* Components end --- */
/* ---------------*/

/* HEADER --- */

/* LOGO --- */

.logo-web {
	font-family: "Raleway";
	font-style: normal;
	font-weight: 700;
	font-size: 26px;
	line-height: calc(31 / 26);
	letter-spacing: 0.03em;
	color: var(--brand);
	
}

.logo-studio-header {
	color: var(--original-black);
	margin-right: 93px;
}

/* LOGO END --- */

/* header flexes */

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

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

.boxforflex-navlink,
.boxforflex-header-contacts {
	display: flex;
	gap: 50px;
}

/* end of header flexes */

.header {
	border: 1px solid #ececec;
}

.nav-link,
.header-contacts {
	display: inline-block;
	font-weight: 500;
	line-height: calc(16 / 14);
	color: var(--links-plus-buttons);
	letter-spacing: 0.02em;
	padding: 32px 0;
}

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

.active {
	color: var(--brand);
}

.header-contacts {
	color: var(--contacts);
}

.header-contacts:hover,
.header-contacts:focus {
	color: var(--brand);
}

/* HEADER END--- */
/* --------------*/

/* HERO INDEX --- */

/* hero flexes */

.boxforflex-hero-text,
.boxforflex-hero-btn {
	display: flex;
	margin: 0 auto;
}

/* end of flexes */

.hero {
	background: var(--hero-bgd);
	padding: 200px 0;
}

.title {
	margin-bottom: 30px;
	max-width: 696px;
	font-weight: 900;
	font-size: 44px;
	line-height: 1.36;
	text-align: center;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--original-white);
}

.hero-btn {
	min-width: 216px;
	min-height: 50px;
	padding: 10px 32px;
	font-family: inherit;
	background: var(--brand);
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	border: 0;
}

.hero-btn-text {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.88;
	display: flex;
	align-items: center;
	text-align: center;
	letter-spacing: 0.06em;
	color: var(--original-white);
}

.hero-btn:hover,
.hero-btn:focus {
	background: var(--brand-accent);
}

.pointer {
	cursor: pointer;
}

/* HERO INDEX END --- */
/* --------------*/

/* HERO PORTFOLIO --- */

/* portfolio flexes */

.portfolio-btns {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 50px;
}

.boxforflex-portfolio-list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.portfolio-item:nth-child(3n + 2) {
	margin: 0 30px;
}

.portfolio-item:nth-child(-n + 6) {
	margin-bottom: 30px;
}

/* .boxforflex-portfolio-item {
	justify-content: space-between;
	flex-basis: calc((100% - 60px) / 3);	
	row-gap: 30px;
	column-gap: 30px;
	display: flex;
	flex-basis: calc((100% - 60px) / 3);
} */

/* end of portfolio flexes */

.btn-portfolio {
	min-width: 73px;
	min-height: 38px;
	padding: 6px 22px;
	font-family: inherit;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.62;
	text-align: center;
	background: var(--team-and-selector-bgr);
	border-radius: 4px;
	border: 0;
}

.btn-portfolio:hover,
.btn-portfolio:focus {
	padding: 6px 25px;
	color: var(--original-white);
	background: var(--brand);
	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);
	border-radius: 4px;
}

.portfolio-item-text-space {
	border: 1px solid #eeeeee;
	padding: 20px 24px;
	border-top: 0;
}

.name-portfolio {
	font-weight: 700;
	font-size: 18px;
	line-height: 2;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
}

.text-portfolio {
	font-size: 16px;
	line-height: 1.88;
	color: var(--contacts);
}

/* HERO PORTFOLIO END--- */
/* --------------*/

/* 4 FEATURES --- */

/* features flexes */

.boxforflex-sections {
	display: flex;
	justify-content: space-between;
	gap: 30px;
}

/* end of features flexes */

.section-features {
	padding-bottom: 0;
}

.list-features {
	max-width: 270px;
}

.name-features {
	font-size: 14px;
	display: block;
	line-height: calc(16 / 14);
	text-transform: uppercase;
	margin-bottom: 10px;
}

.text-features {
	display: block;
	line-height: 1.71;
	color: var(--contacts);
}

/* 4 FEATURES END --- */
/* --------------*/

/* W.W.D. --- */

.section-title {
	font-size: 36px;
	line-height: calc(42 / 36);
	text-align: center;
	margin-bottom: 50px;
}

/* W.W.D. END--- */
/* --------------*/

/* TEAM --- */

.name-team {
	font-weight: 500;
	font-size: 16px;
	line-height: calc(19 / 16);
	text-align: center;
	margin-bottom: 10px;
}

.text-team {
	font-size: 16px;
	line-height: calc(19 / 16);
	text-align: center;
	color: var(--contacts);
}

.team-cards-text-space {
	padding: 30px 50px;
}

.team-section {
	background: var(--team-and-selector-bgr);
}

.team-cards {
	background: var(--original-white);
	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);
	border-radius: 0px 0px 4px 4px;
}

/* TEAM END--- */
/* ------------*/

/* FOOTER --- */

.footer {
	background: var(--hero-bgd);
	padding: 60px 0;
}

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

.logo-web-footer {
	padding-top: 0;
	padding-bottom: 0;
}

.logo-studio-footer {
	color: var(--original-white);
}

.address {
	line-height: 1.71;
	color: var(--original-white);
}

.list-address {
	margin-top: 9px;
}

.footer-contacts {
	display: inline-block;
	line-height: 1.71;
	color: rgba(255, 255, 255, 0.6);	
}

.footer-contacts:hover,
.footer-contacts:focus {
	color: var(--brand);
}