.tw-home-categories {
    margin: 28px 0 34px;
}

.tw-home-categories__title {
    margin: 0 0 20px;
    padding: 9px 18px;
    border: 0;
    background: linear-gradient(100deg, #f45111 0%, #ff6a00 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
}

.tw-home-categories__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
}

.tw-home-categories__card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(8, 37, 68, .045);
    color: #102e51;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tw-home-categories__card:hover,
.tw-home-categories__card:focus {
    border-color: #f36a26;
    box-shadow: 0 12px 24px rgba(8, 37, 68, .12);
    color: #102e51;
    text-decoration: none;
    transform: translateY(-3px);
}

.tw-home-categories__art {
    display: grid;
    aspect-ratio: 1 / 1;
    place-items: center;
    padding: 24px;
    background: #fff;
}

.tw-home-categories__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tw-home-categories__label {
    display: grid;
    min-height: 62px;
    place-items: center;
    padding: 11px 8px;
    border-top: 1px solid #edf0f3;
    background: #f8f9fa;
    color: #102e51;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

@media (max-width: 1199px) {
    .tw-home-categories__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tw-home-categories {
        margin: 20px 0 26px;
    }

    .tw-home-categories__title {
        margin-bottom: 12px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .tw-home-categories__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 0;
    }

    .tw-home-categories__card {
        min-width: 0;
    }

    .tw-home-categories__art {
        aspect-ratio: 1 / 1;
        height: auto;
        padding: 14px;
    }

    .tw-home-categories__label {
        min-height: 46px;
        padding: 8px 6px;
        font-size: 12px;
    }
}
