.hero-tile .btn-danger{
    background: #d11f24!important;
    border-radius: 0!important;
}
.hero-tile .btn-danger:hover{
    background: #8b181b!important;
    border-color: #8b181b!important;
}
.hero-banner {
    --hero-height: 560px;
    --hero-red: 209, 31, 36;
    --hero-blue: 20, 45, 170;
    --hero-ease: cubic-bezier(.25, .8, .25, 1);
    --hero-duration: .6s;
}

/* Base tile */
.hero-tile {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: var(--hero-height);
    display: flex;
    align-items: center;
    color: #fff;
    isolation: isolate;
}

.hero-tile--side {
    flex: 1 1 50%;
    min-height: calc(var(--hero-height) / 2);
}

.hero-tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1);
    transition: transform var(--hero-duration) var(--hero-ease);
}

.hero-tile__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Main tile: plain dark overlay, darkens on hover */
.hero-tile--main .hero-tile__overlay {
    background: rgba(0, 0, 0, .55);
    transition: background-color var(--hero-duration) var(--hero-ease);
}

/* Side tiles: wider gradient layer, shifted on hover to extend color coverage */
.hero-tile--side .hero-tile__overlay {
    left: -20%;
    width: 140%;
    transition: transform var(--hero-duration) var(--hero-ease);
}

.hero-tile--red .hero-tile__overlay {
    background: linear-gradient(90deg,
    rgba(var(--hero-red), .75) 0%,
    rgba(var(--hero-red), .55) 30%,
    rgba(var(--hero-red), .35) 55%,
    rgba(var(--hero-red), 0) 75%);
}

.hero-tile--blue .hero-tile__overlay {
    background: linear-gradient(90deg,
    rgba(var(--hero-blue), .75) 0%,
    rgba(var(--hero-blue), .55) 30%,
    rgba(var(--hero-blue), .35) 55%,
    rgba(var(--hero-blue), 0) 75%);
}

/* Hover / keyboard focus */
.hero-tile:hover .hero-tile__img,
.hero-tile:focus-within .hero-tile__img {
    transform: scale(1.08);
}

.hero-tile--main:hover .hero-tile__overlay,
.hero-tile--main:focus-within .hero-tile__overlay {
    background-color: rgba(0, 0, 0, .72);
}

.hero-tile--side:hover .hero-tile__overlay,
.hero-tile--side:focus-within .hero-tile__overlay {
    transform: translateX(8%); /* use negative value to shift the other way */
}

/* Content */
.hero-tile__content {
    position: relative;
    padding: 2.5rem 3rem;
    max-width: 640px;
}

.hero-tile--main .hero-tile__content {
    margin-left: auto;
    margin-right: auto;
}

.hero-tile__title {
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .35);
    font-family: "lh";
    font-weight: 900!important;
    line-height: 1.1;
    margin-bottom: .75rem;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
}

.hero-tile--main .hero-tile__title {
    font-size: clamp(2rem, 3.6vw, 2.55rem);
}

.hero-tile__title a {
    color: inherit;
    text-decoration: none;
}

.hero-tile__title a:focus-visible {
    outline: none;
}

.hero-tile:has(.stretched-link:focus-visible) {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

.hero-tile__text {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    opacity: .95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .35);
}

.hero-tile--main .hero-tile__text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-tile__badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .75rem;
    background: #fff;
    color: #222;
    font-size: .8rem;
    border-radius: 50rem;
}

.hero-tile__badge .bi {
    color: #dc3545;
}

/* Mobile */
@media (max-width: 991.98px) {
    .hero-tile,
    .hero-tile--side {
        min-height: 260px;
    }

    .hero-tile--main .hero-tile__content {
        margin: 0;
    }

    .hero-tile__content {
        padding: 2rem 1.5rem;
        padding-left: 1.5rem;
    }

    .hero-tile__text br {
        display: none;
    }
    .hero-tile__text {
        font-size: 0.95rem;
    }
    .hero-tile--main{
        padding-top: 30px;
    }
    .hero-tile--main .hero-tile__text{
        font-size: 0.95rem;
    }
    .hero-tile--main .hero-tile__title{
        font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    }
    .hero-tile--main .btn{
        font-size: 1rem!important;
    }
    .hero-tile--main .hero-tile__text {
        margin-bottom: 1rem;
    }
    /* On narrow screens the gradient covers more so text stays readable */
    .hero-tile--side .hero-tile__overlay {
        left: -10%;
        width: 110%;
    }

    .hero-tile--side:hover .hero-tile__overlay,
    .hero-tile--side:focus-within .hero-tile__overlay {
        transform: translateX(5%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-tile__img,
    .hero-tile__overlay {
        transition: none;
    }
}

@media (max-width: 991.98px) {
    .hero-tile--red .hero-tile__img,
    .hero-tile--blue .hero-tile__img {
        transform: scale(-1, 1);
    }

    .hero-tile--red:hover .hero-tile__img,
    .hero-tile--red:focus-within .hero-tile__img,
    .hero-tile--blue:hover .hero-tile__img,
    .hero-tile--blue:focus-within .hero-tile__img {
        transform: scale(-1.08, 1.08);
    }
}

/*STRZAŁKI*/
@media (max-width: 991.98px) {
    /* Title as flex row so the arrow centers vertically against it */
    .hero-tile--side .hero-tile__title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    /* Chevron arrow */
    .hero-tile--side .hero-tile__title::after {
        content: "";
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        /* pull arrow into the content's right padding: 4.5rem - 2.75rem */
        margin-right: -1.75rem;
        border-top: 4px solid #fff;
        border-right: 4px solid #fff;
        transform: rotate(45deg);
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
        transition: transform var(--hero-duration) var(--hero-ease);
        pointer-events: none;
    }

    .hero-tile--side:hover .hero-tile__title::after,
    .hero-tile--side:focus-within .hero-tile__title::after {
        transform: translateX(1.5rem) rotate(45deg);
    }

    /* Keep text clear of the arrow */
    .hero-tile--side .hero-tile__content {
        padding-right: 4.5rem;
    }
}
