* {
  box-sizing: border-box;
}
body {
  background-color: #ffffff;
  font-family: Roboto, sans-serif;
  color: #434455;
  margin: 0;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}
h1,
h2,
h3,
p,
ul {
  margin: 0 0 0 0;
  padding-left: 0;
}
.header {
  border-bottom: 1px solid #e7e9fc;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  gap: 40px;
  align-items: center;
}

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

.header-span {
  color: #2e2f42;
}
.nav-links {
  display: block;
  padding: 24px 0 24px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
.nav-links:hover {
  color: #404bbf;
}
.nav-links:focus {
  color: #404bbf;
}

.contact-info ul {
  display: flex;
  flex-direction: row-reverse;
  gap: 40px;
  font-style: normal;
}
.contact-links {
  display: block;
  padding: 24px 0 24px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}
.contact-links:hover {
  color: #404bbf;
}
.contact-links:focus {
  color: #404bbf;
}
.slogan-section {
  background-color: #2e2f42;
  padding: 188px 0 188px;
}
.slogan-section .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.slogan {
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  text-align: center;
  color: #ffffff;
  max-width: 496px;
}
.slogan-order {
  font-family: inherit;
  background-color: #4d5ae5;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ffffff;
  cursor: pointer;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  min-width: 169px;
}
.slogan-order:hover {
  background-color: #404bbf;
}
.slogan-order:focus {
  background-color: #404bbf;
}
.default-heading-medium {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
.default-p {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}
.advantages-section {
  background-color: #ffffff;
  padding: 120px 0 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;
}

.advantage {
  width: calc((100% - 72px) / 4);
}
.advantages-section ul {
  display: flex;
  gap: 24px;
}
.advantage h3 {
  margin-bottom: 8px;
}
.default-section-title {
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  text-align: center;
  color: #2e2f42;
}
.team-section {
  background-color: #f4f4fd;
  padding: 120px 0 120px;
}
.team-list {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.team-section .team-section-title {
  margin-bottom: 72px;
}
.team-member {
  background-color: #ffffff;
  text-align: center;
  border-radius: 0 0 4px 4px;
  width: calc((100% - 72px) / 4);
}
.team-member-img {
  width: 100%;
  object-fit: cover;
}
.member-info {
  padding: 32px 0 32px;
}
.member-name {
  margin-bottom: 8px;
}
.portfolio-section {
  padding: 120px 0 120px 0;
}
.portfolio-section-title {
  margin-bottom: 72px;
}
.footer {
  background-color: #2e2f42;
}
.portfolio-list {
  display: flex;
  column-gap: 24px;
  row-gap: 48px;
  flex-wrap: wrap;
}
.portfolio-card {
  background-color: #ffffff;
  border-radius: 4px;
  width: calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
}
.portfolio-card .card-content {
  padding: 32px 16px;
  border: 1px solid #e7e9fc;
  border-top: none;
}
.portfolio-img{
  width: 100%;
  object-fit: cover;
}
.app-name {
  margin-bottom: 8px;
}
.footer {
  padding: 100px 0 100px;
}
.logo-footer {
  margin-right: 0;
  display: inline-block;
  font-family: Raleway, sans-serif;
  color: #4d5ae5;
  margin-bottom: 16px;
}
.footer-span {
  color: #f4f4fd;
}
.footer-text {
  color: #f4f4fd;
  width: 264px;
}
footer .container {
  align-items: flex-start;
  padding-top: 100px;
  padding-bottom: 100px;
  gap: 17px;
}
.container {
  width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
