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

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

a{
    text-decoration: none; 
}

/*---------------Common------------------*/
h1, h2, h3, h4, h5, h6, p{
    margin: 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;
}

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

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

input,
textarea,
button{
    font-family: inherit;
    line-height: inherit;
    color: currentColor;
}

button{
    cursor: pointer;
}

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

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

/*--Header--*/
.header-page{
    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);
    background: #fff;
}

 .header-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-nav-list,
.address{
    display: none;
}

.header-logo{
    font-family: Raleway, sans-serif;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
    padding: 16px 0;
    margin-right: 76px;
}

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

.burger-btn{
    padding-top: 16px;
    padding-bottom: 16px;
    border: none;
    fill: 2f2f37;
    background-color: transparent;
}

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

    .header-logo{
        padding: 24px 0;
        margin-right: 120px;
    }
    
    .header-nav{
        display: flex;
        align-items: center;
    }
    
    .menu-nav-list{
        display: flex;
        align-items: center;
        gap: 40px;
    }

    .menu-nav-link{
        display: block;
        padding: 24px 0;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        transition: color 250ms 
        cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }
    
    .menu-nav-list .menu-nav-link.current{
        color: #404bbf;    
    }

    .menu-nav-link.current::after{
        content: '';
        width: 100%;
        position: absolute; 
        left: 0;
        bottom: -1px; 
        height: 4px;
        border-radius: 2px;
        background-color: #404bbf;
    }
    
    .menu-nav-list .menu-nav-link{
        color: #2e2f42;   
    }
    
    .menu-nav-list .menu-nav-link:hover,
    .menu-nav-list .menu-nav-link:focus{
        color: #404bbf; 
    }

    .address{
        font-style: normal;
        display: block;
    }
    .address-list{
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .address-link{
        display: block;
        font-size: 12px;
        line-height: 1.17;
        letter-spacing: 0.04em;
        color: #434455;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

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

@media screen and (min-width: 1158px) {
    .header-logo{
        margin-right: 76px;
    }
    
    .address-list{
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
    
    .address-link{
        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);
    }    
}

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

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

.mobil-menu-container{
    position: relative;
    padding-top: 72px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobil-close-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);
}

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

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

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

.mobil-menu-nav{
    margin-bottom: auto;
}

.mobil-menu-nav-list,
.mobil-address-list{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
}

.mobil-menu-nav-list{
    gap: 40px;
}

.mobil-menu-nav-item{
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobil-menu-nav-list .mobil-menu-nav-link{
    color: #2e2f42;   
}

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

.mobil-menu-nav-list .mobil-menu-nav-link:hover,
.mobil-menu-nav-list .mobil-menu-nav-link:focus{
    color: #404bbf; 
}

.mobil-address-list{
    gap: 24px;
    font-style: normal;
}

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

.mobil-address-link{
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #434455;
}

.mobil-address-link:hover,
.mobil-address-link:focus{
    color: #4d5ae5;
}

.mobil-social-links-list{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    height: 40px;
    margin: 0;
}

.icon-item {
    width: 40px;
    height: 40px;
    background-color: #4d5ae5;
    border-radius: 50%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);       
}

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

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

.social-icon{
    fill: #f4f4fd;
}

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

/*--Hero--*/
.hero-page{
    background: #2e2f42;
    padding-top: 72px;
    padding-bottom: 72px;
    max-width: 320px;
    margin: auto;
    background-image: linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/hero/people-mob.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: block;
}

@media screen and (min-resolution: 2x){
   .hero-page{
       background-image: linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
       url(../images/hero/people-mob@2x.jpg);
   }                                   
}

.hero-page-title{
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    max-width: 216px;
    margin: auto;
    margin-bottom: 72px;
}

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

.hero-page-button:hover, .hero-page-button:focus{
    background-color: #404bbf;   
}
@media screen and (min-width: 768px) {
    .hero-page{
        padding-top: 112px;
        padding-bottom: 112px;
        max-width: 768px;
        background-image: linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
        url(../images/hero/people-tab.jpg);
    }

    .hero-page-title{
        font-size: 56px;
        line-height: 1.07;
        max-width: 496px;
        margin-bottom: 36px;
    }
}
@media screen and (min-resolution: 2x){
        .hero-page{
            background-image: linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url(../images/hero/people-tab@2x.jpg);
        }
}
@media screen and (min-width: 1158px) {
    .hero-page{
        padding-top: 188px;
        padding-bottom: 188px;
        max-width: 1440px;
        background-image: linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
        url(../images/hero/people-desk.jpg);
    } 
    
    .hero-page-title{
        margin-bottom: 48px;
    }
}    
    
@media screen and (min-resolution: 2x){
        .hero-page{
            background-image: linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url(../images/hero/people-desk@2x.jpg);
        }
    }

/*---------------Features-----------------*/

.features-page{
    padding-top: 96px;
    padding-bottom: 80px;
}

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

.features-list{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 72px;
}

.features-item{
    width: 100%;
}

.features-icon-box{
    display: none;
}

.features-subtitle{
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 8px;
}

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

@media screen and (min-width: 768px) {
    .features-page{
        padding-top: 96px;
        padding-bottom: 96px;
    }

    .features-list{
        gap: 72px 24px;
    }
    
    .features-item{
        width: calc((100% - 24px) / 2);
    }
    
    .features-subtitle{
    text-align: left;
    }
}    

@media screen and (min-width: 1158px) {
    .features-page{
        padding-top: 120px;
        padding-bottom: 120px;
    }
    
    .features-list{
        display: flex;
        align-items: center;
        gap: 24px;
    }

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

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

    .features-subtitle{
        font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
    }

    .features-item-text{
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: 0.02em;
    }
}
 
/*--Our Team--*/
.team-page{
    background: #f4f4fd;
    padding-top: 96px;
    padding-bottom: 96px;
    margin: auto;
}

.team-page-title{
    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;
}

.team-list{
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 72px;
}

.team-item{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 0 0 4px 4px;
    background: #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: 264px;
}

.team-text-box{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 232px;
    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-descr{
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center; 
    margin-bottom: 8px;
}

.social-links-list{
    display: flex;
    justify-content: center;
    height: 40px;
    gap: 24px;
    margin: 0;  
}

.icon-item {
    width: 40px;
    height: 40px;
    background-color: #4d5ae5;
    border-radius: 50%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);       
}

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

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

.social-icon{
    fill: #f4f4fd;
}


@media screen and (min-width: 768px) {
    .team-list{
        gap: 72px 24px;
    }

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


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

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

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

/*--Portfolio--*/
.portfolio-page{
    background-color: #fff;
    padding-top: 96px;
    padding-bottom: 96px;
    margin: auto;
}

.portfolio-page-title{
    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-list{
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

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

.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(0%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1)
}
    
.portfolio-item:hover .overlay{
    transform: translateY(0%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1)
}   
    
.portfolio-item: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);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1)
}
    
.picture-wrap{
    position: relative;
    overflow: hidden;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
    
.portfolio-p{
    position: absolute;
    top: 0;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    padding: 40px 32px;
    background-color: #4d5ae5;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1)
}

.portfolio-text-box{
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-descr{
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

@media screen and (min-width: 768px) {
    .portfolio-list{
        gap: 72px 24px;
    }

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


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

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

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

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

.footer-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 72px;
    text-align: center;
}

.footer-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;
    margin-bottom: 16px;   
}

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

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

.footer-social-text{
    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: flex-start;
    justify-content: flex-start;
    flex-direction: row;
    gap: 16px;
    width: 208px;
    height: 40px;
    margin-top: 0;
}

.footer-social-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-social-link:hover,
.footer-social-link:focus{
    background-color: #31d0aa;
}

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

.footer-form{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 24px;
}

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

.footer-form-input::placeholder{
    color: #ffffff;
}

.footer-btn{
    border-radius: 4px;
    border: none;
    min-width: 165px;
    height: 40px;
    background-color: #4d5ae5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    
    font-family: "Roboto", sans-serif; 
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    color: #fff;
}

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

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


@media screen and (min-width: 768px) {
    .footer-page{
        padding-left: 108px;
    }
    
    .footer-logo-box{
        text-align: left;
    }

    .footer-text{
        max-width: 264px;
    }
    
    .footer-container{
        gap: 72px 24px;
        justify-content: left;
        text-align: left;
    }

    .footer-form-descr{
        text-align: left;
    }

    .footer-form-input{
        width: 264px;
    }
}        


@media screen and (min-width: 1158px) {
    .footer-page{
        padding-left: 0;
        padding-top: 100px;
        padding-bottom: 100px;
    }

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

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

    .social-media-box{
        margin-right: 80px;
    }

    .footer-form{
        flex-direction: row;
        flex-wrap: nowrap;
    }
}


.backdrop{
    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);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.modal{
    border-radius: 4px;
    width: 288px;
    min-height: 584px;
    background-color: #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);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    padding: 72px 16px 24px 16px;
}

.modal-close-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-close-btn:hover,
.modal-close-btn:focus{
    background-color: #404bbf;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    fill: #ffffff;
}

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

.modal-close-icon:hover
.modal-close-icon:focus{
fill: #ffffff;
}
.modal-title{
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
text-align: center;
color: #2e2f42;
margin-bottom: 16px;
}

.user-field{
    margin-bottom: 8px;
}

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

.input-wrap{
    position: relative;
}

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

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


.modal-form-input:focus + .modal-icon{
    fill: #4D5AE5;
}
   
.modal-icon{
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
    fill: #2e2f42;
}

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

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

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

.modal-form-checkbox{
    margin-bottom: 24px;
}

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

.checkbox-span{
    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;
    flex-shrink: 0;
}

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

.modal-form-checkbox-link{
    color: #4d5ae5;
    text-decoration: underline;
}

.text-link-span{
        display: inline;
    }

.modal-send-btn{
    display: block;
    min-width: 169px;
    height: 56px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    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: 0 auto;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}  

.modal-send-btn:hover, 
.modal-send-btn:focus{
    background-color: #404bbf;   
}

@media screen and (min-width: 768px){
    .modal{
        width: 408px;
        padding: 72px 24px 24px 24px;
    }
   
    .modal-form-checkbox{
        margin-bottom: 24px;
    }
  
    .checkbox-span{
        margin-right: 12px;
    }

    .text-link-span{
        display: block;
    }
    
}