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

body {
  font-family: 'Roboto', sans-serif;
  color: #434455;
  background-color: #ffffff;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  display: block;
}
button {
  cursor: pointer;
}
address {
  font-style: normal;
}
.container {
  width: 1158px;
  margin: 0 auto;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}
/* -----------HEADER----------- */

.header {
  border-bottom: 1px solid #e7e9fc;
}

.header-container {
  display: flex;
  width: 1158px;
  padding: 0 15px 0 15px;
  margin: 0 auto;
  align-items: center;
}

.header-navigation {
  display: flex;
  align-items: center;
}

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

.logo-span {
  color: #2e2f42;
}

.navigation {
  color: #2e2f42;
  text-decoration: none;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-weight: 500;
  font-size: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  display: block;
}

.navigation:hover,
.navigation:focus {
  color: #404bbf;
  text-decoration: none;
}

.contacts {
  font-style: normal;
}

.contacts .cont-link {
  color: #434455;
  text-decoration: none;

  line-height: 1.5;
  letter-spacing: 0.02em;
}

.contacts .cont-link:hover,
.contacts .cont-link:focus {
  color: #404bbf;
  text-decoration: none;
}

.header-menu-list {
  display: flex;
  gap: 40px;
  align-items: center;
}

.contacts {
  margin-left: auto;
  align-items: center;
}

.header-contacts-list {
  display: flex;
  align-items: center;
  gap: 40px;
}
/* ----------- SECTION ONE (MAIN)----------- */

.main-section {
  background-color: #2e2f42;
  padding-top: 188px;
  padding-bottom: 188px;
  margin: 0 auto;
}

.main-header {
  font-size: 56px;
  line-height: 1.07;
  text-align: center;
  letter-spacing: 0.02em;
  color: #ffffff;
  max-width: 496px;
  margin: 0 auto;
  margin-bottom: 48px;
}

.button {
  color: #ffffff;
  background-color: #4d5ae5;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: block;
  text-align: center;
  margin: 0 auto;
  min-height: 56px;
  min-width: 169px;
  border-radius: 4px;
  border: none;
}

.button:hover,
:focus {
  color: #ffffff;
  background-color: #404bbf;
}

/* ----------- SECTION TWO (FEATURES)----------- */

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

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

.features-advantages-list {
  max-width: 1128px;
  max-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.features-item {
  width: calc((100% - 3 * 24px) / 4);
}
.features-advantages {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 8px;
}

.features-description {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

/* ----------- SECTION THREE (TEAM)----------- */

.team-section {
  background-color: #f4f4fd;
  padding-top: 120px;
  padding-bottom: 120px;
}

.team-header {
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  color: #2e2f42;
  text-transform: capitalize;
  border-block-start: 36px;
  margin-bottom: 72px;
}

.team-list-container {
  display: flex;
  align-items: center;
  margin: 0 auto;
  gap: 24px;
  max-width: 1128px;
}

.team-list {
  flex-basis: calc((100% - 3 * 24px) / 4);
  border-radius: 0px 0px 4px 4px;
  background-color: #ffffff;
}

.team-info {
  padding-top: 32px;
  padding-bottom: 32px;
}

.team-members {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  text-align: center;
  margin-bottom: 8px;
}

.team-description {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ----------- SECTION FOUR (PORTFOLIO)----------- */

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

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

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

.portfolio-offers-description {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}
.portfolio-list-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 24px;
  margin: 0 auto;
  max-width: 1128px;
}

.portfolio-list {
  width: calc((100% - 2 * 24px) / 3);
}
.portfolio-info {
  padding: 32px 16px;
  border: 1px solid #e7e9fc;
  border-top: none;
}

/* FOOTER */

.footer {
  background-color: #2e2f42;
  padding: 100px 0;
}

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

.footer-logo-span {
  color: #f4f4fd;
}

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