.submenu-cards {
    padding-top: 0;
    padding-bottom: 0;
}

.submenu-cards .submenu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 19px;
    font-weight: 500;
    justify-content: center;
}

.submenu-cards .submenu-item {
    width: 202px;
    height: 179px;
}

.submenu-cards .submenu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    border-radius: 1.25rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: border 0.3s ease;
    color: var(--red-hi);
}

.submenu-cards .submenu-link:hover,
.submenu-cards .submenu-link:focus,
.submenu-cards .submenu-link.active {
    border: 1px solid var(--green)
}

.submenu-cards .submenu-image {
    width: 126px;
    height: 93px;
    margin-top: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.submenu-cards .submenu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.submenu-cards .submenu-title {
    margin-top: auto;
    margin-bottom: 13px;
    padding: 0 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

/* maly mobil - cil: 2 karty vedle sebe */
@media (max-width: 540px) {
    .submenu-cards .submenu-list {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .submenu-cards .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .submenu-cards .submenu-list {
        gap: 1rem;
        font-size: 17px;
    }

    .submenu-cards .submenu-item {
        width: 160px;
        height: 150px;
    }

    .submenu-cards .submenu-image {
        width: 100px;
        height: 74px;
    }

    .submenu-cards .submenu-title {
        padding: 0;
    }
}