:root {
    --primary-brand: #404bbf;
    --accent-color: #4d5ae5;
    --label-color: #8e8f99;
    --primary-white: #f4f4fd;
    --text-color-secondary: #8e8f99;
    --link-color: #4d5ae5;
}


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

p {
    margin-top: 24px;
}

a {
    text-decoration: none;
}

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

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

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

/* common */

.container {
    width: 320px;
    margin: 0 auto;
    padding: 0 16px;
    align-items: baseline;
}

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

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

/* header */

.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;
    justify-content: space-between;
    align-items: center;

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

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

.header-logo {
    display: block;
    padding: 16px 0;
}

.studio {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.7;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2e2f42;
}

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

.burger-bth{
    padding: 0;
    border: none;
    background-color: transparent;
}
.burger-icon{
    display: block;
fill: #2f2f32;
}

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

.burger-bth {
 display: none;
}
.nav-list {
display: flex;
gap: 40px;
  }

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

 .address-info {
 font-style: normal;
 display: block;
                }
.header-nav {
display: flex;
align-items: center;
margin-right: auto;
}
.header-link {
    color: #2e2f42;
    font-weight: 500;
    padding: 24px 0 24px;
    display: block;
    position: relative;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.header-link::after {
    content: '';
    width: 0;
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 4px;
    background-color: #404bbf;
    border-radius: 2px;
    transition: width 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.color-stu {
    color: #404bbf;
}

.color-stu.header-link {
    color: #404bbf;
}

.header-link.color-stu::after {
    width: 100%;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nav-list li a {
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2E2F42;
}

.nav-list li a:hover,
.nav-list li a:focus {
    color: #404bbf;
}


.contact-list li a {
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    margin-bottom: 0;
}

.contact-list li a:hover,
.contact-list li a:focus {
    color: #404bbf;
}
.contacts-list {
    color: #434455;
    text-decoration: none;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contacts-list:hover {
    color: #404bbf;
}
}

@media screen and (min-width: 1158px) {
    .header-logo{
        margin-right: 76px;
    }
.contact-list {
    align-items: center;
    flex-direction: row;
    gap: 40px;

}
 .contacts-list {
   padding: 24px 0;
font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #434455;
    text-decoration: none;
   transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
   margin-bottom: 0;
        }
}

/* mobile-menu */

.mobile-menu{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #FFFFFF;
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-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

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

}

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

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

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

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

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

 .mobile-menu-nav li {
     list-style: none;
 }
.mobile-style-nav{
        font-weight: 700;
        font-size: 36px;
        display: block;
        margin-bottom: 40px;
        line-height: 1.1;
        letter-spacing: 0.02em;
        color: #2e2f42;
}

.mobile-studio-nav{
    color: #404bbf;
    display: block;
    margin-bottom: 40px;
    font-weight: 700;
        font-size: 36px;
        line-height: 1.1;
        letter-spacing: 0.02em;
}

.mobile-style-nav:hover,
.mobile-style-nav:focus{
    color: #404bbf;
}

.contacts-list{
        font-weight: 500;
        font-size: 20px;
        line-height: 1.20;
        letter-spacing: 0.02em;
        display: block;
        margin-bottom: 48px;
        color: #434455;
        font-style: normal;
}
.contacts-list:hover,
.contacts-list:focus {
    color: #404bbf;
}



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

.footer-links {
    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-icon {
    fill: #f4f4fd;
}



@media screen and (min-width: 768px) {
    .mobile-menu{
        display: none;
    }
    .contacts-list{
        font-family: "Roboto", sans-serif;
            font-weight: 400;
            font-size: 12px;
            line-height: 14px; 
            letter-spacing: 0.04em;
            color: #434455;
    }
}

/* hero first-section */




.first-section {
    padding-top: 72px;
        padding-bottom: 72px;
        background-color: #2e2f42;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url('../images/img11-x1.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        min-height: 432px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        
    
    
}

@media (min-resolution:192dpi){
    .first-section{
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url('../images/img11-x2.jpg');
    }
}

.main-title{
        font-weight: 700;
        font-size: 36px;
        line-height: 1.11;
        letter-spacing: 0.02em;
        text-align: center;
        color: #fff;
        margin-bottom: 72px;
        margin-left: 52px;
        margin-right: 52px;
        
        
       
}

.button-order {
    padding: 16px 32px;
    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);
}

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

@media screen and (min-width: 768px) {
    .first-section {
            padding-top: 112px;
            padding-bottom: 112px;
            background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url('../images/img11-x1-768.jpg');
            min-width: 768px;
        }

                .main-title {
                    font-weight: 700;
                    font-size: 56px;
                    line-height: 1.07;
                    letter-spacing: 0.02em;
                    text-align: center;
                    color: #fff;
                    margin-bottom: 36px;
                max-width: 496px;
                    margin-left: auto;
                    margin-right: auto;
                
                }
}
@media screen and (min-width: 768px) and (max-width: 1024px) and (min-resolution: 192dpi) {
    .first-section {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/img-11-x2-768.jpg);
    }
}   



@media screen and (min-width: 1158px) {
    .first-section {
            padding-top: 188px;
            padding-bottom: 188px;
            background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
                url('../images/img11.jpg');
            max-width: 1440px;
            margin: 0 auto;
        }

                .first-section h1 {
                    line-height: 1.07;
        
                }
                                .main-title {
                                    margin-bottom: 48px;
                                    margin-right: auto;
                                    margin-left: auto;
                                }
    }

    /* Our Advantages */

.section-glob {
    padding-top: 96px;
    padding-bottom: 96px;
}

.info-list {
    display: flex;
    gap: 72px;
    flex-wrap: wrap;
}
.icon-box{
    display: none;
}


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

.advantages-text {
        font-weight: 500;
        font-size: 16px;
        line-height: 24px; 
        line-height: 150%;
        letter-spacing: 0.02em;
        color: #434455;
}


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

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

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

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

.info-item {
    flex-basis: calc((100% - 24px) / 2);
}

}

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


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

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

.info-item {
    flex-basis: calc((100% - 72px) / 4);
}

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

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

}


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

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

}

/* Team */

.section-glob{
padding-top: 96px;
padding-bottom: 96px;
}

.team {
    background-color: #F4F4FD;
}

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

}

.team-item {
    display: flex;
    gap:72px 24px;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 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);
    border-radius: 0px 0px 4px 4px;


}

.team-list-item {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    flex-basis: calc((100% - 72px) / 4);
    border-radius: 0px 0px 4px 4px;
    background-color: #FFFFFF;
    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: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.team-list-item:last-child {
    margin-bottom: 0;
}
.advantage-box {
    text-align: center;
    padding: 32px 0;
}

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

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

.social-media-list {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 8px 16px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.social-links {
    width: 100%;
    height: 100%;
    background-color: var(--accent-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-links:hover,
.social-links:focus {
    background-color: #404bbf;
}
.social-icon {
    fill: #f4f4fd;
}

@media screen and (min-width: 1158px) {
.team {
        background-color: #F4F4FD;
    }


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


.team-item {
    display: flex;
    gap: 24px;
    padding: 0;
    list-style: none;
    box-shadow: 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);
    border-radius: 0px 0px 4px 4px;
}


.team-list-item {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    flex-basis: calc((100% - 72px) / 4);
    border-radius: 0px 0px 4px 4px;
    background-color: #FFFFFF;
    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: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-box {
    text-align: center;
    padding: 32px 0;
}

.social-media-list {
    padding: 0;
}
}

/* Portfolio */
.development-box {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}

.portfolio-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;
    row-gap: 48px;
    flex-wrap: wrap;
}

.portfolio-list-item {
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-list-item:hover .image-description {
    transform: translateY(0%);
}

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

.general-item {
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.image-box {
    position: relative;
    overflow: hidden;
}

.image-description {
    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);
}

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

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

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

.portfolio-list {
        column-gap: 24px;
        flex-wrap: wrap;
    }

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


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


.development-box {
        padding: 32px 16px;
        border: 1px solid #e7e9fc;
        border-top: none;}
    
 .portfolio-list-item {
   width: calc((100% - 48px) / 3);
   transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
          }
        


}
}

/* Footer-title */

.footer-title {
    background-color: #2e2f42;
    color: #4d5ae5;
    padding-top: 96px;
    padding-bottom: 96px;
}

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

.footer-info {
    margin-bottom: 72px;
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
}

.footer-studio {
    color: #f4f4fd;
}

.webstudio-footer{
    margin-right: 76px;
    font-family: "Raleway", sans-serif;
        font-weight: 700;
        font-size: 18px;
        line-height: 21px; 
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #4d5ae5;
}

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

.footer-text {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    margin-top: 16px;
}

.footer-list {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.footer-list-modal{
    display: flex;
        gap: 40px;
        justify-content: center;
}


.social-container {
    margin-bottom: 72px;
    margin-right: 0 auto;
}

.social-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin-bottom: 16px;
}

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

.footer-links {
    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);
}

.subscribe-wrapper {
    flex-direction: column;
    gap: 24px;
    justify-content: flex-end;
    align-items: center;
}

.subscribe-text {
    margin-bottom: 16px;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.subscribe-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

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

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

.subscribe-input:focus {
    outline: none;
    border-color: #ffffff;
}

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

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

@media screen and (min-width: 768px) {
    .footer-title {
        padding: 96px 16px;
    }

    .footer-title .container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        text-align: left;
        padding-left: 108px;
        gap: 72px 24px;
    }

    .footer-info,
    .social-container,
    .subscribe-wrapper {
        margin-bottom: 0;
        max-width: 264px;
        justify-content: left;
    }

    .subscribe-wrapper {
        align-items: flex-start;
    }

    .subscribe-form {
        display: flex;
        gap: 24px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .subscribe-button {
        gap: 16px;
    }
}

@media screen and (min-width: 768px){
    .footer-title {
        padding-left: 0;
        padding-right: 0;
    }

    .footer-title .container {
        padding-left: 0;
        width: 584px;
        margin: 0 auto;
    }

    .social-container {
        margin-bottom: 0;
    }
}


@media screen and (min-width: 1158px) {
    .footer-title {
        background-color: #2e2f42;
        color: #4d5ae5;
        padding: 100px 0 100px;
    }

    .footer-title .container {
        display: flex;
        gap: unset;
        width: 1158px;
        padding-left: 15px;
    }

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

    .footer-web {
        color: #4d5ae5;
        display: inline-block;
        margin-bottom: 16px;
    }

    .footer-studio {
        color: #f4f4fd;
        display: inline-block;
    }

    .footer-text {
        max-width: 264px;
    }

    .social-text {
        margin-bottom: 16px;
    }

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

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

    .social-container {
        margin-right: 80px;
    }

    .subscribe-wrapper {
        flex-direction: column;
        gap: 24px;
        justify-content: flex-end;
        align-items: center;
    }

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

    .subscribe-label {
        display: flex;
        flex-direction: column;
    }

    .subscribe-input {
        width: 264px;
        height: 40px;
    }

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

    .subscribe-input:focus {
        outline: none;
        border-color: #ffffff;
    }

    .subscribe-button {
        min-width: 165px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

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

    .subscribe-icon {
        margin-left: 16px;
    }

    .webstudio {
        margin-right: 76px;
    }
}

/* Java button */

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 47, 66, 0.4);
    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);
}

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

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

.modal-close-bth {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e7e9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    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-bth:hover,
.modal-close-bth:focus {
    background-color: #404bbf;
    border: none;
}

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

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

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

.form-info {
    margin-bottom: 8px;
}

.form-label {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    display: block;
    color: var(--input-label-color, #8e8f99);
    margin-bottom: 4px;
}
.input-wrapper {
    position: relative;
    width: 100%;

}

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

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

.form-input:focus+.icon-foot,
.icon-foot:focus {
    fill: #4d5ae5;
}

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

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

.comment-input:focus {
    border-color: #4D5AE5;
}
.commet-info {
    margin-bottom: 16px;

}
.checkbox-wrapper {
    margin-bottom: 24px;
}
.checkbox-input:checked+.checkbox-label>.checkbox-box {
    background-color: var(--primary-brand);
    border: none;
    fill: var(--primary-white);
}

.checkbox-label {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: var(--text-color-secondary);
}

.checkbox-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: transparent;
    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);
}

.privacy-link {
    color: var(--link-color);
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.submit-bth {
    display: block;
    min-width: 169px;
    margin: 0 auto;
    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);

}

.submit-bth:hover {
    background-color: #3c4ab6;
}

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

    .modal{
        width: 408px;
        height: 584px;
        padding: 72px 24px 24px;
    }


@media screen and (min-width: 1158px) {
 
    .form-input{
    padding-left: 38px;
  }
}

}   
