.hidden {
  display: none;
}

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

/*reset*/

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

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

a {
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

/*common*/

.container {
  max-width: 320px;
  padding: 0 16px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media screen and (min-width: 1158px) {
  .container {
    max-width: 1158px;
    padding: 0 15px;
  }
}

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

/* header */

.body-header {
  border-bottom: 1px solid #e7e9fc;
  background-color: #fff;
  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;
  justify-content: space-between;
}

.nav-list {
  display: none;
}

.header-address,
.contacts {
  display: none;
}

.logo-header-nav-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;
  padding: 16px 0;
  display: block;
}

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

.burger-btn {
  padding: 0;
  border: none;
  background-color: transparent;
}

.burger-icon {
  display: block;
  fill: #2f2f37;
}

@media screen and (min-width: 768px) {
  .burger-btn {
    display: none;
  }

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

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

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

  .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;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 4px;
    background-color: #404bbf;
    border-radius: 2px;
  }

  .header-address {
    font-style: normal;
    display: block;
  }

  .header-address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .header-adress-link {
    display: block;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #434455;

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

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

@media screen and (min-width: 1158px) {
  .logo-header-nav-logo {
    margin-right: 76px;
  }

  .header-address-list {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .header-adress-link {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding: 24px 0;
  }
}

/* mobile-menu */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;

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

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

.mobile-menu-container {
  position: relative;
  padding-top: 72px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-menu-close {
   position: absolute;
  top: 24px;
  right: 24px;
}

.mobile-menu-nav {
  
  margin-bottom: auto;
}

.mob-list-nav {
  display: flex;
  flex-direction: column;
  gap: 40px;
   }


.mobile-nav-link {
  font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2E2F42;
    }

    .mobile-nav-link-ocean {
      color: #404BBF;
    }


@media screen and (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-adress {
  margin-bottom: 48px;
}

.mobile-address-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-adress-link-phone {
  font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #4D5AE5;
    font-style: normal;
}

.mobile-adress-link-mail {
  font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #434455;
    font-style: normal;
}
/*hero section*/

.hero-section {
  background: #2e2f42;
  padding-top: 72px;
  padding-bottom: 72px;
  background-image: linear-gradient(
      to bottom,
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url(/goit-markup-hw-06/images/dark-bg-1x.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  max-width: 320px;
  margin: 0 auto;
}

@media (min-resolution: 2x) {
  .hero-section {
    background-image: linear-gradient(
        to bottom,
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(/goit-markup-hw-06/images/dark-bg-2x.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
}

.title-hero {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
  margin: 0 auto 72px;
  max-width: 216px;
}

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

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

@media (min-width: 768px) {
  .hero-section {
    padding-top: 112px;
    padding-bottom: 112px;
    background-image: linear-gradient(
        to bottom,
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(/goit-markup-hw-06/images/dark-bg-tablet-1x.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    max-width: 768px;
  }

  @media (min-resolution: 2x) {
    .hero-section {
      background-image: linear-gradient(
          to bottom,
          rgba(46, 47, 66, 0.7),
          rgba(46, 47, 66, 0.7)
        ),
        url(/goit-markup-hw-06/images/dark-bg-tablet-2x.jpg);
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
    }
  }

  .title-hero {
    font-size: 56px;
    line-height: 1.07;
    margin-bottom: 36px;
    max-width: 496px;
  }
}

@media (min-width: 1158px) {
  .hero-section {
    padding-top: 188px;
    padding-bottom: 188px;
    background-image: linear-gradient(
        to bottom,
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(/goit-markup-hw-06/images/people-office-dt-1x.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    max-width: 1440px;
    margin: 0 auto;
  }

  @media (min-resolution: 2x) {
    .hero-section {
      background-image: linear-gradient(
          to bottom,
          rgba(46, 47, 66, 0.7),
          rgba(46, 47, 66, 0.7)
        ),
        url(/goit-markup-hw-06/images/people-office-dt-2x.jpg);
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
    }
  }

  .title-hero {
    margin-bottom: 48px;
  }
}

/*features*/

.features-section {
  padding: 96px 0;
}

.features-div-icon {
  display: none;
}
 

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

.features-item {
  background: #fff;
  width: 100%;
}

.features-item-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 8px;
}
  .features-item-desription {
   
    line-height: 1.5;
}

@media (min-width: 768px) {
  .features-list {
    display: flex;
       gap: 72px 24px;
  }

  .features-item {
    background: #fff;
    width: calc((100% - 24px) / 2);
  }
  .features-item-title {
    text-align: left;
  }

  .features-item-desription {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
  }
}

@media (min-width: 1158px) {
  .features-div-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4fd;
    border: 1px solid #8e8f99;
    border-radius: 4px;
    max-width: 264px;
    height: 112px;
    margin-bottom: 8px;
  }

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

  .features-item {
    background: #fff;
    width: calc((100% - 3 * 24px) / 4);
  }

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

  .features-item-desription {
    font-size: 16px;
    font-weight: 400px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
  }
}

/*team section*/
.team-section {
  background-color: #f4f4fd;
  padding: 96px 0;
}

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

.team-image {
  display: block;
  margin: 0 auto;
  width: 264px;
}

.team-div-titdes {
  padding: 32px 16px;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
  justify-content: center;
}

.team-list-item {
  background-color: #fff;
  border-radius: 0 0 4px 4px;
  max-width: 264px;
  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-item-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  text-align: center;
  margin-bottom: 8px;
}

.team-item-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  text-align: center;
}

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

.team-social-list-item {
  width: 40px;
}

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

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

.team-icon {
  fill: #f4f4fd;
  stroke: white;
}

@media (min-width: 768px) {
  .team-div-titdes {
    padding: 32px 0;
  }

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

  .team-list-item {
    width: calc((100% - 24px) / 2);
    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);
  }
}

@media (min-width: 1158px) {
  .team-list {
    max-width: 1158px;
    gap: 24px;
    padding: 0;
  }

  .team-list-item {
    width: calc((100% - 3 * 24px) / 4);
    box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
      0px 1px 1px rgba(46, 47, 66, 0.16), 0px 2px 1px rgba(46, 47, 66, 0.08);
  }
}

/*portfolio*/

.portfolio-section {
  padding: 96px 0;
}

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

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

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

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

.portfolio-div-image:hover {
  transform: translateY(0);
}

.portfolio-div-titdes {
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  padding: 32px 16px;
  max-width: 288px;
}

.portfolio-image {
  display: block;
}

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

.portfolio-item-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

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

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

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

@media (min-width: 768px) {

  .portfolio-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
max-width: 100%;
  gap: 72px 24px;
  }

 .portfolio-list-item {
width: calc((100% - 1 * 24px) / 2);
 box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08);
 }
  .portfolio-div-titdes {
  max-width: 356px;
}

}

@media (min-width: 1158px) {
.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
max-width: 100%;
  gap: 72px 24px;
  }

 .portfolio-list-item {
width: calc((100% - 2 * 24px) / 3);
 transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  
}

.portfolio-div-image {
 position: relative;
  overflow: hidden;
}
  
.portfolio-div-image:hover {
  transform: translateY(0);}


  .portfolio-div-titdes {
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  padding: 32px 16px;
}

.portfolio-image {
  display: block;
}

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

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

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

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

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

/* #region footer */

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

  .footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 72px; 
  justify-content: center;
  }

 .footer-div-logo {
       text-align: center;
  }

.footer-div-social {
  flex-wrap: wrap;
  justify-content: center;      
    }

    .logo-footer-logo {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5;
  margin-bottom: 16px;
 
}

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

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

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

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

.footer-social-list {
 gap: 16px;
}

/* .footer-div-email {
  display: flex;
  flex-wrap: wrap;
justify-content: center;
   
gap:16px;

  margin-bottom: 96px;
} */

.footer-form-email {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.txt-field {
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  padding-left: 16px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border: 1px solid #fff;
border-radius: 4px;
width: 288px;
height: 40px;
color:#fff;
background-color: transparent;
transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button-footer-subsribe {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 165px;
  height: 40px;
  border: none;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ffffff;
  cursor: pointer;
  background-color: #4D5AE5;
  border-radius: 4px;
}

.footer-subscribe {
  fill:#fff;
  margin-left: 16px;
}

@media (min-width: 768px) {
.page-footer {
   padding: 96x 108px 164px;
  }

  .footer-container {
  max-width: 584px;
    display: flex;
  flex-wrap: wrap;
  gap: 72px 24px;
  justify-content: flex-start;
   
  }
.footer-div-logo {
    text-align: left;
  }

    /* .footer-div-email {
  display: flex;
  flex-wrap: wrap;
justify-content: center;
    


  margin-bottom: 0;
} */
.footer-form-email {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-social-description {
 
  text-align: left;

}

.footer-subscribe-description {
  text-align: left;
}

.txt-field {
  
width: 264px;

}
  }

  @media (min-width: 1158px) {

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

.footer-container {
  gap: unset;
  max-width: 1158px;
  display: flex;
 align-items: baseline;
 
}

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

.footer-div-social {
  max-width: 208px;
    }

.logo-footer-logo {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5;
  margin-bottom: 16px;
}


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

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

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

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

.footer-social-list {
  margin-left: 0;
  gap: 16px;
}

.footer-div-email {
    bottom: 0;
  margin-left: auto;
  margin-bottom: 132;
}

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


.txt-field {
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  padding-left: 16px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border: 1px solid #fff;
border-radius: 4px;
width: 264px;
height: 40px;
color:#fff;
background-color: transparent;
transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button-footer-subsribe {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 165px;
  height: 40px;
  border: none;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ffffff;
  cursor: pointer;
  background-color: #4D5AE5;
  border-radius: 4px;
}

.footer-subscribe {
  fill:#fff;
  margin-left: 16px;
}
  }


/* #endregion footer */

/*backdrop*/

.backdrop {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  background-color: rgba(46, 47, 66, 0.4);
  height: 100%;
  width: 100%;
  display: flex;
justify-content: center;
align-items: center;
  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);
}

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

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

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

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

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

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

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



.close-popup-icon {
  display: block;
  fill: #2e2f42;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  
}

.close-popup:hover .close-popup-icon,
.close-popup:focus .close-popup-icon{
 fill: #ffffff;
}

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

.field-wrapper {
position: relative;
}

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

.text-field:focus {
  border-color: #4D5AE5;
  outline: none;

  }

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

      .text-field:focus+.field-icon {
stroke:none;
fill:#4D5AE5;
      }

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


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

.comment-textarea:focus {
  border-color: #4D5AE5;
 }

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


.policy-label {
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size:  12px;
  line-height: 1.17;
 letter-spacing: 0.04em;
text-align: center;
color: #8e8f99;
}

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

.custom-checkbox {
  display: inline-flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-right: 8px;
    width: 16px;
  height: 16px;
  border-radius: 2px;
border: 1px solid rgba(46, 47, 66, 0.4);  
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);
}

.policy-checkbox:checked+.policy-label>.custom-checkbox {
background-color: #404bbf;
fill: #F4F4FD;
border: none;
}

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

.privacy-policy {
  font-weight: 400;
  font-size:  12px;
  line-height: 1.33;
text-decoration: underline;
text-decoration-skip-ink: none;
color: #4d5ae5;
}

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

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



@media (min-width: 768px) {
  .popup-review {
 
width: 408px;
padding: 72px 24px 24px 24px;
}

}