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

p {
  margin: 0;
}

ul {
  margin: 0;
  list-style: none;
  padding: 0;
}
img {
  display: block;
}

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

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

/*header*/

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

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

.page-nav {
  display: flex;
  align-items: center;
}

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

.accent {
  color: #2e2f42;
}

.link-container {
  display: flex;
  margin-left: 76px;
  gap: 40px;
}

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

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

.links:active {
  color: #404bbf;
}

.address-links {
  display: flex;
  font-style: normal;
}

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

.header-addr {
  display: flex;
  gap: 40px;

  align-items: center;
}

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

.add-link:active {
  color: #404bbf;
}

/*section 1*/

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

.page-title {
  background-color: #2e2f42;
  color: #ffffff;
  max-width: 1440px;
  padding: 188px 0;
  margin: 0 auto;
}

.title {
  font-size: 56px;
  line-height: 1.07;
  text-align: center;
  letter-spacing: 0.02em;
  max-width: 496px;
  margin: 0 auto 48px;
}

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

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

.button:active {
  background-color: #404bbf;
}

/*section 2*/

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

.about-us {
  display: flex;

  gap: 24px;
}

.about-us-cont {
  width: calc((100% - 72px) / 4);
}

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

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

/*section 3*/

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

.team-img {
  display: block;
  border: none;
}

.team-div {
  padding: 32px 0;
  /*
  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);
  background: #fff;*/
}

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

.our-team {
  display: flex;
  gap: 24px;
}
.team-card {
  width: calc((100% - 72px) / 4);
  border-radius: 0px 0px 4px 4px;
}

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

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

/*section 4*/

.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1158px;
  justify-content: space-between;

  column-gap: 24px;
  row-gap: 48px;
}

.sect-port {
  width: calc((100% - 48px) / 3);
}

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

.portfolio-wrap {
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  border-bottom: 1px solid #e7e9fc;
  padding: 32px 16px;
}

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

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

/*footer*/

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

.footerp {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  max-width: 264px;
}

.logo-m {
  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;
}

.accent-m {
  color: #f4f4fd;
}
