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

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

a {
  text-decoration: none;
}

.head a {
  display: block;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

.section {
  padding-top: 120px;
  padding-bottom: 120px;
}

img {
  display: block;
}

/* HEADER */

.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 18px;
  line-height: 1.17;
  text-transform: uppercase;
  color: #4d5ae5;
}

.logo-top-part {
  color: #2e2f42;
}

.navigation-list-item-link {
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
  padding-top: 24px;
  padding-bottom: 24px;
}

.navigation-list-item-link:hover,
.navigation-list-item-link:focus,
.navigation-list-item-link:active {
  color: #404bbf;
}

.contacts {
  font-style: normal;
}

.contacts-link {
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

.contacts-link:hover,
.contacts-link:focus,
.navigation-list-item-link.current {
  color: #404bbf;
}

.head .logo {
  margin-right: 76px;
}

.head {
  border-bottom: 1px solid #e7e9fc;
  box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08),
    0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 2px 1px 0 rgba(46, 47, 66, 0.08);
  background: #fff;
}

.header {
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.navigation-container {
  display: flex;
  margin-right: 332px;
  align-items: center;
}

.navigation-list {
  display: flex;
  gap: 40px;
}
.navigation-list-item-link {
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.navigation-list-item-link.current {
  position: relative;
}

.navigation-list-item-link.current::after {
  content: "";
  width: 100%;
  height: 4px;
  position: absolute;
  left: 0;
  bottom: -1px;
  background-color: #404bbf;
  border-radius: 2px;
}

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

.contacts-link {
  color: #757575;
  text-decoration: none;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contacts-link:hover,
.contacts-link:focus {
  color: #2196f3;
}
/* HERO SECTION */

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

.hero-title {
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  color: #ffffff;
  max-width: 496px;
  margin-bottom: 48px;
}

.hero-btn {
  cursor: pointer;
  background-color: #4d5ae5;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  display: block;
  min-width: 169px;
  margin: 0 auto;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* BENEFITS */
.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;
}

.item-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 8px;
}

.item-descr {
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

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

.benefits-list-item {
  flex-basis: calc((100% - 72px) / 4);
}
.benefits-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  background-color: #f4f4fd;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  margin-bottom: 8px;
}
/* TEAM */

.team {
  background-color: #f4f4fd;
}

.title {
  text-align: center;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: #2e2f42;
  margin-bottom: 72px;
}

.team-list-item {
  background-color: #ffffff;
  border-radius: 0 0 4px 4px;
  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);
}

.team-list {
  display: flex;
  gap: 24px;
  flex-basis: calc((100% - 72px) / 4);
}

.team-list-item .item-text {
  padding-top: 32px;
  padding-bottom: 32px;
  text-align: center;
}
.social-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 8px;
}
.social-list-item {
  width: 40px;
  height: 40px;
}
.social-link {
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.team .social-link:hover,
.team .social-link:focus {
  background-color: #404bbf;
}
.social-icon {
  fill: #f4f4fd;
}
/* PORTFOLIO */
.portfolio.section {
  padding: 60px 0;
}

.portfolio-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 72px;
}

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  row-gap: 48px;
  justify-content: center;
}

.portfolio-list-item {
  width: calc((100% - 48px) / 3);
  background-color: #fff;
  border: 1px solid #e7e9fc;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-list-item:hover,
.portfolio-list-item:focus {
  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);
  cursor: pointer;
}

.portfolio-img {
  position: relative;
  overflow: hidden;
}

.image {
  display: block;
  width: 100%;
  height: auto;
}

.text {
  position: absolute;
  top: 0;
  left: 0;
  padding: 40px 32px;
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  color: #f4f4fd;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.item-text {
  padding: 32px 16px;
  border-top: none;
}

.item-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.item-descr {
  font-size: 16px;
  color: #757575;
}

/* FOOTER */

.bottom {
  background-color: #2e2f42;
  padding: 100px 0 100px;
  margin: 0 auto;
}

.logo-bottom-part {
  color: #f4f4fd;
}

.bottom-text {
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  max-width: 264px;
}

.bottom .logo {
  display: inline-block;
  margin-bottom: 16px;
}
.bottom-social-links-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 16px;
}
.social-list-bottom {
  display: flex;
  gap: 16px;
}
.bottom .social-link:hover,
.bottom .social-link:focus {
  background-color: #31d0aa;
}
.bottom-logo-container {
  margin-right: 120px;
}
.bottom .container {
  display: flex;
  align-items: baseline;
}
