.carousel {
    position: relative;
}
.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform .6s ease-in-out;
}
.carousel-control-next-icon {
    background-image: url(prawo.svg);
}
.carousel-control-prev-icon {
    background-image: url(lewo.svg);
}
.carousel-control-next-icon, .carousel-control-prev-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}
.carousel-control-next:focus, .carousel-control-next:hover, .carousel-control-prev:focus, .carousel-control-prev:hover {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: .9;
}
.carousel-control-next {
    right: 0;
}
.carousel-control-next, .carousel-control-prev {
    position: absolute;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    text-align: center;
    border: 0;
    opacity: .5;
    transition: opacity .15s ease;
    background-color: #e1e1e1;
    width: 4vh;
    height: 4vh;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-inner {
    width: 100%;
    overflow: hidden;
    padding: 1em;
    position: relative;
    z-index: 1;
}
.carousel {
    position: relative;
    z-index: 1;
}
.carousel .carousel-inner {
    transition: height 0.3s ease-in-out;
}
.carousel .carousel-item {
    height: auto;
}



.cards-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    height: auto;
}
.card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: height 0.3s ease-in-out;
}
.card {
    margin: 0 0.5em;
    box-shadow: 2px 6px 8px 0 rgba(22, 22, 26, 0.18);
    border: none;
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    transform: translateY(0);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 8px 12px 0 rgba(22, 22, 26, 0.25);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem;
    overflow: hidden;
}

@media (max-width: 294px) {
    .carousel .carousel-inner {
        height: auto;
    }
    .card {
        width: 100%;
        margin: 0;
    }
    .card:nth-child(n+2) {
        display: none;
    }
    .card img {
        height: 8em;
    }
}
@media (min-width: 295px) and (max-width: 559px) {
    .carousel .carousel-inner {
        height: auto;
    }
    .card {
        width: 50%;
        margin: 0 0.25em;
    }
    .card:nth-child(n+3) {
        display: none;
    }
    .card img {
        height: 9em;
    }
}
@media (min-width: 560px) and (max-width: 785px) {
    .carousel .carousel-inner {
        height: auto;
    }
    .card {
        width: 33.333%;
        margin: 0 0.25em;
    }
    .card:nth-child(n+4) {
        display: none;
    }
    .card img {
        height: 9em;
    }
}
@media (min-width: 786px) and (max-width: 1199px) {
    .carousel .carousel-inner {
        height: auto;
    }
    .card {
        width: 25%;
        margin: 0 0.25em;
    }
    .card:nth-child(n+5) {
        display: none;
    }
    .card img {
        height: 10em;
    }
}
@media (min-width: 1200px) {
    .carousel .carousel-inner {
        height: auto;
    }
    .card {
        width: 20%;
        margin: 0 0.25em;
    }
    .card img {
        height: 12em;
    }
}
.card a {
    text-decoration: none;
    color: inherit;
}

a .card-body h2 {
    font-size: .875rem;
    font-weight: 400;
    color: #7A7A7A;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    height: 2.4em;
    min-height: 2.4em;
    max-height: 2.4em;
}

a:hover .card-body h2 {
    color: #666666;
}

section {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}


