.documentation-section{
    position:relative;
    padding:110px 0;
    background:#f7f9fc;
    overflow:hidden;
}

.documentation-container{
    position:relative;
    z-index:2;
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:0 40px;
    box-sizing:border-box;
}

.documentation-header{
    max-width:700px;
    margin:0 auto 70px;
    text-align:center;
}

.documentation-header span{
    display:inline-block;
    color:#0d4aae;
    font-size:.78rem;
    font-weight:700;
    letter-spacing:2.5px;
    margin-bottom:14px;
}

.documentation-header h2{
    margin:0 0 18px;
    color:#16223b;
    font-size:3rem;
    line-height:1.15;
    font-weight:800;
}

.documentation-header p{
    margin:0 auto;
    max-width:600px;
    color:#64748b;
    font-size:.98rem;
    line-height:1.8;
}

.documentation-list{
    display:flex;
    flex-direction:column;
    gap:70px;
}

.documentation-card{
    position:relative;
    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    align-items:center;
    gap:45px;
    width:100%;
    min-width:0;
    padding:35px;
    box-sizing:border-box;
    background:#fff;
    border:1px solid rgba(15,23,42,.06);
    border-radius:28px;
    box-shadow:0 20px 55px rgba(15,23,42,.07);
    opacity:0;
    transform:translateY(50px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.22,1,.36,1),
        box-shadow .35s ease;
}

.documentation-card.show{
    opacity:1;
    transform:translateY(0);
}

.documentation-card:hover{
    box-shadow:0 28px 70px rgba(15,23,42,.11);
}

.documentation-info{
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.documentation-number{
    width:max-content;
    color:#0d4aae;
    font-size:.75rem;
    font-weight:800;
    letter-spacing:2px;
    margin-bottom:15px;
}

.documentation-info h3{
    margin:0 0 14px;
    color:#16223b;
    font-size:1.7rem;
    line-height:1.25;
    font-weight:800;
}

.documentation-info p{
    margin:0;
    color:#64748b;
    font-size:.92rem;
    line-height:1.75;
}

.documentation-gallery-wrapper{
    position:relative;
    width:100%;
    min-width:0;
    display:flex;
    align-items:center;
    gap:14px;
}

.documentation-gallery{
    position:relative;
    width:100%;
    min-width:0;
    display:flex;
    gap:10px;
    overflow:hidden;
    box-sizing:border-box;
}

.documentation-image{
    position:relative;
    flex:0 0 calc((100% - 30px) / 4);
    width:calc((100% - 30px) / 4);
    aspect-ratio:1 / 1;
    overflow:hidden;
    border-radius:16px;
    background:#eef2f7;
    cursor:pointer;
    box-sizing:border-box;
}

.documentation-image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        transparent 55%,
        rgba(0,0,0,.18) 100%
    );
    opacity:0;
    transition:.35s;
    pointer-events:none;
}

.documentation-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
    transition:transform .5s cubic-bezier(.22,1,.36,1);
}

.documentation-image:hover img{
    transform:scale(1.07);
}

.documentation-image:hover::after{
    opacity:1;
}

.documentation-carousel-btn{
    width:46px;
    height:46px;
    min-width:46px;
    border:none;
    border-radius:50%;
    background:#0d4aae;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(13,74,174,.22);
    transition:
        background .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
    z-index:5;
}

.documentation-carousel-btn:hover{
    background:#083b8c;
    transform:scale(1.08);
    box-shadow:0 14px 30px rgba(13,74,174,.3);
}

.documentation-carousel-btn:active{
    transform:scale(.95);
}

.documentation-carousel-btn i{
    font-size:.9rem;
}

.documentation-lightbox{
    position:fixed;
    inset:0;
    z-index:100000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px;
    box-sizing:border-box;
    background:rgba(5,12,25,.92);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.3s;
}

.documentation-lightbox.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.documentation-lightbox img{
    max-width:min(1100px,85vw);
    max-height:85vh;
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:14px;
    box-shadow:0 30px 80px rgba(0,0,0,.4);
    transform:scale(.9);
    transition:.35s cubic-bezier(.22,1,.36,1);
}

.documentation-lightbox.active img{
    transform:scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next{
    position:absolute;
    width:48px;
    height:48px;
    min-width:48px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.3s;
    z-index:2;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{
    background:#0d4aae;
}

.lightbox-close:hover{
    transform:scale(1.08);
}

.lightbox-prev:hover{
    transform:translateY(-50%) scale(1.08);
}

.lightbox-next:hover{
    transform:translateY(-50%) scale(1.08);
}

.lightbox-close{
    top:25px;
    right:25px;
    font-size:1.2rem;
}

.lightbox-prev{
    left:30px;
    top:50%;
    transform:translateY(-50%);
}

.lightbox-next{
    right:30px;
    top:50%;
    transform:translateY(-50%);
}

@media(max-width:1200px){

    .documentation-container{
        padding:0 30px;
    }

    .documentation-card{
        grid-template-columns:250px minmax(0,1fr);
        gap:30px;
        padding:30px;
    }

    .documentation-gallery-wrapper{
        gap:9px;
    }

    .documentation-gallery{
        gap:8px;
    }

    .documentation-image{
        flex-basis:calc((100% - 24px) / 4);
        width:calc((100% - 24px) / 4);
    }

    .documentation-carousel-btn{
        width:42px;
        height:42px;
        min-width:42px;
    }
}

@media(max-width:991px){

    .documentation-section{
        padding:90px 0;
    }

    .documentation-header{
        margin-bottom:55px;
    }

    .documentation-header h2{
        font-size:2.5rem;
    }

    .documentation-card{
        grid-template-columns:1fr;
        gap:30px;
        padding:30px;
    }

    .documentation-info{
        text-align:center;
        align-items:center;
    }

    .documentation-info p{
        max-width:650px;
    }

    .documentation-gallery-wrapper{
        width:100%;
        gap:10px;
    }

    .documentation-gallery{
        gap:8px;
    }

    .documentation-image{
        flex-basis:calc((100% - 24px) / 4);
        width:calc((100% - 24px) / 4);
    }

    .documentation-carousel-btn{
        width:40px;
        height:40px;
        min-width:40px;
    }
}

@media(max-width:576px){

    .documentation-section{
        padding:70px 0;
    }

    .documentation-container{
        padding:0 16px;
    }

    .documentation-header{
        margin-bottom:40px;
    }

    .documentation-header h2{
        font-size:2rem;
    }

    .documentation-header p{
        font-size:.88rem;
        line-height:1.7;
    }

    .documentation-list{
        gap:40px;
    }

    .documentation-card{
        padding:22px;
        border-radius:22px;
        gap:24px;
    }

    .documentation-number{
        font-size:.68rem;
    }

    .documentation-info h3{
        font-size:1.35rem;
    }

    .documentation-info p{
        font-size:.84rem;
        line-height:1.65;
    }

    .documentation-gallery-wrapper{
        gap:6px;
    }

    .documentation-gallery{
        gap:5px;
    }

    .documentation-image{
        flex-basis:calc((100% - 15px) / 4);
        width:calc((100% - 15px) / 4);
        border-radius:9px;
    }

    .documentation-carousel-btn{
        width:32px;
        height:32px;
        min-width:32px;
    }

    .documentation-carousel-btn i{
        font-size:.65rem;
    }

    .documentation-lightbox{
        padding:20px;
    }

    .documentation-lightbox img{
        max-width:92vw;
        max-height:78vh;
    }

    .lightbox-close{
        top:15px;
        right:15px;
        width:42px;
        height:42px;
        min-width:42px;
    }

    .lightbox-prev,
    .lightbox-next{
        width:42px;
        height:42px;
        min-width:42px;
    }

    .lightbox-prev{
        left:12px;
    }

    .lightbox-next{
        right:12px;
    }
}