.im-bannery {
    --im-ban-pomer: 3 / 4;
    --im-ban-mezera: 16px;
    --im-ban-radius: 10px;
    --im-ban-nadpis: 30px;
    margin: 20px 0 28px;
}

.im-bannery-ready .banners-row {
    display: none;
}

.im-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: var(--im-ban-pomer);
    overflow: hidden;
    border-radius: var(--im-ban-radius);
    background: #e6eef2;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.im-banner:hover {
    text-decoration: none;
}

.im-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

a.im-banner:hover img,
a.im-banner:focus-visible img {
    transform: scale(1.05);
}

.im-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .4) 30%, rgba(0, 0, 0, .08) 52%, rgba(0, 0, 0, 0) 65%);
}

.im-banner__obsah {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 24px 20px;
    text-align: center;
}

.im-banner__nadpis {
    font-family: 'Exo 2', sans-serif;
    font-size: var(--im-ban-nadpis);
    font-weight: 800;
    line-height: 1.08;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.im-banner__text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .92);
}

.im-banner__tlacitko {
    margin-top: 10px;
    padding: 11px 22px;
    border-radius: 4px;
    background: var(--color-primary, #0599d1);
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: background-color .2s;
}

.im-banner:hover .im-banner__tlacitko,
.im-banner:focus-visible .im-banner__tlacitko {
    background: var(--color-primary-hover, #035c7e);
}

.im-banner:focus-visible {
    outline: 3px solid var(--color-primary, #0599d1);
    outline-offset: 3px;
}

.im-banner--jen-foto::after {
    display: none;
}

@media (min-width: 768px) {
    .im-bannery {
        display: grid;
        grid-template-columns: repeat(var(--im-ban-sloupcu, 4), 1fr);
        gap: var(--im-ban-mezera);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .im-bannery {
        --im-ban-nadpis: 22px;
    }
}

@media (max-width: 767px) {
    .im-bannery {
        --im-ban-nadpis: 26px;
        display: flex;
        gap: 12px;
        margin: 10px 0 24px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .im-bannery::-webkit-scrollbar {
        display: none;
    }

    .im-banner {
        flex: 0 0 calc(100% - 60px);
        scroll-snap-align: start;
        box-shadow: none;
    }
}

@media (min-width: 768px) {
    .im-bannery--posuv {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .im-bannery--posuv > .im-banner {
        flex: 0 0 auto;
        width: calc((100% - 4 * var(--im-ban-mezera)) / 4.3);
        scroll-snap-align: start;
    }
}

.im-posuv--sipky > .im-sipka {
    display: flex;
}

.im-bannery--posuv::-webkit-scrollbar {
    display: none;
}

.im-posuv {
    position: relative;
}

.im-posuv--bannery {
    margin: 20px 0 28px;
}

.im-posuv--bannery > .im-bannery {
    margin: 0;
}

.im-posuv--bannery > .im-bannery--posuv {
    padding: 4px 0 14px;
}

.im-sipka {
    position: absolute;
    top: var(--im-sipka-top, 50%);
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
    color: #1f1f1f;
    cursor: pointer;
    transition: background-color .2s, opacity .2s;
}

.im-sipka--vlevo {
    left: 8px;
}

.im-sipka--vpravo {
    right: 8px;
}

.im-sipka svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.im-sipka:hover {
    background: #eef6fa;
}

.im-sipka:focus-visible {
    outline: 3px solid var(--color-primary, #0599d1);
    outline-offset: 2px;
}

.im-sipka[disabled] {
    opacity: .35;
    cursor: default;
}

.im-posuv--produkty {
    --im-sipka-top: 38%;
}

.products-block.im-slider {
    --im-sl-videt: 3.3;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.products-block.im-slider::-webkit-scrollbar {
    display: none;
}

.products-block.im-slider > .product {
    flex: 1 0 calc(100% / var(--im-sl-videt));
    width: auto;
    max-width: none;
    scroll-snap-align: start;
}

@media (max-width: 1199px) {
    .products-block.im-slider {
        --im-sl-videt: 2.3;
    }
}

@media (max-width: 767px) {
    .products-block.im-slider {
        --im-sl-videt: 1.6;
    }
}

@media (max-width: 767px) {
    .im-posuv--produkty {
        --im-sipka-top: 90px;
    }

    .im-posuv--bannery {
        margin: 10px 0 24px;
    }

    .im-posuv--bannery > .im-bannery {
        padding: 0;
    }
}
