/* ================================================================
   Projects / Completed Objects block
   ================================================================ */
.projects-section {
    padding-block: 64px 72px;
    background: var(--color-white);
}

/* ================================================================
   Desktop grid — все карточки в строку
   ================================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: 1.04fr 0.48fr 0.48fr;
    gap: 20px;
    margin-top: 36px;
    align-items: stretch;
}

/* ---- Featured card (first) ---- */
.project-featured {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background-color: var(--color-bg);
    background-size: cover;
    background-position: center;
    min-height: 400px;
    text-decoration: none;
    transition: transform var(--transition);
}
.project-featured:hover { transform: scale(1.01); }

.project-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.project-featured__body {
    position: relative;
    z-index: 1;
    padding: 12px 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-featured__meta {
    font-size: 12px;
    color: #F5F7FA;
    line-height: 16px;
}

.project-featured__title {
    font-family: var(--font-heading);
    font-size: clamp(16px, 1.8vw, 26px);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.4;
}

.project-featured__btn {
    align-self: flex-start;
    margin-top: 10px;
    padding: 0 18.5px;
}

/* ---- Regular card ---- */
.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-white);
    text-decoration: none;
    transition: box-shadow var(--transition);
}

.project-card__image {
    position: relative;
    height: 268px;
    overflow: hidden;
    background: var(--color-bg);
    margin-bottom: 20px;
}
.project-card__image--empty { min-height: 180px; }

.project-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.project-card:hover .project-card__image img { transform: scale(1.04); }

.project-card__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.project-card__meta {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1;
    margin-bottom: 2px;
}

.project-card__title {
    font-family: var(--font-body);
    color: #1A1A1A;
font-weight: 400;
font-size: 14px;
line-height: 22px;
}

.project-card__desc {
    color: #5A5A5A;
    line-height: 1.5;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
}

/* ================================================================
   Mobile Swiper — hidden on desktop
   ================================================================ */
.projects-slider { display: none; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
    .projects-section { padding-block: 0; }

    .projects-grid   { display: none; }
    .projects-slider { display: block; margin-top: 28px; }

    .projects-slider .swiper,
    .projects-slider .swiper-wrapper {
        height: 100%;
    }

    .projects-slider .swiper-slide {
        width: 100%;
        height: 100%;
        display: flex;
    }

    .project-mobile-card {
        display: grid;
        flex-direction: column;
        text-decoration: none;
        width: 100%;
        height: 100%;
        grid-template-rows: auto 1fr;
    }

    .project-mobile-card__image {
        position: relative;
        height: 268px;
        overflow: hidden;
        background: var(--color-bg);
        border-radius: var(--radius-md);
        margin-bottom: 10px;
    }
    .project-mobile-card__image--empty { min-height: 220px; }

    .project-mobile-card__image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .project-mobile-card__body {
        display: grid;
        flex-direction: column;
        gap: 10px;
        grid-template-rows: auto 1fr auto;
    }

    .project-mobile-card__title {
        font-family: var(--font-body);
        font-size: 14px;
        font-weight: 400;
        color: #1A1A1A;
        line-height: 22px;
    }

    .project-mobile-card__desc {
        font-size: 12px;
        color: #5A5A5A;
        line-height: 16px;
        margin-top: auto;
    }

    .project-mobile-card__btn {
        align-self: stretch;
        margin-top: 10;
        height: 48px;
        font-size: 15px;
    }

    /* Navigation arrows */
    .projects-slider__nav {
        display: flex;
        align-items: center;
        margin-top: 20px;
        justify-content: center;
    }

    .projects-slider__prev,
    .projects-slider__next {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        cursor: pointer;
        color: var(--color-text-primary);
        transition: border-color var(--transition), color var(--transition);
        flex-shrink: 0;
    }
    .projects-slider__prev:hover,
    .projects-slider__next:hover {
        color: var(--color-accent-primary);
    }
    .projects-slider__prev.swiper-button-disabled,
    .projects-slider__next.swiper-button-disabled {
        opacity: .35;
        cursor: default;
    }
}

@media (min-width: 769px) {
    .projects-slider__nav { display: none; }
}
