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

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

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

a {
    text-decoration: none;
}

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

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

/* page header start */
.page-header {
    border-bottom: 1px solid #e7e9fc;
    box-shadow: 0px 2px 1px rgba(46, 47, 66, 0.08), 
    0px 1px 1px rgba(46, 47, 66, 0.16), 
    0px 1px 6px rgba(46, 47, 66, 0.08);
}

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

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

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

.header-logo {
    padding: 24px 0;
    margin-right: 76px;
}

.header-logo .logo-part {
    color: #2e2f42;
}

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

.nav-link {
    position: relative;
    padding: 24px 0;
    display: block;
    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);
}

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

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


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

.nav-link:hover:after,
.nav-link:focus:after,
.nav-link.current::after {
    opacity: 1;
}

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

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

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

.contacts-address {
    display: block;
    padding: 24px 0;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contacts-address:hover,
.contacts-address:focus {
    color: #404BBF;
}
/* page header stop*/

/* banner start */
.hero-banner {
    weight: 1440px;
    height: 600;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), 
    rgba(46, 47, 66, 0.7)), 
    url('../images/people_officex1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #000;
    padding: 188px 0;
    margin: 0 auto;
}

.hero-banner-title {
    font-size: 56px;
    line-height: 1.07;
    text-align: center;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0 auto;
    max-width: 496px;
}

.hero-banner-button {
    background-color: #4D5AE5;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;
    cursor: pointer;
    height: 56px;
    margin: 48px auto 0;
    border: none;
    border-radius: 4px;
    display: block;
    min-width: 169px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner-button:hover,
.hero-banner-button:focus {
    background-color: #404BBF
}
/* baner stop */

/* description start */
.description {
    padding: 120px 0;
}

.description-list {
    display: flex;
    gap: 24px;
}

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

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

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

.description-list-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}
/* description stop */

/* team start */
.team {
    padding: 120px 0;
    background-color: #F4F4FD
}

.team-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

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

.team-item-list {
    background-color: #FFFFFF;
    border-radius: 0 0 4px 4px;
    width: 264px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08),
    0 1px 1px 0 rgba(46, 47, 66, 0.16),
    0 1px 6px 0 rgba(46, 47, 66, 0.08);
}

.team-item-list-block {
    padding: 32px 0;
}

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

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

.team-item-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 24px;
}

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

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

.team-item-social-icon {
    width: 16px;
    height: 16px; 
    fill:#f4f4fd;
}
/* team stop */

/* portfolio start*/
.portfolio {
    padding: 120px 0 120px 0
}

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

.portfolio-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px 24px;
    flex-wrap:wrap;
}

.portfolio-item-list {
    width: calc((100% - 48px) / 3);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.portfolio-item-list-image {
    display: block;
    width: 100%;
    height: auto;
}

.portfolio-overlay-text {
    position: absolute;
    top: 0;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    padding: 40px 32px;
    background-color: #4d5ae5;
    height: 100%;
    width: 100%;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);    
}

.portfolio-item-list:hover .portfolio-overlay-text {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item-text-block {
    padding: 32px 16px; 
    border: 1px solid #e7e9fc;
    border-top: none;
}

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

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

/* footer start */
.page-footer {
    padding: 100px 0;
    background-color: #2e2f42;
}

.footer-container {
    display: flex;
    flex-wrap: wrap; 
    align-items: baseline;
}

.footer-info {
    margin-right: 120px
}

.footer-logo {
    color: #4d5ae5;
    line-height: 1.17;
    display: inline-block;
    margin-bottom: 16px;
}

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

.footer-info-text {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    max-width: 264px;
}

.footer-social-title {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 16px;
}

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

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

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

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

.footer-field {
    display: flex;
    flex-direction: column;
    margin-left: auto;
}

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

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

.subscribe-input:hover,
.subscribe-input:focus {
    border-color: #31d0aa;
}

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

.subscribe-button:hover,
.subscribe-button:focus {
    background-color: #31d0aa;
}

.subscribe-icon {
    margin-left: 16px;
    fill: #fff;
}
/* footer stop */

/* modal overlay start */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
}

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

.modal {
    padding: 72px 24px 24px 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 408px;
    min-height: 584px;
    background: #fcfcfc;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14),
    0px 1px 3px rgba(0, 0, 0, 0.12),
    0px 2px 1px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-overlay:not(.is-open) .modal {
    transform: translate(-50%, -50%) scale(1.5);
}

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

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

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

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

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

.modal-form {
    width: 100%;
}

.form-field {
    margin-bottom:8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.input-wrapper {
    position: relative;
}

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

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

.input-wrapper:hover .form-input,
.input-wrapper:focus-within .form-input {
    border-color: #4d5ae5;
}

.input-wrapper:hover .form-icon,
.input-wrapper:focus-within .form-icon {
    fill: #4d5ae5;
}

.textarea {
    margin-bottom: 16px;
}

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

.form-textarea:hover,
.form-textarea:focus {
    border-color: #4D5AE5;
}

/* Checkbox Start*/
.checkbox {
    margin-bottom: 24px;
}

.checkbox-input {
    appearance: none;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

.checkbox-icon {
    fill: transparent;
}

.checkbox-input:checked + .checkbox-label .checkbox-icon {
    fill: #f4f4fd;
}


.custom-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    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;
}


.form-image {
    color:#4d5ae5;
    text-decoration: underline;
}

/* Checkbox Stop*/ 

.input-button {
    display: block;
    min-width: 169px;
    height: 56px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;
    cursor: pointer;
    background-color: #4D5AE5;
    border: none;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    margin: 24px auto 0;
    border-radius: 4px;
}

.input-button:hover,
.input-button:focus {
    background: #404bbf;
}
/* modal overlay stop */

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

.burger-menu-open-button,
.burger-menu-close-button,
.mob-nav-list,
.mob-contacts-list,
.mob-social-list {
    display: none;
}


@media (min-resolution: 2dppx) {
    .hero-banner {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)),
        url('../images/people_officex2.jpg');
    }
}


@media screen and (min-width: 320px) and (max-width: 767px) {
    .container {
        max-width: 320px;
        padding: 0 16px;
    }


    /* page header start */
    .header-logo {
        padding: 16px 0;
    }

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

    .header-container {
        display: block;
    }

    /* Burger menu */
    .logo-burger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

     .burger-menu-open-button {
        display: block;
        border: none;
        cursor: pointer;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: transparent;
        padding: 0;
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .burger-menu-open-button:hover .burger-icon, 
    .burger-menu-open-button:focus .burger-icon {
        fill: #404bbf;
    }
    
    .burger-icon {
        width: 24px;
        height: 24px;
        fill: #2f2f37;
    }

    /*Mob Menu*/
    .mob-menu {
        position: fixed;
        top: 0;
        left: 0;
        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;
        width: 100%;
        height: 100%;
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .mob-menu-wrap {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding-top: 72px;
        padding-bottom: 40px;
        align-items: flex-start;
    }

    .mob-menu-wrap.container {
        align-items: flex-start;
    }

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

    .burger-menu-close-button {
        margin-left: auto;
        border: none;
        cursor: pointer;
        position: absolute;
        top: 24px;
        right: 24px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        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);
    }
    
    .burger-menu-close-button:hover,
    .burger-menu-close-button:focus {
        background-color: #404bbf;
    }

    .burger-menu-close-button:hover .mob-close-icon,
    .burger-menu-close-button:focus .mob-close-icon {
        fill: #fff;
    }

    
    .mob-nav-list {
        display: flex;
        flex-direction: column;
        gap: 40px;   
    }
    
    .mob-nav-link {
        font-weight: 700;
        font-size: 36px;
        line-height: 1.11;
        letter-spacing: 0.02em;
        color: #2e2f42;
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mob-nav-link:hover,
    .mob-nav-link:focus {
        color: #404bbf;
    }
    
    .mob-contacts {
        font-style: normal;
        margin-top: auto;
    }
    
    .mob-contacts-list {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap: 24px;
    }
    
    .mob-contacts-address {
        font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        color: #434455;
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mob-contacts-address:hover,
    .mob-contacts-address:focus {
        color: #404bbf;
    }

    .mob-social-list {
        display: flex;
        align-items: center;
        gap: 40px;
        margin-top: 48px;
    }
    
    .mob-social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: #4d5ae5;
        border-radius: 50%;
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mob-social-link:hover,
    .mob-social-link:focus {
        background-color: #404bbf;
    }
    
    .mob-social-icon {
        fill: #f4f4fd;
    }
    /* page header stop*/

    /* banner start */
    .hero-banner {
        max-width: 320px;
        padding: 72px 0;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)),
        url('../images/hero_mobx1.jpg');
    }

    .hero-banner-title {
        font-size: 36px;
        line-height: 1.11;
        max-width: 216px;
    }
    /* baner stop */

    /* description start */
    .description {
        padding: 96px 0;
    }

    .description-list {
        flex-direction: column;
        gap: 72px;
    }
    
    .description-item {
        width: 100%;
    }

    .description-list-subtitle {
        font-weight: 700;
        font-size: 36px;
        line-height: 1.11;
        text-align: center;
    }
    
    .description-list-text {
        font-weight: 500;
        max-width: 288px;
    }

    .description-icon {
        display: none;
    }
    /* description stop */

    /* team start */
    .team {
        padding: 96px 0;
    }
    
    .team-item {
        flex-direction: column;
        gap: 72px;
    }
    /* team stop */
    
    /* portfolio start*/
    .portfolio {
        padding: 96px 0;
    }
    
    .portfolio-item {
        gap: 48px;
    }

    .portfolio-item-list {
        width: 100%;
    }
    /* portfolio stop */

    /* footer start */
    .page-footer {
        padding: 96px 0;
    }
    
    /* footer start */
    .page-footer {
        padding: 96px 0;
    }

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

    .footer-info-text {
        text-align: left;
    }

    .footer-info {
        width: 288px;
        margin-right: 0;
    }
    
    .footer-field {
        margin-left: 0;
        width: 100%;
    }
    
    .subscribe-form {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .subscribe-input {    
        width: 288px;
    }

    /* modal overlay start */
    .modal {
        padding: 72px 16px 16px 16px;
        max-width: 288px;
    }

    .modal-text {
        margin-top: 8px;
    }

    .checkbox-label {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .custom-checkbox {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0
    }
    
    .checkbox-label a {
        color: #4d5ae5;
        text-decoration: underline;
        white-space: nowrap;
    }
    
    .checkbox-text-wrapper {
        display: inline;
    }
}

@media (min-width: 320px) and (max-width: 767px) and (min-resolution: 2dppx) {
    .hero-banner {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)),
        url('../images/hero_mobx2.jpg');
    }
}

@media screen and (min-width: 768px) and (max-width: 1157px) {
    .container {
        max-width: 768px;
        padding: 0 16px;
    }
    
    /* page header start */
    .header-logo {
        padding: 16px 0;
    }

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

    .contacts-address {
        padding: 0;
        font-weight: 400;
        font-size: 12px;
        line-height: 1.16;
        letter-spacing: 0.04em;
    }
    /* page header stop*/
    
    /* banner start */
    .hero-banner {
        max-width: 768px;
        padding: 112px 0;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)),
        url('../images/hero_tabletx1.jpg');
    }
    
    .hero-banner-title {
        font-size: 56px;
        line-height: 1.07;
        max-width: 496px;
    }
    
    /* baner stop */
    
    /* description start */
    .description {
        padding: 96px 0;
    }
    
    .description-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 72px 24px;
    }
    
    .description-item {
        width: calc((100% - 24px) / 2);
    }
    
    .description-list-subtitle {
        font-weight: 700;
        font-size: 36px;
        line-height: 1.11;
        letter-spacing: 0.02em;
    }
    
    .description-list-text {
        width: 100%;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
    }
    
    .description-icon {
        display: none;
    }
    
    /* description stop */
    
    /* team start */
    .team {
        padding: 96px 0;
    }
    
    .team-item {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 64px 24px;
    }
    /* team stop */
    
    /* portfolio start*/
    .portfolio {
        padding: 96px 0;
    }
    
    .portfolio-item {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 72px 24px;
    }
    
    .portfolio-item-list {
        width: calc((100% - 24px) / 2);
    }
    /* portfolio stop */
    
    /* footer start */
    .page-footer {
        padding: 96px 0px;
    }
    
    .footer-container {
        max-width: 584px;
        flex-direction: row;
        align-items: flex-start;
        gap: 72px 24px;
    }
    
    .footer-info-text {
        text-align: left;
    }
    
    .footer-info {
        width: 264px;
        margin-right: 0;
    }
    
    .footer-field {
        width: 100%;
    }
    
    .subscribe-input {
        width: 264px;
    }
    
   /* footer stop */
   
}

@media (min-width: 768px) and (max-width: 1157px) and (min-resolution: 2dppx) {
    .hero-banner {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)),
        url('../images/hero_tabletx2.jpg');
    }
}

