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

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

img{
    display: block;
}

*{
    text-decoration: none;
    list-style: none;
}

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



ul{
    margin: 0;
    padding-left: 0;
}

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

.logos{
    display: flex;
    gap: 24px;
}

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

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

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

/*logo start*/

.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;
    margin-right: 76px;
}

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

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

/*logo end*/

/*navigations start*/

.studio-nav{
display: flex;
gap: 40px;
}

.navig{
    display: flex;
    align-items: center;
}

.navigation {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
    display: block;
    padding: 24px 0;

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

.navigation.website{
position: relative;
}

.navigation.website::after{
content: "";
position: absolute;
width: 100%;
height: 4px;
border-radius: 2px;
background-color: #404BBF;
bottom: -1px;
left: 0;
}
.navigation:hover,
.navigation:focus,
.contacts-info:hover,
.contacts-info:focus,
.navigation.website
{
    color: #404bbf;
}


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

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

.contacts-info {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/*navigations end*/

/*main page start*/
.section-one{
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url("../images/people-office.jpg");
    padding: 188px 0;
    max-width: 1440px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
}


.section-two{
    padding: 120px 0;
}


.section-three{
    background-color: #F4F4FD;
    padding: 120px 0;

}

.section-four{
    padding-top: 120px;
    padding-bottom: 120px;
}

.main-title {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    font-style: bold;
    max-width: 496px;
    margin: 0 auto 48px;
}

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

.main-button:hover,
.modal-button:hover{
    background-color: #404BBF
}

.main-button:focus
.modal-button:focus{
    background-color: #404BBF
}

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

.four-text{
    display: flex;
    gap: 24px;
}

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

.title-secondary {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
}

.title-secondary-text {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

/*main page end*/

/*our team start*/

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

.our-team{
    display: flex;
    gap: 24px;
}

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


.names{
    padding: 32px 0;
}

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

.team-text {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #434455;
    text-align: center;
}

.social{
    display: flex;
    gap: 24px;
    margin: 8px 16px 0 16px;
    justify-content: center;
}

.media-p{
    width: 40px;
    height: 40px;
}

.social-media{
background-color: #4d5ae5;
width: 100%;
height: 100%;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background-color;
}

.social-media:hover,
.social-media:focus{
    background-color: #404bbf;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.social-media.footer-media:hover,
.social-media.footer-media:focus{
    background-color: #31d0aa;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

/*our team end*/

/*our portfolio start*/

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

.portfolio-title-name {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
}

.portfolio-title-text {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

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

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


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


.photo{
position: relative;
overflow: hidden;
box-shadow: none;
transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
}



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


.photo:hover .overlay-text{
    transform: translateY(0);
}

.photo:hover{
    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);
}

/*our portfolio end*/

/*footer start*/

.full-footer{
    background-color: #2e2f42;
    padding: 100px 0;
    display: flex;
}

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

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

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

.socialist{
margin-left: 0;
}


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

.media-logos{
    display: flex;
    gap: 16px;  
}

.li-foot{
    width: 40px;
    height: 40px;
}

.footer-div{
display: flex;
align-items: baseline;

}

.footer-sub{
    margin-left: 80px;
}

.sub-title{
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.subscribe{
    display: flex;
    gap: 24px;
}

.email-sub{
    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;
}

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

.sub-btn{
    min-width: 165px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    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;
    border-radius: 4px;
}

.sub-btn:hover{
    background-color: #31d0aa;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
/*footer end*/

/* svg's */

.svg-class{
    fill: #F4F4FD;
}

.svg-btn{
    margin-left: 16px;
}


/* modal*/

.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;
    pointer-events: none;
}

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

.modal{
    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);
    padding: 72px 24px 24px 24px;
}

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

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

.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;
    text-align: center;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 16px;
}

.name-container{
    margin-bottom: 8px;
}

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

.icon-input{
    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 + .input-logo{
    fill: #4D5AE5;
}
.modal-input:focus{
    border-color: #4D5AE5;
}


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

.textarea-cont{
    margin-bottom: 16px
}

.textarea-inp{
    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);
}

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

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

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

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

.visually-hidden:checked + .privacy-label .checkmark{
    background-color: #404bbf;
    border: none;
    fill: #F4F4FD;
}

.priv-policy{
    color: #4d5ae5;
    text-decoration: underline;
    margin-left: 4px;
}

.modal-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;
    border-radius: 4px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(50%);
}

/* mobile menu */

.mob-menu{
    display: none;
}

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

@media (min-width:320px) and (max-width:767px){

.container{
    width: 288px;
}

.logos{
    display: none;
}

.section-one{
    padding: 72px 0;
}

.main-title{
    font-size: 36px;
    max-width: 216px;
}

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

.text-list{
    width: 288px;
}

.title-secondary{
    font-weight: 700;
    font-size: 36px;
    text-align: center;
}

.title-secondary-text{
    font-weight: 500;
}

.our-team{
    flex-direction: column;
    gap: 72px;
}

.team-container{
    width: 264px;
}

.wrap-list{
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

.wrap-list-item{
    width: 288px;
    column-gap: 0;
}

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

.footer-text{
    width: 288px;
    font-weight: 400;
    margin-bottom: 0;
    margin: 0 16px;
}

.logo-foot-div{
    margin-right: 0;
}

.logo-footer-main{
    margin-bottom: 17.5px;
    margin-left: 102px;
    margin-right: 103px;
}

.media-title{margin-left: 112px;
    margin-right: 112px;
    min-width: 96px;
    margin-top: 72px;
}

.media-logos{
    gap: 16px;
    margin: 16px 56px 0 56px;
}

.sub-title{
    margin-left: 122px;
    margin-right: 123px;
    margin-top: 72px;
    width: 75px;
}

.subscribe{
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.email-sub{
    width: 288px;
}

.sub-btn{
    max-width: 165px;
}

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

.mob-menu{
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999;
    padding: 0px 24px 40px 16px;
}

.mob-menu.close{
    display: none;
}

.menu-btn{
    width: 24px;
    height: 24px;
    border: 1px solid rgba(46, 47, 66, 0.1);
    border-radius: 50%;
    background-color: rgba(231, 233, 252, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    left: 272px;
}

.close-menu{
fill: #2e2f42;
}

.mob-menu-nav{
display: flex;
flex-direction: column;
gap: 40px;
margin-top: 72px;
}

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

.navigation-mob.chose{
color: #404BBF;
}

.contact-list-mob{
display: flex;
flex-direction: column;
gap: 24px;
margin-top: 168px;
}

.contacts-info-mob{
color: #434455;
font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
}

.studio-nav{
    display: none;
}

.contacts{
    display: none;
}

.navig{
    margin: 17.5px 0;
}

.mob-menu-open{
    display: flex;
    width: 24px;
    height: 24px;
    border: none;
    background-color: #ffffff;
    margin-left: 60px;
    align-items: center;
    justify-content: center;
}

.modal{
    width: 288px;
}

.modal-button{
    transform: translateX(0%);
}

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

.name-container{
    width: 256px;
}

.textarea-cont{
    width: 256px;
}

.checkbox-cont{
    width: 256px;
}

.privacy-label{
    width: 256px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.priv-policy{
    margin-left: 23px;
}

.contacts-info-mob.mobilka{
    color: #4d5ae5;
}

.media-logos-mobile{
    display: flex;
    gap: 40px;
    margin-top: 48px;
}
}


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

.container{
    width: 736px;
}

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

.logos{
    display: none;
}

.text-list{
    min-width: 356px;
    max-width: 356px;
}

.four-text{
    width: 736px;
    flex-wrap: wrap;
    row-gap: 72px;
    column-gap: 24px;
}

.title-secondary{
    font-weight: 700;
    font-size: 36px;
}

.title-secondary-text{
    font-weight: 500;
}

.team-container{
    min-width: 264px;
    column-gap: 24px;
    row-gap: 64px;
}

.our-team{
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 24px;
    row-gap: 64px;
}

.wrap-list-item{
    width: 356px;
}

.wrap-list{
    column-gap: 24px;
    row-gap: 72px;
    width: 736px;
    justify-content: center;
    align-items: center;
    transform: translateX(-16px);
}

.logo-foot-div{
    margin-right: 24px;
    margin-left: 108px;
}

.footer-div{
    flex-wrap: wrap;
    row-gap: 72px;
}

.footer-text{
    font-weight: 400;
}

.footer-sub{
    margin-left: 108px;
}

.modal{
    top: 38%;
}

.section-one{
    padding: 112px 0;
}
}

@media (min-resolution: 192dpi) {
    .section-one {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/h-people-office-min.jpg);
    }
}