

html,
body {
    font-family: Suisse Intl;
    margin: 0;
    padding: 0;
}

.h1,
.h3,
img,
button {
    all: unset;
}

button, a {
    cursor: pointer;
}

.c-galery {

}


.c-galery .h1 {
    font-weight: 600;
    font-size: 45px;
    color: #000000;

    @media (min-width: 1024px) {
        font-size: 60px;
    }
}
.c-galery .subtitle {
    font-weight: 600;
    font-size: 24px;
    color: #000000BF;
}
.c-galery .element-card .h3,
.c-galery .element-link .h3 {
    font-weight: 400;
    font-size: 24px;
    color: #000000;
}
.c-galery .element-link .h3 {
    color: #FFF !important;
}
.c-galery .element-card .info,
.c-galery .element-link .info {
    font-weight: 400;
    font-size: 16px;
    color: #3A3A3A;
}




/* main */
.c-galery__main {
    padding-top: 180px;
}
.c-galery__main--title {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 24px;

    @media (min-width: 1024px) {
        grid-template-columns: auto 30%;
        gap: 48px;
    }
}
.c-galery__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 48px;

    @media (min-width: 1024px) { gap: 20px; }
}
.grid-row-1,
.grid-row-2,
.grid-row-2__1,
.grid-row-2__2,
.grid-row-3,
.grid-row-4,
.grid-row-5 {
    display: grid;
    gap: 16px;
    
    @media (min-width: 1024px) { gap: 20px; }
}

.grid-row-1,
.grid-row-4 {
    grid-template-columns: 1fr 1fr;

    @media (min-width: 1440px) { grid-template-columns: 1fr 2fr; }
}

.grid-row-2 {
    grid-template-columns: 1fr;

    @media (min-width: 1440px) { 
        grid-template-columns: 2fr 1fr;
        gap: 0;
    }
}
.grid-row-2__1 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.grid-row-2__1 .element-link:nth-child(3) { grid-area: 2 / 2 span; }
.grid-row-2__2 {
    border-radius: 10px;
    background-color: #F4F6FB;
    grid-template-columns: 1fr 1fr;

    @media (min-width: 1440px) {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        margin-left: 20px;
    }
}
.element-card.image img {
    position: absolute;
    object-fit: cover;
    height: 100%;
    bottom: -50px;

    @media (min-width: 1024px) {
        right: -395px;
    }
    @media (min-width: 1024px) {
        right: -190px;
    }
    @media (min-width: 1440px) {
        bottom: 0;
        left: 0;
    }
}

.grid-row-3 {
    grid-template-columns: 1fr 1fr;

    @media(min-width: 1440px) {
        grid-template-columns: repeat(3, 1fr);
    }
}
.grid-row-3 .element-card {
    padding-bottom: 170px;

    &::before {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        height: 30%;
        width: 100%;
        background: url('/assets/templates/vrs/img/claster-galery/c4-element.png') top / cover no-repeat;

        @media(min-width: 1024px) { width: 50%; }
    }
}
.grid-row-3 .element-link:nth-child(2) {
    grid-area: 2 / 2 span;

    @media(min-width: 1440px) { grid-area: auto; }
}

.grid-row-5 {
    grid-template-columns: 1fr 1fr;

    @media (min-width: 1440px) { grid-template-columns: 2fr 1fr; }
}




    /* все card */
    .element-card,
    .element-link {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 32px;
        border-radius: 10px;
        min-height: 400px;
    }
    .element-card {
        overflow: hidden;
        gap: 24px;
        background-color: #F4F6FB;
    }
    .element-link {
        gap: 10px;
        justify-content: flex-end;
        
        &::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
            border-radius: 10px;
        }
        & > * {
            position: relative;
            z-index: 2;
        }
    }






@media (min-width: 768px) {}
@media (min-width: 1024px) {}
@media (min-width: 1440px) {}



/* open */
.c-galery__open {
    display: none;
    padding-top: 180px;

    font-family: Suisse Intl;
    font-weight: 600;
    font-size: 16px;
    color: #3A3A3A;
}

.c-galery__btn-close {
    display: flex;
    align-items: center;
    gap: 16px;

    &:hover > div {
        background: #141414;
    }
}
.c-galery__btn-close > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 56px;
    background: #14141499;
    transition: background 0.26s ease;
}

.c-galery__open--title {
    padding-top: 48px;

    @media (min-width: 1024px) {
        display: grid;
        align-items: center;
        grid-template-columns: auto auto;
        gap: 48px;
        padding-top: 60px;
    }
}
.c-galery__open--title .subtitle {
    display: none;

    @media (min-width: 1024px) {
        text-align: end;
        display: block;
    }
}


.c-galery__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 32px;

    @media (min-width: 1024px) {
        gap: 20px;
        padding-top: 48px;
    }
}


.c-galery__list-tabs,
.c-galery__list-category-t {
    display: flex;
    gap: 8px;
    overflow: hidden;
    width: 100%;

    @media (min-width: 1024px) {
        gap: 20px;
    }
}
.c-galery__list-tabs .c-galery__liter,
.c-galery__list-category-t .c-galery__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 47px;
    padding: 0 24px;
}
.c-galery__list-tabs .c-galery__liter {
    border-radius: 55px;
    background-color: #E8E8E8BF;
}
.c-galery__list-tabs .c-galery__liter.is-active {
    background-color: #3A3A3A;
    color: #FFF;
}
.c-galery__list-category-t .c-galery__tab {
    width: 248px;
    border-radius: 10px;
}

.c-galery__list-category-t .c-galery__tab-slide{
    width: fit-content;
}



.c-galery__body [data-gallery] {
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    height: 670px;
}






.c-galery .list-tags {
    display: flex;
    gap: 4px;
}
.c-galery .list-tags span {
    background-color: #FFF;
    border-radius: 21px;
    padding: 10px 15px; 
    text-align: center;

    font-weight: 400;
    font-size: 14px;
    color: #3A3A3A;
}