.projects-section {
    padding: 30px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    clear: both;
}

.projects-carousel {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    visibility: visible !important;
}
.w100 {
    width: 100%;
}
.project-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 10px;
    transition: all 0.3s ease;
    overflow: visible;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.project-image {
    flex: 0 0 40%;
    position: relative;
    overflow: visible;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-width: 40%;
}

.project-slider {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 5px 0 0 5px;
}

.project-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    margin-top: 0;
    pointer-events: none;
}

.project-slider .owl-nav button {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50% !important;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333 !important;
    font-size: 14px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.project-slider .owl-nav button i {
    display: inline-block;
    font-size: 14px;
}

.project-slider .owl-nav button:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.project-slider .owl-nav button.owl-prev {
    left: 10px;
}

.project-slider .owl-nav button.owl-next {
    right: 10px;
}

.project-slider .owl-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.project-slider .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.project-slider .owl-dots .owl-dot.active span,
.project-slider .owl-dots .owl-dot:hover span {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-gallery {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: flex-start;
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 0 10px;
}

.gallery-thumbnail {
    width: 60px;
    height: 60px;
    margin-right: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.gallery-thumbnail:hover {
    border-color: #e74c3c;
    transform: scale(1.05);
}

.gallery-link {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
    text-decoration: none;
}

/* Стили для Fancybox */
.fancybox-thumbs {
    background: rgba(0, 0, 0, 0.8);
}

.fancybox-thumbs__list a::before {
    border-color: #e74c3c;
}

.project-details {
    flex: 0 0 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background-color: #fff;
    border-radius: 0 5px 5px 0;
}

.project-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.project-info {
    flex-grow: 1;
}

.info-row {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.info-label {
    font-weight: bold;
    color: #666;
    width: 120px;
    flex-shrink: 0;
}

.info-value {
    color: #333;
}

.project-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-bottom: 15px;
}

.project-call-button {
    display: block;
    width: 100%;
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background-color: #ff5722;
    box-shadow: 0px 3px 0px 0px rgba(204, 65, 22, 1);
    transition: all 0.3s ease;
}

.project-call-button:hover {
    background-color: #ff7043;
    transform: translateY(-2px);
    box-shadow: 0px 5px 0px 0px rgba(204, 65, 22, 1);
}

/* Owl Carousel Custom Navigation для проектов */
.projects-section .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8) !important;
    color: #333 !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.projects-section .owl-nav button:hover {
    background: #fff !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.projects-section .owl-nav .owl-prev {
    left: 10px;
}

.projects-section .owl-nav .owl-next {
    right: 10px;
}

.projects-section .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.projects-section .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.projects-section .owl-dots .owl-dot span {
    display: block;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.projects-section .owl-dots .owl-dot.active span,
.projects-section .owl-dots .owl-dot:hover span {
    background: #e74c3c;
}

/* Адаптивность */
@media (max-width: 768px) {
    .project-item {
        flex-direction: column;
        max-width: 100%;
        overflow: visible;
        position: relative;
    }
    
    .project-image,
    .project-details {
        flex: 0 0 100%;
        width: 100%;
        display: block;
        position: relative;
    }
    
    .project-image {
        max-width: 100%;
        max-height: 280px;
        z-index: 1;
        overflow: visible;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .project-slider {
        
        width: 100%;
        height: 200px;
        border-radius: 5px 5px 0 0;
    }
    
    .project-slider .owl-nav button {
        width: 25px;
        height: 25px;
        font-size: 12px !important;
    }
    
    .project-slider .owl-dots {
        bottom: 5px;
    }
    
    .project-slider .owl-dots .owl-dot span {
        width: 8px;
        height: 8px;
        margin: 3px;
    }
    
    .project-img {
        height: 200px;
        object-fit: cover;
        object-position: center;
    }
    
    .project-details {
        padding: 15px;
        overflow: visible;
        height: auto;
        z-index: 2;
        background-color: #fff;
    }
    
    .project-gallery {
        display: flex;
        flex-wrap: wrap;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
        position: relative;
        z-index: 10;
        background-color: #fff;
        padding: 5px;
        border-radius: 0 0 5px 5px;
    }
    
    .gallery-thumbnail {
        width: 50px;
        height: 50px;
        margin-right: 5px;
        margin-bottom: 5px;
        display: block;
    }
    
    .info-row {
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
        font-weight: bold;
    }
    
    .info-value {
        width: 100%;
    }
    
    .project-price {
        margin-top: 15px;
        font-size: 16px;
    }
    
    .project-call-button {
        font-size: 16px;
        padding: 10px;
        margin-bottom: 20px;
    }
}