/* Хлебные крошки */
.breadcrumb-nav {
    margin: 20px 0;
}

.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    margin: 0 12px;
    font-size: 18px;
}

.breadcrumb-item a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #004499;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* Заголовок работы */
.work-header {
    margin: 30px 0;
    padding: 30px 0;
    border-bottom: 2px solid #e9ecef;
}

.work-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    line-height: 1.2;
}

.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.work-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-weight: 500;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.work-meta span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.work-meta i {
    color: #0066cc;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    color: white;
}

/* Главное изображение */
.work-main-image {
    margin: 40px auto;
    width: 50%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.work-main-image img {
    width: 100%;
    /* height: 400px; */
    object-fit: fill;
    transition: transform 0.3s ease;
}

.work-main-image:hover img {
    transform: scale(1.02);
}

.work-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
}

.placeholder-icon i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 16px;
}

.work-placeholder p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Контент работы */
.work-content {
    margin: 50px 0;
}

.work-description h2 {
    color: #212529;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
}

.work-description h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border-radius: 2px;
}

.description-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    text-align: justify;
}

/* Детали проекта */
.work-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.work-details h3 {
    color: #212529;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.details-list li:last-child {
    border-bottom: none;
}

.details-list strong {
    color: #495057;
    font-weight: 600;
}

.status-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-family: "Chadwick Cyrillic", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Галерея */
.work-gallery {
    margin: 60px 0;
}

.work-gallery h2 {
    color: #212529;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.work-gallery h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border-radius: 2px;
}

.gallery-section {
    margin-bottom: 50px;
}

.gallery-section h3 {
    color: #495057;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

/* Слайдер изображений */
.image-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit:contain;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    font-size: 1rem;
    font-weight: 500;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-btn i {
    color: #0066cc;
    font-size: 1.2rem;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Заглушка галереи */
.no-gallery {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
}

.no-gallery-icon i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

.no-gallery h3 {
    color: #6c757d;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.no-gallery p {
    color: #868e96;
    font-size: 1.1rem;
}

/* Похожие проекты */
.related-works {
    margin: 60px 0;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.related-works h2 {
    color: #212529;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.related-work-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.related-work-image {
    height: 200px;
    overflow: hidden;
}

.related-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-work-card:hover .related-work-image img {
    transform: scale(1.1);
}

.related-work-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
}

.related-work-placeholder i {
    font-size: 2.5rem;
    color: #adb5bd;
}

.related-work-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-work-content h4 {
    color: #212529;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.related-work-content p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: "Chadwick Cyrillic", sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .work-title {
        font-size: 2rem;
    }

    .work-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .btn-back {
        margin-top: 20px;
    }

    /* .work-main-image img, */
    .slide img {
        height: 250px;
    }

    .work-details {
        margin-top: 30px;
        position: static;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .breadcrumb {
        padding: 10px 15px;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 8px;
    }

    

}

@media (max-width: 576px) {
    .work-title {
        font-size: 1.6rem;
    }

    .work-gallery h2 {
        font-size: 1.8rem;
    }

    .gallery-section h3 {
        font-size: 1.3rem;
    }

    /* .work-main-image img, */
    .slide img {
        height: 200px;
    }

    .work-details {
        padding: 20px;
    }

    .description-content {
        font-size: 1rem;
    }

    .no-gallery {
        padding: 40px 15px;
    }

    .no-gallery-icon i {
        font-size: 3rem;
    }

    .work-main-image {
    /* margin: 40px auto; */
    width: 100%;

}
}
