:root{
--mail-color: #434455;
--background: #FFFFFF;
--background-bt: #4D5AE5;
}

body {
    color: var(--mail-color);
    background-color: var(--background);
    font-family: Roboto, sans-serif;
}

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

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

a {
  text-decoration: 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;
}

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

button {
    cursor: pointer;
}

/* common */


.container {

  width: 320px;
  padding: 0 16px;
  margin: 0 auto;
  
}

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

}

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

}

/* header */

.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;
   justify-content: space-between;
}

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

.header-logo-link {
    color: #4d5ae5;
font-family: Raleway, sans-serif;
font-size: 18px;
font-style: normal;
font-weight: 800;
line-height: 1.17;
letter-spacing: 0.03em;
text-transform: uppercase;
text-decoration: none; 
display: block;
padding: 16px 0;
}

.header-logo-span {
    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-list-list {
    display: flex;
  gap: 40px;
}

.header-nav {
     display: flex;
   align-items: center;
  
}
.header-logo-link {
    padding: 24px 0;
    margin-right: 120px;
    
}
.header-menu-link {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
    padding: 24px 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    
}
.header-menu-link.current {
  position: relative;
}
.header-menu-link.current::after {
  content: '';
  
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #404bbf;
  
}

.header-menu-link:focus,
.header-menu-link:hover,
.header-menu-link.current {
    color:#404bbf 
}
.address {
    display: block;
  gap: 40px;
    font-style: normal;
}
.address-list {
    display: flex;
  gap: 12px;
  flex-direction: column;
    
}
.adress-link {
    font-size: 12px;
font-weight: 400;
line-height: 1.17; 
letter-spacing: 0.04em;
color: var(--mail-color);
list-style: none;
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);

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


@media screen and (min-width: 1158px) {
  .header-logo-link {
    padding: 24px 0;
    /* margin-left: 156px; */
 
 
}
.header-container {
   margin: 0 auto; 
}

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

.adress-link {
    font-size: 16px;
font-weight: 400;
line-height: 1.5; 
letter-spacing: 0.02em;
color: var(--mail-color);


}
}

/* <!-- mobie 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-nav {
  
 }

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

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

.mobile-menu-close:hover .mobile-modal-svg,
.mobile-menu-close:focus .mobile-modal-svg{
fill:#ffffff;
}

.mobile-modal-svg {
  fill:  #2e2f42;
  width: 8px;
  height: 8px;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1)
}


.nav-link-mobile {
 font-weight: 700;
font-size: 36px;
line-height: 1.11111;
letter-spacing: 0.02em;
color: #2e2f42;
  font-family: "Roboto", sans-serif;   transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 40px;  
}
.nav-link-mobile.current {
  position: relative;
}

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

.address-mobile-li {
  font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
color: #4d5ae5;
}
.address-mobile {
  display: block;         
  font-style: normal;     
  margin-top: auto;   
}
 .address-list-mobile {
  display: flex;
  gap: 24px;
  flex-direction: column;
  /* padding-bottom: 48px; */
  /* margin-top: 168px; */
  margin-bottom: 0;
 }

 .mobile-social-wrap {
  margin-top: 48px;
 }

 .address-link-mobile {
 font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
color: #434455;
 }

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

.address-link-mobile.current {
  color: #4d5ae5;
}


.solial-svg-mobile {
 display: flex;          
  justify-content: center;
  align-items: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #4D5AE5;
  border-radius: 50%;
}
.solial-svg-mobile:focus,
.solial-svg-mobile:hover {
  background-color: #404BBF;
  
}




 .nav-list {
 display: flex;
 flex-wrap: wrap;
  gap: 40px;

 }

  .mobile-social-wrap {
  display: flex;
  justify-content: center; 
}

.list-svg-mobile {
  display: flex;            
  justify-content: center;  
  align-items: center;      
  gap: 40px;                 
 
}

.solial-svg-mobile {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-color: #4D5AE5;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.solial-svg-mobile:hover {
  background-color: #31D0AA;
}

.social-mobile-img {
  fill: #fff;
  width: 24px;
  height: 24px;
}

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



/* main */

/* .solutions */

.solutions {
    background-color: #2e2f42;
    
    padding: 52px 0 52px; 
  background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/officemobmin.jpg); 
  max-width: 320px;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.container-solution {



}
.solutions-main {
 font-weight: 700;
font-size: 36px;
line-height: 1.11111;
letter-spacing: 0.02em;
text-align: center;
color: #fff;
margin-bottom: 72px;
text-align: center; 
 max-width: 216px;
 margin-right: 52px;
 margin-left: 52px;


}
.solutions-btn {
 font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.04em;
color: #fff;
margin: 0 auto;
min-width: 169px;
border: none; 
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

display: block;

border-radius: 4px;
padding: 16px 32px;

height: 56px;

box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
background: #4d5ae5;
}

.solutions-btn:hover{
    background-color: #404BBF;
}
.solutions-btn:focus{
    background-color: #404BBF;
  
}

@media screen and (min-resolution: 2x) {
.solutions {
  background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/officemob2x.jpg);
}
}

@media screen and (min-width: 768px) {
    .solutions-main {

 
max-width: 496px;

 font-weight: 700;
font-size: 56px;
line-height: 1.07143;
letter-spacing: 0.02em;

color: #ffffff;
 margin-right: auto;
 margin-left: auto;

margin-bottom: 0;

}
.solutions {
  max-width: 768px;
  background-color: #2e2f42;
    
    padding: 112px 0 112px; 
  background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/officetab-min.jpg); 

  
}
.container-solution {


}
.solutions-btn {

  margin-top: 36px;

}
}

@media screen and (min-resolution: 2x) {
.solutions {
  background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/officetab2x.jpg);
}
}




@media screen and (min-width: 1158px) {
 .solutions {
    background-color: #2e2f42;
    
    padding: 188px 0 188px; 
 background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/office.jpeg); 
  max-width: 1440px;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.container-solution {



}
.solutions-main {
 color: #ffffff ;
font-size: 56px;
font-style: normal;
font-weight: 700;
line-height: 1.07;
letter-spacing: 0.02em;
margin-bottom: 48px;
text-align: center; 
 max-width: 496px;
 margin-right: auto;
 margin-left: auto;


}



}


   /* <!-- benefits --> */

   .benefits {
    list-style: none;
    padding-top: 96px;
    padding-bottom: 96px;
   
}
.container-benefits {
}
.container {
}

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

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


.benifits-title-text {
  font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #434455;
}

.icons {
  display: none;
}
.conteiner-icons {
  display: none;
}

@media  screen and (min-width: 768px) {
 
.benefits {
  padding: 96px 16px;
}

.benefits-list {
  
  gap: 64px 24px;
}


.benefits-list-li{
    width: calc((100% - 24px) / 2);

}
.benefits-title {
  text-align: left;
  margin-left: 0;
}
}

@media  screen and (min-width: 1158px) {
  .conteiner-icons {

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


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

  font-weight: 500;
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.2;
  max-width: 264px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 8px;
}
.benifits-title-text {
   
font-style: normal;
font-weight: 400;
margin: 0;


}

.benefits-list-li{
    width: calc((100% - 72px) / 4);

}
}



/* team */

.team {
    padding-top: 72px;
  padding-bottom: 98px;
  background-color: #f4f4fd;
}
.team-container {
    width: 264px;
    padding: 0;
   
}
.team-main {
font-size: 36px;
font-style: normal;
font-weight: 700;
line-height: 1.11;
letter-spacing: 0.02em;
text-transform: capitalize;
text-align: center;
color: #2e2f42;

margin-bottom: 72px;

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

  
}
.team-number {
    border: 1px solid #FFFFFF;
  border-radius: 0px 0px 4px 4px;
  gap: 72px;
  background-color: #FFFFFF;
  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-foto {
   
}
 .team-name-container {
 padding: 28px 0;
 
 /* display: flex ; */
 text-align: center;

 
 
    }
.team-names {
 font-size: 20px;
font-style: normal;
font-weight: 500;
line-height: 1.2;
letter-spacing: 0.02em;
color:#2e2f42 ;
background-color: #FFFFFF;
margin-bottom: 8px; 
margin-left: 0;
margin-right: 0;

}
.team-title {
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 1.5;
letter-spacing: 0.02em;
color:#434455;
background-color: #FFFFFF;
margin: 0;
margin-bottom: 8px;

}

.team-number {
  width: 100%;
}

.solial-svg {
 display: flex;          
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #4D5AE5;
  border-radius: 50%;
}
.solial-svg:focus,
.solial-svg:hover {
  background-color: #404BBF;
  
}

.list-svg-li {
 
height: 40px;
width: 40px;
gap: 24px;
 transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1); 

}
.social-svg-img {
fill:#f4f4fd;          
  width: 16px;
  height: 16px;
}

.list-svg {
display: flex;
  gap: 24px; 
  justify-content: center;
  
 
}

@media screen and (min-width: 768px) {
  .team {
    padding-top: 96px;
  padding-bottom: 96px;
  background-color: #f4f4fd;
}
.team-container {
   
}
.team-main {
font-size: 36px;
font-style: normal;
font-weight: 700;
line-height: 1.11;
letter-spacing: 0.02em;
text-transform: capitalize;
text-align: center;
color: #2e2f42;

margin-bottom: 72px;

}
.team-list {
    display: flex;
  flex-wrap: wrap;  
  row-gap: 64px;
  column-gap: 24px;
  gap: 24px;
  justify-content: center; 
  padding-left: 125px;
  padding-right: 108px;
}
.team-number {
      width: calc((100% - 24px) / 2);
  gap: 24px;
}



 .team-name-container {
 padding: 16px 0;
 
 /* display: flex ; */
 text-align: center;

}

}

@media screen and (min-width: 1158px) {
  .team {
    padding-top: 120px;
  padding-bottom: 120px;
  
}

.container {
    width: 1158px;
    padding-left: 15px;
    padding-right: 15px;
   
}
.team-list {
 
/* column-gap: 19px;
  row-gap: 30px;
  gap: 24px; */
padding: 0;
  
}
.team-number {
      width: calc((100% - 3 * 24px) / 4);
  gap: 24px;
  


}


 .team-name-container {
 padding: 32px 0;
  }



}


/* portfolio */
  
.apps-container  {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
      border-radius: 0px 0px 4px 4px;
    border-top: none;
}

.btn-apps {
    padding-top: 94px;
  padding-bottom: 96px;
  background-color: #FFFFFF;
}
.apps-portfolio {
    font-size: 36px;
font-style: normal;
font-weight: 700;
line-height: 1.11;
letter-spacing: 0.02em;
text-transform: capitalize;
text-align: center;
color: #434455;
margin-bottom: 72px;

}
.img-list {
    display: flex;
  flex-wrap: wrap;
  /* column-gap: 24px;  */
  row-gap: 72px;
 
   

}


  

.box-item {
  position: relative;
  overflow: hidden;
  
}

.text-hover {
  font-weight: 400;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #f4f4fd;
position: absolute;
top: 0;
left: 0;
height: 100%;
background-color: #4d5ae5; 
padding: 40px 32px; 
transform: translateY(100%);
}

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


.img-list-text {
    font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 1.5;
letter-spacing: 0.02em;
list-style: none;
color: #434455;
text-decoration: none;
margin: 0;

}

.img-list-li:hover .text-hover {
transform: translateY(0%);
}


@media screen and (min-width: 768px) {
  .apps-container {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-radius: 0px 0px 4px 4px;
    border-top: none;
  }

  .btn-apps {
    padding-top: 96px;
    padding-bottom: 96px;
    background-color: #FFFFFF;
  }

  .img-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 72px;
  }

  .img-list-li {
    width: calc((100% - 24px) / 2);
   
  }



  .text-hover {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #4d5ae5;
    padding: 40px 32px;
    transform: translateY(100%);
  }

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

  .img-list-text {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    list-style: none;
    color: #434455;
    text-decoration: none;
    margin: 0;
  }

  .img-list-li:hover .text-hover {
    transform: translateY(0%);
  }
}

@media screen and (min-width: 1158px) {



  .btn-apps {
    padding-top: 120px;
    padding-bottom: 120px;
    
  }

  .img-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 72px;
  }

  .img-list-li {
    width: calc((100% - 2*24px) / 3);
   
  }
 
}

/* footer */

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

.footer-container {
 display: flex;
 justify-content: center;
 flex-direction: row;
 flex-wrap: wrap;
  align-items: center;

}
.webstudio-container {
 margin-bottom: 0;
text-align: center;
}

.footer-link {
  
font-family: Raleway, sans-serif;
font-size: 18px;
font-style: normal;
font-weight: 800;
line-height: 1.17;
letter-spacing: 0.03em;
text-transform: uppercase;
display: inline-block;
margin-bottom: 16px;

}
.footer-span {
    color: #F4F4FD;
}
.footer-text {
    color:#F4F4FD;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 1.5;
letter-spacing: 0.02em;
max-width: 264px;
margin: 0;
text-align: left;
}

.media-container {
  
  
  align-items: center;
  margin-top: 72px;
  margin-bottom: 0;
  text-align: center;
}

.footer-media {
   color:#FFFFFF;
font-size: 16px;
font-style: normal;
font-weight: 500;
line-height: 1.5;
letter-spacing: 0.02em;
max-width: 264px;
margin-bottom: 16px;

}

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

.footer-svg:focus,
.footer-svg:hover {
  background-color: #31D0AA;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-link-li {
   width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4d5ae5;

display: flex;          
  justify-content: center;
  align-items: center;
  gap: 16px;
   transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}

.footer-svg-img {
  fill:#f4f4fd;          
  width: 24px;
  height: 24px;
}
.footer-svg-link {
  display: flex;
  gap: 16px;
 
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-form-div {

  align-items: center;
  gap: 16px;
  width: 100%; 
  margin-top: 72px;
  margin-left: 0;

}  

.footer-input {
width: 288px;
height: 40px;
border: 1px solid #ffffff;
background-color: transparent;
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-radius: 4px;
color: #ffffff;
margin-bottom: 16px;
align-items: center;

}

.footer-input:focus,
.footer-input:hover
{
  background-color: #31D0AA;
}
.footer-input::placeholder {
font-weight: 400;
font-size: 12px;
line-height: 2;
letter-spacing: 0.04em;
color: #ffffff;

}



.footer-form-btn {
 min-width: 165px; 
 height: 40px;


 font-family: "Roboto", sans-serif;
 font-size: 16px;
 font-weight: 500;
 line-height: 1.5;
 letter-spacing: 0.04em;
 color: #ffffff;
 cursor: pointer;
 background-color: #4D5AE5;
  border: none;
   border-radius: 4px; 
 margin: 0 auto;

}
.btn-svg {
  fill: #ffffff;
  margin-left: 16px
}
 

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

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

.footer-form {
  display: flex;
  flex-direction: column;

}


@media screen and (min-width: 768px) {


.footer-container {
 display: flex;
 justify-content: start;
 flex-direction: row;
 flex-wrap: wrap;
 /* padding-left: 92px; */
  align-items: baseline;

}
.webstudio-container {
 margin-bottom: 0;
text-align: start;
margin-right: 24px;
margin-top: 0;
margin-bottom: 0;
}


.media-container {
  margin-top: 0;
  text-align: start;
}


.footer-form {
  height: 40px;
 display: flex;
 align-items: baseline;
 flex-direction: row;
 gap: 24px;
}
.footer-form-div {

 margin-top: 72px;


}  

.footer-text-form {
  text-align: start;
}
.footer-form-btn {
margin-left: 0;
margin-right: 0;

 
}
}

@media screen and (min-width: 1158px) {
.footer {
    background-color: #2e2f42;
    padding: 100px 0 100px 0; 
    width: 100%;
     
}

.footer-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  margin: 0 auto;
  

 
}

.webstudio-container {
   margin-right: 80px;

 
}

.footer-text {
    color:#F4F4FD;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 1.5;
letter-spacing: 0.02em;
max-width: 264px;
margin: 0;
}

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

.footer-form-div {
 
  align-items: baseline;
  margin-left: 80px;
  
  
}
  

.footer-input {
width: 264px;


}

.media-container {
margin-left: 0;
}

.footer-media {
  justify-content: flex-start;
}

}

/* backdrop */


.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 47, 66, 0.4);

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

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 288px;
  min-height: 623px;

  transform: translate(-50%, -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: #fcfcfc;
  border-radius: 4px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  /* opacity: 0;
  visibility: hidden;
  pointer-events: none; */
}

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

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

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

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

.modal {
 padding: 72px 16px 24px 16px;
}

.icon-modal {
  fill:  #2e2f42;
  width: 8px;
  height: 8px;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1)
}

 .icon-modal:focus {
  fill: #ffffff; 
 }
 .icon-modal:hover {
  fill: #ffffff; 
}


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

.modal-field {
 margin-bottom: 4px;
  
}

.modal-input {
border: 1px solid rgba(46, 47, 66, 0.4);
border-radius: 4px;
height: 40px;

padding-left: 38px;
outline: transparent;
transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1); 
width: 100%; 
background-color: transparent;
}

.modal-input:focus {
  border-color: #4D5AE5; 
}

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


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

margin-bottom: 4px;

line-height: 1.17;
}

.modal-field-label {
  margin-bottom: 16px;
}

.input-wrapper {
  position: relative;

}

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

.input-icon:focus {

  fill: #4D5AE5; 
}

.modal-textarea {
  border: 1px solid rgba(46, 47, 66, 0.4);
border-radius: 4px;
width: 100%;
height: 120px;


outline: transparent;
transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
font-size: 12px; 
line-height: 1.17; 
letter-spacing: 0.04em; 
color: rgba(46, 47, 66, 0.4); 
background-color: transparent; 
padding: 8px 16px; 
resize: none;
}

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

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

 .check:checked + .modal-check-label > .modal-check-box {

background-color: #404bbf; 
border: none;
  fill: #F4F4FD; 
}

.modal-field-policy {
  margin-bottom: 24px;  
}
.modal-check-label {
  font-weight: 400;
font-size: 12px;
line-height: 1.16667;
letter-spacing: 0.04em;
color: #8e8f99;
align-items: center;
margin-bottom: 30px;
line-height: 1.17; 

}
.modal-link-check {
  line-height: 1.33333;
text-decoration: underline;
text-decoration-skip-ink: none;
color: #4d5ae5;
}

.modal-check-box {
 display: inline-flex; 
  align-items: center;
  justify-content: center;
  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);
 margin-right: 8px;
}

.modal-btn {
    background-color: #4d5ae5;;
color:var(--background);
font-family: Roboto, sans-serif;
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.04em;
cursor: pointer;
border-radius: 4px;
height: 56px;
display: block;
margin: 0 auto;
min-width: 169px;
border: none; 
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}
.modal-btn:hover {
    background-color: #404BBF;
}
.modal-btn:focus {
    background-color: #404BBF;
}

@media screen and (min-width: 768px) {



.modal {
 
  width: 408px;
  min-height: 584px;

}



.modal {
 padding: 72px 24px 24px 24px;
}



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


}

@media screen and (min-width: 1158px) {



.modal {
 
  width: 408px;
  min-height: 584px;

}



.modal {
 padding: 72px 24px 24px 24px;
}



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


}