﻿.work-details-section {
    padding: 40px 0 80px;
    background: linear-gradient(180deg, #0a0a0f 0%, #111118 100%);
    min-height: 100vh;
}

.work-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    flex-wrap: wrap;
}

    .work-breadcrumb a {
        color: #8b8b9e;
        text-decoration: none;
        transition: color 0.3s;
        position: relative;
    }

        .work-breadcrumb a:hover {
            color: #f2e15f;
        }

    .work-breadcrumb i {
        font-size: 10px;
        color: #4a4a5e;
    }

    .work-breadcrumb span {
        color: #e0e0e8;
        font-weight: 500;
    }

.work-hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.work-hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 500px;
}

.ba-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
}

.ba-image-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.ba-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
    opacity: 0;
}

    .ba-layer.active {
        opacity: 1;
    }

.ba-layer-before {
    z-index: 2;
}

.ba-layer-after {
    z-index: 1;
}

.ba-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ba-label {
    font-size: 14px;
    font-weight: 600;
    color: #8b8b9e;
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
}

    .ba-label.active {
        color: #f2e15f;
    }

.ba-checkbox {
    appearance: none;
    width: 44px;
    height: 24px;
    background: var(--dark-bg, #1a1a2e);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .ba-checkbox::before {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 16px;
        height: 16px;
        background: #f2e15f;
        border-radius: 50%;
        transition: transform 0.3s ease;
    }

    .ba-checkbox:checked {
        border-color: #f2e15f;
        background: rgba(242, 225, 95, 0.1);
    }

        .ba-checkbox:checked::before {
            transform: translateX(20px);
            background: #f2e15f;
        }

.single-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
}

.work-hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(242, 225, 95, 0.1);
    border: 1px solid rgba(242, 225, 95, 0.3);
    color: #f2e15f;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
    width: fit-content;
}

.work-hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #f2e15f;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(242, 225, 95, 0.3);
}

.work-hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #b0b0c0;
    margin-bottom: 35px;
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.hero-meta-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

    .hero-meta-card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(242, 225, 95, 0.3);
        transform: translateY(-2px);
    }

.meta-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    background: rgba(242, 225, 95, 0.1);
    color: #f2e15f;
}

.meta-content {
    flex: 1;
}

.meta-label {
    display: block;
    font-size: 13px;
    color: #8b8b9e;
    margin-bottom: 5px;
    font-weight: 500;
}

.meta-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.details-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

    .detail-card:hover {
        transform: translateY(-5px);
        border-color: rgba(242, 225, 95, 0.2);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        background: rgba(255, 255, 255, 0.05);
    }

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.detail-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    background: rgba(242, 225, 95, 0.1);
    color: #f2e15f;
    border: 2px solid rgba(242, 225, 95, 0.3);
}

.danger-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.detail-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #ffffff;
    letter-spacing: 1px;
}

.danger-title {
    color: #ef4444;
}

.detail-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

    .detail-card-grid.reverse {
        direction: rtl;
    }

        .detail-card-grid.reverse > * {
            direction: ltr;
        }

.detail-card-image {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

    .detail-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        min-height: 350px;
        transition: transform 0.5s ease;
    }

.detail-card:hover .detail-card-image img {
    transform: scale(1.05);
}

.detail-card-text {
    padding: 20px;
}


.section-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c0c0d0;
    white-space: pre-wrap;
}

.cta-section {
    background: linear-gradient(135deg, rgba(242, 225, 95, 0.05), rgba(242, 225, 95, 0.02));
    border: 2px solid rgba(242, 225, 95, 0.2);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
}

.cta-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.cta-text {
    font-size: 1.2rem;
    color: #b0b0c0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    background: #f2e15f;
    color: #111;
    box-shadow: 0 5px 20px rgba(242, 225, 95, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(242, 225, 95, 0.5);
        background: #f5e675;
    }

/* адаптация */
@media (max-width: 992px) {
    .work-hero-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .ba-container, .single-image {
        height: 400px;
    }

    .detail-card-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

        .detail-card-grid.reverse {
            direction: ltr;
        }
    .detail-card-text {
        padding: 10px;
    }

    .detail-card-image {
        order: -1;
    }

    .detail-card {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .work-details-section {
        padding: 30px 0 60px;
    }

    .work-hero-wrapper {
        padding: 20px;
        border-radius: 20px;
    }

    .work-hero-title {
        font-size: 2.5rem;
    }

    .detail-card {
        padding: 25px 20px;
        border-radius: 18px;
    }
    .detail-card-title {
        font-size: 1.5rem;
    }

    .detail-card-icon {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }

    .cta-section {
        padding: 40px 25px;
    }
    .cta-title {
        font-size: 1.5rem;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ba-container, .single-image {
        height: 300px;
    }
    .work-hero-desc {
        font-size: 1rem;
    }

    .work-hero-title {
        font-size: 1.4rem;
    }
    .detail-card-header {
        margin-bottom: 15px;
    }
    .detail-card-title {
        font-size: 1.2rem;
    }
    .section-text {
        font-size: 1rem;
    }
    .cta-title {
        font-size: 1.2rem;
    }
    .cta-text {
        font-size: 1rem;
    }
    .meta-value {
        font-size: 0.8rem;
    }
}
