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

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
}

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

ul,
ol {
    margin: 0;
    padding: 0;
   
}
button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
    height: 100%;
}
/* conteiner*/
.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;
        }
     }
         .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);
             background: #fff;
    
     }

.header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        }
        
.header-list,
.adress {
    display: none;
} 
.header-logo {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #bc2121;
 
display: block;
padding: 16px 0;
}



.header-logo-span {

    color: #1d0808;

}

.icon-hero-btm {
    margin: 0;
    border: none;
    background-color: transparent;
}
.icon-hero-btm-menu { 
    display: block;
    fill: #2e2f37;
}
@media screen and (min-width: 768px) {

    .icon-hero-btm {
        display: none;
    }
    .header-logo {
    padding: 24px 0;
    margin-right: 120px;
    }
        .header-list {
        display: flex;
        align-items: center; 
        gap: 40px;
    
        }
 .adress {
     font-style: normal;
    display: block;
          }
.header-navigation {
display: flex;
  align-items: center; 
 }
 .header-items {
     font-weight: 500;
     font-size: 16px;
     line-height: 1.5;
     letter-spacing: 0.02em;
     color: #2e2f42;

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

 }

 .header-items.current {
     position: relative;
 }

 .header-items.current::after {
     content: '';
     position: absolute;
     left: 0;
     bottom: -1px;
     border-radius: 2px;
     background: #bc2121;
     height: 4px;
     width: 100%;
 }

 .header-items:hover,
 .header-items:focus,
 .header-items.current {
     color: #b92222;
 
} 
.adres-list-item:hover,
.adres-list-item:focus {
    color: #bc2121;

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

}
.adres-list-item {
    font-size: 12px;
    color: #e9e9f0;
    line-height: 117%;
    letter-spacing: 0.04em;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
display: block;

}

}

@media screen and (min-width: 1158px) {
    .header-logo {
        margin-right: 76px;
    }
        .adres-list-item {
    
            font-size: 16px;
            line-height: 1.5;
            letter-spacing: 0.02em;
         
    padding: 24px 0 24px; }

 .adress-list {
  flex-direction: row;
  align-items: center;
    
    gap: 40px;
    
  }
  .adress {
      font-style: normal;

  }
}
.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 {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-container {
    position: fixed;
    padding-top: 72px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    
}
.header-navigation-mobile {
    margin-bottom: auto;
}
.modal-close-btm-mobile {
    position: absolute;
    top: 24px;
    right: 24px;
    border-radius: 50%;
        fill: #e7e9fc;
        stroke-width: 1px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #e7e9fc;
        padding: 0;
        cursor: pointer;
}
.header-list-mobile li:not(:last-child) {
margin-bottom: 40px;
} 
.header-items-mobile {
  
        font-weight: 700;
        font-size: 36px;
    
        line-height: 111%;
        letter-spacing: 0.02em;
        color: #2e2f42;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.adress-mobile {
    margin-bottom: 48px;
}
.adres-list-item-mobile {

        font-weight: 500;
        font-size: 20px;
    font-family: "Roboto", sans-serif;
    font-style: normal;
        line-height: 120%;
        letter-spacing: 0.02em;
        color: #ffffff;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.header-items-mobile:hover,
.header-items-mobile:focus {
    color: #bc2121;
}

.adres-list-item-mobile:hover,
.adres-list-item-mobile:focus {
    color: #bc2121;
}
.adress-list-mobile li:not(:last-child) {
    margin-bottom: 24px;
}
.footer-iconk-list-mobile {
    width: 40px;
    height: 40px;

}
.footer-iconk-ul-mobile {
    display: flex;
    gap: 40px;


}
.footer-iconk-mobile {
    fill: #f4f4fd;
}

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


.footer-iconk-a-mobile:hover,
.footer-iconk-a-mobile:focus {
    background-color: #404bbf;
}
@media screen and (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}
.hero {
    padding: 72px 0;
    margin: 0 auto;
    background-image: linear-gradient(rgba(119, 119, 125, 0.7),
            rgba(152, 152, 157, 0.7)),
        url(../images/amanita/amanita.jpeg);
    max-width: 360px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 760px auto;
   
}
@media screen and (min-resolution: 2x) {
.hero {
background-image: linear-gradient(rgba(46, 47, 66, 0.7),
            rgba(46, 47, 66, 0.7)),
        url(../images/amanita/amanita.jpeg);
    }
}
.hero-title {
font-weight: 700;
    font-size: 24px;
     line-height: 111%;
    letter-spacing: 0.02em;

    text-align: center;
    color: #fff;
    max-width: 180px;
   margin: 0 auto;
    margin-bottom: 72px;
    font-family: "Roboto", sans-serif;
        
    
       
     

}

.hero-btn {

    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    cursor: pointer;
    background-color: #4d5ae5;
    display: block;
    min-width: 169px;
    height: 56px;
    border: none;
    border-radius: 4px;
    text-align: center;
    margin: 0 auto;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}
.hero-btn:hover,
.hero-btn:focus {

    background-color: #404BBF;
}
@media screen and (min-width: 768px) {
    .hero-title {
            font-weight: 700;
            font-size: 56px;
        
          
            line-height: 107%;
           
            max-width: 496px;
           
    }}

.hero {
    padding: 112px 0;
        max-width: 768px;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7),
                    rgba(46, 47, 66, 0.7)),
                url(../images/amanita/amanita.jpeg);
}

/* @media screen and (min-resolution: 2x) {
    .hero {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7),
                rgba(46, 47, 66, 0.7)),
            url(../images/hero/hero-tab-2x-min.jpg); 
} }
    }
/* .hero-title {
    max-width: 496px;
    margin-bottom: 36px;
} */



@media screen and (min-width: 1158px) {
    .hero {
        padding: 188px 0;
        max-width: 1440px;
            background-image: linear-gradient(rgba(46, 47, 66, 0.7),
                        rgba(46, 47, 66, 0.7)),
                    url(../images/amanita/amanita.jpeg)
    } 
}
   
        .hero-title {
        max-width: 496px;
       
            margin-bottom: 48px;
        } 
          /* @media screen and (min-resolution: 2x) {
            .hero {
                background-image: linear-gradient(rgba(46, 47, 66, 0.7),
                        rgba(46, 47, 66, 0.7)),
                    url(../images/hero/hero-desk-2x-min.jpg);
} }
}   */


.team {
    padding: 46px 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;

} */
/* .team-list {
    display: flex;
    gap: 72px;
    flex-wrap: wrap;
  } */
  .team-iconk {
    display: none;
  }
  .team-list-item {
      /* font-weight: 500;
      font-size: 20px;
      line-height: 1.2;
      letter-spacing: 0.02em;
      color: #2e2f42; */
/* 
    display: flex;
      
      flex-wrap: wrap; */
    
  }
  .team-title {
    
        font-weight: 700;
        font-size: 36px;  
        line-height: 111%;
        letter-spacing: 0.02em;
        text-align: center;
        color: #2e2f42;
        align-items: center;
        margin-bottom: 8px;
  }
  .team-text {
  
    
        font-weight: 500;
        font-size: 16px;
 
        line-height: 150%;
        letter-spacing: 0.02em;
        color: #434455;
        max-width: 768px ;
  }
  @media screen and (min-width: 768px) {
    .team-list {
       
            
     gap: 72px 24px ;
            
        }
                .team-title {
                    text-align: left;
                }
 .team-list-item {
  
flex-basis: calc((100% - 24px) / 2);
 }
  .team-text {
    max-width: 356px;

  }
  
  }
        @media screen and (min-width: 1158px) {
            .team {
                padding: 120px 0;
            }
            .team-iconk {
              display: block;
            }
.team-list {
gap: 24px;
   }
   .team-list-item {
    flex-basis: calc((100%-72px)/4);
  
            max-width: 760px;
        
   }
   .team-iconk-div {

       width: 100%;


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


   }
   .team-title {
    
        font-weight: 500;
        font-size: 20px;
    
       
        line-height: 120%;
        letter-spacing: 0.02em;
     
   }
        .team-text {
            max-width: 264px;
                font-weight: 400;
        }
.title {
    text-transform: capitalize;
        font-size: 36px;
        line-height: 1.11;
        letter-spacing: 0.02em;
        text-align: center;
        color: #2e2f42;
        margin-bottom: 34px;
}
        }

     
        .portfolio {
            padding-top: 46px;
                padding-bottom: 46px;
        }
                .portfolio-title {
                    text-transform: capitalize;
                    font-size: 36px;
                    line-height: 1.11;
                    letter-spacing: 0.02em;
                    text-align: center;
                    color: #2e2f42;
                    margin-bottom: 72px;
                }
                                .portfolio-list {
                
                                    display: flex;
                                    flex-wrap: wrap;
                                    gap: 48px 0px;
                                }
  
  .portfolio-title-two {
      font-weight: 500;
      font-size: 20px;
      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;
      color: #434455;
  }
  .portfolio-block {
      position: relative;
      overflow: hidden;

  }
.portfolio-list-item {
    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-list-item:hover .portfolio-text-block {
      transform: translateY(0);
  }

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

  .border {
      border-bottom: 1px solid #e7e9fc;
      border-left: 1px solid #e7e9fc;
      border-right: 1px solid #e7e9fc;
      padding: 32px 16px;
      width: auto;
      height: 120px;
  }
        @media screen and (min-width: 768px){
            .portfolio-list {
            
                  
                    gap: 72px 24px;
                }
                           .portfolio-list-item {
                               width: calc((100%-24)/2);
                              
                           }
        }
                 @media screen and (min-width: 1158px) {
                    .portfolio-list {
                    
                    
                            gap: 48px 24px;
                        }
                                                          .logo-paragraf {
                                                              text-align: left;
                            
                            
                            
                                                          }
                                   .portfolio-list-item {
                                       width: calc((100%-96)/6);
                                    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);
            background: #fff;
                                          }
                 }
                .footer {
                    background: #24431c;
                    padding: 96px 0;
                    display: flex;
                    flex-wrap: wrap;
                 
                
                }
                .logo-paragraf {
                 margin: 100px;
                    text-align: left;



                }
        
                .footer-logo {
                    font-family: "Raleway", sans-serif;
                    font-weight: 700;
                    font-size: 18px;
                    line-height: 1.17;
                    letter-spacing: 0.03em;
                    text-transform: uppercase;
                    color: #bc2121;
                    display: inline-block;
                    margin-bottom: 16px;
                 
        
                }
        
                .footer-logo-span {
                    font-weight: 700;
                    font-size: 18px;
                    line-height: 1.17;
                    letter-spacing: 0.03em;
                    text-transform: uppercase;
                    color: #f4f4fd;
                }
        
                .footer-text {
                    font-size: 16px;
                    line-height: 1.5;
                    letter-spacing: 0.02em;
                    color: #f4f4fd;
                    max-width: 288px;
                }
        
/*         
                .container */
                .footer-div {
                    
                    /* width: 288px; */
                        display: flex;
                        flex-wrap: wrap;
                         justify-content: center; 
                        gap: 200px;
        
                }
       
        
                placeholder {
                    color: #ffffff;
                }
        
                
                         @media screen and (min-width: 768px)     {
.footer-div {
padding-left: 108px;
       /* width: 768px; */
        justify-content: flex-start;
    
        gap: 72px 24px;

    }
   .footer-text {
    /* margin-bottom: 72px; */
   }
   
         .footer-media {
            text-align: left;
         }
                                  .footer-subscribe {
                    text-align: left;
                 }
                                 .logo-paragraf {
                                    text-align: left;
                                 }
                 }
               @media screen and (min-width: 1158px) {
.footer {
    padding: 120px 0;
}
.footer-div {
    padding-left: 15px;
/* width: 1158px; */
gap:0;
    align-items: baseline;

}
.logo-paragraf {

    margin-right: 100px;
}
.footer-div-form {
    /* margin-left: 80px; */
    justify-content: space-between;
    align-items: center;
}
.footer-form {
    
    display: flex;
    gap: 24px;
}
.footer-div-form {
    margin-left: 80px;
}
.footer-input {
    width: 264px;
}
 .footer-text {
    width: 264px;
    margin-bottom: 0;
 }
               }
 
                .footer-form {
                    margin: 0 auto;
                }

                .form1 {
                    display: flex;
                
                    flex-direction: column;
                    gap: 10px;
                }
        
                .label1 {
                    margin-bottom: 16px;
                    font-weight: bold;
                    color: #444;
                        display: flex;
                            align-items: baseline;
                            width: 100%;
                  
                    
                    
                }
        
                .input1[type="text"],
                .input1[type="number"] {
                    padding: 10px;
                    font-size: 16px;
                    margin-top: 6px;
                
                    border: 1px solid #ccc;
                    border-radius: 6px;
                    width: 100%;
                    box-sizing: border-box;
                    display: flex;
                    align-items: baseline;
        
                }
        
                .button1 {
                    padding: 12px;
                    font-size: 16px;
                    background-color: #461119;
                    border: none;
                    border-radius: 6px;
                    color: white;
                    cursor: pointer;
                    margin-top: 10px;
                    transition: background-color 0.3s ease;
                }
        
                .button1:hover {
                    background-color: #461119;
                }
   #responseMessage.success {
       color: rgb(255, 255, 255);
       font-weight: bold;
   }

   #responseMessage.error {
       color: red;
       font-weight: bold;
   }