/* general */
* {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  background-color: #ffffff;
}
h1 {
  font-size: 56px;
}
h2,
h3 {
  color: #2e2f42;
  letter-spacing: 0.02em;
}
a {
  text-decoration: none;
  color: black;
}
ul {
  list-style: none;
}
img {
  display: block;
  width: 100%;
}
.container {
  max-width: 1158px;
  margin: 0 auto;
  padding: 0 15px;
}
.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;
}
/* HEADER */
.nav-link {
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
  font-weight: 500;
}
.nav-bar {
  display: flex;
}
.header {
  border-bottom: 1px solid #e7e9fc;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav {
  display: flex;
  align-items: center;
  gap: 100px;
}
.nav-list,
.contact-list {
  display: flex;
  gap: 40px;
  margin: 0;
}
.nav-item {
  padding: 24px 0;
}
.nav-link:hover,
.nav-link:focus {
  color: #404bbf;
}
.contact {
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.contact-link {
  color: #434455;
}
.contact-link:hover,
.contact-link:focus {
  color: #404bbf;
}
.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: 0.03em;
  font-size: 18px;
  color: #4d5ae5;
  text-transform: uppercase;
  margin-right: 76px;
}
.logo--header .span-logo {
  color: #2e2f42;
}
/* MAIN SECTION */
.hero {
  background-color: #2e2f42;
  color: #ffffff;
  padding: 188px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 188px 0;
  gap: 48px;
}
.hero-title {
  text-align: center;
  line-height: 1.07;
  letter-spacing: 0.02em;
  max-width: 496px;
  margin: 0;
}
.hero-button {
  background-color: #4d5ae5;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 12px 32px;
  border-radius: 4px;
  min-width: 169px;
  height: 56px;
}
.hero-button:hover,
.hero-button:focus {
  background-color: #404bbf;
}
.team-title,
.portfolio-title,
.features-title {
  line-height: 1.11;
  font-size: 36px;
  text-transform: capitalize;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 72px;
}
.features-subtitle,
.team-name,
.portfolio-name {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 8px;
}
.portfolio-category,
.team-role,
.features-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.features,
.portfolio,
.team {
  padding: 120px 0;
}
.features-list {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.features-item,
.team-item {
  width: calc((100% - 3 * 24px) / 4);
}
.team {
  background-color: #f4f4fd;
}
.team-item {
  background-color: #ffffff;
}
.team-list {
  display: flex;
  flex-direction: row;
  text-align: center;
  gap: 24px;
}
.team-item {
  border-radius: 0px 0px 4px 4px;
}
.team-item-content {
  padding: 32px 0;
}
.portfolio-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
}
.portfolio-item {
  width: calc((100% - 48px) / 3);
}
.portfolio-item-content {
  padding: 32px 16px;
  border: 1px solid #e7e9fc;
  border-top: none;
}
/* FOOTER */
.footer {
  background-color: #2e2f42;
  color: #f4f4fd;
  padding: 100px 0;
}
.logo--footer {
  display: inline-block;
  margin-bottom: 16px;
}
.logo--footer .span-logo {
  color: #f4f4fd;
}
.footer-description {
  line-height: 1.5;
  letter-spacing: 0.02em;
  width: 264px;
}
