* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
}

a {
  color: currentColor;
  cursor: pointer;
  font-style: normal;
  text-decoration: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background-color: #4d5ae5;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  display: block;
  min-width: 169px;
  height: 56px;
  border-radius: 4px;
}

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

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

.section {
  padding: 120px 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 156px;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  background-color: #ffffff;
}

.list-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: #2e2f42;
}

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

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 76px;
}

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

.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

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

.menu .link {
  font-weight: 500;
  padding: 24px 0;
}

.link:hover,
.link:focus {
  color: #404bbf;
}

.address-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.address-link {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  text-decoration: none;
}

.address-link:hover,
.address-link:focus {
  color: #404bbf;
}

.title-section {
  background-color: #2e2f42;
  padding: 188px 0;
}

.container-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.title {
  font-size: 56px;
  line-height: 1.07;
  text-align: center;
  letter-spacing: 0.02em;
  color: #ffffff;
  max-width: 496px;
}

.adv-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 24px;
}

.adv-list-item {
  flex-basis: calc((100% - 24px * 3) / 4);
}

.adv-item-title {
  margin-bottom: 8px;
}

.team-section {
  background-color: #f4f4fd;
}

.page-title {
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  text-transform: capitalize;
  color: #2e2f42;
  margin-bottom: 72px;
}

.team-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 24px;
}

.team-member {
  background-color: #ffffff;
  border-radius: 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);
  padding-bottom: 32px;
}

.team-member img {
  margin-bottom: 32px;
}

.team-member-text {
  text-align: center;
}

.team-member-text h3 {
  margin-bottom: 8px;
}

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

.portfolio-item {
  flex-basis: calc((100% -24px * 5) / 6);
}

.port-item-text {
  padding: 32px 16px;
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
}

.port-item-text h3 {
  margin-bottom: 8px;
}

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

.footer-container {
  padding: 0 156px;
} 

.footer-container a{
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo {
  color: #f4f4fd;
}

.footer-par {
  color: #f4f4fd;
  max-width: 264px;
}
