.container-fp{
    display: flex;
    flex-direction: column;
    margin: 0 15px;
    height: auto;
}

.title-fp{
    display: flex;
}

.projects-container-fp {
    max-width: 1540px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-item-fp {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item-fp:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Слайдер */
.slider-fp {
    position: relative;
    width: 100%;
    height: 300px; /* фиксируем высоту */
    overflow: hidden;
}

.slides-fp {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide-fp {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Точки навигации */
.dots-fp {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot-fp {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot-fp.active {
    background: #ec1d00;
}




/* Блок продукта в модальном окне */
.project-modal-products {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.modal-product-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: #ebebeb;
    border-radius: 8px;
    padding: 6px 10px;
    transition: background 0.2s;
}
.modal-product-link:hover {
    background: #d8d8d8;
}
.modal-product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}
.modal-product-name {
    font-size: 14px;
    color: #333;
}
/* END Блок продукта */




.project-modal-close {
    position: absolute;
    top: 2px;
    right: 2px;
    border: none;
    background: none;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 9000;
}
.project-modal-close:hover {
    color: #000;
}


/* Модалка */


.project-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.project-modal.hidden { display: none; }

.project-modal-content {
    background: #fff;
    max-width: 900px;
    width: 90%;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}


.project-modal-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.project-modal-slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
}
.project-modal-slides img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.project-modal-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.project-modal-dots span {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}
.project-modal-dots span.active {
    background: #333;
}

.project-modal-products {
    margin-top: 15px;
}
.project-modal-products span {
    display: inline-block;
    padding: 5px 10px;
    margin: 4px;
    border-radius: 6px;
    font-size: 14px;
}



/* Модалка */













/* 📱 Адаптив */
@media (max-width: 1200px) {
    .projects-container-fp {
        grid-template-columns: repeat(2, 1fr);
    }
    .slider-fp {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .projects-container-fp {
        grid-template-columns: 1fr;
    }
    .slider-fp {
        height: 220px;
    }
}




