body {

        font-family: 'Roboto', sans-serif;
        color: #434455;
        background-color: #ffffff;
        line-height: 1.5;
        
}

body:has(.backdrop.is-open) {
    overflow: hidden;
}


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

.header {
    border-bottom: 1px solid #e7e9fc;

    box-shadow:
        0px 2px 1px rgba(46, 47, 66, 0.08),
        0px 1px 1px rgba(46, 47, 66, 0.16),
        0px 1px 6px rgba(46, 47, 66, 0.08);
}


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

.header-logo,
.footer-logo {
    font-family: 'Raleway', sans-serif;
}

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

 a {
     text-decoration: none;
     color: currentColor;
 }

 button {
    font-family: inherit;
    cursor: pointer;
    background-color: transparent;
 }
 address {
    font-style: normal;
 }

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

 }
 
 
 a:focus {
    color: #434455;
 }

 .header-list-link:hover,
 .header-list-link:focus {
     color: #404BBF;
 }

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

.header-logo { 
   
    font-weight: 700;
    font-size: 18px;
    line-height: 1.16;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2e2f42;
    
}
.logo-span {
    
    font-weight: 700;
    font-size: 18px;
    line-height: 1.16;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
}
.navigation-header {

    margin-left: 76px;
}
.header-list {
    display: flex;
    align-items: center;
    gap: 40px;
}
.header-list-items {
    
}
.header-list-link {

    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
    display: block;
    padding: 24px 0;

    position: relative;

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

.header-list-link.active {
    position: relative;
    color: #404BBF;

    position: relative;

}

.header-list-link.active::after {

    content: "";
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background-color: #404BBF;
    position: absolute;
    bottom: -1px;

}

.header-address {

margin-left: auto;

}
.header-address-list {
    display: flex;
    gap: 40px;
    

}
.header-address-item {
}
.header-address-link {
   
    display: block;
    padding: 24px 0;

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

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

.hero-section {
    background-color: #2e2f42;
    padding: 188px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: 
    linear-gradient(rgba(46, 47, 66, 0.7),rgba(46, 47, 66, 0.7)),
    url("../images/hero/hero-bg.jpg");

    background-size: cover;
    background-position: center;

    max-width: 1440px;
    margin: 0 auto;

    background-repeat: no-repeat;
    
}

.hero-title {

    max-width: 496px;
    margin: 0 auto 48px;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
        }
    


.hero-button {
    display: inline-block;

    padding: 16px 32px;

    background: #4d5ae5;
    border: none;
    border-radius: 4px;

    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;

    cursor: pointer;

    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);

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


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

.section-our-features {
 padding: 120px 0px;

}

.title-our-features {

}

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

.our-features-item {
    width: 264px;
}

.title-parts-features {

    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    text-align: left;
    margin-bottom: 8px;
   

}

.text-features-describtion {

    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    text-align: left;

}

.team-section {

    background-color: #f4f4fd;
    padding: 120px 0;
        }


.logo-team {

    font-weight: 700;
    font-size: 36px;
    line-height: 1.11111;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 72px;
    text-align: center;
    margin: 0 0 72px;
}

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

    margin: 0;
    padding: 0;
    list-style: none;
}

.team-list-item {

    width: 264px;
    background-color: #fff;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    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-card-content {

    padding: 32px 16px;
    text-align: center;
    
}

.our-team {

    margin-bottom: 8px;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
}

.our-team-list {

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

.footer-title {

    background-color: #2e2f42;
    padding: 100px 0;
   
}

.footer-logo {

    display: inline-block;
    margin-bottom: 16px;
   
    font-weight: 700;
    font-size: 18px;
    line-height: 1.16667;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f4f4fd;
        
}

.footer-container {

    display: flex;
    align-items: baseline;
    
    }

.footer-info {
    max-width: 264px;
    margin-right: 120px;
   
        }


.list-logo {

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

.portfolio-section {

    padding: 120px 0;
}

.logo-portfolio {

    font-weight: 700;
    font-size: 36px;
    line-height: 1.11111;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin: 0 0 72px;
}

.portfolio-list {
    background: #ffffff;
    width: 360px;


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

       

.portfolio-s {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 24px;
    margin: 0;
    padding: 0;
   justify-content: center;
        }


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

.portfolio-item {
   
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    text-align: left;
    margin: 0;
}

.portfolio-wrapper {
    position: relative;
    overflow: hidden;
}

.section {
  padding: 120px 0;
}

.portfolio-card-content {

    padding: 32px 16px;
    border-left: 1px solid #e7e9fc;
    border-right: 1px solid #e7e9fc;
    border-bottom: 1px solid #e7e9fc;
}
    


.container {

    max-width: 1158px;
    margin: 0 auto;
    padding: 0 15px;
        }

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

.features-wrapper {

    border: 1px solid #8e8f99;
    border-radius: 4px;
    height: 112px;

    background-color: #f4f4fd;

    display: flex;
    justify-content: center;
    align-items: center;
    
    margin-bottom: 8px;
}

.features-icons {

}

.logo-wrapper {
    width: 40px;
    height: 40px;
}
    



.team-logo {
    fill: white;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.logo-list {
    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
        
    }


.overlay {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    padding: 40px 32px;

    background-color: #4d5ae5;
    color: #f4f4fd;

    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-list:hover .overlay,
.portfolio-list:focus-within .overlay {
    transform: translateY(0);
}

.portfolio-list: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);
}

.team-logo-a {
    width: 100%;
    height: 100%;
    border-radius: 50%;

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

    background-color: #4d5ae5;

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

.team-logo {
    fill: #f4f4fd;
}

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



.footer-social-title {

    margin-bottom: 16px;

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

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

.footer-social-item {
    width: 40px;
    height: 40px;
}

.footer-social-link {
    width: 100%;
    height: 100%;

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

    border-radius: 50%;
    background-color: #4d5ae5;

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

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

.footer-social-icon {
    fill: #f4f4fd;
}

.footer-social {
  margin-right: 0;
    
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgb(46 47 66 / 40%);
     
    transition-property: opacity, visibility;
    transition: 300ms ease-in 150ms;

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

    

        

    .backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: initial;
        transition-delay: 0ms;
       
    }

    .backdrop.is-open .modal {
        opacity: 1;
        transform: translateX(-50%) translateY(-50%);
       


     }
    
    
    .modal-btn {

    }
   


.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;

    width: 408px;
    min-height: 584px;
    padding: 72px 24px 24px;
    border-radius: 4px;
    background-color: #fcfcfc;

    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14),
            0px 1px 3px rgba(0, 0, 0, 0.12),
            0px 2px 1px rgba(0, 0, 0, 0.2);

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

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

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

    width: 24px;
    height: 24px;
    border-radius: 50%;

    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #e7e9fc;
    padding: 0;
    cursor: pointer;

    color: #2e2f42;
    transition:
        background-color 250ms ease-in-out,
        border 250ms ease-in-out,
        color 250ms ease-in-out;
}

.modal-btn:hover,
.modal-btn:focus {
    background-color: #404bbf;
        border: none;
        color: #ffffff;
        outline: none;
}

.modal-btn-icon {
    fill: currentColor;
    
}

.modal-slogan {

        font-weight: 500;
        font-size: 16px;
        line-height: 150%;
        letter-spacing: 0.02em;
        text-align: center;
        color: #2e2f42;

        margin-bottom: 16px;
}

 /* Form  */
.feedback-form {
    display: flex;
    flex-direction: column;
    
}

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

.feedback-wrapper-comment {
    margin-bottom: 16px;
}


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

.feedback-field {
    position: relative;
}

.feedback-field:focus {
    border-color: #4D5AE5;
    }


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

    padding-left: 38px;
    padding-right: 16px;

    outline: none;
    transition: border-color 150ms ease-in;
}
.feedback-input:focus {
    border-color: #4D5AE5;
}

.feedback-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    fill: #2e2f42;
    transition: fill 150ms ease-in;
    
    
}

.feedback-input:focus + .feedback-icon {
    fill: #4D5AE5;
}

.feedback-comment {

    resize: none;
        width: 100%;
        height: 120px;
        padding: 8px 16px;
    
        font-family: "Roboto", sans-serif;
        font-size: 12px;
        line-height: 1.17;
        letter-spacing: 0.04em;
    
        border: 1px solid rgba(46, 47, 66, 0.4);
        border-radius: 4px;
        outline: transparent;
        
        transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feedback-comment:focus {
    border-color: #4D5AE5;
}
/* Form */

.feedback-agreement {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 24px;

    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8E8F99;
}

.feedback-toggler {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-right: 8px;

    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    transition: background-color 150ms ease-in, border-color 150ms ease-in;
    cursor: pointer;
}

.feedback-checkbox:checked+.feedback-toggler {
    background-color: #404BBF;
    border-color: transparent;
}

.feedback-toggler-icon {
    fill: #F4F4FD;
    opacity: 0;
    transition: opacity 150ms ease-in;
}

.feedback-checkbox:checked+.feedback-toggler>.feedback-toggler-icon {
    opacity: 1;
}

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

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

.footer-form-label {}

.footer-form-filed {
    width: 264px;
    height: 40px;
    padding-left: 16px;

    border: 1px solid #ffffff;
    border-radius: 4px;
    outline: transparent;
    background-color: transparent;
    color: #ffffff;

    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;

    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);

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

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

.footer-form-filed::placeholder {
    color: #ffffff;
}

.footer-btn {
    min-width: 165px;
    height: 40px;
    border: none;
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    background-color: #4d5ae5;

    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;

    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.footer-btn-icon {
    fill: #ffffff;
    flex-shrink: 0;
}

.feedback-btn {
    display: block;
    margin: 0 auto;

    min-width: 169px;
    height: 56px;

    border: none;
    border-radius: 4px;
    background-color: #4d5ae5;

    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;

    cursor: pointer;

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

.feedback-btn:hover,
.feedback-btn:focus {
    background-color: #404bbf;
}

.footer-subscribe {
    margin-left: auto;
}