/* #region global styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
    color: #434455;
    margin: 0;
}

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

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

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

.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: 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;
        }
}
/* #endregion global styles */
/* #region header */
.page-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: #FFFFFF;
            /* max-width: 320px; */
            margin: 0 auto;
}

.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list,
.page-address {
    display: none;
}

.logo-link {
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2E2F42;
    display: flex;
    text-decoration: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo-accent {
    color: #4D5AE5;
}

.header-burger {
    fill: #2f2f37;
    border: none;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

}







@media screen and (min-width: 768px) { 
.page-header {
    margin: 0 auto;
    }

    .page-header .container {
        display: flex;
    }

.page-nav,      
.nav-list,
.page-address {
     display: flex;
        }

.page-nav {
    gap: 120px;
}

.logo-link {
    padding-top: 24px;
    padding-bottom: 24px;
}

.nav-list {
    gap: 40px;
}

.nav-link {
    display: block;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2E2F42;
    text-decoration: none;
    position: relative;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px 0;
}

.nav-link:focus,
.nav-link:hover {
    color: #404BBF;

}

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

.nav-link.current::after {
    content: "";
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background-color: #404BBF;
    display: block;
    position: absolute;
    bottom: -1px;
}

.page-address {
    font-style: normal;
}

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

.contacts-link {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #434455;
    text-decoration: none;
    display: block;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contacts-link:active,
.contacts-link:hover,
.contacts-link:focus {
    color: #404BBF;
}

.header-burger {
    display: none;
}

}




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

    .page-header {
        margin: 0 auto;
    }

    .page-header .container {
        padding: 0 15px;
    }

    .page-nav {
            gap: 76px;
        }

    .nav-list {
            gap: 40px;
                }

        .address-list {
            font-style: normal;
            display: flex;
            gap: 40px;
            flex-direction: row;
        }

        .contacts-link {
            font-size: 16px;
            line-height: 1.5;
            letter-spacing: 0.02em;
        }
}
/* #endregion header */





/* #region hero */
.section-hero {
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    image-set(url('../images/Hero-img-m.jpg') 1x,
            url('../images/Hero-img-m@2x.jpg') 2x);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        max-width: 320px;
        margin: auto;
}

.section-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
    gap: 72px;
}

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

.section-hero-btn {
display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: row;
    gap: 10px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    background-color: #4D5AE5;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 16px 32px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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




@media screen and (min-width: 768px) {
   .section-hero {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
        image-set(url('../images/Hero-img-t.jpg') 1x,
        url('../images/Hero-img-t@2x.jpg') 2x);
        max-width: 768px;
    }

   .section-hero .container {
        gap: 36px;
        padding-top: 112px;
        padding-bottom: 112px;
    }

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




@media screen and (min-width: 1158px) {
   .section-hero {
        max-width: 1440px;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
        image-set(url('../images/hero-img.jpg') 1x,
        url('../images/Hero-img-d@2x.jpg') 2x);
   }

   .section-hero .container {
        padding-top: 188px;
        padding-bottom: 188px;
        gap: 48px;
   }

}
/* #endregion hero */





/* #region featurs */
.section-featurs .container {
    padding-top: 96px;
    padding-bottom: 96px;
}

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

.featurs-item {
width: 100%;
}

.featurs-icon {
    display: none;
}

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

.featurs-item p {
    font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #434455;
}

@media screen and (min-width: 768px) {
      .featurs-list {
            column-gap: 24px;
            row-gap: 72px;
        }

                  .featurs-item {
                      width: 356px;
                    gap: 8px;
                }
    .featurs-item-title {
        text-align: start;
    }
}


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

    .section-featurs {
            background-color: #fff;
            width: 100%;
        }

                 .section-featurs .container {
                    padding-top: 120px;
                    padding-bottom: 120px;
                 }

.featurs-list {
        gap: 24px;
    }

.featurs-item {
    width: 264px;

}

.featurs-icon {
    height: 112px;
    border: 1px solid #8E8F99;
    border-radius: 4px;
    background-color: #F4F4FD;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featurs-icon .icon {
    fill: #2E2F42;
}

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

.featurs-item p {
    font-weight: 400;
}
}
/* #endregion featurs */




/* #region teams */
.section-teams {
background-color: #F4F4FD;
} 

.section-teams .container {
    padding-top: 96px;
    padding-bottom: 96px;
}

.teams-title {
    margin-bottom: 72px;
    font-weight: 700;
        font-size: 36px;
        line-height: 1.1;
        letter-spacing: 0.02em;
        text-align: center;
        color: #2E2F42;
}

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

.teams-card {
    background-color: #FFFFFF;
    width: 264px;
    height: 428px;
    box-shadow: 0 1px 6px rgba(46, 47, 66, 0.08), 0 1px 1px rgba(46, 47, 66, 0.16), 0 2px 1px rgba(46, 47, 66, 0.08);
    border-radius: 0 0 4px 4px;
}

.teams-card-img {
   margin-bottom: 32px;
}

.teams-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

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

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

.teams-card-social-list {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.link {
    display: flex;
    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);
}

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

.icon {
    fill: #F4F4FD;
}

.social-link .icon:focus,
.social-link .icon:hover {
    fill: #F4F4FD;
}





@media screen and (min-width: 768px) {
    .section-teams .container {
        padding-top: 96px;
        padding-bottom: 96px;
    }

    .teams-list {
           row-gap: 64px;
            column-gap: 24px;
        }
}

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

     .teams-list {
             gap: 24px;
        }
}
/* #endregion teams */




/* #region portfolio */
.section-portfolio .container {
    padding-top: 96px;
    padding-bottom: 96px;
}

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

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

.portfolio-card {
    background-color: #FFFFFF;
    text-align: left;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 288px;
        min-height: 400px;
        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-card-img {
        object-fit: cover;
}

.overlay-img {
    position: relative;
    overflow: hidden;
}

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

}

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

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

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

.portfolio-card-text {
display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
border-bottom: 1px solid #E7E9FC;
    border-left: 1px solid #E7E9FC;
    border-right: 1px solid #E7E9FC;
   padding: 32px 16px;
    width: 288px;
    height: 120px;
}

.card-title {
    font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        color: #2E2F42;
}

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


@media screen and (min-width: 768px) {
    .portfolio-card {
        width: 356px;
        height: 420px;
    }

    .portfolio-list {
        column-gap: 24px;
        row-gap: 72px;
    }

    .portfolio-card-text {
        width: 100%;
    }
                 
}


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

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

    .portfolio-card {
        width: 360px;
        height: 420px;
    }


}
/* #endregion portfolio */







/* #region footer */
.footer-section {
    background-color: #2E2F42;
    width: 100%;
    margin: 0 auto;
}


.footer-section .container {
    display: flex;
padding-top: 96px;
padding-bottom: 96px;
flex-direction: column;
gap: 72px;
align-items: center;
}

.footer-logo-box {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px ;
}

.footer-logo-link {
    text-align: center;
    font-weight: 700;
    text-decoration: none;
        font-size: 18px;
        line-height: 1.17;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #F4F4FD;
}

.footer-text {
    font-weight: 400;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #f4f4fd;
}

.footer-social-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-social-list {
    gap: 16px;
    display: flex;

}

.footer-social-box p {
    font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #fff;
}

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

.footer-subscribe {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.footer-subscribe p {
    font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #fff;
        margin-bottom: 16px;
}
.form-subscribe {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
width: 100%;
gap: 16px;
}

/* .form-subscribe-label {
    font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #fff;
} */
.input-btn-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
}

.footer-email-input {
    border: 1px solid #fff;
        border-radius: 4px;
        width: 100%;
        height: 40px;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
        background-color: inherit;
        padding-left: 16px;
        font-weight: 400;
            font-size: 12px;
            line-height: 2;
            letter-spacing: 0.04em;
            color: #fff;
            transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-email-input::placeholder {
    color: #fff;
}

.footer-email-input:focus,
.footer-email-input:hover {
    border-color: rgba(49, 208, 170, 1);
    outline: none;
}

.form-subscribe-btn {
    display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        gap: 16px;
        border-radius: 4px;
           padding: 8px 24px;
            width: 165px;
            height: 40px;
            background: #4D5AE5;
            font-weight: 500;
                font-size: 16px;
                line-height: 1.5;
                letter-spacing: 0.04em;
                text-align: center;
                color: #fff;
                border: none;
}

.form-subscribe-btn .icon {
    fill: #fff;
}

.form-subscribe-btn:focus,
.form-subscribe-btn:hover {
    background-color: #31d0aa;
    fill: #fff;
    outline: none;
}

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

    .footer-section {
        margin: 0 auto;
    }
    .footer-section .container {
        flex-wrap: wrap;
       flex-direction: row;
       align-items: flex-start;
        padding: 96px 108px;
        gap: 0px;
    }

    .footer-logo-box {
         width: 264px;
         margin-right: 24px;
        margin-bottom: 57px;
        align-items: flex-start;
    }

    .footer-logo-link {
        text-align: start;
    }

    .footer-logo-link:focus,
    .footer-logo-link:hover {
                    outline: none;
    }

    .footer-social-box {
        align-items: flex-start;
         width: 208px;
        margin: 0;
    }

    .footer-subscribe {
        align-items: flex-start;
    }

    /* .form-subscribe {
        width: 453px;
        align-items: flex-start;
    } */

    .input-btn-box {
        gap: 24px;
        flex-direction: row;
    }

    .footer-email-input {
        width: 264px;
    }

    .footer-email-input:focus,
                    .footer-email-input:hover {
        border-color: rgba(49, 208, 170, 1);
        outline: none;
    }
}



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

.footer-section {
    max-width: 1440px;
}

.footer-section .container {
        padding: 100px 15px;
    }


.footer-logo-box {
margin: 0 120px 0 0;
}

.footer-logo-link:focus,
.footer-logo-link:hover {
    outline: none;
}

/* .footer-social-box {
    margin-right: 80px;
} */

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

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

.input-btn-box {
    gap: 24px;
}

.footer-email-input {
    max-width: 264px;
}
}
/* #endregion footer */


/* #region mobile menu */
.mobile-menu { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
        height: 100%;
        background-color: #fff;
        margin: 0 auto;
        opacity: 0;
            pointer-events: none;
            visibility: hidden;
}

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

.mobile-menu .container {
    display: flex;
    max-width: 320px;
    height: 100%;
    margin: 0 auto;
padding: 24px 24px 40px 16px;
flex-direction: column;

}

.menu-close-btn {
    display: flex;
    flex-shrink: 0;
    align-self: flex-end;
    background-color: #E7E9FC;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
 margin-bottom: 24px;
}

.menu-close-btn .icon {
    fill: #2E2F42;
}

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

.menu-nav-list {
    display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap: 40px;
        margin-bottom: auto;
}

.menu-nav-link {
    font-weight: 700;
        font-size: 36px;
        line-height: 1.11;
        letter-spacing: 0.02em;
        color: #404BBF;
        text-decoration: none;
        
}

.menu-contacts-list {
    display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 48px;
}

.menu-contacts-link {
    font-weight: 500;
        font-size: 20px;
        font-style: normal;
    text-decoration: none;
        line-height: 1.2;
        letter-spacing: 0.02em;
        color: #4D5AE5;
}

.menu-social-list {
    width: 100%;
    display: flex;
    gap: 40px;
}

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

@media screen and (min-width:1158px) {
    .mobile-menu {
            display: none;
        }
}
/* #endregion mobile menu */



/* #region backdrop */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 47, 66, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

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

.modal {
    background-color: #FCFCFC;
    padding: 24px 16px;
    border-radius: 4px;
    width: 288px;
    height: 623px;
    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);
}

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

.modal-close-btn:focus,
.modal-close-btn:hover {
    background-color: #404BBF;
    outline: none;
}

.modal-close-btn .icon {
    fill: #2E2F42;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.modal-close-btn:focus .icon,
.modal-close-btn:hover .icon {
    fill: #fff;
}

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

.modal-form {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    border-radius: 4px;
}

.modal-form-label {
    font-weight: 400;
    font-size: 12px;
    margin-bottom: 4px;
    line-height: 1.16667;
    letter-spacing: 0.04em;
    color: #8E8F99;
    display: block;
}

.icon-input-box {
    display: flex;
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.icon-input-box .icon {
    fill: #2E2F42;
    stroke: #2E2F42;
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1), stroke 250ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.icon-input-box:focus-within .icon,
.icon-input-box:hover .icon {
    fill: #4D5AE5;
    stroke: #4D5AE5;
}

.modal-form-input {
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    width: 100%;
    height: 40px;
    display: flex;
    padding-left: 38px;
    padding-right: 4px;
    color: #2E2F42;
    transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-input:focus,
.modal-form-input:hover {
    border: 1px solid rgba(77, 90, 229, 1);
    outline: none;
}

.modal-input-message {
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    width: 100%;
    height: 120px;
    margin-bottom: 16px;
    padding: 8px 16px;
    transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
    resize: none;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #2E2F42;
}

.modal-input-message:focus,
.modal-input-message:hover {
    border: 1px solid rgba(77, 90, 229, 1);
    outline: none;
}

.modal-input-message::placeholder {
    color: rgba(46, 47, 66, 0.4);
    font-size: 12px;
    top: 0;
    left: 0;
}

.modal-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    flex-direction: column;
    font-weight: 400;
        font-size: 12px;
        line-height: 1.17;
        letter-spacing: 0.04em;
        color: #8E8F99;
}

.modal-form-checkbox .modal-form-label {
    display: flex;
    flex-wrap: wrap;
 padding-left: 24px;
    align-items: center;
    margin-bottom: 0;
    position: relative;
}

.input-checkbox:checked+.modal-form-label .custom-checkbox {
    background-color: #404BBF;
    fill: #fff;
    border-radius: 2px;
    border: 1px solid #404BBF;
}

.custom-checkbox {
    position: absolute;
    top: 8px;
    left: 0;
    fill: none;
    width: 16px;
    height: 16px;
    display: flex;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    justify-content: center;
    align-items: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input-checkbox:hover+.modal-form-label .custom-checkbox {
    border: 1px solid rgba(77, 90, 229, 1);
}

.input-checkbox:focus+.modal-form-label .custom-checkbox {
    border: 1px solid rgba(77, 90, 229, 1);

}

.modal-form-link {
    color: rgba(77, 90, 229, 1);
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.33;
        text-decoration: underline;
        text-decoration-skip-ink: none;
}

.modal-form-link:focus,
.modal-form-link:hover {
    border: 1px solid rgba(77, 90, 229, 1);
    outline: none;
}

.modal-form-btn {
    border-radius: 4px;
    width: 169px;
    height: 56px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background-color: rgba(77, 90, 229, 1);
    color: #fff;
    margin: 0 auto;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 16px;
    outline: none;
    border: none;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    
}

.modal-form-btn:focus,
.modal-form-btn:hover {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background-color: rgba(64, 75, 191, 1);
    outline: none;
}

@media screen and (min-width: 768px) {
    .modal {
    width: 408px;
    height: 584px;
    }

    .custom-checkbox {
        top: 0px;
    }

    .modal-form-checkbox .modal-form-label {
        gap: 8px;
    }

 }
/* #endregion backdrop */






