body {
    font-family: "Roboto",sans-serif;
    color:#434455 ;
    background-color: #ffffff;
  }
ul, 
ol {
    margin: 0;
    padding-left: 0;
    list-style-type: none;
  }
a {
    text-decoration: none;
  }
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

img {
  display: block;
}

input,
textarea {
  font-family: inherit;
}

.container-team {
  padding: 32px 16px;
}

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

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

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

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

.page-nav {
  display: flex;
  align-items: center;
}

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

.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;
  }
  
.header-logo .logo-part {
  color: #2e2f42;
  }
  
.nav-item-link {
  display: block;
  padding: 24px 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

.nav-item-link.current {
    position: relative;
  }

.nav-item-link.current::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #404bbf;
  }

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

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

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

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

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

.main-section{
  background-color: #2e2f42;
  padding-top: 188px;
  padding-bottom: 188px;
  background-image:
  linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
  url(../images/main-section.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  max-width: 1440px;
  margin: 0 auto;
  }
.main-title{
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
  width: 496px;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
  }
.main-section-button{
  display: block;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  background-color: #4d5ae5;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-family: inherit;
  border-radius: 4px;
  padding: 16px 32px;
  min-width: 169px;
  height: 56px;
  border: none;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

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

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

.features-item{
  width: calc((100% - 72px) / 4);
  }

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

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

.features-discription {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  }
.team-section{
  background-color: #f4f4fd;
  }
.team-title{
  margin-bottom: 72px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  }

.team-list {
  display: flex;
  align-items: center;
  gap: 24px;
  }
.team-item{
  background-color: #ffffff;
  width: calc((100% - 72px) / 4);
  border-radius: 0 0 4px 4px;
  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-title-list {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  }
.team-description {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  }

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

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


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

.social-icon {
    fill: #f4f4fd;
    }

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

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


.portfolio-img-overlay {
  position: relative;
  overflow: hidden;
  }

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

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

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

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

.portfolio-container{
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  padding: 32px 16px;
  background-color: #fff;
  }

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

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

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

.footer-logo-container {
  margin-right: 120px;
}

.footer-social {
  margin-right: 80px;
}

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

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

.footer-social-header {
   font-weight: 500;
   font-size: 16px;
   line-height: 1.5;
   letter-spacing: 0.02em;
   color: #fff;
 }

  .footer-social-item {
    display: flex;
    gap: 16px;
    margin-top: 16px;
  }

.footer-social-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-icon {
  fill: #f4f4fd;
  }

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

.footer-container {
  display: flex;
  align-items: baseline;
  }


.footer-subscribe {
  display: flex;
  justify-content: center;
  flex-direction: column;
  max-width: 453px;
  max-height: 80px;
  margin-left: auto;
}

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

.input-wrap {
  display: flex;
  gap: 24px;
}

.footer-input {
  position: static;
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 4px;
  outline: none;
  width: 264px;
  height: 40px;
  font-weight: 400;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 8px 16px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-input:hover,
.footer-input:focus {
  border-color: #31d0aa;
}

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

.footer-form-button {
  border-radius: 4px;
  padding: 8px 24px;
  width: 165px;
  height: 40px;
  column-gap: 16px;
  background-color: #4d5ae5;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-button-icon {
  fill: #fff;
  width: 24px;
  height: 24px;
}


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


.backdrop {
  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;
  visibility: hidden;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
  visibility 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}

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

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 4px;
  width: 408px;
  height: 80%;
  padding: 72px 24px 24px 24px;
  overflow-y: auto;
  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;
  transform: translate(-50%, -50%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.backdrop:not(.is-open) .modal {
  transform: translate(-50%, -50%) scale(1.5);
}


.modal-close{
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: #e7e9fc;
  width: 24px;
  border-style: solid;
  height: 24px;
  border-radius: 100%;
  fill: #2e2f42;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  border-width: 1px;
  border-color: rgba(0, 0, 0, 0.1);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
  fill 250ms cubic-bezier(0.4, 0, 0.2, 1) ;
}

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

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

.field-wrapper {
  margin-bottom: 8px;
}

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

.form-input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 10px 0 38px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #2e2f42; 
}

.form-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  fill: #2E2F42;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-input {
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  width: 100%;
  height: 120px;
  margin-bottom: 16px;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  resize: none;
  padding: 8px 16px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #2e2f42;

}

.terms-label{
  display: inline-block;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #8e8f99;
}

.input-wrapper {
  position: relative;
}


.comment-input::placeholder {
  color: rgba(46, 47, 66, 0.4);
}

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

.form-input:focus + .form-icon {
  fill: #4d5ae5;
}

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

.input-checkbox:focus + .terms-label .custom-checkbox {
  border-color: #4d5ae5;
  outline: none;
}

.input-checkbox:checked + .terms-label .custom-checkbox {
  background-color:#404bbf;;
  fill: #f4f4fd;
}

.privacy-link {
  text-decoration: underline;
  line-height: 1.33;
  text-decoration-skip-ink: none;
  color: #4d5ae5;
}

.privacy-link:hover,
.privacy-link:focus {
  text-decoration: none;
}

.form-submit-button {
  display: block;
  border-radius: 4px;
  padding: 16px 32px;
  height: 56px;
  width: 169px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background-color: #4d5ae5;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
  color cubic-bezier(0.4, 0, 0.2, 1);
}

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