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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0;
}

.hero,
.team,
footer {
  width: 100%;
}

.page-container {
  max-width: 1158px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex-grow: 1;
}

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

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

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

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

.right-header {
  display: flex;
  gap: 40px;
}

body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  background-color: #ffffff;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
  margin: 0;
}

.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  color: #2e2f42;
}

.logo .accent {
  color: #4d5ae5;
}

.container .accent {
  color: #4d5ae5;
}

a {
  text-decoration: none;
  color: #2e2f42;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

a:hover,
a:focus {
  color: #404bbf;
}

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

.nav-list {
  color: #434455;
  display: flex;
  flex-direction: row;
  gap: 20px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.32px;
}

.nav-list a {
  position: relative;
  text-decoration: none;
  color: #2e2f42;
  padding: 24px 0;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list a:hover,
.nav-list a:focus {
  color: #404bbf;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: #404bbf;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list a:hover::after,
.nav-list a:focus::after {
  transform: scaleX(1);
}

.nav-list a .current::after {
  transform: scaleX(1);
}

a:hover,
a:focus {
  color: #404bbf;
}

.contact {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.32px;
  color: #434455;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

button {
  cursor: pointer;
  color: #ffffff;
  background-color: #4d5ae5;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.64px;
  border: none;
  border-radius: 4px;
  padding: 16px 32px;
}

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

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #2e2f42;
  background-image: linear-gradient(rgba(46, 47, 66, 0.7)),
    url(../images/hero.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 600px;
  min-height: 600px;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07143;
  letter-spacing: 0.72px;
  text-align: center;
  color: #ffffff;
}

h2 {
  color: #2e2f42;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.32px;
  margin-bottom: 72px;
}

h3 {
  color: #2e2f42;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.32px;
  margin-bottom: 8px;
}

p {
  size: 16px;
  line-height: 24px;
  letter-spacing: 0.32px;
  color: #434455;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.features {
  background-color: #ffffff;
}

.features .features-list {
  display: flex;
  gap: 24px;
  flex-direction: row;
  justify-content: space-between;
}

.icon-border {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  width: 264px;
  height: 112px;
  background-color: #f4f4fd;
  margin-bottom: 8px;
}

.icon-antenna,
.icon-clock,
.icon-diagram,
.icon-astronaut {
  width: 64px;
}

.icon-instagram,
.icon-x,
.icon-facebook,
.icon-linkedin {
  width: 16px;
  height: 16px;
}

.team {
  background-color: #f4f4fd;
  text-align: center;
}

.team .team-list {
  display: flex;
  gap: 24px;
  flex-direction: row;
  justify-content: space-between;
}

.team-card {
  flex-basis: calc((100% - 48px) / 3);
  max-width: 100%;
  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: var(--white);
}

.team-card h3 {
  padding-top: 32px;
}

.team-list li {
  background-color: #ffffff;
  background-color: #ffffff;
  border-radius: 0 0 4px 4px;
  padding: 0px 0px 32px 0px;
  width: 264px;
}

.team-social-media {
  display: flex;
  justify-content: center;
  padding-left: 20px;
  padding-top: 20px;
}

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

.team-social-media .link:focus,
.team-social-media .link:hover {
  background-color: #31d0aa;
}

.portfolio {
  background-color: #ffffff;
  text-align: center;
}

.portfolio .portfolio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
}

.portfolio-list li {
  box-sizing: border-box;
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  width: calc((100% - 48px) / 3);
}

.portfolio-content {
  box-sizing: border-box;
  padding-top: 20px;
  padding-left: 16px;
  padding-bottom: 20px;
}

.box {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.overlay {
  position: absolute;
  padding: 40px 32px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3f51b5;
  transform: translatey(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.box:hover .overlay {
  transform: translatey(0);
}

.overlay p {
  color: #fff;
  padding: 10px;
  margin: 0;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

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

footer .container {
  display: flex;
  align-items: baseline;
  gap: 120px;
  max-width: 1158px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

footer a {
  color: #ffffff;
  font-family: "Raleway", sans-serif;
}

footer p {
  color: #ffffff;
}

.footer-social-media-list {
  display: flex;
  gap: 16px;
}

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

.footer-social-media-list .link:focus,
.footer-social-media-list .link:hover {
  background-color: #31d0aa;
}

.footer-social-media-list .icon {
  fill: #f4f4fd;
}
.footer-headline {
  margin-bottom: 16px;
}
