.project-slider {
    /* max-width: 1320px; */
    /* margin: 0 auto; */
    padding: 120px 0;

    @media screen and (max-width: 768px) {
        padding: 60px 0;
    }
}

.project-slider__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1320px;
    margin: 0 auto 50px;

    @media screen and (max-width: 768px) {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
        padding: 0 20px;
        margin-bottom: 40px;
    }
}

.project-slider__title {
    margin: 0;
    font-family: 'Closer Text', sans-serif;
    font-weight: 500;
    font-size: 42px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: #013026;

    @media screen and (max-width: 768px) {
        font-size: 32px;
    }
}

.project-slider__tabs {
    display: flex;
}

.project-slider__tab {
    background: none;
    border: none;
    font-family: 'Closer Text', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -0.02em;
    padding: 0 50px 15px;
    position: relative;
    cursor: pointer;
    color: rgba(1, 48, 38, 0.4);
    border-bottom: 1px solid rgba(0, 71, 53, 0.1);

    @media screen and (max-width: 768px) {
        font-size: 16px;
        padding: 0 23px 16px;
    }
}

.project-slider__tab.is-active {
    color: rgba(0, 71, 53, 1);
    border-bottom: 3px solid rgba(0, 71, 53, 1)
}


.project-slider__body {
    position: relative;
    min-height: 350px;
}

.project-slider__category {
    /* display: none; */
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.project-slider__category.is-active {
    /* display: block; */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

/* swiper container */
.project-slider__swiper {
    padding: 10px 0 30px;
}

/* card */
.projects-card {
    height: auto;
    max-width: 1000px;
    opacity: 1;

    &:not(.swiper-slide-active) {
        opacity: 0.4;
    }
    /* &.swiper-slide-next, &.swiper-slide-prev {
        opacity: 0.4;
    } */

    @media screen and (max-width: 768px) {
        max-width: calc(100% - 30px);
    }
}

.projects-card__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;

    @media screen and (max-width: 768px) {
        display: flex;
        flex-direction: column-reverse;
    }
}

.projects-card__left {
    padding: 40px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    background: #024735;
    /* justify-content: space-between; */

    @media screen and (max-width: 768px) {
        padding: 20px;
        margin: -20px 0 0;
    }
}

.projects-card__title {
    font-family: 'Closer Text', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 1);
    margin: 0;
    padding-bottom: 16px;

    @media screen and (max-width: 768px) {
        font-size: 21px;
        line-height: 120%;
        letter-spacing: -0.01em;
        padding-bottom: 14px;
    }
}

.projects-card__text {
    font-family: 'Closer Text', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: -0.01em;
    color: rgba(207, 226, 224, 1);

    @media screen and (max-width: 768px) {
        font-size: 14px;
        padding-bottom: 55px;
    }
}

.projects-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;

    @media screen and (max-width: 768px) {
        margin-top: 0;
        align-items: flex-end;
    }
}

.projects-card__year {
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(207, 226, 224, 0.2);
    font-family: 'Closer Text', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 1);

    @media screen and (max-width: 768px) {
        font-size: 12px;
    }
}

.projects-card__btn {
    padding: 16px 30px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-family: 'Closer Text', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.01em;
    border: 1px solid rgba(255, 255, 255, 1);
    transition: background-color 0.35s ease-out, color 0.35s ease-out;

    @media screen and (max-width: 768px) {
        padding: 14px 26px;
        font-size: 14px;
    }

    &:hover {
        background-color: #FFFFFF;
        color: #013026;
    }
}

.projects-card__right {
    height: 460px;

    @media screen and (max-width: 768px) {
        height: 270px;
    }
}

.projects-card__right img {
    width: 580px;
    /* height: 460px; */
    object-fit: cover;
    height: 100%;
    margin-left: -40px;

    @media screen and (max-width: 768px) {
        width: 100%;
        max-height: 270px;
        margin: 0;
    }
}

/* навігація (стрілки) */
.project-slider__nav {
    max-width: 1320px;
    height: 50px;
    margin: 0 auto;
    position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translateX(-50%);
    z-index: 2;

    > div {
        position: absolute;
        z-index: 2;
        right: 110px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: row;
        gap: 0;
        background-color: rgba(241, 245, 248, 1);
        border-radius: 300px;
    }

    @media screen and (max-width: 768px) {
        display: none;
    }
}

.project-slider__nav-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* адаптив — потім можна допиляти */
@media (max-width: 900px) {
    .projects-card__inner {
        grid-template-columns: 1fr;
    }
    .project-slider__nav {
        position: static;
        margin-top: 16px;
        flex-direction: row;
    }
}
