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

ol,ul{
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

a{
  text-decoration: none;
}

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

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

button{
  cursor: pointer;
  font-family: inherit;
}

.container{
  padding:0 15px;
  max-width: 1158px;
  margin: 0 auto;
}
/* header */
.header-container{
  display: flex;
}

.logo{
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5;
}

.header-logo{
  padding: 24px 0;
  margin-right: 76px;
}

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

.header{
  border-bottom: 1px solid #e7e9fc;
  box-shadow:0px 2px 1px rgba(46, 47, 66, 0.08), 0px 1px 1px rgba(46, 47, 66, 0.16), 0px 1px 6px rgba(46, 47, 66, 0.08);
}

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

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

.header-nav-link{
  display: block;
  padding: 24px 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.first-link{
  color: #404bbf;
}

.first-link::after{
  content: "";
  display: block;
  position: absolute;
  border-radius: 2px;
  background-color: #404bbf;
  width: 100%;
  height: 4px;
  bottom: -1px;
  left: 0;
}
/* .header-nav-link:hover::after,
.header-nav-link:focus::after{
  content: "";
  display: block;
  position: absolute;
  border-radius: 2px;
  background-color: #404bbf;
  width: 100%;
  height: 4px;
  bottom: -1px;
  left: 0;
}

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

.header-address{
  font-style: normal;
  margin-left: auto;
}

.header-address-list{
  display: flex;
  gap: 40px;
  text-align: center;
}

.header-address-link{
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  padding: 24px 0;
  display: block;
  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* solution */
.solution{
  padding-top: 188px;
  padding-bottom: 188px;
  background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/Portfolio/people-office.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  max-width: 1440px;
  margin: 0 auto;
}

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

.solution-button{
  background-color: #4d5ae5;
  border: none;
  display: block;
  margin: 0 auto;
  font-weight: 500;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  border-radius: 4px;
  padding: 16px 32px;
  min-width: 169px;
  height: 56px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  transition-property: background-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-button:hover,
.solution-button:focus{
  background-color: #404bbf;
}
/* about */
.about{
  padding: 120px 0;
}
.about-title{
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
}

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

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

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

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

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

.about-text{
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  max-width: 264px;
}
/* team */
.team{
  background-color: #f4f4fd;
  padding: 120px 0;
}

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

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

.team-item{
  
  border-radius: 0 0 4px 4px;
  width: calc((100% - 3*24px)/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);
  background-color: #fff;

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

.team-block{
  padding: 32px 0;
}


.team-img{
  width: 100%;
}
.team-text{
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 8px;
}
.team-icon-list{
  display: flex;
  justify-content: center;
  gap: 24px;
}

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

.team-icon-link:hover,
.team-icon-link:focus{
  background-color: #404bbf;
}

/* portfolio */
.portfolio{
  padding: 120px 0;
}

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

.portfolio-list{
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
}

.portfolio-item{
  width: calc((100% - 48px)/3);
  transition-property: box-shadow;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover,
.portfolio-item:focus{
  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;
}


.portfolio-image-block{
  position: relative;
  overflow: hidden;
}

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

.portfolio-overlay{
  position: absolute;
  bottom: 0;
  width: 100%;
  height:100%;
  background-color:#4d5ae5;
  transform: translateY(100%);
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  padding: 40px 32px;
  transition-property:transform ;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.portfolio-text{
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

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

.footer-container{
  display: flex;
  align-items: baseline;
}
.footer-logo-block{
  margin-right: 120px;
}


.footer-logo{
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-part{
  color: #f4f4fd;
}

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

.footer-icon-list{
  display: flex;
  max-width: 208px;
  justify-content: flex-start;
  gap: 16px;
  transition-property: background-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

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

.footer-icon-block-text{
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-form-block{
  margin-left: auto;
}

.footer-form-block-text{
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-form{
  display: flex;
  gap: 24px;
}

.footer-form-input{
  border: 1px solid #fff;
  border-radius: 4px;
  width: 264px;
  height: 40px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  padding:8px 16px ;
  background-color: transparent;
  /* margin-right: 24px; */
  transition:border-color 250ms ease-in-out ;
  color: #fff;
  font-weight: 400;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.footer-form-input:focus{
  border-color: #31d0aa;
  outline: none;
}

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

.footer-form-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 4px;
  padding: 8px 24px;
  min-width: 165px;
  height: 40px;
  background-color: #4d5ae5;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  border: none;
  transition:background-color 250ms ease-in-out ;
}

.footer-form-btn:hover,
.footer-form-btn:focus{
  background-color: #31d0aa;
}

.footer-form-svg{
  margin-left: 16px;
  fill: #fff;
}
/* modal */

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

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

.modal-wrapper{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  width: 408px;
  height: 80%;
  min-height: 584px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 2px 1px 0 rgba(0, 0, 0, 0.2);
  background-color: #fcfcfc;
  overflow: auto;
  padding: 72px 24px 24px 24px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close{
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color:#e7e9fc;
  border:1px solid rgba(0, 0, 0, 0.1);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.modal-close-svg{
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover,
.modal-close:focus{
  background-color: #404bbf;
  fill: #fff;
  border: none
}


.modal-title{
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 16px;
}


.modal-form-item{
  margin-bottom: 8px;
}

.modal-form-label{
  display: block;
  font-size: 12px;
  line-height: 1.16;
  letter-spacing: 0.04em;
  color: #8e8f99;
  margin-bottom: 4px;
  line-height: 1.17;
}

.modal-form-input-block{
  position: relative;
}

.modal-form-input-block >.modal-form-svg{
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-input:focus ~ .modal-form-svg{
  fill:#4d5ae5 ;
}

.modal-form-input{
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  width: 100%;
  height: 40px;
  background-color: transparent;
  padding-left: 38px;
  color: #2e2f42;
  outline: transparent;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-input:focus{
  border-color: #4d5ae5;
  outline: none;
}

.modal-form-comment-block{
  margin-bottom: 16px;
}

.modal-form-texarea{
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  width: 100%;
  height: 120px;
  resize: none;
  background-color: transparent;
  padding: 8px 16px;
  outline: transparent;
  line-height: 1.17;
  color: rgba(46, 47, 66, 0.4);
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-texarea:focus{
  border-color: #4d5ae5;
  outline: none;

}

.modal-form-texarea::placeholder{
  font-size: 12px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.04em;
  color: rgba(46, 47, 66, 0.4);
}

.modal-form-checkbox-block{
  margin-bottom: 24px;
}

.modal-form-checkbox-input:checked ~ .modal-form-checkbox-label .modal-form-custom-checkbox{
  background-color: #404bbf;
  fill: #f4f4fd;
  border: none;
}

.modal-form-checkbox-label{
  font-weight: 400;
  font-size: 12px;
  line-height: 1.16;
  letter-spacing: 0.04em;
  color: #8e8f99;
  line-height: 1.17;
}

.modal-form-custom-checkbox{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
  margin-right: 8px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  width: 16px;
  height: 16px;
  fill: transparent;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1), fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.form-privacy{
  line-height: 1.33;
  text-decoration: underline;
  color: #4d5ae5;
  
}

.modal-form-btn-submit{
  border-radius: 4px;
  padding: 16px 32px;
  min-width: 169px;
  height: 56px; 
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background-color: #4d5ae5;
  border-color: transparent;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
  display: block;
  margin: 0 auto;
  border: none;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-btn-submit:hover,
.modal-form-btn-submit:focus{
  background-color: #404bbf;
}