:root {
    --iris: #4d5ae5;
    --ocean: #404bbf;
    --navy-blue: #2e2f42;
    --green: #31d0aa;
    --slate: #434455;
    --light-slate: #8e8f99;
    --cornflower: #e7e9fc;
    --cloud: #f4f4fd;
    --navy-blue-modal: rgba(46, 47, 66, 0.4);
    --grey: rgba(46, 47, 66, 0.7);
    --white: #fff;
    --dairy: #fcfcfc;
    --font-family: "Roboto", sans-serif;
    --second-family: "Raleway", sans-serif;
}

/* global styles */
body {
    font-family: "Roboto", sans-serif;
    color: #434455;
    background-color: #FFFFFF;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.02em;
}

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

}

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

}

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

}

img {
    display: block;
    width: 100%
}

/* mobile 96px */
.section {
    padding: 96px 0;
}

/* desktop */

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

.team-info {
    padding: 32px 0;
    border: 1px solid #e7e9fc;
}

.app-info {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}

/* -------------------- */

/* interact */

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

.nav-list-link:hover,
.nav-list-link:focus {
    color: var(--ocean);
}

/* .nav-list-link-secondary:hover{
color: var(--ocean); */


.hero-button:hover {
    background-color: #404bbf;

}


.hero-button:focus {
    background-color: #404bbf;
}

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

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

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

}

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

}

.footer-icon-link:hover,
.footer-icon-link:focus {
    background-color: var(--green);
}

/* ----------- */

/* reset */
ul,
ol {
    list-style-type: none;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
    margin-bottom: 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;
}



/* ---------------------- */

/* header */

/* mobile pb16pt16 */
.header {
    padding-top: 16px;
    padding-bottom: 16px;
    background: var(--white);
    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);
}

/* tablet */
@media screen and (min-width:768px) {
    .header {
        padding-top: 0;
        padding-bottom: 0;
    }
}



.nav-container {
    display: flex;
    justify-content: space-between;

}

.logo {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2e2f42;
}

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

}

/* mobile */
.nav-link {

    font-family: var(--second-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
}

/* tablet */
@media screen and (min-width:768px) {
    .nav-link {
        margin-right: 120px;
    }
}

/* desktop */
@media screen and (min-width:1158px) {
    .nav-link {
        margin-right: 76px;
    }
}


/* mobile */
@media screen and (min-width:320px) {
    .nav-list {
        display: none;

    }
}

@media screen and (max-width:767px) {
    .nav-list {
        display: none;
    }
}


/* tablet */
@media screen and (min-width:768px) {
    .nav-list {
        display: flex;
        gap: 40px;
    }
}




/* desktop */
/* .nav-list {
    display: flex;
    gap: 40px;
} */

.current-page {
    color: #404bbf;
}

.nav-list-link {
    padding-top: 24px;
    padding-bottom: 24px;

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

.nav-item {
    display: flex;


}

.nav-list a {
    font-weight: 500;
}

/* .nav-lsit-item:active{
 color: #404bbf;
} */

/* mobile */
.address {
    display: none;
}

@media screen and (min-width:768px) {
    .address {
        font-style: normal;
        display: flex;
        align-items: center;
    }

}

/* desktop */
/* .address {
    font-style: normal;
    display: flex;
    align-items: center;
} */

/* mobile */
/* .address-list {
    display: flex;
    gap: 40px;

} */


/* tablet */
@media screen and (min-width:768px) {
    .address-list {
        display: flex;
        flex-direction: column;
        gap: 12px;

    }
}

/* desktop */
@media screen and (min-width:1158px) {
    .address-list {
        display: flex;
        gap: 40px;
        flex-direction: row;
    }
}



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

/* mobile */
.burger-btn {
    background-color: transparent;
    border: none;
}

/* tablet */
@media screen and (min-width:768px) {
    .burger-btn {
        display: none;
    }
}

.burger-icon {
    fill: #2F2F37;
    stroke: transparent;
}

/* hero */


/* mobile */
.hero-title {
    background: var(--navy-blue);
    padding: 72px 0;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/adaptive/mobile-hero-img.jpg);
    background-repeat: no-repeat;
    background-position: center center;

    margin: 0 auto;
    background-size: cover;
}

@media only screen and (min-width:320px) and (min-resolution:192dpi) {
    .hero-title {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/adaptive/mobile-hero-img@2x.jpg);
    }
}

/* tablet */

@media screen and (min-width:768px) {
    .hero-title {
        padding: 122px 0;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/adaptive/tablet-hero-img.jpg);
    }
}

@media only screen and (min-width:768px) and (min-resolution:192dpi) {
    .hero-title {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/adaptive/tablet-hero-img@2x.jpg);
    }
}


/* desktop */

@media screen and (min-width:1158px) {
    .hero-title {
        padding: 188px 0;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/adaptive/desktop-hero-img.jpg);
        max-width: 1440px;
    }
}


@media only screen and (min-width:1158px) and (min-resolution:192dpi) {
    .hero-title {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/adaptive/desktop-hero-img@2x.jpg);
    }
}


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


/* mobile */
.main-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-bottom: 72px;
    max-width: 216px;
}

/* tablet */

@media screen and (min-width:768px) {
    .main-title {
        font-size: 56px;
        line-height: 1.07;
        margin-bottom: 36px;
        max-width: 496px;
    }
}

/* desktop */

@media screen and (min-width:1158px) {
    .main-title {
        margin-bottom: 48px;
    }
}

.hero-button {
    background-color: #4d5ae5;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--white);
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    line-height: 1.5;
    padding: 16px 32px;
    border-radius: 4px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    border: none;
    min-width: 169px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}



/* benefits */



/* mobile */
@media screen and (min-width:320px) {
    .icon-item {
        display: none;
        justify-content: center;
        background: var(--cloud);
        border: 1px solid var(--light-slate);
        border-radius: 4px;
        width: 264px;
        height: 112px;
        align-items: center;
        margin-bottom: 8px;
    }
}

@media screen and (max-width:767px) {
    .icon-item {
        display: none;
    }
}

/* tablet */

/* destop */
@media screen and (min-width:1158px) {
    .icon-item {
        display: flex;
    }
}



/* mobile */
@media screen and (min-width:320px) {
    .benefits-list {
        display: flex;
        flex-direction: column;
        gap: 72px;
    }
}

/* tablet */
@media screen and (min-width:768px) {
    .benefits-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 72px 24px;
    }
}

/* desktop */

@media screen and (min-width:1158px) {
    .benefits-list {
        gap: 24px;
    }
}

/* mobile */

/* tablet */

@media screen and (min-width:768px) {
    .benefits-item {
        max-width: 356px;
        margin-bottom: 0;
    }
}

/* desktop */
@media screen and (min-width:1158px) {
    .benefits-item {
        width: calc((100% - 3 * 24px) / 4);
    }
}



/* mobile */
@media screen and (min-width:320px) {
    .benefits-title {
        font-size: 36px;
        line-height: 1.11;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: #2e2f42;
        margin-bottom: 8px;
        text-align: center;
    }
}

/* tablet */
@media screen and (min-width:768px) {
    .benefits-title {
        text-align: start;
    }
}

/* desktop */
@media screen and (min-width:1158px) {
    .benefits-title {
        font-size: 20px;
        font-weight: 500;
    }
}

/* mobile */
@media screen and (min-width:320px) {
    .benefits-text {
        color: var(--slate);
        font-weight: 500;
    }
}

/* tablet */

/* desktop */
@media screen and (min-width:1158px) {
    .benefits-text {
        font-weight: 400;
    }
}

/* ------------------- */

/* team */

.team-section {
    background: var(--cloud);
}



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

@media screen and (max-width:767px) {
    .team-item img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        display: block;
    }
}



/* mobile */
@media screen and (min-width:320px) {
    .team-list {
        display: block;
    }
}

/* tablet */

@media screen and (min-width:768px) {
    .team-list {
        display: flex;
        flex-wrap: wrap;
        gap: 64px 24px;
        justify-content: center;
    }
}

/* desktop */

/* mobile */
@media screen and (min-width:320px) {
    .team-item {
        background: var(--white);
        justify-content: center;

        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);
        margin-bottom: 72px;
    }

    .team-item:last-child {
        margin-bottom: 0;
    }
}


/* tablet */
@media screen and (min-width:768px) {
    .team-item {
        margin-bottom: 0;
    }
}

/* desktop */
@media screen and (min-width:1158px) {
    .team-item {
        flex-basis: calc((100% - 3*24) / 4);
    }
}


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

.team-text {

    text-align: center;
    color: var(--slate);
    margin-bottom: 8px;
}


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

.team-icon-item {
    width: 40px;
    height: 40px;
}


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




}

.team-icon {
    fill: #f4f4fd;

}



/* portfolio */
.portfolio-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: #2e2f42;
    margin-bottom: 72px;
}

.portfolio-container {
    display: flex;
    flex-direction: column;
}


.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 48px;

}

/* mobile */
@media screen and (min-width:320px) {
    .portfolio-item {
        border-left: 1px solid var(--cornflower);
        border-right: 1px solid var(--cornflower);
        border-bottom: 1px solid var(--cornflower);
        width: 288px;
        transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }
}

/* tablet */
@media screen and (min-width:768px) {
    .portfolio-item {
        width: 356px;
    }
}

/* desktop */

/* mobile */
@media screen and (min-width:320px) {
    .portfolio-box {
        position: relative;
        overflow: hidden;
        width: 288px;
    }
}

/* tablet */
@media screen and (min-width:768px) {
    .portfolio-box {
        width: 356px;
    }
}

/* desktop */


/* mobile */
@media screen and (min-width:320px) {
    .portfolio-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: translateY(100%);
        transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
        background-color: #4d5ae5;
        color: #f4f4fd;
        padding: 40px 32px;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        max-width: 288px;
        /*  */
    }
}

/* tablet */
@media screen and (min-width:768px) {
    .portfolio-overlay {
        max-width: 356px;
    }
}

/* desktop */
@media screen and (min-width:1158px) {
    .portfolio-overlay {
        max-width: 360px;
    }
}


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

.portfolio-text {
    color: #434455
}

/* footer */
.footer {
    background: var(--navy-blue);
    padding: 100px 0;
}


/* mobile */
@media screen and (min-width:320px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

/* tablet */
@media screen and (min-width:768px) {
    .footer-container {
        width: 264px;
    }
}

/* desktop */
@media screen and (min-width:1158px) {
    .footer-container {
        margin-right: 120px;
    }
}

.logo-footer {
    font-family: "Raleway", sans-serif;
    color: #f4f4fd;
    display: inline-block;
}

/* mobile */
@media screen and (min-width:320px) {
    .footer-link {
        font-weight: 700;
        font-size: 18px;
        line-height: 1.17;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #4d5ae5;
        font-family: "Raleway", sans-serif;
        margin-bottom: 16px;
        display: inline-block;
        margin-right: auto;
        margin-left: auto;
    }
}

/* tablet */
@media screen and (min-width:768px) {
    .footer-link {

        margin-right: 0;
        margin-left: 0;
    }
}

.footer-text {
    color: var(--cloud);
    max-width: 264px;
}

/* mobile */
@media screen and (min-width:320px) {
    .footer-social-links {
        display: flex;
        /* justify-content: space-between; */
        flex-direction: column;

        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }
}

/* tablet */
@media screen and (min-width:768px) {
    .footer-social-links {
        margin-left: 0;
        margin-right: 0;
        align-items: start;
    }
}

/* desktop */
@media screen and (min-width:1158px) {
    .footer-social-links {
        margin-right: 80px;

    }
}

.footer-social-title {
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--white);
}

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

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


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

.footer-icon {
    fill: #f4f4fd;
}


/* mobile */
@media screen and (min-width:320px) {
    .footer-wrapper {
        display: flex;
        align-items: baseline;
        flex-direction: column;
        gap: 72px;
    }
}

/* tablet */
@media screen and (min-width:768px) {
    .footer-wrapper {
        flex-direction: row;
        gap: 72px 24px;
        flex-wrap: wrap;
        padding: 0 108px;
    }
}

/* desktop */
@media screen and (min-width:1158px) {
    .footer-wrapper {
        gap: 0;
        flex-wrap: nowrap;
        padding: 0 15px;
        justify-content: center;
    }
}

/* mobile */
@media screen and (min-width:320px) {
    .subscribe-form {
        display: flex;
        gap: 16px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* tablet */
@media screen and (min-width:768px) {
    .subscribe-form {
        gap: 24px;
        flex-direction: row;
    }
}

.footer-label {
    width: 100%;
}


/* mobile */
@media screen and (min-width:320px) {
    .footer-subscribe {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* tablet */
@media screen and (min-width:768px) {
    .footer-subscribe {
        align-items: start;
        width: 453px;
    }
}

.footer-subscribe-text {
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
}

.footer-email-field {
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #fff;

    border: 1px solid var(--white);
    border-radius: 4px;
    width: 100%;
    height: 40px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background: transparent;
    padding-left: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-email-field:focus {
    border-color: #404bbf;
}

/* mobile */
@media screen and (min-width:320px) {
    .footer-subscribe-btn {
        border-radius: 4px;
        padding: 8px 24px;
        max-width: 165px;
        /*  */
        height: 40px;
        cursor: pointer;
        background-color: #4d5ae5;
        display: flex;
        align-items: center;
        justify-content: center;
        /* flex-direction: row; */
        line-height: 1.5;
        border: none;

        font-weight: 500;

        letter-spacing: 0.04em;
        text-align: center;
        color: #ffffff;
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

    }
}

.footer-subscribe-btn:hover {
    background-color: #404bbf;
}

.footer-icon-subscribe {
    margin-left: 16px;
}

/* backdrop and modal */

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

    pointer-events: none;

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

    opacity: 0;
}



/* mobile */
@media screen and (min-width:320px) {
    .modal-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 288px;
        min-height: 623px;

        border-radius: 4px;

        background-color: #fcfcfc;
        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);
        padding: 72px 16px 24px;
        transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);


    }
}

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

/* 
.modal-overlay{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 408px;
    min-height: 584px;

    border-radius: 4px;

    background-color: #fcfcfc;
    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);
    padding: 72px 24px 24px 24px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
} */

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


.modal-close-btn:focus {
    background-color: #404bbf;
    fill: #ffffff;
    border: none;
}

.modal-close-btn:hover {
    background-color: #404bbf;
    fill: #ffffff;
    border: none;
}

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

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

/* 1st p */

.modal-text {
    font-weight: 500;
    max-width: 360px;
    margin-bottom: 16px;
    color: #2e2f42;
    text-align: center;
}

/* /1st p */

.modal-form {
    display: flex;
    flex-direction: column;
}

.modal-input {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;

}


/* input */

.modal-action {
    height: 40px;
    width: 100%;
    padding-left: 38px;
    border-radius: 4px;
    gap: 8px;
    outline: none;
    border: 1px solid rgba(46, 47, 66, 0.4);
    background-color: transparent;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-action:focus,
.modal-action:hover {
    border: 1px solid #4d5ae5;
}

/* /input */


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



.modal-icon:focus {
    stroke: #4d5ae5;
}


/* icon wrapper div */
.modal-icon-wrapper {
    position: relative;
    gap: 8px;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.modal-icon-wrapper:hover {
    fill: #4d5ae5;
}

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

/* /icon wrapper div */

.modal-label {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    margin-bottom: 4px;
}


/* textarea */
.modal-comment {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

/* .comment-input {} */

.msg-input {
    outline: none;
    border-radius: 4px;
    resize: none;

    padding: 8px 16px;
    outline: transparent;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: var(--navy-blue-modal);
    border: 1px solid rgba(46, 47, 66, 0.4);
    height: 120px;

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

.msg-input:focus {
    border: 1px solid #4d5ae5;
}

/* .modal-comment-msg {

    font-size: 12px;
    line-height: 1.16667;
    letter-spacing: 0.04em;
    color: #8e8f99;
} */

/* /textarea */


/* /checkbox */
.checkbox-span {
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    border: 1px solid var(--navy-blue-modal);
    width: 16px;
    height: 16px;
    cursor: pointer;
    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);
    display: inline-flex;
    margin-right: 8px;
    flex-shrink: 0;
}

.checkbox-input:checked+.checkbox-label .checkbox-span {
    background-color: #404bbf;
    border: none;
    fill: #f4f4fd;
}

.checkbox-label {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    display: flex;

}


.privacy-link {
    color: #4d5ae5;
    text-decoration: underline;
}

.checkbox {
    display: flex;
    margin-bottom: 24px;
}

/* /checkbox */

.send-button {
    display: block;
    margin: 0 auto;
    padding: 16px 32px;
    background-color: #4d5ae5;
    border-radius: 4px;
    min-width: 169px;
    height: 56px;
    border: none;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    line-height: 1.5;

    font-weight: 500;

    letter-spacing: 0.04em;
    text-align: center;
    color: #ffffff;
    cursor: pointer;

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

.send-button:hover,
.send-button:focus {
    background-color: var(--ocean);
}

/* .modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
} */

/* mobile nav modal */
.modal-mobile-nav {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 99999999999999;
    background-color: var(--white);

    pointer-events: none;

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

    opacity: 0;
}

/*  */

.modal-mobile-nav-overlay {
    position: absolute;
    background: var(--white);
    width: 100%;
    height: 100%;
    padding-top: 72px;
    padding-left: 16px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 40px;

}

.mobile-nav-link {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    color: var(--navy-blue);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--ocean);
}

.mobile-address-link {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    color: var(--slate);
}

.mobile-address-link:hover,
.mobile-address-link:focus {
    color: var(--iris);
}



.mobile-social-list {
    margin-bottom: 40px;
}

.mobile-socials {
    display: flex;
    gap: 40px;
}

.mobile-address {
    margin-bottom: 48px;
}

.mobile-address-item {
    margin-bottom: 24px;
}

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

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


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

/* mobile modal */
.modal-mobile {
    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: var(--dairy);
    border-radius: 4px;

    width: 288px;
    min-height: 623px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    padding: 72px 16px 24px;
}


/* modal tablet */
@media screen and (min-width:768px) {
    .modal-tablet {
        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: var(--dairy);

        border-radius: 4px;
        width: 408px;
        height: 584px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        position: absolute;
        padding: 72px 24px 24px;

    }
}






.hide {
    display: none;
    overflow-x: hidden;
}

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