/* =============================================
   Block 4.2: Где применять Antidetect (use cases grid 4×2)
   ============================================= */

.use-cases-section {
    padding: 80px 0 60px;
    margin-top: 100px;
    background-color: #f4f5f9;
}

/* header */
.use-cases-header {
    text-align: center;
    margin-bottom: 50px;
}

.use-cases-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1c1c1c;
    background: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.uc-badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f5a623;
    animation: ucBlink 0.75s infinite;
    flex-shrink: 0;
}

@keyframes ucBlink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

.use-cases-header h2 {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 52px;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: #1c1c1c;
}

.use-cases-header h2 span {
    color: #1c91f8;
}

.use-cases-subtitle {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* grid 4×2 */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

/* card */
.uc-card {
    position: relative;
    display: grid;
    grid-template-rows: 90px auto 1fr auto;
    padding: 50px 40px 40px;
    border: 1px solid #DFDEE5;
    border-bottom: none;
    border-left: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.uc-card:nth-child(4n+1) {
    border-left: 1px solid #DFDEE5;
}

.uc-card:nth-child(n+5) {
    border-bottom: 1px solid #DFDEE5;
}

.use-cases-grid .uc-card:hover {
    background: transparent;
    z-index: 1;
}

/* number */
.uc-card-num {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 100px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    user-select: none;
    transition: color 0.3s ease;
    align-self: end;
}

.uc-card:hover .uc-card-num {
    color: #1c91f8;
    -webkit-text-stroke: 1.5px rgba(28, 145, 248, 0.3);
}

/* title */
.uc-card-title {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #1c1c1c;
    margin: 0;
    padding: 12px 0 16px;
    text-transform: none;
    text-align: left;
    letter-spacing: 0;
    align-self: start;
}

/* description */
.uc-card-desc {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* hover highlight on content area */
.uc-card:hover .uc-card-title {
    color: #1c91f8;
}

.uc-card:hover .uc-card-desc {
    color: #444;
}

/* link */
.uc-card-bottom {
    margin-top: auto;
    padding-top: 24px;
}

.uc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1c91f8;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.2s;
}

.uc-card-link:hover {
    gap: 10px;
    color: #0d7de8;
}

.uc-card-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.uc-card-link:hover svg {
    transform: translateX(3px);
}

/* responsive */
@media (max-width: 1200px) {
    .uc-card {
        padding: 35px 25px 30px;
    }
    .uc-card-num {
        font-size: 72px;
    }
    .uc-card {
        grid-template-rows: 72px auto 1fr auto;
    }
    .use-cases-header h2 {
        font-size: 42px;
    }
}

@media (max-width: 991px) {
    .use-cases-section {
        padding: 60px 0 40px;
    }
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .uc-card:nth-child(4n+1) {
        border-left: none;
    }
    .uc-card:nth-child(odd) {
        border-left: 1px solid #DFDEE5;
    }
    .uc-card:nth-child(n+3) {
        border-bottom: none;
    }
    .uc-card:nth-child(n+7) {
        border-bottom: 1px solid #DFDEE5;
    }
}

@media (max-width: 767px) {
    .use-cases-section {
        padding: 40px 14px 30px;
    }
    .use-cases-header {
        margin-bottom: 30px;
    }
    .use-cases-header h2 {
        font-size: 30px;
    }
    .use-cases-subtitle {
        font-size: 15px;
    }
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    .uc-card {
        border-left: 1px solid #DFDEE5 !important;
        border-bottom: none !important;
        padding: 30px 20px 25px;
    }
    .uc-card:last-child {
        border-bottom: 1px solid #DFDEE5 !important;
    }
    .uc-card-num {
        font-size: 60px;
        color: #1c91f8;
    }
    .uc-card {
        grid-template-rows: 60px auto 1fr auto;
    }
}
