*,
*::before,
*::after {
  box-sizing: border-box;
}

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

h1,
h2,
h3,
ul,
p {
  margin: 0;
  padding: 0;
}

.container {
  width: 1440px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-evenly;
  gap: 76px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e7e9fc;
}

.logo {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  line-height: 1.16;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  color: #4d5ae5;
}

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

.nav .list {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.nav .link {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
}

.std {
  position: relative;
}

.std::after {
  content: "";
  display: block;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -25px;
  height: 4px;
  background-color: #404bbf;
  border-radius: 2px;
}

.page-address .link {
  color: #434455;
}

.page-address .list {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.link {
  text-decoration: none;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.list,
.social-icon {
  list-style: none;
}

/*main*/

.page-title-section {
  background-color: #2e2f42;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(rgba(46, 47, 66, 0.7)), url(../images/people-office\ 1.jpg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 188px;
}

.page-title {
  color: #ffffff;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.07;
  text-align: center;
  width: 496px;
  margin-bottom: 48px;
}

.button {
  color: #ffffff;
  background-color: #4d5ae5;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  padding: 16px 32px;
  border-radius: 4px;
  width: 169px;
  border: 0;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.why-us .list {
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 120px 156px;
  justify-content: center;
}

.why-us-img {
  border: 1px solid #8e8f99;
  border-radius: 4px;
  width: 264px;
  height: 112px;
  background: #f4f4fd;
  padding: 24px 102px;
  margin-bottom: 8px;
}

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

.team-card:hover .box .ss {
  background-color: #404bbf;
}

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

.team-card {
  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);
}

.box {
  width: 264px;
  padding: 32px 16px;
  border: 1px solid #ffffff;
  border-radius: 0 0 4px 4px;
  background-color: #ffffff;
}

.box-p {
  width: 360px;
  padding: 32px 16px;
  align-items: center;
  border: 1px solid #e7e9fc;
  border-top: none;
}

.sec-title {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
  padding-bottom: 72px;
}

.team-section .list {
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
  text-align: center;
  justify-content: center;
}

.social-icon {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 8px;
  justify-content: center;
  align-items: center;
}

.ss {
  width: 40px;
  height: 40px;
  background-color: #4d5ae5;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.social-svg {
  width: 16px;
  height: 16px;
}

.sub-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 8px;
}

.text {
  color: #434455;
}

.portfolio {
  padding: 120px 0px;
}

.portfolio .list {
  display: flex;
  column-gap: 24px;
  row-gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  flex-basis: calc((100% - 48px) / 3);
}

.p-item {
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.p-item:hover {
  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);
}

.p-img {
  position: relative;
  overflow: hidden;
}

.p-over-text {
  color: #f4f4fd;
  background-color: #4d5ae5;
  padding: 40px 32px;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.p-item:hover .p-over-text {
  transform: translateY(0%);
}

/*footer*/

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

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

.text-footer {
  color: #f4f4fd;
  max-width: 264px;
  margin-top: 16px;
}

.footer-container {
  display: flex;
  gap: 120px;
}

.icon-footer .text-footer {
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 16px;
}

.icon-footer .social-icon {
  gap: 16px;
}

.icon-footer .social-svg {
  width: 24px;
  height: 24px;
}

.icon-footer .ss:hover {
  background-color: #31d0aa;
}
