#design-project {
    position: relative;
    margin: 80px 0;
}

#design-project .gallery {
    position: relative;
    opacity: 0;
	min-height: 200px;
    transition: opacity .45s ease;
	margin: 0 0 80px 0;
}

#design-project .gallery.is-ready {
    opacity: 1;
}

#design-project .gallery-item {
    position: absolute;
    width: calc(33.333% - 12px);
    margin-bottom: 18px;
    transition: top .35s ease, left .35s ease;
}

#design-project .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
	transform: scale(1.02);
}
#design-project .gallery-item:hover img {
	transform: scale(1.04);
}

@media (max-width: 1100px) {
    #design-project .gallery-item {
        width: calc(50% - 9px);
    }
}

@media (max-width: 768px) {
    #design-project .gallery-item {
        width: 100%;
    }
}

.gallery-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
	min-height: 200px;
	max-height: 220px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(3px);
    z-index: 999;
    transition: opacity .4s ease;
}

#design-project.loaded .gallery-loader {
    opacity: 0;
    pointer-events: none;
    height: 0;
    min-height: 0;
}

.spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: rgba(0,0,0,0.7);
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.design-project__content h2 {
	text-align: left;
}

.projects-intro {
    padding: 70px 0 35px;
    background: #fff;
}

.projects-intro h2 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #111;
}

.projects-intro p {
    max-width: 900px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.65);
    text-align: center;
    margin: 40px auto;
}


.projects-grid {
    padding: 40px 0 90px;
    background: #fff;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    justify-content: start;
}

.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border-radius: 18px;

    overflow: hidden;

    border: 1px solid rgba(0,0,0,0.06);

    transition: transform .35s ease,
                box-shadow .35s ease,
                border-color .35s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
	text-decoration: none;
}

.project-card__image {
    position: relative;
    overflow: hidden;
    background: #f6f6f6;
}

.project-card__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform .7s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.06);
}

.project-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 60%,
        rgba(0,0,0,0.04)
    );
    opacity: 0;
    transition: opacity .3s ease;
}

.project-card:hover .project-card__image::after {
    opacity: 1;
}

.project-card__content {
    padding: 18px 18px 22px;
}

.project-card__content h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #111;
    line-height: 1.3;
}

.project-card__content p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(0,0,0,0.6);
}


@media (max-width: 1100px) {
    .projects-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-intro h2 {
        font-size: 26px;
    }

    .projects-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}