/* ==========================================
                PROJECTS GRID
========================================== */

.pm-projects-grid{
    width:100%;
    font-family:Gilroy,sans-serif;

    padding:0 0 0px;
}
/* ==========================================
                HEADER
========================================== */

.pm-projects-grid .pm-section__headline-container{

    display:flex;
    flex-direction:column;
    align-items:flex-start;

    margin-bottom:28px;
}
.pm-projects-grid .pm-badge{
    margin:0 0 0px;
}

.pm-projects-grid .pm-section-title{

    margin:0;
    max-width:1680px;

    font-size:48px;
    font-weight:600;
    line-height:56px;
    letter-spacing:-0.02em;

    color:#171717;
}
/* ==========================================
                FILTER
========================================== */
.pm-section-title-last{
    display:inline-flex;
    align-items:center;
    gap:12px;
    white-space:nowrap;
}

.pm-section-counter{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:32px;
    height:32px;

    border-radius:50%;

    background:#7086FC;
    color:#FFFFFF;

    font-family:Gilroy,sans-serif;
    font-size:16px;
    font-weight:500;
    line-height:20px;
    margin-top:-2px;
    flex:none;
}

.pm-projects-filter{
    position: sticky;
    top: 80px; /* подстрой под высоту шапки */

    z-index: 100;

    display:flex;
    flex-wrap:wrap;
    align-items:center;

    gap:8px;

    margin:0 0 72px;
    padding:12px 0;

    background:#fff;
}

.pm-projects-filter__item{

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

    height:44px;

    padding:0 16px;

    gap:8px;

    border:none;
    border-radius:999px;

    background:#F5F5F5;

    color:#171717;

    font-size:16px;
    font-weight:600;
    line-height:20px;

    cursor:pointer;

    transition:
        background .25s,
        color .25s;
}

.pm-projects-filter__item:hover{
    background:#ECECEC;
}

.pm-projects-filter__item.active{
    background:#7086FC;
    color:#FFF;
}

.pm-projects-filter__item span{

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

    width:28px;
    height:28px;

    border-radius:20px;

    background:#FFFFFF;

    color:#7086FC;

    font-size:14px;
    font-weight:600;
    line-height:18px;
}

.pm-projects-filter__item.active span{
    background:#FFF;
    color:#7086FC;
}
.pm-br-mobile{
    display:none;
}

/* ==========================================
                GRID
========================================== */

.pm-projects-grid__list{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:16px;
}

/* ==========================================
            1280 GRID
========================================== */

@media (max-width:1599px){

    .pm-projects-grid .pm-section__headline-container{
        margin-bottom:48px;
    }

    .pm-projects-filter{
        margin-bottom:48px;
    }

    .pm-projects-grid .pm-section-title{
        font-size:48px;
        line-height:56px;
    }

    .pm-projects-grid__list{

        grid-template-columns:repeat(3,minmax(0,1fr));

        gap:16px;
    }

}

/* ==========================================
                TABLET
========================================== */

@media (max-width:991px){
    .pm-section-title-last{
        gap:8px;
    }

    .pm-section-counter{
        width:24px;
        height:24px;

        font-size:14px;
        line-height:18px;
    }
    .pm-projects-grid .pm-section__headline-container{
        margin-bottom:32px;
    }

    .pm-projects-grid .pm-section-title{

        max-width:736px;

        font-size:24px;
        line-height:30px;
    }

    .pm-projects-filter{

        margin-bottom:32px;

        gap:8px;
    }

    .pm-projects-filter__item{

        height:44px;

        padding:0 16px;

        font-size:16px;
        line-height:20px;
    }

    .pm-projects-filter__item span{

        width:28px;
        height:28px;

        font-size:14px;
    }

    .pm-projects-grid__list{

        grid-template-columns:repeat(2,1fr);

        gap:16px;
    }
    .pm-projects-hero{
        margin-bottom:40px;
    }
}

/* ==========================================
                MOBILE
========================================== */

@media (max-width:767px){
    .pm-section-title-last{
        gap:6px;
    }

    .pm-section-counter{
        width:22px;
        height:22px;

        font-size:12px;
        line-height:16px;
    }
    .pm-projects-grid .pm-section__headline-container{
        margin-bottom:14px;
    }

    .pm-projects-grid .pm-section-title{

        max-width:343px;

        font-size:24px;
        line-height:30px;
    }

    .pm-projects-filter{


        margin-bottom:28px;

        gap:8px;

        overflow-x:auto;
        flex-wrap:nowrap;

        padding-bottom:4px;

        -ms-overflow-style:none;
        scrollbar-width:none;
    }

    .pm-projects-filter::-webkit-scrollbar{
        display:none;
    }

    .pm-projects-filter__item{

        flex:0 0 auto;

        height:44px;

        padding:0 16px;

        font-size:16px;
        line-height:20px;
    }

    .pm-projects-filter__item span{

        width:28px;
        height:28px;

        font-size:14px;
    }

    .pm-projects-grid__list{

        grid-template-columns:1fr;

        gap:8px;
    }
    .pm-br-mobile{
        display:block;
    }

}
/* ==========================================
                CARD
========================================== */

.pm-project-card{

    position:relative;

    display:block;

    overflow:hidden;

    border-radius:16px;

    text-decoration:none;

    background:transparent;
}

/* ==========================================
                IMAGE
========================================== */

.pm-project-card__image{

    position:relative;

    width:100%;
    height:412px;

    overflow:hidden;

    border-radius:16px;

    background:#EEF2F7;
}
.pm-project-card__image img{

    position:absolute;

    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;
}


/* ==========================================
                OVERLAY
========================================== */

.pm-project-card__overlay{

    position:absolute;

    inset:0;

    z-index:2;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.60) 0%,
            rgba(0,0,0,.22) 28%,
            rgba(0,0,0,0) 52%
        );
}

/* ==========================================
                TOP
========================================== */

.pm-project-card__top{

    position:absolute;

    top:0;
    left:0;
    right:0;

    z-index:5;

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    padding:20px 16px 16px;
}

.pm-project-card__title{

    display:flex;
    align-items:center;

    gap:12px;

    color:#FFF;

    font-size:24px;
    font-weight:600;
    line-height:30px;

    letter-spacing:-0.01em;
}
.pm-project-card__dot{

    width:8px;
    height:8px;

    flex:none;

    background:#FFF;
}

.pm-project-card__status{

    display:flex;
    white-space: nowrap;
    align-items:center;

    justify-content:center;

    height:32px;

    padding:0 12px;

    border-radius:12px;

    background:#7086FC;

    color:#FFF;

    font-size:14px;

    font-weight:600;

    line-height:18px;

    transition:background .25s;
}


/* ==========================================
                FOOTER
========================================== */

.pm-project-card__footer{

    position:absolute;

    left:8px;
    bottom:8px;

    display:flex;
    gap:4px;

    width:auto;
}
/* ==========================================
                LEFT
========================================== */

.pm-project-card__info{

    width:max-content;

    max-width:192px;

    height:54px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    padding:16px;

    background:#FFF;

    border-radius:16px 4px 4px 16px;

    flex:none;
}
.pm-project-card__bottom-title{

    margin:0 0 2px;

    color:#737373;

    font-size:14px;

    font-weight:600;

    line-height:18px;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}

/* ==========================================
                RIGHT
========================================== */

.pm-project-card__power-box{

    width:145px;

    height:54px;

    flex:none;

    display:flex;

    flex-direction:column;

    justify-content:center;

    padding:10px 16px;

    background:#FFF;

    border-radius:4px 16px 16px 4px;
}

.pm-project-card__power{

    margin:0 0 4px;

    color:#171717;

    font-size:16px;

    font-weight:600;

    line-height:20px;
}

/* ==========================================
                BARS
========================================== */

.pm-project-card__bars{

    display:flex;

    gap:2px;

    width:100%;
}

.pm-project-card__bars span{

    flex:1;

    height:4px;

    border-radius:20px;

    background:#E5E7EB;
}

.pm-project-card__bars span.active{

    background:#7086FC;
}

/* ==========================================
            DESKTOP 1280
========================================== */

@media (max-width:1599px){

    .pm-projects-grid__list{
        gap:16px;
    }

    .pm-project-card__image{
        height:370px;
    }

    .pm-project-card__top{
        padding:16px;
    }

    .pm-project-card__title{

        font-size:18px;
        line-height:22px;
    }

    .pm-project-card__status{

        height:32px;

        padding:0 12px;

        font-size:14px;
        line-height:18px;
    }

    .pm-project-card__footer{

        left:8px;
        right:8px;
        bottom:8px;
    }

    .pm-project-card__info{

        height:54px;

        padding:10px 16px;
    }

    .pm-project-card__power-box{

        width:145px;
        height:54px;

    padding:12px 16px;
    }

}

/* ==========================================
                TABLET
========================================== */

@media (max-width:991px){

    .pm-projects-grid__list{

        grid-template-columns:repeat(2,minmax(0,1fr));

        gap:16px;
    }

    .pm-project-card__image{

        height:370px;
    }

    .pm-project-card__top{
    align-items:center;
        padding:16px;
    }

    .pm-project-card__title{

        font-size:18px;
        line-height:22px;
    }

    .pm-project-card__status{

        height:32px;

        padding:0 12px;
    }

    .pm-project-card__footer{

        left:8px;
        right:8px;
        bottom:8px;
    }

    .pm-project-card__info{

    padding:16px;
    }

    .pm-project-card__power-box{

        width:145px;
    }

}

/* ==========================================
                MOBILE 375
========================================== */

@media (max-width:767px){

    .pm-projects-grid__list{

        grid-template-columns:1fr;

        gap:8px;
    }

    .pm-project-card{

        border-radius:16px;
    }

    .pm-project-card__image{

        height:370px;

        border-radius:16px;
    }

    .pm-project-card__top{

        padding:16px;
    }

    .pm-project-card__title{

        gap:8px;

        font-size:16px;
        line-height:20px;
    }

    .pm-project-card__dot{

        width:8px;
        height:8px;
    }

    .pm-project-card__status{

        height:32px;

        padding:0 12px;

        border-radius:12px;

        font-size:14px;
        line-height:18px;
    }

    .pm-project-card__footer{

        left:8px;
        right:8px;
        bottom:8px;

        gap:4px;
    }

    .pm-project-card__info{

        flex:1;

        height:54px;

        padding:10px 16px;
    }

    .pm-project-card__bottom-title{

        font-size:14px;
        line-height:18px;
        white-space:normal;
        overflow:visible;
        text-overflow:unset;
        height:auto;
    }

    .pm-project-card__power-box{

        width:145px;
        height:54px;

        padding:10px 16px;
    }

    .pm-project-card__power{

        font-size:16px;
        line-height:20px;
    }

    .pm-project-card__bars{

        height:4px;
    }

    .pm-project-card__bars span{

        height:4px;
    }
    .pm-project-card__info{
        width:120px;
        max-width:120px;
        flex:none;
    }
}

/* ==========================================
            FILTER ANIMATION
========================================== */

.pm-project-card{

    opacity:1;

    transition:
        opacity .25s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.pm-project-card[style*="display: none"]{

    opacity:0;

    pointer-events:none;
}
/* ==========================================
                CARD HOVER
========================================== */

@media (hover:hover){

    .pm-project-card{

        cursor:pointer;

    }

    .pm-project-card:hover{

        transform:translateY(-8px);

    }

    .pm-project-card:hover .pm-project-card__image img{

        transform:scale(1.06);

    }

    .pm-project-card:hover .pm-project-card__status{

        background:#5F74F7;

    }

    .pm-project-card:hover .pm-project-card__overlay{

        background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.72) 0%,
            rgba(0,0,0,.35) 40%,
            rgba(0,0,0,.08) 100%
        );

    }

    .pm-project-card__image img{

        transition:transform .7s ease;

    }

    .pm-project-card__overlay{

        transition:background .35s ease;

    }

}
/* ==========================================
                MODAL
========================================== */

.pm-project-modal{

    position:fixed;
    inset:0;

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

    overflow-y:auto;
    overflow-x:hidden;

    padding:100px 40px 40px;
    box-sizing:border-box;

    background:rgba(15,22,38,.72);
    backdrop-filter:blur(16px);

    opacity:0;
    visibility:hidden;

    transition:opacity .25s ease;

    z-index:999999;

}

.pm-project-modal.active{

    opacity:1;
    visibility:visible;

}

.pm-project-modal__overlay{

    position:absolute;
    inset:0;

}

/* ==========================================
                WINDOW
========================================== */

.pm-project-modal__window{

    position:relative;

    width:min(1280px,100%);
    max-width:100%;

    box-sizing:border-box;

    background:#fff;

    border-radius:28px;

    overflow:hidden;

    box-shadow:
        0 24px 80px rgba(17,25,45,.18);

}
.pm-project-modal__content{

    position:relative;

    overflow-y:auto;

    max-height:calc(100vh - 80px);

    padding:52px;

}

/* ==========================================
                CLOSE
========================================== */

.pm-project-modal__close{

    position:absolute;

    top:28px;
    right:28px;

    width:46px;
    height:46px;

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

    border:none;
    border-radius:50%;

    background:#F4F6FA;

    color:#171717;

    cursor:pointer;

    z-index:50;

}

.pm-project-modal__close svg{

    width:18px;
    height:18px;

}

/* ==========================================
                TITLE
========================================== */

.pm-project-modal__content > .pm-project-modal__title{

    display:block !important;

    position:relative;

    margin:0 !important;
    padding:0 70px 40px 0 !important;

    color:#171717;

    font-family:Gilroy,sans-serif !important;

    font-size:48px !important;
    font-weight:700 !important;
    line-height:1.1 !important;

    letter-spacing:-0.03em;

}
/* ==========================================
                TOP
========================================== */

.pm-project-modal__top{
    display:grid;
    grid-template-columns:620px 420px;
    gap:28px;
    justify-content:start;
}
/* ==========================================
                PHOTO
========================================== */

.pm-project-modal__photo{

    position:relative;

    width:100%;

    height:266px;

    overflow:hidden;

    border-radius:24px;

    background:#EEF2F8;

}

.pm-project-modal__image{

    display:block;

    width:100%;
    height:100%;

    object-fit:cover;

}

/* ==========================================
                SIDE
========================================== */

.pm-project-modal__side{

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    gap:24px;

    padding-top:4px;

}

/* ==========================================
                STATUS
========================================== */

.pm-project-modal__status{

    display:inline-flex;

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

    height:42px;

    padding:0 18px;

    border-radius:999px;

    background:#7086FC;

    color:#FFF;

    font-family:Gilroy,sans-serif;

    font-size:15px;
    font-weight:600;

    white-space:nowrap;

}

/* ==========================================
                CARD
========================================== */

.pm-project-modal__card{
    width:420px;
    max-width:100%;

    padding:30px;

    border-radius:24px;

    background:#F5F7FC;
    border:1px solid #E7ECF6;
}
/* ==========================================
                LABEL
========================================== */

.pm-project-modal__label{

    margin-bottom:18px;

    color:#8A92A5;

    font-family:Gilroy,sans-serif;

    font-size:15px;
    font-weight:500;

}

/* ==========================================
                POWER
========================================== */

.pm-project-modal__power{

    margin-bottom:26px;

    color:#171717;

    font-family:Gilroy,sans-serif;

    font-size:54px;
    font-weight:700;
    line-height:1;

    letter-spacing:-0.04em;

}

/* ==========================================
                BARS
========================================== */

.pm-project-modal__bars{

    display:flex;

    gap:8px;

}

.pm-project-modal__bars span{

    flex:1;

    height:8px;

    border-radius:999px;

    background:#DDE4F1;

}

.pm-project-modal__bars span.active{

    background:#7086FC;

}
/* ==========================================
                DESCRIPTION
========================================== */

.pm-project-modal__description-block{

    position:relative;

    margin-top:28px;

    padding-top:24px;
}

.pm-project-modal__description-block::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:120px;
    height:4px;

    border-radius:999px;

    background:#7086FC;

}

/* ==========================================
                SUBTITLE
========================================== */

.pm-project-modal__subtitle{

    margin-bottom:24px;

    color:#171717;

    font-family:Gilroy,sans-serif;

    font-size:34px;
    font-weight:700;
    line-height:1.15;

    letter-spacing:-0.03em;

}
.pm-project-modal__description > *:first-child{

    margin-top:16px !important;

}
.pm-project-modal__description p{

    display:block;

    margin:0;

}

.pm-project-modal__description p + p{

    margin-top:16px;

}
.pm-project-modal__description p:last-child{

    margin-bottom:0;

}
/* ==========================================
                TEXT
========================================== */

.pm-project-modal__description{

    max-width:860px;

    color:#5F6677;

    font-family:Gilroy,sans-serif;

    font-size:18px;
    font-weight:500;
    line-height:1.9;

}

.pm-project-modal__description p{

    margin:0 0 24px;

}

.pm-project-modal__description p:last-child{

    margin-bottom:0;

}

/* ==========================================
                LISTS
========================================== */

.pm-project-modal__description ul,
.pm-project-modal__description ol{

    margin:28px 0;

    padding-left:24px;

}

.pm-project-modal__description li{

    margin-bottom:14px;

}

/* ==========================================
                IMAGES
========================================== */

.pm-project-modal__description img{

    display:block;

    width:100%;

    height:auto;

    margin:36px 0;

    border-radius:18px;

}

/* ==========================================
                TABLES
========================================== */

.pm-project-modal__description table{

    width:100%;

    margin:36px 0;

    border-collapse:collapse;

}

.pm-project-modal__description td,
.pm-project-modal__description th{

    padding:16px 18px;

    border:1px solid #E7ECF5;

}

.pm-project-modal__description th{

    color:#171717;

    font-weight:700;

}

/* ==========================================
                QUOTE
========================================== */

.pm-project-modal__description blockquote{

    margin:36px 0;

    padding:24px 28px;

    border-left:4px solid #7086FC;

    background:#F7F9FD;

    border-radius:0 16px 16px 0;

    color:#171717;

}
/* ==========================================
                1280
========================================== */

@media (max-width:1279px){

    .pm-project-modal{

        padding:90px 24px 24px;

    }

    .pm-project-modal__window{

        max-width:1080px;

    }

    .pm-project-modal__content{

        max-height:calc(100vh - 114px);

        padding:40px;

    }

    .pm-project-modal__content > .pm-project-modal__title{

        font-size:42px !important;
        line-height:1.1 !important;

        padding:0 60px 32px 0 !important;

    }

    .pm-project-modal__top{

    grid-template-columns:520px 1fr;

    gap:24px;
    }

    .pm-project-modal__photo{

    height:290px;

        border-radius:22px;

    }

    .pm-project-modal__side{

        gap:20px;

    }

    .pm-project-modal__card{

        padding:26px;

    }

    .pm-project-modal__power{

        font-size:42px;

        margin-bottom:20px;

    }

    .pm-project-modal__description-block{

        margin-top:44px;

        padding-top:32px;

    }

    .pm-project-modal__subtitle{

        font-size:32px;

    }

    .pm-project-modal__description{

        font-size:17px;

        line-height:1.75;

    }

}

/* ==========================================
                TABLET
========================================== */

@media (max-width:991px){

    .pm-project-modal{

        align-items:flex-start;

        padding:90px 20px 20px;

    }

    .pm-project-modal__window{

        border-radius:24px;

    }

    .pm-project-modal__content{

        max-height:calc(100vh - 110px);

        padding:36px;

    }

    .pm-project-modal__content > .pm-project-modal__title{

        font-size:40px !important;
        line-height:1.1 !important;

        padding:0 60px 28px 0 !important;

    }

    .pm-project-modal__top{

        display:flex;
        flex-direction:column;

        gap:24px;

    }

    .pm-project-modal__photo{

        height:340px;

        border-radius:20px;

    }

    .pm-project-modal__side{

        width:100%;

        gap:18px;

        padding:0;

    }

    .pm-project-modal__status{

        height:42px;

        font-size:15px;

    }

    .pm-project-modal__card{

        width:100%;

        padding:24px;

        border-radius:20px;

    }

    .pm-project-modal__label{

        margin-bottom:14px;

    }

    .pm-project-modal__power{

        font-size:40px;

        margin-bottom:18px;

    }

    .pm-project-modal__description-block{

        margin-top:36px;

        padding-top:28px;

    }

    .pm-project-modal__subtitle{

        font-size:30px;

        margin-bottom:18px;

    }

    .pm-project-modal__description{

        font-size:17px;

        line-height:1.7;

    }
    .pm-project-modal__status{

        display:none;

    }
}

@media (max-width:767px){

    .pm-project-modal{

        align-items:flex-start;

        justify-content:center;

        overflow-y:auto;

        padding:88px 10px 12px;

    }

    .pm-project-modal__window{

        width:100%;

        border-radius:18px;

    }

    .pm-project-modal__content{

        padding:20px;

        max-height:none;

    }

    .pm-project-modal__content > .pm-project-modal__title{

        font-size:24px !important;
        line-height:1.2 !important;

        padding:0 44px 20px 0 !important;

    }

    .pm-project-modal__top{

        display:flex;
        flex-direction:column;

        gap:16px;

    }

    .pm-project-modal__photo{

        height:180px;

        border-radius:16px;

    }

    .pm-project-modal__side{

        gap:14px;

        padding:0;

    }

    .pm-project-modal__card{

        padding:16px;

        border-radius:16px;

    }

    .pm-project-modal__label{

        font-size:14px;

        margin-bottom:10px;

    }

    .pm-project-modal__power{

        font-size:28px;

        margin-bottom:14px;

    }

    .pm-project-modal__bars span{

        height:6px;

    }

    .pm-project-modal__description-block{

        margin-top:24px;

        padding-top:20px;

    }

    .pm-project-modal__subtitle{

        font-size:22px;

        margin-bottom:12px;

    }
    .pm-project-modal__status{

        display:none;

    }
    .pm-project-modal__description{

        font-size:15px;

        line-height:1.6;

    }

}

