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

p, h1, h2, h3 {
    margin: 0;
}

a {
    text-decoration: none;
}

address {
    font-style: normal;
}

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

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

button {
    cursor: pointer;
}

.container {
    /* max-width: 1158px;
    padding-left: 15px;
    padding-right: 15px; */
    margin-left: auto;
    margin-right: auto;
    width: 320px;
    padding-left: 16px;
    padding-right: 16px;
}



.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------ */

.header {
    border-bottom: 1px solid #e7e9fc;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 999;
}

.header-menu {
    display: flex;
    align-items: center;

    width: 320px;
    height: 56px;
}

.header-logo {
    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-right: 76px;
}

.header-studio {
    color: #2e2f42;
}

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

    display: none;
}

.header-item {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
}

.header-nav-link {
    color: #2e2f42;
    padding: 24px 0;
    display: block;
    position: relative;
    color: #404bbf;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav-link:hover, .header-nav-link:active,
.contacts-link:hover, .contacts-link:active {
    color: #404bbf;
}

.nav-link-studio::after {
    content: "";
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 4px;
    background-color: #404bbf;
    border-radius: 2px;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-contacts {
    margin-left: auto;
}

.header .container {
    display: flex;
    align-items: center;
    padding: 0 15px;
    margin: 0 auto;
}

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

    display: none;
}

.contacts-item {}

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

.mob-menu {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 24px 24px 40px 16px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
}


.menu-open-btn {
    margin-left: auto;
    position: fixed;
    top: 16px;
    right: 16px;
    background-color: #fff;
    background-size: 16px 16px;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 0;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-close-btn {
    /* display: block; */
    margin-left: auto;
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: #fff;
    background-size: 16px 16px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.close-icon {}

.mob-nav {
    margin-top: 72px;
}

.mob-list {}

.mob-item:not(:last-child) {
    margin-bottom: 40px;
}

.mob-nav-link {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11111;
    letter-spacing: 0.02em;
    color: #2e2f42;
}

.mob-link-studio {}

.mob-contacts {
    
}

.mob-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.mob-contacts-item {
    
}

.mob-contacts-link {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #434455;
    font-family: "Roboto", sans-serif;
}

.mob-socials {
}

.mob-socials-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.mob-socials-item {
    width: 40px;
    height: 40px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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


/* ----- HERO ----- */
.hero {
    background-color: #2e2f42;
    max-width: 1440px;
    /* height: 600px;  */
    /* padding-top: 188px;
    padding-bottom: 188px; */
    margin: 0 auto;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url("../images/hero-bg-mob.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    padding-top: 72px;
    padding-bottom: 72px;

    @media screen and (min-resolution: 2x), (-webkit-min-device-pixel-ratio: 2) {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url("../images/hero-bg-mob-2x.jpg");
    }
}

.hero-title {
    font-weight: 700;
    /* font-size: 56px; */
    /* line-height: 1.07; */
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    /* max-width: 496px; */
    /* margin: 0 auto 48px; */
   
    font-size: 36px;
    line-height: 1.11;

}

.hero-btn {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    background-color: #4d5ae5;
    display: block;
    border-radius: 4px;
    height: 56px;
    border: none;
    min-width: 169px;
    margin: 0 auto;
    font-family: "Roboto", sans-serif;
    transition-property: background-color, color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    
    margin-top: 72px;
}

.hero-btn:hover, .hero-btn:focus {
    background: #404bbf;
}
/* -----ADVANTAGES ----- */

.advantages {
    /* padding: 120px 0; */
    padding: 96px 0;
}

.advantages-list {
    display: flex;
    flex-wrap: wrap;
    /* gap: 24px; */
    gap: 72px;
}

.advantages-item {
    /* width: calc((100% - 72px) / 4); */
    width: 100%;
}

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

.advantages-subtitle {
    /* font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px; */
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11111;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 8px;
}

.advantages-text {
    /* font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455; */
    font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #434455;


}

/* ----- TEAM ----- */

.team {
    background: #f4f4fd;
    /* padding: 120px 0; */
    padding: 96px 0;
}

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

.team-list {
    display: flex;
    /* gap: 24px; */
    flex-wrap: wrap;
    gap: 72px;
    justify-content: center;
}

.team-item {
    /* width: calc((100% - 72px) / 4); */
    border-radius: 0px 0px 4px 4px;
    background-color: #fff;
    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);
    /* width: 100%; */
}

.team-img {}

.employee-info {
    padding: 32px 0;
    
}

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

.team-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #434455; 
    margin-bottom: 8px;
}

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

.socials-item {
    width: 40px;
    height: 40px;
}

.socials-icon {
    fill:#f4f4fd
}

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

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

/* ----- PORTFOLIO ----- */

.portfolio {
    /* padding: 120px 0; */
    padding-top: 96px;
    padding-bottom: 96px;
}

.portfolio-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
}
.portfolio-item {
    /* width: calc((100% - 48px) / 3); */
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.portfolio-list {
    display: flex;
    /* column-gap: 24px;
    row-gap: 48px; */
    flex-wrap: wrap;
    gap: 48px; 
    margin-top: 72px;

}

.portfolio-item {
    width: 100%;
}

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

.portfolio-item:hover .flip-text {
    transform: translateY(0);
}

.portfolio-img {}

.flip-card {
    position: relative;
    overflow: hidden;
}

.flip-text {
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    background: #4d5ae5;
    padding: 40px 32px 164px;
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}


.portfolio-info {
border: 1px solid #e7e9fc;
border-top: none;
/* padding: 32px 16px; */
/* padding-top: 8px; */
padding-bottom: 32px;
padding-top: 32px;
padding-left: 16px
}

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

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

/* ----- FOOTER ----- */

.footer {
    background: #2e2f42;
    /* padding-top: 100px;
    padding-bottom: 132px; */
    padding-top: 96px;
    padding-bottom: 96px;
}

.container-footer {
    display: flex;
    /* align-items: baseline; */
    flex-direction: column;
    gap: 72px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    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: 0;
    display: inline-block;
    text-align: left;
}

.footer-logo-word {
    color: #f4f4fd;
}

.footer-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    max-width: 264px;
    margin-top: 16px;
}

.socials-footer {
    /* margin-left: 120px; */
    margin: 0 auto;
    
}

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

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

.footer-socials-item {
    width: 40px;
    height: 40px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.form-subscribe {
    display: flex;
    /* align-items: center; */
    /* gap: 24px; */
    flex-direction: column;
}

.footer-subscribe {
    /* margin-left: 80px; */
    /* width: 453px;
    height: 80px; */
    margin: 0 auto;
}

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

.subscribe-input:placeholder {
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #fff;
}

.footer-email {
    margin-bottom: 16px;
}

.subscribe-input {
    border: 1px solid #fff;
    border-radius: 4px;
    width: 264px;
    height: 40px;
    padding-left: 16px;
    padding-right: 16px;
    background-color: transparent;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    color: #fff;

}

.subscribe-button {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: none;
    width: 165px;
    height: 40px;
    background-color: #4d5ae5;
    color: #fff;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    margin: 0 auto;
}

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

.icon-send {
    fill: #fff;
    margin-left: 16px;
}   

/* ---- MODAL ----- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(46, 47, 66, 0.4);
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

}

.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 250ms ease-in-out, visibility 250ms ease-in-out; 
}

.modal {
    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);
    width: 90vw;
    max-width: 720px;
    max-height: 90vh;
    overflow: auto;
    border-radius: 8px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 72px 16px 24px 16px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close:hover, .modal-close:focus {
    background-color: #404bbf;
    fill: #fff;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

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

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

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

.input-wrapper {
    position: relative;
}

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

.modal-input:focus {
    border-color: #4d5ae5;
}

.modal-input:focus + .input-icon {
    fill: #4d5ae5;
}

.modal-field {
    margin-bottom: 8px;
    position: relative;
}

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

.modal-btn {
    border-radius: 4px;
    border: none;
    padding: 16px 32px;
    min-width: 169px;
    height: 56px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background-color: #4d5ae5;
    text-align: center;
    color: #fff;
    font-weight: 500;
    display: block;
    margin: 0 auto;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.input-icon {
    fill: #2e2f42;
    padding: 3px 0px;
    width: 18px;
    height: 24px;
    position: absolute;
    left: 16px;
    top: 50%;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-50%);
}

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

.modal-textarea {
    width: 100%;
    height: 120px;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    background-color: transparent;
    padding: 8px 16px;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    resize: none;
    /* color: rgba(46, 47, 66, 0.4); */
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    color: color: #8e8f99;
    opacity: 0.5;
}

.modal-textarea:focus {
    border-color: #4d5ae5;
}

.modal-field-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-checkbox {
    border-radius: 2px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.modal-checkbox:checked + .checkbox-label > .modal-check {
    background-color: #404bbf;
    border: none;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    fill: #f4f4fd;
}

.modal-check {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    margin-right: 8px;
    background-color: 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;
    align-items: center;
    justify-content: center;
    fill: transparent;
}

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

.checkbox-label {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    align-items: center;
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

.check-icon {
    fill: #f4f4fd;
}

/* ----- MEDIA ----- */

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

    .menu-open-btn {
        display: none;
    }

    .mob-menu {
        display: none;
    }

    .header-menu {
        width: auto;
        height: auto;
    }

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

    .header-item {
    }

    .header-nav-link {
        color: #2e2f42;
    }


    .nav-link-studio::after {
            content: "";
            width: 100%;
            position: absolute;
            left: 0;
            bottom: -1px;
            height: 4px;
            background-color: #404bbf;
            border-radius: 2px;
            transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
        }

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

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

    .hero {
        padding-top: 112px;
        padding-bottom: 112px;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url("../images/hero-bg-tab.jpg");

        @media screen and (min-resolution: 2x), (-webkit-min-device-pixel-ratio: 2) {
            background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url("../images/hero-bg-tab-2x.jpg");
        }
    }

    .hero-btn {
        margin: 0 auto;
    }

    .advantages-list {
        gap: 72px 24px;
    }

    .advantages-item {
        width: calc((100% - 24px) / 2);
    }

    .advantages-subtitle {
        text-align: left;
    }

    .team-title {
        font-size: 56px;
        line-height: 1.07;

    }

    .team-list {
        gap: 64px 24px;
    }

    .team-item {
        width: calc((100% - 24px) / 2);
        box-sizing: border-box;
    }

    .team > .container {
        width: 552px;
    }
    
    .socials-list {
        margin-left: 16px;
        margin-right: 16px;
    }

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

    .portfolio-item {
        width: calc((100% - 24px) / 2);
        box-sizing: border-box;
    }

    .footer {
        margin: 0;
        display: flex;
        justify-content: center;
    }

    .footer-about {
        align-items: flex-start;
        gap: 16px;
        margin: 0;
    }

    .footer-text {
        margin: 0;
    }

    .footer-logo {
    }

    .container-footer {
        flex-direction: row;
        align-items: baseline;
        gap: 24px;
        flex-wrap: wrap;
        max-width: 552px;
        margin: 0;
        }
    
    .socials-footer {
        display: flex;
        flex-direction: column;
        margin: 0;
        gap: 16px;
        padding-bottom: 72px;
        }

    .footer-text-socials {
        text-align: left;
        margin: 0;
        }

    .footer-socials-list {
        margin: 0;
    }
    
    .footer-subscribe {
        width: auto;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        }

    .footer-text-subscribe {
        text-align: left;
        margin: 0;
        }
    
    .form-subscribe {
    flex-direction: row;
    align-items: baseline;
    gap: 24px;
    }
    
    .subscribe-input {
        /* margin-bottom: 0; */
        }

    .modal {
        max-width: 408px;
        max-height: 584px;
    }
    
}


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

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

    .hero {
        padding-top: 188px;
        padding-bottom: 188px;
        height: 600px;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url("../images/hero-bg-desk.jpg");

        @media screen and (min-resolution: 2x),
            (-webkit-min-device-pixel-ratio: 2) {
                background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url("../images/hero-bg-desk-2x.jpg");
            }
}

    .hero-title {
        max-width: 496px;
        margin: 0 auto 48px;
    }

    .hero-btn {
        margin: 0 auto;
    }


    .advantages-list {
        gap: 24px;
    }

    .advantages-item {
        width: calc((100% - 72px) / 4);
    }

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

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

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

    .team {
        padding: 120px 0;
    }

    .team > .container {
        width: 1158px;
        padding: 0 15px;
    }

    .team-list{
        gap: 24px;
    }

    .team-item {
        width: calc((100% - 72px) / 4);
    }

    .portfolio {
        padding: 120px 0;
    }

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

    .portfolio-item {
        width: calc((100% - 48px) / 3);
    }

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

.footer-about {}

.footer-text {
    width: 264px;
}

.footer-email {
    margin: 0;
}

.container-footer {
    align-items: baseline;
    flex-wrap: nowrap;
    max-width: 1158px;
    padding: 0;
}

.socials-footer {
    margin-left: 120px;
    flex: none;
    padding: 0;
}

.form-subscribe {
    align-items: center;
    gap: 24px;
    flex-direction: row;
}

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

.container-footer > :last-child {
    margin-left: auto;
}

.modal {
    min-width: 408px;
    min-height: 584px;
    border-radius: 4px;
    position: absolute;
    padding: 72px 24px 24px 24px;
}

}