/* =========================================================
   DIGTEX CASES V5
   ========================================================= */

:root{
    --case-dark:#111827;
    --case-text:#374151;
    --case-muted:#6b7280;
    --case-border:#e5e7eb;
    --case-bg:#f8fafc;
    --case-radius:24px;
    --case-shadow:0 20px 60px rgba(15,23,42,.08);
}

/* =========================================================
   HERO
   ========================================================= */

.case-hero-v5{
    position:relative;
    min-height:760px;
    display:flex;
    align-items:center;
    overflow:hidden;
    color:#fff;
}

.case-hero-bg{
    position:absolute;
    inset:0;
}

.case-hero-bg img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.case-hero-overlay{
    position:absolute;
    inset:0;

    background:
    linear-gradient(
        100deg,
        rgba(0,0,0,.88) 0%,
        rgba(0,0,0,.72) 35%,
        rgba(0,0,0,.40) 70%,
        rgba(0,0,0,.20) 100%
    );
}

.case-hero-v5 .container{
    position:relative;
    z-index:2;
}

.case-hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 380px;
    gap:70px;
    align-items:center;
}

.case-label{
    display:inline-flex;
    align-items:center;

    padding:10px 18px;

    border-radius:100px;

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.18);

    backdrop-filter:blur(14px);

    font-size:12px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;

    margin-bottom:30px;
}

.case-hero-content h1{
    color:#fff;
    font-size:clamp(48px,6vw,84px);
    line-height:1;
    margin:0 0 28px;
}

.case-subtitle{
    max-width:720px;

    color:rgba(255,255,255,.88);

    font-size:22px;
    line-height:1.7;

    margin:0 0 40px;
}

.case-hero-content .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-height:58px;

    padding:0 34px;

    border-radius:14px;

    font-weight:700;

    transition:.25s ease;
}

.case-hero-content .btn:hover{
    transform:translateY(-2px);
}

.case-info-card{
    background:rgba(255,255,255,.10);

    border:1px solid rgba(255,255,255,.14);

    backdrop-filter:blur(18px);

    border-radius:28px;

    padding:36px;
}

.case-info-item{
    padding:18px 0;
    border-bottom:1px solid rgba(255,255,255,.12);
}

.case-info-item:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.case-info-item:first-child{
    padding-top:0;
}

.case-info-item span{
    display:block;

    color:rgba(255,255,255,.65);

    font-size:12px;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;

    margin-bottom:8px;
}

.case-info-item strong{
    display:block;

    color:#fff;

    font-size:20px;
    font-weight:700;
    line-height:1.4;
}

/* =========================================================
   CONTENT
   ========================================================= */

.case-content-v5{
    padding:100px 0;
    background:#fff;
}

.case-container{
    max-width:1320px;
}

.case-content-v5 h2{
    color:var(--case-dark);

    font-size:48px;
    line-height:1.15;

    margin:70px 0 24px;
}

.case-content-v5 h2:first-child{
    margin-top:0;
}

.case-content-v5 h3{
    color:var(--case-dark);

    font-size:32px;
    line-height:1.2;

    margin:50px 0 20px;
}

.case-content-v5 p{
    color:var(--case-text);

    font-size:19px;
    line-height:1.95;

    margin:0 0 22px;
}

.case-content-v5 ul,
.case-content-v5 ol{
    margin:25px 0 35px 25px;
}

.case-content-v5 li{
    color:var(--case-text);
    font-size:18px;
    line-height:1.9;
    margin-bottom:12px;
}

.case-content-v5 img{
    width:100%;
    height:auto;

    display:block;

    border-radius:24px;

    margin:50px 0;

    box-shadow:var(--case-shadow);
}

.case-content-v5 figure{
    margin:50px 0;
}

.case-content-v5 figure img{
    margin:0;
}

.case-content-v5 blockquote{
    margin:50px 0;
    padding:35px 40px;

    border-left:5px solid #2563eb;

    background:#f8fafc;

    border-radius:18px;

    font-size:22px;
    line-height:1.7;
}

.case-content-v5 table{
    width:100%;
    border-collapse:collapse;
    margin:40px 0;
}

.case-content-v5 table td,
.case-content-v5 table th{
    padding:16px;
    border:1px solid var(--case-border);
}

/* =========================================================
   CTA
   ========================================================= */

.case-cta-v5{
    padding:0 0 100px;
    background:#fff;
}

.case-cta-inner{
    background:linear-gradient(
        135deg,
        #111827 0%,
        #1f2937 100%
    );

    border-radius:32px;

    padding:60px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;

    box-shadow:
    0 30px 80px rgba(17,24,39,.18);
}

.case-cta-text h2{
    color:#fff;

    font-size:42px;
    line-height:1.15;

    margin:0 0 15px;
}

.case-cta-text p{
    color:rgba(255,255,255,.75);

    font-size:18px;
    line-height:1.8;

    margin:0;
}

.case-cta-action .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-height:58px;

    padding:0 34px;

    background:#fff;

    color:#111827;

    border-radius:14px;

    font-weight:700;

    transition:.25s ease;
}

.case-cta-action .btn:hover{
    transform:translateY(-2px);
}

/* =========================================================
   OTHER CASES
   ========================================================= */

.other-cases{
    padding:0 0 120px;
    background:var(--case-bg);
}

.other-cases-header{
    text-align:center;
    padding:90px 0 50px;
}

.other-cases-header h2{
    color:var(--case-dark);

    font-size:52px;
    line-height:1.1;

    margin:0;
}

.other-cases-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:28px;
}

.other-case-card{
    position:relative;

    display:block;

    overflow:hidden;

    border-radius:24px;

    text-decoration:none;

    background:#fff;

    box-shadow:
    0 15px 45px rgba(15,23,42,.08);

    transition:.35s ease;
}

.other-case-card:hover{
    transform:translateY(-8px);

    box-shadow:
    0 25px 70px rgba(15,23,42,.15);
}

.other-case-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;

    transition:.5s ease;
}

.other-case-card:hover img{
    transform:scale(1.05);
}

.other-case-content{
    padding:26px;
}

.other-case-content span{
    display:block;

    color:var(--case-muted);

    font-size:12px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;

    margin-bottom:10px;
}

.other-case-content h3{
    color:var(--case-dark);

    font-size:24px;
    line-height:1.3;

    margin:0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width:1200px){

    .case-hero-grid{
        grid-template-columns:1fr;
    }

    .case-info-card{
        max-width:500px;
    }

    .other-cases-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:992px){

    .case-hero-v5{
        min-height:auto;
        padding:140px 0 100px;
    }

    .case-content-v5{
        padding:80px 0;
    }

    .case-content-v5 h2{
        font-size:38px;
    }

    .case-cta-inner{
        flex-direction:column;
        align-items:flex-start;
    }

}

@media (max-width:768px){

    .case-hero-content h1{
        font-size:42px;
    }

    .case-subtitle{
        font-size:18px;
    }

    .case-info-card{
        padding:26px;
    }

    .case-content-v5 h2{
        font-size:32px;
    }

    .case-content-v5 h3{
        font-size:26px;
    }

    .case-content-v5 p,
    .case-content-v5 li{
        font-size:17px;
    }

    .case-cta-inner{
        padding:35px 30px;
    }

    .case-cta-text h2{
        font-size:30px;
    }

    .other-cases-header h2{
        font-size:34px;
    }

    .other-cases-grid{
        grid-template-columns:1fr;
    }

}

@media (max-width:576px){

    .case-hero-v5{
        padding:120px 0 80px;
    }

    .case-label{
        font-size:11px;
        letter-spacing:1px;
    }

    .case-hero-content h1{
        font-size:36px;
    }

    .case-info-item strong{
        font-size:18px;
    }

}
/* =========================================================
   CASE TASK
   ========================================================= */

.case-task{
    max-width:1320px;

    margin:-60px auto 90px;

    background:#fff;

    border-radius:28px;

    padding:50px 60px;

    box-shadow:
    0 25px 80px rgba(15,23,42,.10);

    position:relative;
    z-index:5;
}

.case-task h2{
    margin:0 0 25px !important;

    font-size:14px !important;

    letter-spacing:2px;

    text-transform:uppercase;

    color:#2563eb !important;
}

.case-task p:last-child{
    margin-bottom:0;
}

/* =========================================================
   HERO FIXES
   ========================================================= */

.case-label{
    color:#ffffff !important;
}

.case-subtitle{
    color:#f3f4f6 !important;
}

.case-info-item span{
    color:#d1d5db !important;
}

.case-info-item strong{
    color:#ffffff !important;
}

.case-hero-content .btn{
    background:#ffffff !important;
    color:#111827 !important;
    border:none;
}

.case-hero-content .btn:hover{
    background:#f3f4f6 !important;
}

/* =========================================================
   GALLERY
   ========================================================= */

.case-gallery{
    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:20px;

    margin:90px 0;
}

.case-gallery img{
    width:100%;

    height:200px;

    object-fit:cover;

    border-radius:20px;

    margin:0 !important;

    transition:.3s ease;
}

.case-gallery img:hover{
    transform:translateY(-4px);
}

.case-gallery img:first-child{
    grid-row:span 2;
    height:420px;
}

@media(max-width:900px){

    .case-gallery{
        grid-template-columns:1fr;
    }

    .case-gallery img,
    .case-gallery img:first-child{
        height:320px;
    }

}

/* =========================================================
   RESULT
   ========================================================= */

.case-result{
    max-width:1320px;

    margin:70px auto 20px;

    background:#ffffff;

    border-radius:28px;

    padding:50px 60px;

    box-shadow:
    0 25px 80px rgba(15,23,42,.10);

    position:relative;
}

.case-result h2{
    margin:0 0 25px !important;

    font-size:14px !important;

    letter-spacing:2px;

    text-transform:uppercase;

    color:#2563eb !important;
}

.case-result p{
    color:#374151 !important;

    font-size:19px !important;

    line-height:1.95 !important;
}

.case-result p:last-child{
    margin-bottom:0;
}

/* =========================================================
   CTA FIX
   ========================================================= */

.case-cta-v5{
    padding-top:0px;
    padding-bottom:60px;
}

.case-cta-inner{
    margin-top:30px;
}

/* =========================================================
   OTHER CASES
   ========================================================= */

.other-cases-grid{
    grid-template-columns:repeat(4,1fr) !important;
}

.other-case-card img{
    height:170px !important;
}

.other-case-content{
    padding:18px !important;
}

.other-case-content h3{
    font-size:18px !important;
}

.other-case-content span{
    margin-bottom:6px !important;
}
.case-cta-action .btn,
.case-cta-action .btn:link,
.case-cta-action .btn:visited{
    color:#111827 !important;
}

.case-cta-action .btn span{
    color:#111827 !important;
}
.other-cases-header{
    padding:60px 0 25px;
}

.other-cases-header h2{
    position:relative;
    font-size:42px;
}

.other-cases-header h2:after{
    content:"";

    display:block;

    width:80px;
    height:4px;

    background:#2563eb;

    margin:18px auto 0;

    border-radius:20px;
}
.case-task,
.case-result{
    border:1px solid #edf0f3;
}
.case-card-link{
    display:block;
    text-decoration:none;
    color:inherit;
}
/* =========================================================
   CASE SOLUTIONS GRID
   ========================================================= */

.case-linked-section{
    padding:70px 0;
    background:#fff;
}
.case-linked-section .solution-category-heading{
    margin-bottom:42px;
    max-width:760px;
}

.case-linked-section .solution-category-heading h2{
    font-size:42px;
    line-height:1.1;
    margin:0 0 14px;
    color:var(--case-dark);
}

.case-linked-section .solution-category-heading p{
    font-size:18px;
    line-height:1.7;
    color:var(--case-text);
    margin:0;
}

.case-solutions-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

.case-solution-card{
    min-height:280px;

    padding:40px;

    border-radius:28px;

    background:
    linear-gradient(
        135deg,
        #111827 0%,
        #1f2937 100%
    );

    text-decoration:none;

    display:flex;
    flex-direction:column;
    justify-content:space-between;

    transition:.35s ease;
}

.case-solution-card:hover{
    transform:translateY(-6px);
}

.case-solution-label{
    font-size:10px;
    font-weight:600;
    letter-spacing:1.5px;
    text-transform:uppercase;

    color:rgba(255,255,255,.45);
}

.case-solution-card h3{
    color:#fff;
    font-size:24px;
    line-height:1.15;
    margin:20px 0 auto;

    max-width:280px;
}

.case-solution-link{
    color:#fff;
    font-size:16px;
    font-weight:600;
}

/* =========================================================
   PRODUCT BLOCK FIXES
   ========================================================= */

.case-linked-section .catalog__price{
    color:#111827 !important;
}

.case-linked-section .catalog__link{
    color:#2563eb !important;
}

.case-linked-section .catalog__title{
    min-height:72px;
    font-size:20px;
    line-height:1.2;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:992px){

    .case-solutions-grid{
        grid-template-columns:1fr;
    }

}