.otm-home-categories {
    box-sizing: border-box;
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding: 26px clamp(16px, 3vw, 32px) 24px;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.otm-home-categories .otm-home-categories__heading {
    margin: 0 0 16px;
    padding: 0;
    color: #13375d;
    font: 700 clamp(22px, 2.1vw, 30px)/1.25 "Segoe UI", Tahoma, Arial, sans-serif;
}

.otm-home-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.otm-home-categories__grid > .alert {
    grid-column: 1 / -1;
}

.otm-home-categories .otm-home-categories__card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    min-height: 180px;
    padding: 20px 14px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--category-start), var(--category-end));
    color: #fff;
    font: 650 16px/1.35 "Segoe UI", Tahoma, Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.otm-home-categories__card:nth-child(5n + 1) { --category-start: #8515a3; --category-end: #a91c69; }
.otm-home-categories__card:nth-child(5n + 2) { --category-start: #b93c19; --category-end: #b91650; }
.otm-home-categories__card:nth-child(5n + 3) { --category-start: #19323e; --category-end: #2a5159; }
.otm-home-categories__card:nth-child(5n + 4) { --category-start: #126cb3; --category-end: #12528b; }
.otm-home-categories__card:nth-child(5n + 5) { --category-start: #10783f; --category-end: #0f6448; }

.otm-home-categories .otm-home-categories__card:hover,
.otm-home-categories .otm-home-categories__card:focus-visible {
    border-color: rgba(0, 0, 0, .22);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .38);
    color: #fff;
    text-decoration: none;
}

.otm-home-categories .otm-home-categories__card:focus-visible {
    outline: 2px solid #176db3;
    outline-offset: 3px;
}

.otm-home-categories__icon {
    display: block;
    width: 60px;
    max-width: 100%;
    height: 60px;
    object-fit: contain;
}

@media (max-width: 960px) {
    .otm-home-categories__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .otm-home-categories {
        padding-top: 22px;
    }

    .otm-home-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .otm-home-categories .otm-home-categories__card {
        min-height: 132px;
        padding: 14px 9px;
        font-size: 14px;
    }

    .otm-home-categories__icon {
        width: 48px;
        height: 48px;
    }
}
