.hidden{
    display: none;
}

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

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

body{
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    background-color: #FFFFFF;
    margin: 0 auto;
}

a{
    text-decoration: none;
}

h2, h3 {
    color: #2E2F42;
}

p{
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 2px;

    color: #434455;
}

h1{
    font-weight: bold;
    font-size: 56px;
    letter-spacing: 0.02em;
    line-height: 1.111;
    color: #FFFFFF;
}

ul{
    list-style: none;
    color: #2e2f42;
    letter-spacing: 0.02em;
    margin: 0;
    padding-left: 0;
}

button{
    cursor: pointer;
}

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

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

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

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

.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-div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

}

.studio {
    color: #2E2F42;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 18px;
    line-height: 1.16;
    letter-spacing: 0.03em;
}

.burger-btn{
    padding: 0;
    border: none;
    background-color: transparent;
}

@media screen and (min-width: 768px){
    .burger-btn{
        display: none;
    }
    .nav-list{
        display: flex;
        align-items: center;
        gap: 40px;
    }
    .nav{
        display: flex;
        align-items: center;
    }
    .a-list{
        font-style: normal;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .logo{
        margin-right: 120px;
    }
}

@media screen and (min-width: 1158px){
    .a-list{
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 40px;
    }
}

.nav-list-item-url {
    position: relative;
    color: #404bbf;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 24px 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}


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

.nav-list-item {
    margin-right: 40px;
    padding: 24px 0;
}

.a-list-item-url {
    font-style: normal;
    color: #434455;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.a-list-item-url:hover,
.a-list-item-url:active,
.a-list-item-url:focus {
    color: #404bbf;
}

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

    .mobile-menu.is-opened{
        display: none;
    }
}

.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-opened{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    width: 100%;
    height: 100%;
}

.mobile-menu-container{
    position: relative;
    padding-top: 72px;
    padding-bottom: 40px;

    display: flex;
    flex-direction: column;
}

.mobile-menu-close{
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    align-items: center;
}

.mobile-nav{
    margin-bottom: 168px;
}

.mobile-nav-list-item-url{
    position: relative;
    color: #404bbf;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 24px 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-address-item-url{
    font-style: normal;
        color: #434455;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-soc-links-list{
    margin-top: 48px;
    display: flex;
    gap: 24px;

}

.mobile-soc-links-item-url{
    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);
}

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

.soc-icon{
    fill: #ffffff;
}

.nav-header{
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 2px;
    color: #2E2F42;
}

.hero {
    background: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
        url(../images/people-office.jpg);
    background-size: cover;
    background-position: center;
    margin: 0 auto;
    margin-top: 0 auto;
    padding: 0;
    align-items: center;
    min-width: 320px;
    background-repeat: no-repeat;
}

.hero-title-2{
        line-height: 1.07;
        text-align: center;
        margin: 0 auto;
        max-width: 216px;
        margin-bottom: 48px;

        color: #fff;
        font-family: 'Roboto', sans-serif;
        font-weight: 700;
        font-size: 36px;
        line-height: 1.11;
        letter-spacing: 2px;

        align-items: center;
}

@media screen and (min-width: 0){

    .hero-title{
        display: none;
    }
}

@media screen and (min-width: 768px){
    
    .hero-title-2{
        display: none;
    }

    .hero-title {
        display: block;
        line-height: 1.07;
        text-align: center;
        margin: 0 auto;
        max-width: 496px;
        margin-bottom: 48px;

        align-items: center;
    }
    
    .hero-div{
        padding: 112px 0;
    }
}

.hero-button {
    line-height: 1.5;
    letter-spacing: 0.04em;
    font-weight: 500;
    display: block;
    border: none;
    min-width: 169px;
    height: 56px;
    border-radius: 4px;
    margin: 0 auto;
    cursor: pointer;

    background-color: #4D5AE5;
    color: #fff;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

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

.approach{
    padding: 96px 0;
}

.approach-list-mobile{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 72px;
}

.approach-list-item{
    max-height: 120px;
    width: 288px;
    gap: 8px;
}

.approach-heading-mobile{
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 2px;

    color: #2E2F42;
    text-align: center;
}

.icon-approach{
    display: none;
}

.approach-heading{
    display: none;
}

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

    .approach-heading-mobile{
        display: none;
    }

    .approach-heading{
        display: block;
        color: #2E2F42;
        font-weight: 500;
        line-height: 1.2;
        margin-bottom: 8px;
        margin-top: 0;
    }

    .approach-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 24px;
        max-width: 100%;
    }

    .approach-list-item {
        max-height: 120px;
        width: 356px;
        gap: 8px;
    }
}

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

    .approach-heading {
        color: #2E2F42;
        font-weight: 500;
        line-height: 1.2;
        margin-bottom: 8px;
        margin-top: 0;
    }

    .approach-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 24px;
        align-items: center;
        max-width: 100%;
    }

    .approach-list-item {
        max-height: 224px;
        width: 264px;
        gap: 8px;
    }

    .icon-approach {
        display: block;
    }

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

.title-team{
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-weight: bold;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 2px;
    text-align: center;
    
    margin-bottom: 72px;
}

.team {
    background-color: #F4F4FD;
    padding: 96px 0;
}

.team-list{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 72px;
    max-width: 100%;
}

.team-list-item {
    background-color: #FFFFFF;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    align-items: center;
    border-radius: 0 0 4px 4px;
    width: 264px;
    max-height: 428px;
    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);
}

.div-team {
    padding: 32px 0;
}

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

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

.team-social-url {
    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);
}

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

.team-list-heading {
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 8px;

}

.team-list-paragraph {
    color: #434455;
    line-height: 1.5;
    font-size: 16px;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 8px;
}

.icon-team-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.icon {
    fill: #fff;
}

@media screen and (min-width: 768px){
    .team {
        padding: 96px 0;
    }
    
    .team-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 24px;
        max-width: 100%;
    }
}

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

    .team-list{
        flex-wrap: nowrap;
    }
}

.portfolio{
    padding: 96px 0;
}

.title-portfolio{
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 2px;

    text-align: center;

    margin-bottom: 72px;
}

.portfolio-list-item-container {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;

}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
    max-width: 100%;
}

.portfolio-list-item{
    width: 288px;
    height: 400px;
    box-shadow: 0 2px 1px rgba(46, 47, 66, 0.08),
        0, 1px, 1px rgba(46, 47, 66, 0.16),
        0, 6px, 1px rgba(46, 47, 66, 0.08);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}


.portfolio-image {
    position: relative;
    overflow: hidden;
    width: 288px;
    height: 280px;
}

.portfolio-image-paragraph {
    position: absolute;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4D5AE5;

    padding: 32px;
    color: #f4f4fd;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.5;
    font-size: 16px;
    font-weight: 400;
    padding: 40px 32px;

    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-image:hover .portfolio-image-paragraph {
    transform: translateY(0%);
    cursor: pointer;
}

@media screen and (min-width: 768px){
    .portfolio-list-item {
        width: 356px;
        height: 420px;
        margin-bottom: 72px;
        }
    .portfolio-image {
        width: 356px;
        height: 300px;
    }
    .portfolio-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 100%;
    }
}

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

.footer{
    padding: 96px 0;
    background-color: #2e2f42;
}

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

.footer-paragraph {
    color: #F4F4FD;
    max-width: 288px;
    margin: 0;
}

.footer-logo {
    display: inline-block;
    margin-left: 82px;
    margin-bottom: 16px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;


}

.studio-footer {
    color: #f4f4fd;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 18px;
    line-height: 1.16;
    letter-spacing: 0.03em;
}

.footer-info{
    margin-bottom: 72px;
}

.social-paragraph {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-style: medium;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin: 0;
    margin-bottom: 16px;
}

.social-list {
    display: flex;
    gap: 16px;
    margin-bottom: 72px;
}

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

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

.social-url:hover,
.social-url:focus {
    background-color: #31d0aa;
    cursor: pointer;
}

.email-footer {
    max-width: 288px;
    max-height: 136px;
    margin: 0 auto;
}

.email-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.subscribe-paragraph {
    margin: 0;
    text-align: center;
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #FFFFFF;
}

.email-input {
    width: 264px;
    height: 40px;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    background-color: none;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    background-color: transparent;

    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    padding-left: 16px;
    color: #ffffff;
}

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

.form-button {
    display: flex;
    justify-content: center;
    border: none;
    border-radius: 4px;
    min-width: 165px;
    height: 40px;
    align-items: center;
    cursor: pointer;
    background-color: #4D5AE5;
    color: #fff;

    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.form-button:hover,
.form-button:focus {
    background-color: #404BBF;
}

.form-button>.icon {
    margin-left: 16px;
    fill: #FFFFFF;
}

@media screen and (min-width: 768px){
    .footer{
        padding-left: 108px;
    }
    .footer-container{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }
    .footer-paragraph{
        width: 264px;
        height: 112px;
    }

    .footer-logo{
        margin-left: 0;
    }

    .footer-info{
        margin: 0;
        margin-bottom: 72px;
    }
    .email-footer {
        max-width: 453px;
        max-height: 80px;
        margin: 0;
    }
    .email-form {
        display: flex;
        flex-direction: row;
        gap: 24px;
    }

    .subscribe-paragraph{
        text-align: left;
    }
}

@media screen and (min-width: 1158px){
    .footer-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: baseline;
    }
    .footer-info{
        margin-right: 120px;
    }
}

.bg-modal {
    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);
}

.modal-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 288px;
    min-height: 623px;
    padding: 72px 16px 16px 16px;
    background-color: #FCFCFC;
    border-radius: 4px;
    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);

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

.modal-button-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #E7E9FC;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
        border 250ms cubic-bezier(0.4, 0, 0.2, 1);


}

.modal-button-close:hover,
.modal-button-close:focus {
    background-color: #404bbf;
    border: none;
}

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

.modal-button-close:hover>.icon,
.modal-button-close:focus>.icon {
    fill: #FFFFFF;

}

.modal-content-paragraph {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    margin: 0;
    margin-bottom: 16px;

    color: #2E2F42;
}

.modal-form {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.modal-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.17;
    letter-spacing: 0.04em;
    margin-bottom: 4px;

    color: #8E8F99;
}

.modal-input-div {
    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;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-label-div {
    margin-bottom: 8px;
}

.modal-textarea-div {
    margin-bottom: 16px;
}
.modal-textarea {
    width: 100%;
    height: 120px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    background-color: transparent;

    resize: none;
    padding: 8px 16px;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    outline: transparent;

    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
}

.modal-input-div>.icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    fill: rgba(46, 47, 66, 1);

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

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

.privacy-policy-url {
    width: 16px;
    height: 16px;
    border-radius: 2px;

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

    display: inline-flex;
    align-items: center;
    fill: transparent;

    margin-right: 8px;

}

.checkbox:checked+.privacy-policy-url {
    background-color: #404bbf;
    border: none;
    fill: #F4F4FD;
}

.privacy-policy-content {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.13;
    letter-spacing: 0.04em;

    text-decoration: underline;
    color: #4D5AE5;
    margin-left: 24px;
}

.modal-submit-button {
    display: block;
    margin: 0 auto;
    min-width: 169px;
    height: 56px;
    border: none;
    border-radius: 4px;

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


    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    cursor: pointer;
}

.modal-submit-button:hover,
.modal-submit-button:focus {
    background-color: #404BBF;
}

.checked-icon {
    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;

    margin-right: 8px;
    transform: translateY(35%);
}

.checkbox-checked:checked+.modal-label .checked-icon {
    background-color: #404bbf;
    border: none;
    fill: #F4F4FD;
}

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

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

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

    .privacy-policy-content {
        margin-left: 0;
    }

    .checked-icon {
        transform: translateY(0);
    }
}