
/*---------- CSS variables------------ */
:root{
    /* Basic color text  */
    --color-text: #434455;
    /* Color title  */
    --color-title: #2E2F42;
    /* Basic fon page */
    --color-pages: #FFFFFF;
    /* Color link */
    --color-link:#2E2F42;
    /* Color link focus & hover */
    --color-link-focus:#404BBF;
    /* Color batton  */
    --color-btn-normal: #F4F4FD;
    --color-btn-focus: #404BBF;
    --text-btn-normal: #4D5AE5;
    --text-btn-focus: #FFFFFF;
    /*--- Set gep---- */
    --set-gep-colum: 24px;
    --set-gep-row: 48px;
    --time-and-cubic: 250ms cubic-bezier(0.4, 0, 0.2, 1);        
}

/* ------------Seting h list img----------  */

h1,h2,h3,h4,p{
    margin-top: 0;
    margin-bottom: 0;
}
ul,ol{
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    padding: 0;
    list-style: none;
}

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

/*------- Color tex & body-----------  */
body{
    background-color: var(--color-pages);
    color: var(--color-text);
    font-family: Roboto, sans-serif;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
html{
    box-sizing: border-box;
}
.link {
    text-decoration: none;
}
/* --------SET TITLE MOBILE --------------  */
.title-section-mobile{
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: var(--color-title);
    text-align: center;
    margin-bottom: 72px;
}
/*--------------THE END-------------------- */

/* -----------SECTION SET---------------- */
.container{
    margin-left: auto;
    margin-right: auto;
    max-width: 426px;
    padding-left: 15px;
    padding-right: 15px;
}
@media (min-width: 768px) {

.container{
    max-width: 582px;
}
.container.menu-nav{
    max-width: 768px;
}
.advant > .container {
    max-width: 768px;
}
}
@media (min-width: 1158px) {
.container {
    max-width: 1158px;
}
.container.menu-nav {
    max-width: 1158px;
}

.advant>.container {
    max-width: 1158px;
}
}

/*---------THE END---------------------- */

/* ----------CONTAINER SET ---------------  */
.section {
    padding-top: 96px;
    padding-bottom: 96px;
}
@media (min-width: 1158px) {
.section {
    padding-bottom: 120px;
    padding-top: 120px;
}
}
/*------------THE END--------------------- */

/*--------- MOBILE NAV MENU---------- */
/* ----Hidden element nav menu------- */
.mobile-menu-nav{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    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);

}
.mobile-container{
    display: block;
    position: relative;
    max-width: 428px;
    height: 100%;
    padding-left: 40px;
    padding-right: 35px;
    padding-top: 80px;
    padding-bottom: 40px;
    margin-left: auto;
    margin-right: auto;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}
.mobile-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 24px;
    height: 24px;
    background-color: transparent;
    padding: 0;

    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    fill: rgba(46, 47, 66, 1);

}
.mobile-nav-item:not(:last-child){
    margin-bottom: 40px;
}
.mobile-nav-item{
    font-weight: 700;
    font-size: 36px;
    line-height: calc(40/36);
    letter-spacing: 0.02em;
      
}
.mob-nav-link{
    color: #2E2F42;
}
.mob-nav-blulink{
    color: #404BBF;
}
.mobile-phone-item{
    width: 100%;
    margin-bottom: 40px;

}
.mob-link-tel{
    font-weight: 700;
    font-size: 24px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #4D5AE5;
}
@media (min-width: 427px){
.mob-link-tel{
font-size: 36px;
}
}
.mobile-adress-list{
    margin-bottom: 48px;
}
.mob-link-mail{
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #434455;
}
.mobile-hidden {
    display: none;
}
/*----- Style mobile social link------ */

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

.social-mobile-list {
    display: flex;
    justify-content: space-between;
    max-width: 328px;
}

.social-mobile-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #4D5AE5;
}
.adress-item{
    display: none;
}
.nav-item{
    display: none;  
}
/* ----Style button mobile menu------- */
.btn-menu-mobile {
    display: flex;
    padding: 0;
    border: none;
    padding-top: 24px;
    padding-bottom: 24px;
    margin-left: auto;
    background-color: transparent;
}

.icon-burger {
    stroke: #2E2F42;

}
/*------------THE END--------------------- */

/*--------- SECTION HEADER---------- */
/* ----Style logo header------- */
.nav-logo {
    display: flex;
    padding-top: 24px;
    padding-bottom: 22px;
    min-height: 24px;

    color: #4D5AE5;
    font-family: Raleway, sans-serif;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.17;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.nav-logo-letters {
    color: #2e2f42;
}

/*------------NAV MENU--------------------- */
/* ----Set section nav------- */
.main-nav {
    display: flex;
}

/*------------MEDIA REGUEST TABLET -------*/
@media (min-width: 768px){
.btn-menu-mobile{
    display: none;
}

.adress-item {
    display: block;  
}

.adress-item:not(:last-child){
    margin-bottom: 12px;
}

.nav-item {
    display: block;
    position: relative;
    padding-top: 24px;
    padding-bottom: 22px;
    cursor: pointer;
}
.nav-link{
    font-weight: 500;
    font-size: 16px;
    line-height: calc(24/16);
    color: var(--color-link);
}
.menu-nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: 120px;
}
.border-link-nav::after {
    content: "";
    display: flex;
    width: 100%;
    border: 2px solid rgba(64, 75, 191, 1);
    border-radius: 2px;
    position: absolute;
    left: 0;
    bottom: -1px;
}
.page-color-link {
    color: rgba(64, 75, 191, 1);
}
.contact {
    font-style: normal;
    color: #434455;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
}
}
/*------------MEDIA REGUEST DESKTOP -------*/

@media (min-width: 1158px){
.adress-list {
    display: flex;
    margin-left: auto;
    justify-content: space-between;
    width: 344px;
}
.adress-item:not(:last-child) {
    margin-bottom: 0;
}

.contact {
    display: flex;
    flex-wrap: nowrap;
    color: var(--color-text);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding-top: 24px;
    padding-bottom: 24px;
    transition: color var(--time-and-cubic);
}
.contact:hover,
.contact:focus {
    color: #404BBF;
}
}
/*------------THE END--------------------- */

/*--------- SECTION HERO---------- */
.hero-style {
    margin-left: auto;
    margin-right: auto;
    background-image: linear-gradient(to right, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/hero_mob-1x.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #2E2F42;
    padding-bottom: 112px;
    padding-top: 112px;
    text-align: center;
}
@media (min-device-pixel-ratio: 2),
(min-resolution: 192dpi),
(min-resolution: 2dppx) {
    .hero-style {
        background-image: linear-gradient(to right, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url(../images/hero_mob-2x.jpg);
    }
}
    
@media (min-width: 428px){
.hero-style{
    background-image: linear-gradient(to right, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/hero_tab-1x.jpg);
}
@media (min-device-pixel-ratio: 2),
        (min-resolution: 192dpi),
        (min-resolution: 2dppx) {
            .hero-style {
                background-image: linear-gradient(to right, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
                url(../images/hero_tab-2x.jpg);
            }
        }
}

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

    margin-left: auto;
    margin-right: auto;
}
.hero-buton {
    background: #4D5AE5;
    font-family: Roboto, sans-serif;
    border: none;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 169px;
    height: 56px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #FFFFFF;
}

/*------------MEDIA REGUEST TABLET -------*/

@media (min-width: 768px) {
.hero-title{
    margin-bottom: 36px;
    max-width: 496px;
    font-size: 56px;
    line-height: 1.07;
}
.hero-style{
    background-image: linear-gradient(to right, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/hero_desk-1x.jpg);
}
@media (min-device-pixel-ratio: 2),
(min-resolution: 192dpi),
(min-resolution: 2dppx){
.hero-style {
    background-image: linear-gradient(to right, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/hero_desk-2x.jpg);
}
}
}

/*------------MEDIA REGUEST DESKTOP -------*/

@media (min-width: 1158px){
.hero-style{
    padding-bottom: 188px;
    padding-top: 188px;
}
.hero-title {
    margin-bottom: 48px;
}
.hero-buton{
    cursor: pointer;
    transition: background-color var(--time-and-cubic);
}
.hero-buton:focus,
.hero-buton:hover {
    background-color: #404BBF;
}

}
/*---------------THE END---------------- */

/*--------- SECTION ADVANTAGE---------- */
.title-section-advant {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: var(--color-title);
    text-align: center;
    margin-bottom: 8px;
}
/*Hidden icon*/
.icon-advantage{
    display: none;
}
/*Pading betwen block text*/
.advant-list{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    row-gap: 72px;
}

/*Pading title for text*/
.advant-title{
    padding-bottom: 8px;
}

/*Set size text */
.advant-text{
    font-weight: 500;
}
/*----------------THE END---------------- */

/*------------MEDIA REGUEST TABLET -------*/

@media (min-width: 768px){
.advant-list{
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 24px;  
}
.advant-item{
    flex-basis: calc((100% - 24px) / 2);
}

.title-section-advant{
    text-align: start;
}
}

/*------------MEDIA REGUEST DESKTOP -------*/

@media (min-width: 1158px) {
.advant-item {
    flex-basis: calc((100% - 72px) / 4);
}
.title-section-advant {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    text-align: start;
}
.advant-text {
    font-weight: 400;
}
.icon-advantage {
    display: block;
    display: flex;
    height: 112px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background-color: #F4F4FD;
    border-radius: 4px;
}
}
/*---------------THE END---------------- */

/*----- SECTION WHAT ARE WE DOING------ */

/*Hidden section mobille version */
.work{
display: none;
}
/*------------MEDIA REGUEST DESKTOP -------*/
@media (min-width: 1158px){
.section.work{
    padding-top: 0;
}
.work {
    display: block;
}
.work-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}    
.work-item {
    flex-basis: calc((100% - 48px) / 3);
}
.title-work-section{
    font-weight: 700px;
    font-size: 36px;
    line-height: 1.11;
    margin-bottom: 72px;
    text-align: center;
    color: var(--color-title);
}
}
/*---------------THE END---------------- */

/*----- SECTION OUR TEAM------ */
.section-team{
    background-color: #F4F4FD;
}
.title-section-team{
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: var(--color-title);
    text-align: center;
    margin-bottom: 72px;
}
/*----- Style card team------ */
.team-list{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    row-gap: 72px;
    align-items: center;
}
.team-item {
    max-width: 264px;
    display: block;
    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);
    border-radius: 0px 0px 4px 4px;
}
.team-photo{
    max-width: 264px;
}
.team-name{
    margin-bottom: 8px;
}
.team-content{
    max-width: 264px;
    text-align: center;
    padding: 32px 16px 32px 16px;
}

/*----- Style social link------ */

.social-item {
    width: 40px;
    height: 40px;
}
.social-list {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}
.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #4D5AE5;
}

/*------------MEDIA REGUEST TABLET -------*/

@media (min-width: 768px){

.team-list{    
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 64px;
    column-gap: 24px;
    justify-content: center;
}
.team-item{
flex-basis: calc((100% - 24px) / 2);   
}
}
/*------------MEDIA REGUEST DESKTOP -------*/
@media (min-width: 1158px){
.container {
        max-width: 1158px;
    }
.section-team {
    padding-left: 15px;
    padding-right: 15px;
}
.team-item {
    flex-basis: calc((100% - 72px) / 4);
}
.social-link {
    transition: background-color var(--time-and-cubic);
}

.social-link:hover,
.social-link:focus {
    background-color: #404BBF;
}
}
/*---------------THE END---------------- */

/*----- SECTION CUSTOMER------ */
.customer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    row-gap: 72px;
    justify-content: center;
}

.customer-item {
    width: 190px;
    height: 88px;
    flex-basis: calc((100% - 16px) / 2);
}
.customer-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    fill: #8E8F99;
    border: 1px solid #8E8F99;
    border-radius: 4px;

}
/*------------MEDIA REGUEST TABLET -------*/

@media (min-width: 768px){
.customer-list {
    column-gap: 24px;
}
.customer-item {
    width: 168px;
    flex-basis: calc((100% - 48px) / 3);
}
}

/*------------MEDIA REGUEST DESKTOP -------*/
@media (min-width: 1158px){
.customer-list {
    flex-wrap: nowrap;
    }
.customer-item {
    width: 168px;
    flex-basis: calc((100% - 120px) / 6);
}
.customer-link {
    transition: fill var(--time-and-cubic), border-color var(--time-and-cubic);
    }

.customer-link:hover,
.customer-link:focus {
    fill: #404BBF;
    border-color: #404BBF;
}   
}
/*---------------THE END---------------- */

/*--------------- FOOTER---------------- */
/* --Set footer-- */
.footer-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

}
.footer{
    background-color: #2E2F42;
    color: #E7E9FC;
    padding-top: 96px;
    padding-bottom: 96px;
}

/* ----Style Foter logo---- */
.footer-logo{
    display: block;
    text-align: center;
    max-width: 268px;
    margin-bottom: 72px;
}
.nav-logo-footer {
    color: #4d5ae5;
    font-family: Raleway, sans-serif;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.17;
    font-weight: 800;
    align-items: center;
    letter-spacing: 0.03em;
    display: inline-block;
    margin-bottom: 16px;
}

.logo-footer {
    color: #F4F4FD;
    font-size: 18px;
    line-height: 1.5;
}
/* --Style text footer-- */
.text-footer{
    text-align: left;
}
/* --Style footer social link-- */
.social-list-block{
    text-align: center;
    max-width: 208px;
    margin-bottom: 72px;
    font-weight: 500;
}

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

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

.foter-social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #4D5AE5;
    transition: background-color var(--time-and-cubic);
}
/* --Style footer social link-- */
.block-subscribe{
    max-width: 398px;
    text-align: center;
    font-weight: 500;
}
.form-subscribe {
    display: flex;
    flex-wrap: wrap;
    margin-top: 16px;
    justify-content: center;
}

.subscr-email{
    height: 40px;
    width: 100%;
    padding-left: 16px;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    opacity: 0.3;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.15));
    border-radius: 4px;
    background-color: transparent;
    margin-bottom: 16px;
}
.subscr-email::placeholder {
    color: #FFFFFF;
    opacity: 0.6;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.subscr-send-btn {
    display: flex;
    gap: 16px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;

    height: 40px;
    background: #4D5AE5;
    border-radius: 4px;
    border-color: transparent;
    color: #FFFFFF;
    justify-content: start;
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;

}
/*------------MEDIA REGUEST TABLET -------*/

@media (min-width: 768px){
.footer-info {
    flex-direction: row;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    align-items: flex-start;
    }
.footer-logo {
    text-align: left;
    max-width: 264px;
    margin-right: 24px;
}
.block-subscribe {
    max-width: 453px;
    text-align: left;
}
.form-subscribe {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
}
.subscr-email{
    width: 264px;
}
.social-list-block {
    text-align: left;
}
}

/*------------MEDIA REGUEST DESKTOP -------*/
@media (min-width: 1158px) {
.footer-section {
    max-width: 1158px;
    padding-top: 100px;
    padding-bottom: 100px;
}
.footer{
    padding-top: 100px;
    padding-bottom: 100px;
}
.social-list-block{
    margin-right: 80px;
    margin-bottom: 0px;
}
.text-footer{
    margin-bottom: 0px;
}
.subscr-email{
    margin-bottom: 0px;
}
.block-subscribe{
    margin-right: auto;
}
.footer-logo{
    margin-right: 120px;
}

.foter-social-link{
    transition: background-color var(--time-and-cubic);
}
.foter-social-link:hover,
.foter-social-link:focus {
    background-color: #31D0AA;
}
.subscr-send-btn{
    transition: background-color var(--time-and-cubic), color var(--time-and-cubic),
    border-color var(--time-and-cubic), box-shadow var(--time-and-cubic);
}
.subscr-send-btn:focus,
.subscr-send-btn:hover {
    background-color: var(--color-btn-focus);
    color: var(--text-btn-focus);
    border-color: transparent;
    box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1),
    0px 2px 1px rgba(0, 0, 0, 0.08),
    0px 2px 2px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}
}
/*---------------THE END---------------- */

/*--------------- PORTFOLIO PAGE---------------- */
.button {
    background-color: var(--color-btn-normal);
    color: var(--text-btn-normal);
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: 1px solid #E7E9FC;
    border-radius: 4px;
    padding: 12px 24px 12px 24px;
    transition: background-color var(--time-and-cubic), color var(--time-and-cubic),
        border-color var(--time-and-cubic), box-shadow var(--time-and-cubic);
}

.button:focus,
.button:hover {
    background-color: var(--color-btn-focus);
    color: var(--text-btn-focus);
    border-color: transparent;
    box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1),
        0px 2px 1px rgba(0, 0, 0, 0.08),
        0px 2px 2px rgba(0, 0, 0, 0.12);
}

.btn-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 72px;
}


.btn-item:not(:last-child) {
    margin-right: var(--set-gep-colum);
}

/* --------Portfolio list------ */

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

.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-1 * var(--set-gep-colum));
    margin-top: calc(-1 * var(--set-gep-row));
}

.portfolio-item {
    flex-basis: calc(100% / 3 - (var(--set-gep-colum)));
    margin-left: var(--set-gep-colum);
    margin-top: var(--set-gep-row);

}

.portfolio-link {
    display: block;
    transition: box-shadow var(--time-and-cubic);
}

.portfolio-link:hover,
.portfolio-link:focus {
    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);
}

.card-content {
    padding: 32px 16px 32px 16px;
    border: 1px solid #E7E9FC;
    border-top: none;
}

.portfolio-text {
    margin-top: 8px;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

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

/* ------Overflow card portfolio--------- */

.overflow {
    color: rgba(244, 244, 253, 1);
    padding-top: 40px;
    padding-left: 32px;
    padding-right: 32px;

    width: 100%;
    height: 100%;

    background-color: rgba(77, 90, 229, 1);
    position: absolute;

    transition: transform var(--time-and-cubic);

}

.portfolio-link:hover .overflow,
.portfolio-link:focus .overflow {
    transform: translateY(-100%);
}
/*---------------THE END---------------- */
/*--------------- MODAL WINDOWS---------------- */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 47, 66, 0.4);
    transition: opacity var(--time-and-cubic), visibility var(--time-and-cubic);
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;

    padding: 72px 24px 24px 24px;

    transform: translate(-50%, -50%) skewX(0deg);
    transition: transform var(--time-and-cubic);

    
    max-width: 392px;
    min-height: 586px;
    width: 100%;
    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);

}

.backdrop.is-hidden .modal {
    transform: translate(-50%, -50%) skewX(30deg);
}

.modal-close-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    position: absolute;
    top: 24px;
    right: 24px;

    width: 24px;
    height: 24px;
    background-color: transparent;
    padding: 0;

    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    fill: rgba(46, 47, 66, 1);

}

.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.name-input {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.16;
    letter-spacing: 0.04em;
    color: #8E8F99;

    display: block;
    margin-bottom: 4px;
}

.block-user-name {
    display: block;
    margin-bottom: 8px;
    text-align: start;
}

.block-user-coment {
    margin-bottom: 16px;
    text-align: start;
    position: relative;
    padding: 0;
}

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

.input-icon-position {
    position: relative;
}

.input-icon {
    display: inline-block;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    fill: #2E2F42;
}

.input-size {
    width: 100%;
    height: 40px;
    padding-left: 38px;
    border: transparent;
    border: 1px solid rgba(46, 47, 66, 0.2);
    border-radius: 4px;
    outline: transparent;
}

/* -----------border focus----------*/
.input-size:focus,
.user-coment:focus {
    border-color: rgba(77, 90, 229, 1);
}

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

}

.user-coment {
    display: block;
    width: 100%;
    height: 120px;

    font-weight: 400;
    font-size: 12px;
    line-height: 1.16;
    letter-spacing: 0.04em;
    padding-top: 8px;
    padding-left: 16px;
    padding-right: 16px;
    resize: none;
    border: transparent;
    border: 1px solid rgba(46, 47, 66, 0.2);
    border-radius: 4px;
    outline: transparent;
}

.user-coment::placeholder {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
}

/* ---------Chek box Privacy Policy -----------*/
.check-privacy {
    display: flex;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.16;
    letter-spacing: 0.04em;
    color: #8E8F99;

}

/* -----------border-check custom----------*/
.border-check {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 16px;
    flex-shrink: 0;
    height: 16px;
    border: 1px solid #2E2F42;
    border-radius: 2px;
    margin-right: 8px;

    fill: transparent;

    transition: background-color var(--time-and-cubic),
    border var(--time-and-cubic), fill var(--time-and-cubic);
}

/* -----------check original hiden----------*/
.check-input {
    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;
}

/* -----------Checked custom checkbox----------*/

.check-input:checked+.check-privacy .border-check {
    border: none;
    background-color: #404BBF;
    fill: #F4F4FD;
}

/* -----------Style link Privacy Policy----------*/
.link-privacy {
    color: #4D5AE5;
}



/* ---------Btn-modal---------- */
.btn-send {

    min-width: 169px;
    height: 56px;

    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #FFFFFF;

    background: #4D5AE5;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    border-color: transparent;
    padding: 16px 32px;  
}

/*------------MEDIA REGUEST TABLET -------*/

@media (min-width: 768px){
    .modal{
        max-width: 408px;
    }
}

/*------------MEDIA REGUEST DESKTOP -------*/
@media (min-width: 1158px){
.modal-close-btn{
    transition: background-color var(--time-and-cubic),
    border-color var(--time-and-cubic), fill var(--time-and-cubic);
}
        
.modal-close-btn:hover,
.modal-close-btn:focus {
    border-color: rgba(64, 75, 191, 1);
    background-color: rgba(64, 75, 191, 1);
    fill: rgba(255, 255, 255, 1);
    cursor: pointer;
}
.link-privacy{
    transition: var(--time-and-cubic);
}
.link-privacy:hover,
.link-privacy:focus {
    color: var(--color-link-focus)
}
.btn-send{
    cursor: pointer;
    transition: background-color var(--time-and-cubic), color var(--time-and-cubic),
    border-color var(--time-and-cubic), box-shadow var(--time-and-cubic);
}

.btn-send:hover,
.btn-send:focus {
    background-color: var(--color-btn-focus);
    color: var(--text-btn-focus);
    border-color: transparent;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    }
}
/*---------------THE END---------------- */