.dsm-work-with-wrap {
    --dsm-work-columns: 3;
    display: grid;
    grid-template-columns: repeat(var(--dsm-work-columns), minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 28px 0;
}

.dsm-work-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 26px 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dsm-work-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.12);
}

.dsm-work-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 106px;
    margin-bottom: 18px;
}

.dsm-work-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-decoration: none;
}

.dsm-work-logo-img {
    display: block;
    width: auto;
    max-width: min(100%, 350px);
    max-height: 106px;
    object-fit: contain;
}

.dsm-work-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 92px;
    padding: 18px;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 16px;
    color: #334155;
    font-weight: 700;
    background: rgba(248, 250, 252, 0.9);
}

.dsm-work-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.25;
    font-weight: 800;
}

.dsm-work-title a {
    color: inherit;
    text-decoration: none;
}

.dsm-work-title a:hover,
.dsm-work-title a:focus {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.dsm-work-description {
    max-width: 52ch;
    color: #475569;
    font-size: 15px;
    line-height: 1.65;
}

.dsm-work-description p {
    margin: 0 0 0.75em;
}

.dsm-work-description p:last-child {
    margin-bottom: 0;
}

.dsm-work-description a {
    font-weight: 700;
}

@media (max-width: 980px) {
    .dsm-work-with-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .dsm-work-with-wrap {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 22px 0;
    }

    .dsm-work-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .dsm-work-logo-box {
        min-height: 88px;
        margin-bottom: 14px;
    }

    .dsm-work-logo-img {
        max-height: 92px;
    }
}
