body {
  font-family: "Roboto", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  background-color: #ffffff;
}

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

ul {
  list-style-type: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 156px;
}

.header {
  display: flex;
  align-items: center;
}

.header-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.nav-list {
  display: flex;
  gap: 40px;
  margin-left: 76px;
}

.nav-item {
  position: relative;
}

.link {
  text-decoration: none;
  padding-top: 24px;
  padding-bottom: 24px;
}

.current {
  color: #404bbf;
}

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

.link:visited {
  color: inherit;
}

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

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

.contacts-list {
  display: flex;
  gap: 40px;
  /* transition: color 250ms
  cubic-bezier(0.4, 0, 0.2, 1); */
  /* doesnt work */
}

.contacts-list a:visited {
  color: inherit;
}

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

.contacts-item {
}

.contacts-link {
}

.logo-header {
  color: #2e2f42;
  font-family: "Raleway";
  font-size: 18px;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding-top: 24px;
  padding-bottom: 24px;
}

.logo-half {
  color: #4d5ae5;
}

.navi {
  font-weight: 500;
}

.hero-section {
  background-color: #2e2f42;
  text-align: center;
  padding-top: 188px;
  padding-bottom: 188px;
  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url(../images/hero-bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
}

.hero-button {
  color: #ffffff;
  background-color: #4d5ae5;
  font-weight: 500;
  letter-spacing: 0.04em;
  width: 169px;
  height: 56px;
  border: none;
  border-radius: 4px;
  margin-top: 48px;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.benefits-list {
  display: flex;
  gap: 24px;
}

.benefits-item {
  max-width: calc((100% - 24 * 3) / 4);
}

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

.benefits-title {
  color: #2e2f42;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  margin-top: 8px;
}

.benefits-text {
  margin-top: 8px;
}

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

.team-title {
  color: #2e2f42;
  line-height: 1.11;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
}

.team-list {
  display: flex;
  gap: 24px;
  margin-top: 72px;
  text-align: center;
}

.member-item {
  background-color: #fff;
  box-shadow: 0px 2px 1px 0px #2e2f4214;
  box-shadow: 0px 1px 1px 0px #2e2f4229;
  box-shadow: 0px 1px 6px 0px #2e2f4214;
  border-radius: 4px;
  max-width: calc((100% - 24 * 3) / 4);
}

.member-item:hover .member-social-link {
  background-color: #404bbf;
}

.member-title {
  color: #2e2f42;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  margin-top: 32px;
}

.member-text {
  margin-top: 8px;
}

.member-social-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 32px;
}

.member-social-item {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: calc((100% - 24 * 3) / 4);
}

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

.member-social-icon {
  /* fill: #f4f4fd; */
  /* remove fill in svg */
}

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

.portfolio-title {
  color: #2e2f42;
  line-height: 1.11;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
}

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 24px;
  margin-top: 72px;
}

.portfolio-item {
  max-width: calc((100% - 24 * 2) / 3);
}

.portfolio-item:hover {
  box-shadow: 0px 2px 1px 0px rgba(46, 47, 66, 0.08);
  box-shadow: 0px 1px 1px 0px rgba(46, 47, 66, 0.16);
  box-shadow: 0px 1px 6px 0px rgba(46, 47, 66, 0.08);
}

.overlay-box {
  overflow: hidden;
  position: relative;
  width: 360px;
  height: 300px;
}

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

.overlay-text {
  color: #f4f4fd;
}

.portfolio-item:hover .overlay {
  transform: translatey(0);
}

.project-border {
  border: 1px solid #e7e9fc;
  border-top: none;
  padding: 32px 16px;
}

.project-title {
  color: #2e2f42;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
}

.project-text {
  margin-top: 8px;
}

.footer-section {
  background-color: #2e2f42;
  padding-top: 100px;
  padding-bottom: 100px;
}

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

.logo-footer {
  color: #f4f4fd;
  font-family: "Raleway";
  font-size: 18px;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

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

.footer-social-text {
  font-family: Roboto;
  font-weight: 500;
  color: #fff;
}

.footer-social-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.footer-social-item {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: calc((100% - 16 * 3) / 4);
}

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

.footer-social-link:hover {
  background-color: #31d0aa;
}

.footer-social-icon {
  /* fill: #f4f4fd; */
  /* remove fill in svg */
}

.form-form {
}

.form-label {
  font-family: Roboto;
  font-weight: 500;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-text {
  /* margin-bottom: 16px; */
}

.footer-mail {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.form-input {
  padding: 8px;
  border: 1px solid #ffffff;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  width: 264px;
  height: 40px;
  background-color: #2e2f42;
  color: #fff;
}

.form-input:placeholder-shown {
  border-color: #fff;
}

.form-input:placeholder-shown:focus {
  border-color: #4d5ae5;
}

.form-input::placeholder {
  color: #fff;
  font-weight: 400;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.form-button {
  color: #ffffff;
  background-color: #4d5ae5;
  font-weight: 500;
  letter-spacing: 0.04em;
  width: 165px;
  height: 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.form-icon {
  margin-left: 16px;
}

.modal-overlay {
  background-color: rgba(46, 47, 66, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background-color: #fcfcfc;
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.14);
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
  max-width: 408px;
  max-height: 80%;
  overflow-y: auto;
}

.modal-text {

}

.modal-form {
display: flex;
flex-direction: column;
}

.