/* Sekcja last_news_city (miasto) – przeniesione z inline <style> dla walidacji HTML5 */
#last_news_city {
    position: relative;
}

#last_news_city .subtitle span {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

#lastNewsCarouselCity {
    position: relative;
    overflow: hidden;
    --news-visible: 3;
    --news-gap: 1.5rem;
}

.last-news-track-city {
    display: flex;
    align-items: stretch;
    gap: var(--news-gap);
    transform: translateX(0);
    transition: none;
}

.last-news-track-city.is-animating {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-city {
    flex: 0 0 calc((100% - (var(--news-visible) - 1) * var(--news-gap)) / var(--news-visible));
    max-width: calc((100% - (var(--news-visible) - 1) * var(--news-gap)) / var(--news-visible));
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 22px 38px -24px rgba(0, 22, 72, 0.35);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    min-height: 340px;
}

.news-card-city a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-city__background {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

.news-card-city__background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(22px);
    transform: scale(1.12);
    opacity: 0.45;
}

.news-card-city__background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    mix-blend-mode: normal;
}

.news-card-city__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(11, 24, 45, 0.05) 10%, rgba(11, 24, 45, 0.8) 100%);
    z-index: 2;
}

.news-card-city__title {
    position: relative;
    z-index: 3;
    width: 100%;
    margin: 0;
    padding: 1.45rem 1.4rem 1.35rem;
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.28;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (max-width: 1200px) {
    #lastNewsCarouselCity {
        --news-gap: 1.25rem;
    }
}

@media (max-width: 992px) {
    #lastNewsCarouselCity {
        --news-visible: 2;
        --news-gap: 1.2rem;
    }

    .news-card-city {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    #lastNewsCarouselCity {
        --news-visible: 1;
        --news-gap: 1rem;
    }

    .news-card-city {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    #lastNewsCarouselCity {
        --news-gap: 0.875rem;
    }

    .news-card-city {
        min-height: 280px;
    }
}
