*,
*::before,
*::after {
    box-sizing: border-box;
}


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

}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    padding-left: 0px;
    margin: 0;

}

a {
    text-decoration: none;
}


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

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(100%);
}


/* container-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);

}



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

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


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

}


@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-top: 120px;
        padding-bottom: 120px;
    }

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


/* nav-menu */



.nav-list,
.contacts {
    display: none;
}

.burger-btn {
    display: block;
    fill: #2f2f37;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    padding: 0;
}



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

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

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

    .burger-btn {
        display: none;
    }

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

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

    .mail-tel:hover,
    .mail-tel:focus,
    .nav-link:hover,
    .nav-link:focus,
    .nav-link.current {
        color: #404bbf;

    }

    .nav-link.current {
        position: relative;
    }

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

    .contacts {
        display: block;
        font-style: normal;
        margin-left: auto;

    }

    .contacts-list {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 12px;
    }


    .mail-tel {
        font-weight: 400;
        font-size: 12px;
        line-height: 1.17;
        letter-spacing: 0.04em;
        color: #434455;
        transition:
            color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }
}





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



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



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

    .mail-tel {
        display: flex;
        padding: 24px 0;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #434455;
    }



}

/* logo */


.logo {
    display: block;

    justify-content: flex-start;
    flex-direction: row;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: "Raleway",
        sans-serif;
    color: #4d5ae5;
    padding: 16px 0;

}

.text-logo {
    color: #2e2f42;
}

@media screen and (min-width:768px) {
    .logo {
        padding: 24px 0;
        margin-right: 120px;
    }

}

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

}

/* section-hero-text-button */



.section-hero {
    padding-top: 72px;
    padding-bottom: 72px;
    background-image:
        linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
        url("../images/people-office-mob.jpg");
    background-size: cover;
    background-position: 50% 50%;
    background-color: #2e2f42;
    max-width: 320px;

    margin: 0 auto;


}



.section-hero .container {
    display: flex;
    justify-content: center;
    align-items: center;

}


.container-title {
    display: flex;
    flex-direction: column;
    align-items: center;

}

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

}

.button-order-service {

    cursor: pointer;
    background-color: #4d5ae5;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    padding: 16px 32px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background: #4d5ae5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button-order-service:hover,
.button-order-service:focus {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background: #404bbf;
}

@media (min-resolution: 2dppx) {
    .section-hero {
        background-image:
            linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url("../images/people-office-mob@2x.jpg");

    }
}

/*===Section-hero-768/1158===*/




@media screen and (min-width:768px) {
    .section-hero {
        padding-top: 112px;
        padding-bottom: 112px;
        max-width: 768px;
        background-image:
            linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url("../images/people-office-tab.jpg");


    }

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

@media (min-width: 768px) and (min-resolution: 2dppx) {
    .section-hero {
        background-image:
            linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url("../images/people-office-tab@2x.jpg");
    }
}

@media screen and (min-width:1158px) {
    .section-hero {
        padding-top: 188px;
        padding-bottom: 188px;
        max-width: 1440px;
        background-image:
            linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url("../images/people-office.jpg");

    }

    @media (min-width: 1158px) and (min-resolution: 2dppx) {
        .section-hero {
            background-image:
                linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
                url("../images/people-office@2x.jpg");
        }
    }

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


/* -- Section-our-features -- */


.icon-box {
    display: none;
}

.list {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 72px;
    margin: 0;
}


.text-item {
    width: 288px;
}

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


.list-of-features .text-list {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;

}

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


    .list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 72px 24px;
        justify-content: center;
        /* margin: 0; */

    }

    .text-item {
        width: 356px;
    }

    .head-list {
        text-align: left;
    }

    .list-of-features .text-list {
        text-align: left;
    }



}

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

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

    .list {

        gap: 24px;
        margin: 0 auto;
    }

    .text-item {
        width: 264px;
    }

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





    .list-of-features .text-list {

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


}

/* OUR-TEAM */


/* ====Section-images-team==== */

.team-head {

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

.card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 72px;

}

.card-team {
    background-color: #f4f4fd;
}


.card {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 264px;
    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);
    background-color: #fff;

}

/* social-link-icon */

.link-icon {
    display: flex;

    gap: 24px;

}

.icon-item {
    list-style: none;

}

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

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


.link-icon-svg {
    width: 16px;
    height: 16px;
    fill: #f4f4fd;
}

.text-name {
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 232px;
    gap: 8px;

}

.name {

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


}


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

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

    .card-item {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 64px 24px;
        justify-content: center;
    }

}

@media screen and (min-width:1158px) {
    .card-item {
        display: flex;
        gap: 24px;

    }

}



/* =======Section-portfolio ==========*/


.portfolio-card {
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
    align-items: center;
    gap: 48px;

}




.head-portfolio {

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

/* overlay */

.thumb {
    position: relative;
    overflow: hidden;
    width: 288px;
    height: 280px;
}

.overlay-text {
    padding: 40px 32px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
}


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

.parent:hover .overlay,
.parent:focus-within .overlay {
    transform: translateY(0);
}


.parent {
    box-shadow: 0 2px 1px rgba(46, 47, 66, 0.08),
        0 1px 1px rgba(46, 47, 66, 0.16),
        0 1px 6px rgba(46, 47, 66, 0.08);
    background: #fff;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}



.text-portfolio {
    padding: 32px 16px;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 250ms;
    border-bottom: 1px solid #e7e9fc;
    border-left: 1px solid #e7e9fc;
    border-right: 1px solid #e7e9fc;
}

/* head-h3 */

.service-head {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;

}

/* text-p */

.service-text {

    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}


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


    .thumb {
        width: 356px;
        height: 300px;
    }

    .portfolio-card {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 72px 24px;
        justify-content: center;
        align-items: center;



    }

}

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

    .parent {
        box-shadow: none;
    }

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

    .thumb {
        width: 360px;
        height: 300px;
    }

    .portfolio-card {
        flex-direction: row;
        gap: 48px 24px;
        justify-content: center;
        align-items: center;
    }

}


/* ========\\\\\====FOOTER-SECTION=====/////====== */



.footer-item {
    width: 288px;
    text-align: center;
}

.parent-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 72px;
}


.footer-box {
    background-color: #2e2f42;
    padding-top: 96px;
    padding-bottom: 96px;
    width: 100%;
}


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


.text-logo-footer {
    color: #f4f4fd;

}



.footer-text {
    text-align: left;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;

}



.social-footer {
    text-align: center;
    width: 208px;
    height: 80px;

}

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

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

}

.link-icon-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.link-footer-icon-svg {
    width: 24px;
    height: 24px;
    fill: #f4f4fd;
}

.social-media {

    margin-bottom: 19px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff;
}



/* ========\\\\\====FOOTER-SECTION__768/1158px=====/////====== */



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

    .parent-footer {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 72px 24px;
        max-width: 552px;
        margin-left: auto;
        margin-right: auto;
    }



    .social-media {
        max-width: 208px;
    }

    .footer-item,
    .social-footer,
    .footer-form {
        width: calc((100% - 24px) / 2);
        text-align: left;
    }

    .link-icon-footer {
        justify-content: flex-start;
    }



    .footer-text {

        margin-top: 16px;
    }



}


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

    .parent-footer {
        max-width: 1158px;
        margin: 0 auto;
        flex-wrap: nowrap;

    }

    .footer-box {
        padding-top: 100px;
        padding-bottom: 100px;
        width: 100%;
    }

    .footer-text {
        width: 264px;
    }



}


/* ========\\\\\====FOOTER-INPUT-BUTTON=====/////====== */



.footer-email-input {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 80px;

}


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

.footer-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 288px;
    /* gap: 16px; */
    /* width: 100%; */

}


.button-subscribe {
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    padding-block: 8px;
    padding-inline: 24px;
    width: 165px;
    height: 40px;
    gap: 16px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    background-color: #4d5ae5;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}


.footer-input-icon {
    fill: #ffffff;
    display: block;
    width: 24px;
    height: 24px;
}

.button-subscribe:hover,
.button-subscribe:focus {
    background-color: #31d0aa;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}


.email-subscribe {
    width: 288px;
    max-width: 288px;
    height: 40px;
    padding-left: 16px;
    background-color: transparent;
    border: 1px solid #ffffff;
    border-radius: 4px;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #ffffff;
    outline: none;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
}


.email-subscribe::placeholder {
    color: #ffffff;
}




.email-subscribe:hover,
.email-subscribe:focus {
    border-color: #31d0aa;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

/* ===\\===FOOTER-INPUT-BUTTON-SUBSCRIBE-768px/1158px===//=== */

@media screen and (min-width:768px) {
    .footer-input-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        max-width: 453px;
        gap: 24px;


    }

    .footer-email-input {
        display: flex;
        align-items: flex-start;
        flex-direction: column;

    }


    .email-subscribe {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 264px;

    }

}


@media screen and (min-width:1158px) {
    .footer-email-input {
        margin-left: auto;
    }
}






/* =======\\\====MOBILE-MENU-FORM====///======== */

.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;
    display: flex;
    flex-direction: column;
    padding-top: 72px;
    padding-bottom: 40px;
    height: 100%;

}


.menu-form {
    margin-bottom: auto;


}

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

.mail-tel-menu.active {
    color: #4d5ae5;
}


.link-menu.active {

    color: #404bbf;
}


.link-menu {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11111;
    letter-spacing: 0.02em;
    color: #2e2f42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mail-tel-menu:hover,
.mail-tel-menu:focus,
.link-menu:hover,
.link-menu:focus {
    color: #404bbf;
}


.menu-contacts {

    margin-bottom: 48px;

}


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


.mail-tel-menu {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #434455;
    font-style: normal;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}




.menu-icon {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: row;
    gap: 40px;
    /* width: 24px;
    height: 24px; */
    fill: #f4f4fd;
}

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

}

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



.mobile-menu-icon {

    width: 280px;
    height: 40px
}






/* ===CLOSE-ICON-MENU=== */


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



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

}

.menu-close-btn:hover .menu-close-icon,
.menu-close-btn:focus .menu-close-icon {
    fill: #ffffff;

}

.menu-close-btn:hover,
.menu-close-btn:focus {
    background-color: #404bbf;

}





/* =======\\\====BACKDROP-MODAL-FORM====///======== */



.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);
    z-index: 999;
}

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



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



form,
input,
textarea,
label {
    font-family: "Roboto", sans-serif;
    outline: none;
    font-weight: 400;
    font-size: 12px;
}



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



.form-input {
    width: 256px;
    height: 40px;
    padding-left: 38px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}


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



.modal-comment {
    margin-bottom: 16px;
}

.modal-form {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;



}


label {
    display: flex;
    align-items: flex-start;
    line-height: 1.16;
    letter-spacing: 0.04em;
    color: #8e8f99;
    margin-bottom: 4px;
}


.form-comment::placeholder {
    font-weight: inherit;
    font-size: 12px;
    line-height: 1.16667;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
}


.form-comment {
    padding-top: 8px;
    padding-left: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    width: 256px;
    min-height: 120px;
    resize: none;
    transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
    /* margin-bottom: 16px; */
}


/* ===CLOSE-ICON-MODAL=== */


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



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

}


.modal-close-btn:hover,
.modal-close-btn:focus {
    background-color: #404bbf;

}


.input-wrapper:focus-within .form-input {
    border: 1px solid #4d5ae5;

}

.input-wrapper:focus-within .input-icon {
    fill: #4d5ae5;

}

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

}

.form-comment:hover,
.form-input:hover {
    border: 1px solid #4d5ae5;


}

.form-comment:focus,
.form-input:focus {
    border: 1px solid #4d5ae5;

}




.input-wrapper {
    position: relative;

}


.input-icon {
    position: absolute;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-block: 3px;
    padding-inline: 0px;
    gap: 4px;
    width: 18px;
    height: 24px;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
    fill: #2e2f42;
}




.checkbox-input {
    position: relative;

}





.icon-click {
    fill: #f4f4fd;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.click-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(46, 47, 66, 0.4);


}


.check:checked+.checkbox-label .click-icon {
    background-color: #404bbf;
    border: none;

}

.check:checked+.checkbox-label .icon-click {
    opacity: 1;
}





.checkbox-label {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.16667;
    letter-spacing: 0.04em;
    color: #8e8f99;
    margin-bottom: 0;
    width: 256px;
    min-height: 31px;

}




.link-privacy {
    line-height: 1.3;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #4d5ae5;
}


.button-form:hover,
.button-form:focus {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background: #404bbf;
}

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

.button-form {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    border-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    padding-block: 16px;
    padding-inline: 32px;
    width: 169px;
    height: 56px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background: #4d5ae5;
    margin: 0 auto;

}






/* =======\\\====MOBILE-MENU 768px====///======== */

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

    .mobile-menu {
        display: none;
    }

}


/* =======\\\====MODAL-BACKDROP 768px/1158px====///======== */


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

    .modal {
        width: 408px;
        min-height: 584px;
        padding: 72px 24px 24px 24px;
    }

    .form-input {
        width: 360px;
        height: 40px;

    }

    .checkbox-label {
        width: 360px;
        min-height: 16px;

    }



    .form-comment {

        width: 360px;
        min-height: 120px;

    }






}