:root {
	--primary-brand-color: #4d5ae5; /* IRIS */
	--title-color: #2e2f42;
	--dark-color: #2e2f42; /* NAVY BLUE */
	--main-text-color: #434455; /* SLATE */
	--icons-color: #8e8f99; /* LIGHT SLATE */
	--accent-color: #e7e9fc; /* CORNFLOWER */
	--light-collor: #f4f4fd; /* CLOUD */
	--button-hover-color: #404bbf; /* OCEAN */

	--transition-property: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--main-text-color);
}
img {
	display: block;
	max-width: 100%;
	height: auto;
	width: 100%;
}
.list {
	list-style: none;
}
.link {
	text-decoration: none;
}
.btn {
	font-family: inherit;
	cursor: pointer;
	transition: color var(--transition-property),
		background-color var(--transition-property),
		box-shadow var(--transition-property),
		border-color var(--transition-property);
}
.btn:hover,
.btn:focus {
	font-family: inherit;
	background-color: var(--button-hover-color);
	color: #ffffff;
}
.container {
	max-width: 428px;
	padding-left: 16px;
	padding-right: 16px;
	margin-left: auto;
	margin-right: auto;
}
.section {
	padding-top: 96px;
	padding-bottom: 96px;
}
.section-title {
	margin-bottom: 72px;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.1;
	text-align: center;
	letter-spacing: 0.02em;
	text-transform: capitalize;
	color: var(----dark-color);
}
.no-scroll {
	overflow: hidden;
}
.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;
}
.is-hidden {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

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

.header {
	position: relative;
	background-color: #ffffff;
	box-shadow: 0px 2px 1px rgba(46, 47, 66, 0.08),
		0px 1px 1px rgba(46, 47, 66, 0.16), 0px 1px 6px rgba(46, 47, 66, 0.08);
}
.header > .container {
	display: flex;
}
.header-logo {
	display: block;
	margin-right: 77px;
	padding-top: 24px;
	padding-bottom: 24px;
	font-family: "Raleway", sans-serif;
	font-weight: 800;
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--dark-color);
}
.header-logo span {
	color: var(--primary-brand-color);
}
.header-list {
	display: none;
}
.contacts-list {
	display: none;
}
.contacts-link {
	display: block;
	color: var(--main-text-color);
	transition: color var(--transition-property);
}
.header-link:hover,
.header-link:focus,
.header-link.current,
.contacts-link:hover,
.contacts-link:focus {
	color: var(--primary-brand-color);
}
.header-link.current::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	height: 4px;
	width: 100%;
	background-color: #404bbf;
	border-radius: 2px;
}

.menu-container {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	max-width: 428px;
	padding-left: 40px;
	padding-right: 51px;
	margin-left: auto;
	margin-right: auto;
	overflow: auto;
}
.menu-open-button {
	margin-top: auto;
	margin-bottom: auto;
	margin-left: auto;
	width: 32px;
	height: 32px;
	padding: 0;
    border: none;
    background-color: transparent;
}
.menu-open-icon {
}
.mob-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	padding-top: 80px;
	padding-bottom: 40px;
	background-color: #FFFFFF;
	box-shadow: 0px 2px 1px rgba(46, 47, 66, 0.08), 0px 1px 1px rgba(46, 47, 66, 0.16), 0px 1px 6px rgba(46, 47, 66, 0.08);
	z-index: 1;
}
.menu-close-button {
	position: absolute;
	top: 40px;
	right: 40px;	
    display: flex;
	justify-content: center;
	align-items: center;
    width: 24px;
    height: 24px;
    background-color: #E7E9FC;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
	/* transition: background-color заданий на загальний клас btn */
}
.menu-close-icon {
    transition: fill var(--transition-property);
}
.menu-close-button:focus .menu-close-icon {
    fill:  #FFFFFF;
}
.mob-menu-list {
	margin-bottom: 20px;
}
.mob-menu-item:not(:last-child) {
	margin-bottom: 40px;
}
.mob-menu-link {
	position: relative;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: capitalize;
	color: var(--title-color);
	transition: color var(--transition-property);
}
.mob-menu-link:focus,
.mob-menu-link.current {
	color: var(--primary-brand-color);
}
.mob-menu-contacts-list {
	margin-bottom: 48px;
}
.mob-menu-contacts-item > .link-tel {
	margin-bottom: 40px;
}
.mob-menu-contacts-link.link-tel {
	display: block;
	font-weight: 600;
	font-size: 35px;
	line-height: 1.1;
	text-transform: capitalize;
	color: var(--primary-brand-color);
}
.mob-menu-contacts-link.link-email {
	font-weight: 500;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--main-text-color);
}
.mob_menu_soc-list {
	display: flex;
	justify-content: space-between;
}

/*---------- HERO ------------ */

.hero {
	padding-top: 112px;
	padding-bottom: 112px; 
	margin-left: auto;
	margin-right: auto;
	background-color: var(--dark-color);
	background-image: linear-gradient(
			rgba(46, 47, 66, 0.7),
			rgba(46, 47, 66, 0.7)
		),
		url("../images/hero/hero-bg-mob.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	text-align: center;
	
}
@media (min-device-pixel-ratio: 2),
  (min-resolution: 192dpi),
  (min-resolution: 2dppx) {
  .hero {
    background-image: linear-gradient(
			rgba(46, 47, 66, 0.7),
			rgba(46, 47, 66, 0.7)
		),
		url("../images/hero/hero-bg-mob-2x.jpg");
  }
}
.hero-title {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 72px;
	max-width: 319px;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: #ffffff;
}
.hero-btn {
	padding: 16px 32px;
	background-color: var(--primary-brand-color);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: #ffffff;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
	border: none;
	border-radius: 4px;
}
.hero-btn:hover,
.hero-btn:focus {
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
}

/*---------- SKILLS ------------ */
.section-skills {
	padding-bottom: 96px;
}
.skills-list {
	display: flex;
	flex-direction: column;
	gap: 72px;
}
.skills-item {
}
.skills-item-icon {
	display: none;
}
.skills-item-title {
	margin-bottom: 8px;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: var(--title-color);
	text-align: center;
}
.skills-item-text {
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--main-text-color);
} 

/*---------- What are we doing ------------ */

.section-works {
	display: none;
}

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

.section-team {
	padding-bottom: 128px;
	background-color: var(--light-collor);
}
.team-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	row-gap: 72px;
}
.team-item {
	width: 260px;
	background-color: #ffffff;
	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);
	border: none;
	border-radius: 0px 0px 4px 4px;
}
.team-text-content {
	padding-top: 32px;
	padding-bottom: 32px;
}
.team-item-title {
	margin-bottom: 8px;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.2;
	text-align: center;
	letter-spacing: 0.02em;
	color: var(--title-color);
}
.team-item-text {
	margin-bottom: 8px;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
	letter-spacing: 0.02em;
	color: var(--main-text-color);
}
.social_media {
	display: flex;
	gap: 24px;
	justify-content: center;
}
.social_media-item {
	height: 40px;
	width: 40px;
}
.social_media-link {
	height: 100%;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--primary-brand-color);
	border-radius: 50%;
	transition: background-color var(--transition-property);
}
.social_media-icon {
	fill: var(--light-collor);
}
.social_media-link:hover,
.social_media-link:focus {
	background-color: var(--button-hover-color);
	cursor: pointer;
}

/*---------- CUSTOMERS ------------ */

.section-customers {
	padding-top: 96px;
}
.customers-list {
	display: flex;
	flex-wrap: wrap;
	gap: 72px 16px;
}
.customers-item {
	width: calc((100% - 1 * 16px) / 2);
	height: 88px;
}
.customers-link {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--icons-color);
	border-radius: 3.5px;
	transition: border var(--transition-property);
}
.customers-icon {
	fill: var(--icons-color);
	transition: fill var(--transition-property);
}
.customers-link:hover,
.customers-link:focus {
	border: var(--button-hover-color) 1px solid;
}
.customers-link:hover .customers-icon,
.customers-link:focus .customers-icon {
	fill: var(--button-hover-color);
}

/*---------- PORTFOLIO ------------ */

.portfolio {
	padding-top: 48px;
	padding-bottom: 48px;
}
.filters-list {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 72px;
	gap: 24px;
	justify-content: start;
}
.filters-item {
}
.filters-btn {
	padding: 8px 16px;
	background-color: var(--light-collor);
	border: 1px solid var(--accent-color);
	border-radius: 4px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: var(--primary-brand-color);
}
.filters-btn:hover,
.filters-btn:focus,
.filters-btn:active {
	background-color: var(--button-hover-color);
	border-color: var(--button-hover-color);
	box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 2px 1px rgba(0, 0, 0, 0.08),
		0px 2px 2px rgba(0, 0, 0, 0.12);
	color: #ffffff;
}
.portfolio-list {
	display: flex;
	row-gap: 48px;
	flex-wrap: wrap;
	flex-direction: column;
	justify-content: center;
}
.portfolio-item {
	width: 396px;
	background-color: #ffffff;
	box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08);
}
.portfolio-link {
	transition: box-shadow var(--transition-property);
}
.portfolio-link:hover,
.portfolio-link:focus {
	display: block;
	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-img {
	position: relative;
    overflow: hidden;
}
.portfolio-img-overlay {
	position: absolute;
	top: 0;
    width: 100%;
	height: 100%;
    padding: 40px 32px;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--light-collor);
    background-color: var(--primary-brand-color);
	transform: translateY(101%);
    transition: transform var(--transition-property);
    overflow: auto;
}
.portfolio-link:hover .portfolio-img-overlay,
.portfolio-link:focus .portfolio-img-overlay {
	transform: translateY(0);
}
.portfolio-text-content {
	padding: 32px 16px;
	border-left: 0.5px solid var(--light-collor);
	border-right: 0.5px solid var(--light-collor);
	border-bottom: 0.5px solid var(--light-collor);
}
.portfolio-item-title {
	margin-bottom: 8px;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--title-color);
}
.portfolio-item-text {
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--main-text-color);
}

/*---------- FOOTER ------------ */

.footer {
	padding-top: 96px;
	padding-bottom: 96px;
	background-color: var(--dark-color);
}
.footer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 72px;
}
.footer-text-content {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.footer-logo {
	display: block;
	margin-bottom: 16px;
	font-family: "Raleway", sans-serif;
	font-weight: 800;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--light-collor);
}
.footer-logo span {
	color: var(--primary-brand-color);
}
.footer-text {
	text-align: left;
	width: 268px;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--light-collor);
}
.footer-contacts {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.footer-contacts-title {
	margin-bottom: 16px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: #ffffff;
}
.footer-contacts-list {
	display: flex;
	gap: 16px;
}
.footer-contacts-item {
	width: 40px;
	height: 40px;
}
.footer-contacts-link {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	transition: background-color var(--transition-property);
}
.footer-contacts-icon {
	fill: var(--light-collor);
}
.footer-contacts-link:hover,
.footer-contacts-link:focus {
	cursor: pointer;
	background-color: #31d0aa;
}
.footer-subscribe {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.footer-input-wrap {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.footer-form-title {
	margin-bottom: 16px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing:  0.02em;
	color: #FFFFFF;
}
.footer-form-input {
	width: 100%;
	height: 40px;
	padding: 8px 16px;
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.15));
	border-radius: 4px;
	color: white;
}
.footer-form-input:hover,
.footer-form-input:focus {
	background-color: transparent;
	color: white;
}
.footer-form-input::placeholder {
	font-weight: 400;
	font-size: 12px;
	line-height: 2;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.6);
}
.footer-form-button {
	display: flex;
	align-items: center;
	padding: 8px 24px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: #FFFFFF;
	background: var(--primary-brand-color);
	border: none;
	border-radius: 4px;
}
.footer-form-button::after {
	content: '';
	display: inline-block;
	width: 24px;
	height: 20px;
	background-image: url('../images/icon_send.svg');
	margin-left: 16px;
}

/* MODAL */

.backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(46, 47, 66, 0.4);
    transition: opacity var(--transition-property),
    visibility var(--transition-property);
	overflow-y: scroll;
}
.modal {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 392px;
	padding: 72px 16px 24px 16px;
	background-color: #fcfcfc;
	box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12),
		0px 2px 1px rgba(0, 0, 0, 0.2);
	border-radius: 4px;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-property);
}
.backdrop.is-hidden .modal {
    transform: translate(-50%, -50%) scale(0);
}
.modal-button {
	position: absolute;
	top: 24px;
	right: 24px;	
    display: flex;
	justify-content: center;
	align-items: center;
    width: 24px;
    height: 24px;
    background-color: #E7E9FC;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
	/* transition: background-color заданий на загальний клас btn */
}
.modal-button-icon {
    transition: fill var(--transition-property);
}
.modal-button:hover .modal-button-icon, 
.modal-button:focus .modal-button-icon {
    fill:  #FFFFFF;
}

.modal-form {
}
.form-title {
	margin-bottom: 16px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
	letter-spacing: 0.02em;
	color: var(--dark-color);
}
.form-field {
	margin-bottom: 8px;
}
.form-field.comment {
	margin-bottom: 16px;
}
.input-text {
	display: inline-block;
	margin-bottom: 4px;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: var(--icons-color);
}
.input-wrap {
	position: relative;
}
.form-input {
	width: 100%;
	height: 40px;
	padding-left: 38px;
	background-color: transparent;
	border: 1px solid rgba(33, 33, 33, 0.2);
	border-radius: 4px;
	outline: none;
	transition: border-color var(--transition-property);
}

.input-icon {
	position: absolute;
	left: 19px;
	top: 50%;
	transform: translateY(-50%);
	transition: fill var(--transition-property);
}
.form-input:hover + .input-icon, 
.form-input:focus + .input-icon {
	fill: var(--primary-brand-color);
}
.form-comment {
	min-height: 120px;
	padding: 8px 16px;
	resize: none;
}
.form-comment::placeholder {
	font-weight: 400;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.04em;
	color: rgba(117, 117, 117, 0.5);
}
.form-input:hover, .form-input:focus {
	border-color: var(--primary-brand-color);
}
.form-checkbox-field {
	margin-bottom: 24px;
}
.check-text {
	display: flex;
	align-items: center;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.04em;
	color: #757575;
	cursor: pointer;
}
.check-text span {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 8px;
	width: 16px;
	height: 16px;
	border: 1.25px solid var(--dark-color);
	border-radius: 2px;
	fill: transparent;
	transition: background-color var(--transition-property),
	border-color var(--transition-property),
	fill var(--transition-property);
}
.input-check:checked + .check-text span {
	background-color: var(--primary-brand-color);
	border-color: var(--primary-brand-color);
	fill: var(--light-collor);
}
.check-privacy-link {
	margin-left: 4px;
	text-decoration-line: underline;
	color: var(--primary-brand-color);
}

.form-button-send {
	display: block;
	margin: auto;
	padding: 16px 60px;
	background-color: var(--primary-brand-color);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: #FFFFFF;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
	border: none;
	border-radius: 4px;
}

