body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  background-color: #fff;
}
.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;
}
.container {
  max-width: 1158px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}
.section {
  padding-top: 120px;
  padding-bottom: 120px;
}
img {
  display: block;
}

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

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

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

.navigation .container {
  display: flex;
  justify-content: space-between;
}

.nav-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-page .logo {
  margin-right: 76px;
}
.nav-list {
  display: flex;
  gap: 40px;
}

.link {
  text-decoration: none;
}

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

.accent {
  color: #2e2f42;
}

.nav-list-link {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;

  padding: 24px 0;

  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-list-link.current {
 position: relative;
}
.nav-list-link.current::after {
 content: "";

  position: absolute;

  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #404BBF;
  left: 0;
  bottom: -1px;
}

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

.nav-list-link:active {
  color: #404bbf;
}


.contact-list {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.page-contact {
  font-style: normal;
}
.contact-list {
  display: flex;
  gap: 40px;
}

.contact-link {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;

  display: block;
  padding-top: 24px;
  padding-bottom: 24px;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-link:hover,
.contact-link:focus {
  color: #404bbf;
}

.hero-page {
  padding: 188px 0;
  margin: 0 auto;

  max-width: 1440px;
  background-color: #2e2f42;
  background-image: linear-gradient(to bottom,
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)),
      url(../images/hero-background.jpg);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

.hero-title {
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;

  max-width: 496px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.hero-button {
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  background-color: #4d5ae5;

  border: none;
  display: block;
  min-width: 169px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
  padding: 16px 32px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    
}
.hero-button:hover,
.hero-button:focus {
  background-color: #404bbf;
}

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

.features-list {
  display: flex;
  gap: 24px;
 justify-content: space-between;
}
.features-icon-container {
  border: 1px solid #8E8F99;
  border-radius: 4px;
  background-color: #F4F4FD;

  padding: 24px 100px;
  margin-bottom: 8px;

  display: flex;
  height: 112px;
  align-items: center;
  justify-content: center;
}
.features-icon {
 fill: none;
 
}

.features-list-item {
width: calc((100% - 72px) / 4);
}
.features-title {
  margin-bottom: 8px;

  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
.features-text {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.team-page {
  background-color: #f4f4fd;
}
.team-page .title {
  margin-bottom: 72px;

  text-transform: capitalize;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
}

.name-list {
  display: flex;
  gap: 24px;
}
.name-item-box {
  background-color: #fff;

  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);
  
}
.name-item-box-text {
  padding: 32px 0;
}

.name-item-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;

  margin-bottom: 8px;
}
.name-item-text {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;

  margin-bottom: 8px;
}

.name-item-social-list {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.name-item-social-link {
  display: flex;
  line-height: 0;
  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);
}
.name-item-social-link:hover, .name-item-social-link:focus {
  background-color: #404BBF;
}

.name-item-social-icon {
  fill: #f4f4fd;
}

.portfolio .title {
margin-bottom: 72px;

  text-transform: capitalize;
  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-list-item {
  width: calc((100% - 48px) /3);
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.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-img-wrapper {
  position: relative;
  overflow: hidden;
}

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

.overlay-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #F4F4FD;

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

.portfolio-list-item-text {
  padding: 32px 16px;
  border: 1px solid #e7e9fc;
  border-top: none;
}

.portfolio-title {
 margin-bottom: 8px;

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

  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

/* FOOTER */
.basement {
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: #2e2f42;
}

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

.basement .logo {
  display: inline-block;
  margin-bottom: 16px;
}
.basement .accent {
  text-decoration: none;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f4f4fd;
}
.slogan-text {
 max-width: 264px;

  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
}

.social-links {
  margin-right: 80px;
}
.social-links-title {
 font-weight: 500;
 font-size: 16px;
 line-height: 1.5;
 letter-spacing: 0.02em;
 color: #FFFFFF;

 margin-bottom: 16px;
}
.social-links-list {
  display: flex;
  gap: 16px;
}

.social-list-link {
 display: flex;
  line-height: 0;
  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-list-link:hover, .social-list-link:focus {
  background-color: #31D0AA;
}
.social-link-icon {
 fill: #f4f4fd;
}

.subscr-title {
  font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #FFFFFF;
  
    display: block;
    margin-bottom: 16px;
}
.subscr-form {
  display: flex;
  gap: 24px;
}

.subscr-input {
  padding-left: 16px;

  border: 1px solid #fff;
  border-radius: 4px;
  width: 264px;
  height: 40px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background-color: transparent;

  font-family: inherit;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #fff;
}
.subscr-input::placeholder {
  color: #fff;
}


.subscr-form-btn {

  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
  background-color: #4d5ae5;

  border-radius: 4px;
  min-width: 165px;
  height: 40px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
    
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);  
}
    
.subscr-form-btn:hover,
.subscr-form-btn:focus {
      background-color: #404bbf;
}
.sbrscr-form-icon {
 margin-left: 16px;
  top: 8px;
  right: 24px; 

  fill: #fff;
}

/* MODAL */
.backdrop {
position: fixed;
top: 0;
left: 0;

width: 100%;
height: 100%;
z-index: 9999;
overflow: auto;

background-color: rgba(46, 47, 66, 0.4);

opacity: 0;
visibility: hidden;
pointer-events: none;

display: flex;
justify-content: center;
align-items: center;

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;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 72px 24px 24px;

  border-radius: 4px;
  width: 408px;
  min-height: 584px;

  background-color: #FCFCFC;
  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);

  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.form-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;

  padding: 0;
  line-height: 0;

  cursor: pointer;
  font-family: "Roboto", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #E7E9FC;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  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);
}
.form-close-btn:hover, .form-close-btn:focus {
 background-color: #404BBF;
 border: none;
}
.form-close-btn:hover .form-close-icon,
.form-close-btn:focus .form-close-icon {
  fill:#ffffff;
}
.form-close-icon {
  fill: #2E2F42;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-slogan {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2E2F42;

    margin-bottom: 16px;
}
.review-form-field-label {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8E8F99;

    display: block;
    margin-bottom: 4px;
}
.review-form-input {
  width: 100%;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  height: 40px;
  outline: transparent;

  background-color: transparent;

  padding-left: 38px;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #2E2F42;

  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.review-form-input:focus {
  border-color: #4D5AE5;
  outline: none;
}
.review-form-input:focus + .review-form-input-icon {
  fill: #4D5AE5;
}

.review-form-fields-wrapper {
  margin-bottom: 8px;

  position: relative;
}
.review-form-fields-comment-wrapper {
  margin-bottom: 16px;
}

.review-form-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  fill: #2E2F42;

  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.review-form-comment {
  width: 100%;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  height: 120px;
  outline: transparent;

  padding: 8px 16px;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: rgba(46, 47, 66, 0.4);
  background-color: transparent;
  resize: none;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
.review-form-comment::placeholder {
  color: #8E8F99;
}
.review-form-comment:focus {
  border-color: #4D5AE5;
  outline: none;
}
.review-form-checkbox:checked + .review-form-checkbox-label > .review-form-custom-checkbox {
 background-color: #404BBF;
 fill: #F4F4FD;
 border: none;
}

.review-form-custom-checkbox {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  fill: transparent;
  cursor: pointer;

  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);
}
.review-form-checkbox-label {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8E8F99;
}
.review-form-policy-link {
  line-height: 1.33;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #4D5AE5;
}
.review-checkbox-wrapper {
  margin-bottom: 24px;
}

.review-form-submit-btn{

  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  text-align: center;
  color: #FFFFFF;

  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: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  
    }
    
    .review-form-submit-btn:hover,
    .review-form-submit-btn:focus {
      background-color: #404bbf;
}