.wm-work-section {
    width: 100%;
    padding: 40px 0;
    box-sizing: border-box;
}

.wm-work-section *,
.wm-work-section *::before,
.wm-work-section *::after {
    box-sizing: border-box;
}

.wm-work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}

.wm-work-header h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1;
    font-weight: 800;
    color: #111;
}

.wm-work-header p {
    max-width: 460px;
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.wm-work-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.wm-work-filter {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    background: #f1e2ff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.wm-work-filter:nth-child(2) {
    background: #ffd9e0;
}

.wm-work-filter:nth-child(3) {
    background: #d9c7ff;
}

.wm-work-filter:nth-child(4) {
    background: #d8f8ca;
}

.wm-work-filter.active {
    outline: 2px solid #111;
}

.wm-work-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    align-items: stretch;
    transition: opacity 0.2s ease;
}

.wm-work-grid.loading {
    opacity: 0.45;
    pointer-events: none;
}

.wm-work-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
    height: clamp(230px, 24vw, 350px);
    min-width: 0;
}

.wm-work-60 {
    grid-column: span 6;
}

.wm-work-40 {
    grid-column: span 4;
}

.wm-work-50 {
    grid-column: span 5;
}

.wm-work-full {
    grid-column: 1 / -1;
    height: clamp(260px, 24vw, 360px);
}

.wm-work-card a {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.wm-work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.wm-work-card:hover img {
    transform: scale(1.06);
}

.wm-work-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.02) 68%);
}

.wm-work-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
}

.wm-work-content span {
    display: inline-block;
    margin-bottom: 7px;
    border-radius: 999px;
    padding: 4px 8px;
    background: #ed2b36;
    color: #fff;
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
}

.wm-work-content h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.08;
    font-weight: 800;
}

.wm-work-content p {
    max-width: 430px;
    margin: 6px 0 0;
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    line-height: 1.35;
}

.wm-work-empty {
    grid-column: 1 / -1;
}

/* Single page */
.wm-work-single {
    padding: 50px 0;
}

.wm-work-single-hero {
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 32px;
}

.wm-work-single-hero img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.wm-work-single-content {
    max-width: 850px;
    margin-bottom: 40px;
}

.wm-work-single-type {
    display: inline-block;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    background: #ed2b36;
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.wm-work-single-content h1 {
    margin-bottom: 20px;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.1;
}

.wm-work-single-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wm-work-gallery-item {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
}

.wm-work-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tablets */
@media (max-width: 991px) {
    .wm-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wm-work-60,
    .wm-work-40,
    .wm-work-50 {
        grid-column: span 1;
        height: 240px;
    }

    .wm-work-full {
        grid-column: 1 / -1;
        height: 280px;
    }

    .wm-work-content {
        left: 16px;
        right: 16px;
        bottom: 15px;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .wm-work-header {
        flex-direction: column;
        gap: 16px;
    }

    .wm-work-filters {
        justify-content: flex-start;
    }

    .wm-work-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wm-work-60,
    .wm-work-40,
    .wm-work-50,
    .wm-work-full {
        grid-column: 1 / -1;
        height: 260px;
    }

    .wm-work-single-gallery {
        grid-template-columns: 1fr;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .wm-work-section {
        padding: 30px 0;
    }

    .wm-work-filter {
        padding: 7px 13px;
        font-size: 11px;
    }

    .wm-work-60,
    .wm-work-40,
    .wm-work-50,
    .wm-work-full {
        height: 230px;
    }

    .wm-work-content {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .wm-work-content p {
        display: none;
    }
}