.project-detail-page {
    background: #fff
}

.project-detail-content {
    padding: 72px 0 84px
}

.project-section {
    margin-bottom: 72px
}

.project-detail-page main .section-title {
    margin-bottom: 36px
}

.project-detail-page main .section-title h2 {
    font-size: 36px
}

.project-section>p {
    max-width: 1040px;
    margin: 0;
    color: #5f666c;
    font-size: 16px;
    line-height: 1.9
}

.project-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 44px;
    margin-top: 48px;
    padding: 32px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee
}

.project-facts article {
    display: flex;
    align-items: center;
    gap: 18px
}

.project-facts svg {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: var(--brand);
    stroke-width: 1.7
}

.project-facts b,
.project-facts span {
    display: block;
    font-size: 16px
}

.project-facts b {
    margin-bottom: 6px;
    font-weight: 600
}

.project-facts span {
    color: #666d72
}

.project-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px
}

.project-highlights article {
    display: flex;
    gap: 22px
}

.project-highlights>article>span {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--brand);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: 16px
}

.project-highlights h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600
}

.project-highlights p {
    margin: 0;
    color: #687076;
    font-size: 16px;
    line-height: 1.8
}

.project-gallery-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between
}

.project-gallery-controls {
    display: flex;
    gap: 12px
}

.project-gallery-controls button {
    width: 46px;
    height: 46px;
    border: 1px solid #d8dadd;
    border-radius: 50%;
    background: #fff;
    color: #25292c;
    display: grid;
    place-items: center;
    transition: .2s
}

.project-gallery-controls button:hover {
    border-color: var(--brand);
    color: var(--brand)
}

.project-gallery-controls svg {
    width: 22px;
    height: 22px
}

.project-gallery-viewport {
    overflow: hidden;
    margin-inline: -5%;
    padding: 34px 5% 42px
}

.project-gallery-swiper {
    overflow: visible
}

.project-gallery-swiper .swiper-slide {
    height: 330px;
    transition: transform .45s ease, opacity .45s ease;
    opacity: .58;
    transform: scale(.9)
}

.project-gallery-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1.1);
    z-index: 2
}

.project-gallery-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.project-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 12px;
    padding: 42px 48px;
    background: #f5f6f7
}

.project-cta .section-title {
    margin-bottom: 24px
}

.project-cta p {
    margin: 0;
    color: #71787d;
    font-size: 16px
}

.project-cta>a {
    min-width: 168px;
    height: 52px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 16px;
    font-weight: 700
}

.project-cta>a svg {
    width: 20px
}

@media(max-width:960px) {
    .project-facts {
        grid-template-columns: 1fr 1fr
    }

    .project-highlights {
        gap: 36px
    }

    .project-gallery-swiper .swiper-slide {
        height: 290px
    }
}

@media(max-width:760px) {
    .project-detail-content {
        padding: 52px 0 64px
    }

    .project-section {
        margin-bottom: 52px
    }

    .project-detail-page main .section-title {
        margin-bottom: 30px
    }

    .project-detail-page main .section-title h2 {
        font-size: 30px
    }

    .project-facts {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 36px
    }

    .project-highlights {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .project-gallery-title {
        align-items: center
    }

    .project-gallery-controls button {
        width: 42px;
        height: 42px
    }

    .project-gallery-viewport {
        margin-inline: -16px;
        padding: 22px 16px 30px
    }

    .project-gallery-swiper .swiper-slide {
        height: 240px;
        opacity: .7;
        transform: scale(.94)
    }

    .project-gallery-swiper .swiper-slide-active {
        transform: scale(1.06);
        opacity: 1
    }

    .project-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 30px 24px
    }

    .project-cta>a {
        width: 100%
    }
}

/* Gallery viewport: bounded, exactly three slides on desktop. */
.project-gallery-viewport {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    overflow: hidden;
    padding: 36px 0 44px
}

.project-gallery-swiper {
    width: 100%;
    max-width: 1200px;
    overflow: hidden
}

.project-gallery-swiper .swiper-wrapper {
    align-items: center
}

.project-gallery-swiper .swiper-slide {
    height: 300px
}

@media(max-width:960px) {
    .project-gallery-swiper .swiper-slide {
        height: 260px
    }
}

@media(max-width:760px) {
    .project-gallery-viewport {
        margin-inline: auto;
        padding: 22px 0 30px
    }

    .project-gallery-swiper .swiper-slide {
        height: 240px
    }
}