.nt-homecategories {
    width: 100%;
    margin: 32px 0;
}

.nt-homecategories__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.nt-homecategories__title {
    margin: 0;
    color: #172452;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.nt-homecategories__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #003aee;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nt-homecategories__link:hover,
.nt-homecategories__link:focus-visible {
    color: #002bb3;
    text-decoration: none;
}

.nt-homecategories__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.nt-homecategories__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 168px;
    padding: 14px 14px 16px;
    overflow: hidden;
    border-radius: 14px;
    background: #f5f7fb;
    color: #172452;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.nt-homecategories__item:hover,
.nt-homecategories__item:focus-visible {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 28, 63, .12);
    color: #003aee;
    text-decoration: none;
}

.nt-homecategories__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 112px;
    margin-bottom: 10px;
}

.nt-homecategories__media img {
    display: block;
    max-width: 100%;
    max-height: 112px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nt-homecategories__name {
    display: block;
    color: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 1199px) {
    .nt-homecategories__grid {
        gap: 18px;
    }
}

@media (max-width: 991px) {
    .nt-homecategories {
        margin: 28px 0;
    }

    .nt-homecategories__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .nt-homecategories__header {
        margin-bottom: 14px;
    }

    .nt-homecategories__title {
        font-size: 21px;
    }

    .nt-homecategories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .nt-homecategories__item {
        min-height: 150px;
        padding: 12px;
    }

    .nt-homecategories__media {
        height: 96px;
    }

    .nt-homecategories__media img {
        max-height: 96px;
    }

    .nt-homecategories__name {
        font-size: 15px;
    }
}

@media (max-width: 420px) {
    .nt-homecategories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
