body {
  font-family: 'Roboto', sans-serif;
  color: #434455;
  background-color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
h1,
h2,
h3,
p {
  margin: 0;
  padding: 0;
}
ul {
  list-style-type: none;
  margin: 0;
  padding-left: 0;
}
img {
  display: block;
  width: 100%;
}
.link,
.logo {
  text-decoration: none;
  color: currentColor;
}
.site-nav .link:hover,
.site-nav .link:focus {
  color: #404bbf;
}
.site-cnts .link:hover,
.site-cnts .link:focus {
  color: #404bbf;
}
.container {
  max-width: 1158px;
  margin: 0 auto;
  padding: 0 15px;
}

/* -------Header------- */

.page-header {
  border-bottom: 1px solid #e7e9fc;
  position: sticky;
  top: 0;
}
.page-header .container {
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
  align-items: center;
}
.navi {
  display: flex;
  align-items: center;
}
.logo {
  color: #4d5ae5;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
}
.logo-header {
  margin-right: 76px;
  padding: 24px 0;
}
.site-nav {
  display: flex;
  gap: 40px;
}

.accent-header {
  color: #2e2f42;
}
.site-nav .link {
  display: block;
  color: #2e2f42;
  letter-spacing: 0.02em;
  font-weight: 500;
  padding: 24px 0;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-nav .current {
  position: relative;
  color: #404bbf;
}
.current::after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  content: '';
  width: 48px;
  height: 4px;
  background-color: #404bbf;
  border-radius: 2px;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: scaleX(1);
}
.link.current:active {
  color: #404bbf;
}

.site-cnts .link {
  color: #434455;
  font-size: 400;
  font-style: normal;
  align-items: center;
  padding: 24px 0;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-cnts {
  display: flex;
  gap: 40px;
}

/* -------Hero------- */
.hero {
  max-width: 1440px;
  margin: 0 auto;
  background-color: #2e2f42;
  color: #ffffff;
  text-align: center;
  padding: 188px 0;
  background-image: url(/images/people-office.jpg);

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 1px solid #000;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(46, 47, 66, 0.7),
    rgba(46, 47, 66, 0.7)
  );
  z-index: 1;
}
.hidden-hero,
.btn-hero {
  position: relative;
  z-index: 2;
}

.hidden-hero {
  line-height: 1.07;
  font-weight: 700;
  font-size: 56px;
  letter-spacing: 0.02em;
  max-width: 496px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 48px;
}
.btn-hero {
  background-color: #4d5ae5;
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 16px 32px;
  min-width: 169px;
  height: 56px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-hero:hover,
.btn-hero:focus {
  background-color: #404bbf;
}

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

/* -------Title------- */

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

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

/* -------Feature------- */

.feature {
  padding: 120px 0;
}
.feature .container {
  display: flex;
  align-items: center;
  flex-grow: 1;
}
.feature-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}
.feature-list-item {
  justify-content: space-between;
  align-items: center;
  width: calc((100%-3 * 24px) / 4);
}
.feature-icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  width: 264px;
  height: 112px;
  margin-bottom: 8px;
  background-color: #f4f4fd;
}
.feature-box-active {
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.feature-icon {
  display: block;
  fill: #2e2f42;
}

/* -------Our Team------- */

.our-team {
  background-color: #f4f4fd;
  padding: 120px 0;
}
.title-our-team {
  text-align: center;
}
.our-team-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.team-box {
  background-color: #ffffff;
  border-radius: 0 0 4px 4px;
  width: calc((100% - 72px) / 4);
  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);
}
.team-info {
  text-align: center;
  padding: 32px 16px;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.social-icon {
  height: 40px;
  width: 40px;
  margin-top: 8px;
  background-color: #4d5ae5;
  border-radius: 50%;
  align-items: center;
  position: relative;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.social-icon:hover {
  background-color: #404bbf;
}
.icon {
  display: block;
  fill: #ffffff;
  width: 16px;
  height: 16px;
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
}

/* -------Our Portfolio------- */

.our-portfolio {
  padding: 120px 0;
}
.portfolio {
  line-height: 1.11111;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 24px;
  row-gap: 48px;
}
.portfolio-list-item {
  width: calc((100% - 48px) / 3);
}
.portfolio-list-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);
}
.portfolio-info {
  padding: 32px 16px;
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
}
.item-overlay {
  position: relative;
  overflow: hidden;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #f4f4fd;
  background-color: #4d5ae5;
  padding: 40px 32px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.item-overlay:hover .overlay {
  transform: translateX(0);
}

/* -------Footer------- */

.page-footer {
  background-color: #2e2f42;
  padding: 100px 0;
}
.page-footer .container {
  display: flex;
  align-items: flex-start;
  gap: 120px;
}
.page-footer .text-footer {
  color: #f4f4fd;
}
.logo-footer {
  display: inline-block;
  margin-bottom: 16px;
}
.accent-footer {
  color: #f4f4fd;
}
.text-footer {
  max-width: 264px;
}
.social-media {
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 16px;
}
.footer-icon:hover {
  background-color: #31d0aa;
}
