/*
   Noworudzki Kurier - Premium Design System v2.0
   Design: Modern News Portal / High-End Aesthetics
   Colors: Nowa Ruda Heritage (Terracotta, Wood, Copper)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Curated HSL for maximum vibrancy and harmony */
    --h-primary: 25;
    /* Terracotta base */
    --s-primary: 85%;
    --l-primary: 45%;

    --h-secondary: 15;
    /* Deep Wood base */
    --s-secondary: 25%;
    --l-secondary: 15%;

    --primary: hsl(var(--h-primary), var(--s-primary), var(--l-primary));
    --primary-light: hsl(var(--h-primary), var(--s-primary), 60%);
    --primary-dark: hsl(var(--h-primary), var(--s-primary), 35%);

    --secondary: hsl(var(--h-secondary), var(--s-secondary), var(--l-secondary));
    --secondary-light: hsl(var(--h-secondary), var(--s-secondary), 25%);

    --accent: hsl(210, 80%, 45%);
    /* Regional Blue Accent */

    --bg-main: hsl(30, 20%, 98%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-alt: hsl(25, 15%, 94%);

    --text-main: hsl(var(--h-secondary), 20%, 12%);
    --text-muted: hsl(var(--h-secondary), 15%, 40%);
    --text-on-dark: hsl(0, 0%, 100%);

    /* Design Tokens */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 12px 40px rgba(var(--h-secondary), 20%, 15%, 0.1);
    --shadow-premium: 0 20px 60px rgba(var(--h-primary), 80%, 40%, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.23, 1, 0.32, 1);

    --container-max: 1920px;
    --gutter: 2rem;

    /* Wysokość headera z menu (do calc viewport) */
    --site-header-height: 100px;

    /* VP-Block: editorial layout system (zwarte, w viewport) */
    --vp-gap: 1rem;
    --vp-gap-tight: 0.5rem;
    --vp-card-radius: var(--radius-md);
    --vp-hero-ratio: 16 / 9;
    --vp-tile-ratio: 16 / 10;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* Global Utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.glass-widget {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.page-container {
    padding-top: 18px;
    /* Jeszcze wyżej: hero + Najnowsze + sidebary startują bliżej headera, nadal pod nim */
    padding-bottom: 80px;
}

.page-container.with-sidebar {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    /* Left Sidebar | Content | Right Sidebar */
    gap: 0;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-content {
    min-width: 0;
    /* Prevent grid blowout */
    position: relative;
}

/* ====================================================================
   AMBIENT HUE — Wariant A: ambient glow per-kafelek
   Jeden #ambient-bg-canvas wewnątrz .article-content, pozycjonowany
   absolutnie za treścią. Każdy kafelek rzuca rozmytą "poświatę"
   w kolorze swojego obrazka na całe tło kolumny treści.
   ==================================================================== */

/* Kanvas tła — za całą treścią article-content */
#ambient-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Treść ponad kanwasem */
.article-content>*:not(#ambient-bg-canvas) {
    position: relative;
    z-index: 2;
}

/* Pojedynczy blob poświaty per-kafelek */
.ambient-blob {
    position: absolute;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    filter: blur(60px) saturate(200%);
    opacity: 0;
    transform: scale(1.3);
    transition: opacity 1s ease;
    pointer-events: none;
    will-change: opacity, filter;
}

/* Blob staje się widoczny po załadowaniu */
.ambient-blob.visible {
    opacity: 0.45;
}

/* Ukryj na mobile — tylko desktop */
@media (max-width: 900px) {
    #ambient-bg-canvas {
        display: none;
    }

    .article-content>*:not(#ambient-bg-canvas) {
        position: static;
        z-index: auto;
    }
}

/* Strona główna: szerokość i marginesy/paddingi jak hero (tylko padding kontenera, bez podwójnego wcięcia) */
.index-page .homepage-head-section,
.index-page .homepage-content-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.index-page .homepage-content-wrapper .vp-block-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.index-page .homepage-content-wrapper .topic-section {
    padding-left: 0;
    padding-right: 0;
}

/* Responsive Layout */
@media (min-width: 1650px) {
    .left-sidebar {
        position: sticky;
        left: 0;
        top: 110px;
        width: 250px;
        z-index: 10;
        height: min-content;
    }

    .right-sidebar {
        position: sticky;
        right: 0;
        top: 110px;
        width: 250px;
        z-index: 10;
        height: min-content;
    }

    .page-container.with-sidebar {
        display: grid;
        grid-template-columns: 250px 1fr 250px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        gap: 2.5rem;
        /* Slightly reduced gap for narrower layout */
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 1649px) and (min-width: 1401px) {

    /* Transition range */
    .page-container.with-sidebar {
        grid-template-columns: 240px 1fr 250px;
        gap: 0;
    }
}

@media (max-width: 1400px) {
    .page-container.with-sidebar {
        grid-template-columns: 200px 1fr 250px;
        gap: 0;
    }
}

@media (max-width: 1200px) {
    .page-container.with-sidebar {
        grid-template-columns: 1fr 250px;
        /* Sidebar Left moves to bottom or hidden? User wants it visible. Let's stack it at bottom if space allows, or keep specific logic. For now, let's keep Right Sidebar and hide Left on tablet to save space, BUT enable it on Mobile stack if needed. */
        /* Actually, let's keep Left Sidebar visible but smaller? Or stack. */
        /* Let's follow common pattern: One sidebar (Right) on Tablet. */
    }

    .left-sidebar {
        display: none;
        /* Keep hidden on Tablet (900-1200) to avoid clutter, as requested "empty space on left" mainly refers to Desktop. */
    }
}

@media (max-width: 900px) {
    .page-container.with-sidebar {
        grid-template-columns: 1fr;
    }

    .left-sidebar,
    .right-sidebar {
        display: block;
        /* Show them stacked on mobile */
        width: 100%;
        margin-top: 2rem;
    }

    .main-content {
        order: 1;
    }

    .sidebar {
        order: 2;
        /* Sidebars below content */
        position: static;
        /* No longer sticky */
    }

    .page-container {
        padding-top: 100px;
    }
}

/* Sidebar Links Premium Styling */
.sidebar-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links-list li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.8rem;
}

.sidebar-links-list li:last-child {
    border-bottom: none;
}

.sidebar-links-list a {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar-links-list a::before {
    content: '›';
    color: var(--primary);
    font-weight: 800;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.sidebar-links-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.sidebar-links-list a:hover::before {
    transform: translateX(2px);
}

/* Premium Navigation Header */
.site-header {
    background: hsla(0, 0%, 100%, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-bottom: 1px solid hsla(var(--h-primary), 20%, 90%, 0.3);
    position: sticky;
    top: 0;
    z-index: 2000;
    padding: 0;
    height: 100px;
    display: flex;
    align-items: center;
    transition: height 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
    height: 72px;
    background: hsla(0, 0%, 100%, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled .main-navigation a {
    font-size: 0.74rem;
}

.site-header.scrolled .coffee-btn {
    font-size: 0.66rem;
    padding: 0.45rem 1rem;
}

.site-header.scrolled .main-navigation>ul>li {
    padding: 0.7rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo Adjustment */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0;
    margin-right: 2rem;
    /* Ensure distinct separation from nav */
}

.logo img {
    height: auto;
    max-height: 70px;
    /* Reduced for better breathing room */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: var(--transition-smooth);
}

.site-header.scrolled .logo img {
    max-height: 48px;
    /* proportional to header 72px */
}


/* Buy Me a Coffee Button - Premium Integration */
.header-support {
    padding: 0 1rem 0 0.5rem;
    display: flex;
    align-items: center;
}

.coffee-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    background: #FFDD00;
    color: #000000 !important;
    font-weight: 800;
    font-size: 0.72rem;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(255, 221, 0, 0.2);
    transition: all 0.4s var(--transition-smooth), font-size 0.25s ease, padding 0.25s ease;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 2px solid transparent;
    white-space: nowrap;
}

.coffee-btn:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 10px 25px rgba(255, 221, 0, 0.4);
    background: #FFDD00;
    border-color: rgba(0, 0, 0, 0.05);
}

.coffee-icon {
    transition: transform 0.4s ease;
}

.coffee-btn:hover .coffee-icon {
    transform: scale(1.2) rotate(10deg);
}

@media (max-width: 1024px) {
    .header-support {
        display: none;
    }
}

/* Elegant Menu Layout */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    /* Center for balance */
    padding: 0 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2.35rem;
    align-items: center;
}

/* ... existing code ... */

.reel-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 4px solid #fff;
    width: 280px;
    height: 500px;
    /* Fixed height to match standard reel aspect */
    display: flex;
    /* Removes inline spacing */
    transform: translateZ(0);
    /* Fix for Safari/Chrome borderRadius clipping */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    /* Force clipping */
}

.main-navigation>ul>li {
    position: relative;
    padding: 1.5rem 0;
    transition: padding 0.25s ease;
}

.main-navigation a {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: color 0.3s ease, transform 0.2s ease, font-size 0.25s ease;
}

.main-navigation li:hover>a {
    color: var(--primary);
    transform: translateY(-1px);
}

/* Dropdown Menu */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 220px;
    box-shadow: var(--shadow-premium);
    border-radius: var(--radius-md);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 3000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.main-navigation li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li {
    display: block;
    width: 100%;
}

.submenu a {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    display: block;
    white-space: nowrap;
}

.submenu a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

/* HERO SECTION (Main + 2 kafelki + Najnowsze) – stała wysokość */
.homepage-head-section {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 1rem;
    height: 760px;
    min-height: 560px;
    background: var(--bg-main);
    z-index: 2;
    padding-bottom: 1.5rem;
}

.hero-left-wrapper {
    flex: 2.7;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
}

.latest-news-column {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sidebar-news-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hero-main-article {
    position: relative;
    flex: 0 1 auto;
    min-height: 0;
    max-height: 72%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    aspect-ratio: 16 / 9.5;
    display: block;
    cursor: pointer;
}

.hero-main-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-main-article:hover img {
    transform: scale(1.03);
}

.hero-sub-row {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    gap: 1.5rem;
}

.hero-sub-tile {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
    min-height: 0;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-sub-tile:hover {
    transform: translateY(-5px);
}

.hero-sub-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-sub-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    z-index: 20;
}

.hero-sub-overlay h3 {
    color: #fff;
    font-size: 1.12rem;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    /* Silniejszy cień dla czytelności */
}



.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.45) 50%, transparent 100%);
    /* Jeszcze mocniejszy gradient */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    color: var(--text-on-dark);
}

.hero-title {
    color: #fff !important;
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
    /* Bardzo silny cień pod głównym tytułem */
}

.hero-excerpt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Side Grid (4 vertical tiles next to hero) */
.hero-side-grid {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 1rem;
}

.hero-side-item {
    display: flex;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-side-item .img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mini-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    /* Maksymalnie ciemny i wysoki gradient dla czytelności */
    padding: 1.2rem 1rem;
    color: #fff;
}

.hero-mini-overlay h4 {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.3;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .homepage-head-section {
        grid-template-columns: 1fr;
    }

    .hero-side-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

/* SECTIONS & GRIDS */
.section-divider {
    height: 3rem;
    min-height: 3rem;
    width: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.03), transparent);
    flex-shrink: 0;
}

/* VP-BLOCK: nagłówek + siatka w viewport minus header z menu */
.vp-block {
    height: calc(100vh - var(--site-header-height));
    height: calc(100dvh - var(--site-header-height));
    min-height: calc(100vh - var(--site-header-height));
    min-height: calc(100dvh - var(--site-header-height));
    display: flex;
    align-items: stretch;
    padding: 0.5rem 0;
    position: relative;
    box-sizing: border-box;
}

.vp-block-inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.vp-block-header {
    flex-shrink: 0;
    margin-bottom: 0.4rem;
}

.vp-block-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--secondary);
    margin: 0 0 0.1rem 0;
    line-height: 1.15;
}

.vp-block-continuation {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85em;
}

.vp-block-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
}

/* Bazowa siatka vp-block */
.vp-block-grid {
    display: grid;
    gap: var(--vp-gap-tight);
    flex: 1;
    min-height: 0;
    align-content: stretch;
}

/* === 4×6: tylko duży (2×2) + małe łączone w pionie (1×2), bez pojedynczych === */
.layout-lifestyle-grid,
.layout-tourism-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
}

.layout-lifestyle-grid .vp-card-1,
.layout-tourism-grid .vp-card-1 {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.layout-lifestyle-grid .vp-card-2 {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.layout-lifestyle-grid .vp-card-3 {
    grid-column: 4;
    grid-row: 1 / span 2;
}

.layout-lifestyle-grid .vp-card-4 {
    grid-column: 1;
    grid-row: 3 / span 2;
}

.layout-lifestyle-grid .vp-card-5 {
    grid-column: 2;
    grid-row: 3 / span 2;
}

.layout-lifestyle-grid .vp-card-6 {
    grid-column: 3;
    grid-row: 3 / span 2;
}

.layout-lifestyle-grid .vp-card-7 {
    grid-column: 4;
    grid-row: 3 / span 2;
}

.layout-lifestyle-grid .vp-card-8 {
    grid-column: 1;
    grid-row: 5 / span 2;
}

.layout-lifestyle-grid .vp-card-9 {
    grid-column: 2;
    grid-row: 5 / span 2;
}

.layout-lifestyle-grid .vp-card-10 {
    grid-column: 3;
    grid-row: 5 / span 2;
}

.layout-tourism-grid .vp-card-2 {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.layout-tourism-grid .vp-card-3 {
    grid-column: 4;
    grid-row: 1 / span 2;
}

.layout-tourism-grid .vp-card-4 {
    grid-column: 1;
    grid-row: 3 / span 2;
}

.layout-tourism-grid .vp-card-5 {
    grid-column: 2;
    grid-row: 3 / span 2;
}

.layout-tourism-grid .vp-card-6 {
    grid-column: 3;
    grid-row: 3 / span 2;
}

.layout-tourism-grid .vp-card-7 {
    grid-column: 4;
    grid-row: 3 / span 2;
}

.layout-tourism-grid .vp-card-8 {
    grid-column: 1;
    grid-row: 5 / span 2;
}

.layout-tourism-grid .vp-card-9 {
    grid-column: 2;
    grid-row: 5 / span 2;
}

.layout-tourism-grid .vp-card-10 {
    grid-column: 3 / span 2;
    grid-row: 5 / span 2;
}

/* === 4×3: duży (2×2) + dwa 1×2 w pionie (kol. 3–4) + 4×1 w rzędzie 3 === */
.layout-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.layout-feature-grid .vp-card-1 {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.layout-feature-grid .vp-card-2 {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.layout-feature-grid .vp-card-3 {
    grid-column: 4;
    grid-row: 1 / span 2;
}

.layout-feature-grid .vp-card-4 {
    grid-column: 1;
    grid-row: 3;
}

.layout-feature-grid .vp-card-5 {
    grid-column: 2;
    grid-row: 3;
}

.layout-feature-grid .vp-card-6 {
    grid-column: 3;
    grid-row: 3;
}

.layout-feature-grid .vp-card-7 {
    grid-column: 4;
    grid-row: 3;
}

/* === 3×3: duży (2×2) + pod nim tylko małe kafelki pojedynczego pola (5×1×1) === */
.layout-grid-3x3-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.layout-grid-3x3-grid .vp-card-1 {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.layout-grid-3x3-grid .vp-card-2 {
    grid-column: 3;
    grid-row: 1;
}

.layout-grid-3x3-grid .vp-card-3 {
    grid-column: 3;
    grid-row: 2;
}

.layout-grid-3x3-grid .vp-card-4 {
    grid-column: 1;
    grid-row: 3;
}

.layout-grid-3x3-grid .vp-card-5 {
    grid-column: 2;
    grid-row: 3;
}

.layout-grid-3x3-grid .vp-card-6 {
    grid-column: 3;
    grid-row: 3;
}

/* === 5×3: bez zmian === */
.layout-news-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.layout-news-grid .vp-card-1 {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.layout-news-grid .vp-card-2 {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.layout-news-grid .vp-card-3 {
    grid-column: 4;
    grid-row: 1 / span 2;
}

.layout-news-grid .vp-card-4 {
    grid-column: 5;
    grid-row: 1;
}

.layout-news-grid .vp-card-5 {
    grid-column: 5;
    grid-row: 2;
}

.layout-news-grid .vp-card-6 {
    grid-column: 1;
    grid-row: 3;
}

.layout-news-grid .vp-card-7 {
    grid-column: 2;
    grid-row: 3;
}

.layout-news-grid .vp-card-8 {
    grid-column: 3;
    grid-row: 3;
}

.layout-news-grid .vp-card-9 {
    grid-column: 4;
    grid-row: 3;
}

.layout-news-grid .vp-card-10 {
    grid-column: 5;
    grid-row: 3;
}

/* Duży kafelek (4 okna) — media wypełnia */
.vp-block-grid .vp-card-1 .vp-card-media {
    aspect-ratio: auto;
    flex: 1;
    min-height: 0;
}

/* Małe łączone w pionie (1×2) — w 4×6 wszystkie karty 2–10 */
.layout-lifestyle-grid .vp-card-2 .vp-card-media,
.layout-lifestyle-grid .vp-card-3 .vp-card-media,
.layout-lifestyle-grid .vp-card-4 .vp-card-media,
.layout-lifestyle-grid .vp-card-5 .vp-card-media,
.layout-lifestyle-grid .vp-card-6 .vp-card-media,
.layout-lifestyle-grid .vp-card-7 .vp-card-media,
.layout-lifestyle-grid .vp-card-8 .vp-card-media,
.layout-lifestyle-grid .vp-card-9 .vp-card-media,
.layout-lifestyle-grid .vp-card-10 .vp-card-media,
.layout-tourism-grid .vp-card-2 .vp-card-media,
.layout-tourism-grid .vp-card-3 .vp-card-media,
.layout-tourism-grid .vp-card-4 .vp-card-media,
.layout-tourism-grid .vp-card-5 .vp-card-media,
.layout-tourism-grid .vp-card-6 .vp-card-media,
.layout-tourism-grid .vp-card-7 .vp-card-media,
.layout-tourism-grid .vp-card-8 .vp-card-media,
.layout-tourism-grid .vp-card-9 .vp-card-media,
.layout-tourism-grid .vp-card-10 .vp-card-media,
.layout-feature-grid .vp-card-2 .vp-card-media,
.layout-feature-grid .vp-card-3 .vp-card-media {
    aspect-ratio: auto;
    flex: 1;
    min-height: 0;
}

/* VP-CARD (design tokens); w gridzie wypełnia komórkę */
.vp-block-grid .vp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.vp-card {
    display: block;
    border-radius: var(--vp-card-radius);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition-smooth), transform var(--transition-smooth), border-color var(--transition-fast);
}

.vp-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.08);
}

.vp-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.vp-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: var(--vp-tile-ratio);
    overflow: hidden;
}

/* W viewport-grid karty wypełniają wysokość komórki */
.vp-block-grid .vp-card-media {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
}

.vp-card-media img,
.vp-card-media .fb-card-media-wrapper {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vp-card-media .fb-card-media-wrapper {
    position: absolute;
    inset: 0;
}

.vp-card-media .fb-card-media-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    transform: none;
    object-fit: cover;
}

.vp-card-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-on-dark);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-sm);
}

.vp-audio-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 28px;
    height: 28px;
    color: var(--text-on-dark);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 4px;
}

.vp-card--overlay .vp-card-media {
    aspect-ratio: var(--vp-hero-ratio);
}

.vp-card-overlay {
    position: absolute;
    inset: 0;
    /* Sam overlay bez tła – tło (cień) tylko pod tekstem robi ::before */
    background: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.1rem 1.15rem 1.25rem;
    z-index: 20;
}

/* Cień tylko pod tekstem (dolny pas), a nie na całym kafelku */
.vp-card-overlay::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    /* pas cienia pod strefą tekstu */
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.7) 35%,
            rgba(0, 0, 0, 0.0) 100%);
    z-index: -1;
}

.vp-card--overlay .vp-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    /* Ustandaryzowana, nieco mniejsza niż dotychczas, z lekką responsywnością */
    font-size: clamp(1.0rem, 1.4vw, 1.15rem);
    letter-spacing: -0.01em;
    color: var(--text-on-dark);
    margin: 0;
    line-height: 1.28;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.vp-card-body {
    /* Stała wysokość i pionowe wycentrowanie tekstu w polach tekstowych */
    margin-top: auto;
    /* dociśnięcie całego bloku do dołu kafla */
    flex: 0 0 4.2rem;
    /* wspólna wysokość dla wszystkich kart */
    padding: 0.4rem 0.55rem;
    background: var(--bg-card);
    min-height: 0;
    overflow-y: auto;
    /* dłuższy tekst przewijany w środku */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* zawsze pokazuj początek tytułu (górę) */
}

.vp-card--text-below .vp-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    color: var(--secondary);
    margin: 0;
    line-height: 1.28;
}

/* 4×3 (feature): kafelki pojedynczego pola (4–7) zawsze z polem tekstowym pod, bez overlay */
.layout-feature-grid .vp-card-4 .vp-card-overlay,
.layout-feature-grid .vp-card-5 .vp-card-overlay,
.layout-feature-grid .vp-card-6 .vp-card-overlay,
.layout-feature-grid .vp-card-7 .vp-card-overlay {
    display: none !important;
}

.layout-feature-grid .vp-card-4 .vp-card-body,
.layout-feature-grid .vp-card-5 .vp-card-body,
.layout-feature-grid .vp-card-6 .vp-card-body,
.layout-feature-grid .vp-card-7 .vp-card-body {
    display: block !important;
}

/* Section accent backgrounds for vp-block */
/* Różne tła sekcji vp-block – wyraźnie odróżnialne kolorystycznie */
.vp-block--sacral {
    background: linear-gradient(180deg, hsl(28, 35%, 96%) 0%, hsl(32, 28%, 92%) 100%);
}

.vp-block--zima {
    background: linear-gradient(180deg, hsl(205, 40%, 96%) 0%, hsl(210, 35%, 91%) 100%);
}

.vp-block--lifestyle {
    background: linear-gradient(180deg, hsl(38, 45%, 97%) 0%, hsl(30, 40%, 93%) 100%);
}

.vp-block--regionalne {
    background: linear-gradient(180deg, hsl(85, 25%, 96%) 0%, hsl(75, 20%, 92%) 100%);
}

.vp-block--inwestycje {
    background: linear-gradient(180deg, hsl(48, 50%, 96%) 0%, hsl(42, 45%, 91%) 100%);
}

.vp-block--zdrowie {
    background: linear-gradient(180deg, hsl(135, 30%, 96%) 0%, hsl(128, 25%, 91%) 100%);
}

.vp-block--rodzina {
    background: linear-gradient(180deg, hsl(285, 35%, 97%) 0%, hsl(278, 30%, 93%) 100%);
}

.vp-block--turystyka {
    background: linear-gradient(180deg, hsl(175, 40%, 96%) 0%, hsl(168, 35%, 91%) 100%);
}

.vp-block--kultura {
    background: linear-gradient(180deg, hsl(15, 45%, 96%) 0%, hsl(8, 40%, 91%) 100%);
}

.vp-block--transport {
    background: linear-gradient(180deg, hsl(195, 45%, 96%) 0%, hsl(188, 40%, 91%) 100%);
}

.vp-block--more {
    background: linear-gradient(180deg, hsl(35, 30%, 96%) 0%, hsl(28, 25%, 92%) 100%);
}

@media (max-width: 768px) {
    .vp-block {
        height: auto;
        min-height: auto;
        padding: 1.5rem 0 2rem;
    }

    .vp-block-grid {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        grid-auto-flow: unset;
        gap: 0.5rem;
    }

    .layout-lifestyle-grid .vp-card-1,
    .layout-lifestyle-grid .vp-card-2,
    .layout-lifestyle-grid .vp-card-3,
    .layout-lifestyle-grid .vp-card-4,
    .layout-lifestyle-grid .vp-card-5,
    .layout-lifestyle-grid .vp-card-6,
    .layout-lifestyle-grid .vp-card-7,
    .layout-lifestyle-grid .vp-card-8,
    .layout-lifestyle-grid .vp-card-9,
    .layout-lifestyle-grid .vp-card-10,
    .layout-tourism-grid .vp-card-1,
    .layout-tourism-grid .vp-card-2,
    .layout-tourism-grid .vp-card-3,
    .layout-tourism-grid .vp-card-4,
    .layout-tourism-grid .vp-card-5,
    .layout-tourism-grid .vp-card-6,
    .layout-tourism-grid .vp-card-7,
    .layout-tourism-grid .vp-card-8,
    .layout-tourism-grid .vp-card-9,
    .layout-tourism-grid .vp-card-10,
    .layout-news-grid .vp-card-1,
    .layout-news-grid .vp-card-2,
    .layout-news-grid .vp-card-3,
    .layout-news-grid .vp-card-4,
    .layout-news-grid .vp-card-5,
    .layout-news-grid .vp-card-6,
    .layout-news-grid .vp-card-7,
    .layout-news-grid .vp-card-8,
    .layout-news-grid .vp-card-9,
    .layout-news-grid .vp-card-10,
    .layout-feature-grid .vp-card-1,
    .layout-feature-grid .vp-card-2,
    .layout-feature-grid .vp-card-3,
    .layout-feature-grid .vp-card-4,
    .layout-feature-grid .vp-card-5,
    .layout-feature-grid .vp-card-6,
    .layout-feature-grid .vp-card-7,
    .layout-feature-grid .vp-card-8,
    .layout-feature-grid .vp-card-9,
    .layout-feature-grid .vp-card-10,
    .layout-grid-3x3-grid .vp-card-1,
    .layout-grid-3x3-grid .vp-card-2,
    .layout-grid-3x3-grid .vp-card-3,
    .layout-grid-3x3-grid .vp-card-4,
    .layout-grid-3x3-grid .vp-card-5,
    .layout-grid-3x3-grid .vp-card-6 {
        grid-column: auto;
        grid-row: auto;
    }

    .vp-block-grid .vp-card-media {
        aspect-ratio: var(--vp-tile-ratio);
        flex: none;
    }

    .vp-card-media {
        min-height: 0;
    }
}

.topic-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2rem 0 3rem;
    position: relative;
}

.topic-section .section-title {
    margin-top: 0;
}

.section-sacral {
    background: var(--section-sacral-bg, linear-gradient(180deg, hsl(25, 12%, 97%) 0%, hsl(30, 18%, 95%) 100%));
}

.section-winter {
    background: var(--section-winter-bg, linear-gradient(180deg, hsl(210, 25%, 97%) 0%, hsl(210, 20%, 94%) 100%));
}

.section-lifestyle-high {
    background: var(--section-lifestyle-bg, linear-gradient(180deg, hsl(35, 20%, 97%) 0%, hsl(25, 15%, 95%) 100%));
}

.section-realizations {
    background: var(--section-realizations-bg, linear-gradient(180deg, hsl(25, 15%, 96%) 0%, hsl(20, 12%, 94%) 100%));
}

.section-investments {
    background: var(--section-investments-bg, linear-gradient(180deg, hsl(45, 25%, 97%) 0%, hsl(40, 20%, 95%) 100%));
}

.section-health {
    background: var(--section-health-bg, linear-gradient(180deg, hsl(120, 15%, 98%) 0%, hsl(120, 12%, 95%) 100%));
}

.section-family {
    background: var(--section-family-bg, linear-gradient(180deg, hsl(280, 15%, 98%) 0%, hsl(280, 12%, 96%) 100%));
}

.section-tourism {
    background: var(--section-tourism-bg, linear-gradient(180deg, hsl(180, 20%, 97%) 0%, hsl(180, 15%, 95%) 100%));
}

.section-culture {
    background: var(--section-culture-bg, linear-gradient(180deg, hsl(25, 18%, 96%) 0%, hsl(15, 15%, 94%) 100%));
}

.section-transport {
    background: var(--section-transport-bg, linear-gradient(180deg, hsl(200, 20%, 97%) 0%, hsl(200, 15%, 95%) 100%));
}

.section-more {
    background: var(--section-more-bg, linear-gradient(180deg, hsl(30, 15%, 98%) 0%, hsl(25, 12%, 96%) 100%));
}

.section-widoki {
    background: var(--section-widoki-bg, linear-gradient(180deg, hsl(220, 15%, 97%) 0%, hsl(220, 12%, 95%) 100%));
}

.widoki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.widok-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.widok-item:hover {
    transform: translateY(-5px);
}

.fb-post-embed-container {
    width: 100%;
    max-width: 500px;
    min-height: 500px;
}

.fb-post-embed-container .widok-embed-iframe,
.fb-post-embed-container iframe {
    width: 100% !important;
    min-height: 500px;
    border: none;
    overflow: hidden;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    border-left: 5px solid var(--primary);
    padding-left: 1rem;
    display: flex;
    align-items: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Article Card Standard */
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    /* Fixed: Added to contain absolute audio-indicator */
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.article-image-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    /* Square for consistency with gallery */
    overflow: hidden;
}

.fb-card-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /* Fill parent (.article-image-wrapper or similar) */
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f0f0f0;
}

.fb-card-media-fallback {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fb-card-media-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.fb-card-media-wrapper iframe {
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 500px !important;
    height: 500px !important;
    /* Idealna wysokość dla grafiki */
    /* Wyrównanie do dołu kafelka + dopasowana skala */
    transform: translateX(-50%) scale(1.2);
    transform-origin: bottom center;
    border: none;
    pointer-events: none;
    filter: brightness(0.98);
    transition: transform 0.3s ease;
    z-index: 10;
}

.article-card:hover .fb-card-media-wrapper iframe {
    transform: translateX(-50%) scale(0.95);
    /* Lekkie zbliżenie */
}

.article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image-wrapper img {
    transform: scale(1.1);
}

.article-category {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--primary);
    color: #fff;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
}

.audio-indicator {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 100;
    /* Increased to stay above all overlays and AOS transitions */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    pointer-events: auto;
    /* Changed: Allow clicking for preview playback */
    cursor: pointer;
}

.audio-indicator svg {
    width: 18px;
    height: 18px;
}

.article-card:hover .audio-indicator,
.article-summary:hover .audio-indicator,
.hero-main-article:hover .audio-indicator,
.hero-sub-tile:hover .audio-indicator,
.realizacja-card:hover .audio-indicator,
.audio-indicator.is-playing {
    transform: scale(1.1);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.audio-indicator.is-playing {
    animation: audioPulse 1.5s infinite ease-in-out;
}

@keyframes audioPulse {
    0% {
        transform: scale(1.1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }

    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }

    100% {
        transform: scale(1.1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.article-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.4;
}

/* Latest Sidebar Enhancement (Next to Hero) */
.latest-sidebar {
    background: #fff;
    /* White background for clean look */
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.latest-sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   SECTION: BĄDŹ BLIŻEJ - KLIMAT I LIFESTYLE
   Bento grid with featured 2x2 and regular tiles
   ============================================ */
.section-lifestyle-high {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-lifestyle-high .section-header-row {
    margin-bottom: 2rem;
    text-align: center;
}

.section-lifestyle-high .section-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    margin-top: -1rem;
}

/* Lifestyle Bento Grid - oryginalny układ */
.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    grid-auto-flow: dense;
}

/* Lifestyle Cards */
.lifestyle-card-premium {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.lifestyle-card-premium:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.lifestyle-card-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.lifestyle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lifestyle-card-premium:hover .lifestyle-card-image img {
    transform: scale(1.08);
}

/* Badge w lewym górnym rogu */
.lifestyle-badge-small-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Małe kafelki - tekst pod spodem */
.lifestyle-card-content {
    padding: 0.8rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-grow: 1;
    background: rgba(30, 30, 35, 0.95);
    border-radius: 0 0 12px 12px;
}

.lifestyle-card-overlay {
    display: none;
}

.lifestyle-title-small {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    color: #f0f0f0;
}

/* ITEM 1 - DUŻY KAFELEK z overlay */
.lifestyle-item-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.lifestyle-item-1 .lifestyle-card-image {
    height: 100%;
}

.lifestyle-item-1 .lifestyle-card-content {
    display: none;
}

.lifestyle-item-1 .lifestyle-badge-small-overlay {
    display: none;
}

.lifestyle-item-1 .lifestyle-card-overlay {
    display: flex;
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    pointer-events: none;
}

.lifestyle-item-1 .lifestyle-title {
    font-size: 1.6rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin: 0.5rem 0 0 0;
}

.lifestyle-item-1 .lifestyle-badge {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-start;
    text-transform: uppercase;
}

/* ITEM 5 i 9 - szersze kafelki */
.lifestyle-item-5,
.lifestyle-item-9 {
    grid-column: span 2;
}

/* Photo count badge */
.photo-count-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
    pointer-events: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.photo-count-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Lifestyle Responsive */
@media (max-width: 1200px) {
    .lifestyle-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lifestyle-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .lifestyle-item-1,
    .lifestyle-item-5,
    .lifestyle-item-9 {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .lifestyle-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .lifestyle-card-premium {
        min-height: 200px;
    }
}

/* ============================================
   SECTION: INWESTYCJE I ROZWÓJ
   Bento grid with text overlay on all tiles
   ============================================ */
.section-investments {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, hsla(210, 30%, 96%, 0.5) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    border: 1px solid rgba(100, 150, 200, 0.1);
}

.section-investments .section-header-row {
    margin-bottom: 2rem;
    text-align: center;
}

.section-investments .section-subtitle {
    color: var(--accent);
    opacity: 0.8;
    font-size: 1.1rem;
    margin-top: -1rem;
}

.section-investments .section-title {
    border-left-color: var(--accent);
    color: var(--accent);
}

/* Investments Bento Grid */
.investments-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.25rem;
}

/* Investment Cards with Text Overlay */
.investment-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.investment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(100, 150, 200, 0.25);
}

.investment-card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.investment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.investment-card:hover .investment-card-image img {
    transform: scale(1.08);
}

/* Text Overlay for Investment Cards */
.investment-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    pointer-events: none;
}

/* Badge w lewym górnym rogu obrazu */
.investment-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.investment-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Investment Card Sizes */
.investment-item-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.investment-item-1 .investment-title {
    font-size: 1.6rem;
}

.investment-item-1 .investment-card-overlay {
    padding: 2rem;
}

.investment-item-4 {
    grid-column: span 2;
}

/* Małe kafelki z tekstem pod spodem */
.investment-card-small {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
}

.investment-card-small .investment-card-image {
    aspect-ratio: 4/3;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
}

.investment-card-small .investment-card-overlay {
    display: none;
}

.investment-card-small .investment-card-content {
    padding: 0.8rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.investment-title-small {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    color: #ddd;
}

/* Investments Responsive */
@media (max-width: 1200px) {
    .investments-bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .investment-item-1 {
        grid-column: span 2;
    }

    .investment-item-4 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .investments-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .investment-item-1,
    .investment-item-4 {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .investments-bento-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .investment-card {
        min-height: 200px;
    }
}

/* ============================================
   SECTION: TURYSTYKA I WYPOCZYNEK
   Masonry-style grid with text overlay
   ============================================ */
.section-tourism {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08) 0%, rgba(46, 204, 113, 0.03) 50%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    border: 1px solid rgba(39, 174, 96, 0.12);
}

.section-tourism .section-title {
    border-left-color: #27AE60;
    color: #27AE60;
}

.section-tourism .section-header-row {
    margin-bottom: 2rem;
    text-align: center;
}

.section-tourism .section-subtitle {
    color: #27AE60;
    opacity: 0.8;
    font-size: 1.1rem;
    margin-top: -1rem;
}

/* Tourism Masonry Grid */
.tourism-masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.25rem;
}

/* Tourism Cards with Text Overlay */
.tourism-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tourism-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.2);
}

.tourism-card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.tourism-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tourism-card:hover .tourism-card-image img {
    transform: scale(1.08);
}

/* Text Overlay for Tourism Cards */
.tourism-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    pointer-events: none;
}

/* Badge w lewym górnym rogu obrazu */
.tourism-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #27AE60;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tourism-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Tourism Card Sizes */
.tourism-item-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.tourism-item-1 .tourism-title {
    font-size: 1.6rem;
}

.tourism-item-1 .tourism-card-overlay {
    padding: 2rem;
}

.tourism-item-3 {
    grid-row: span 2;
}

.tourism-item-5 {
    grid-column: span 2;
}

/* Małe kafelki z tekstem OBOK obrazu */
.tourism-card-small {
    display: flex;
    flex-direction: row;
    background: rgba(30, 40, 35, 0.95);
    border-radius: 12px;
    overflow: hidden;
}

.tourism-card-small .tourism-card-image {
    aspect-ratio: 1/1;
    width: 120px;
    min-width: 120px;
    height: auto;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    position: relative;
}

.tourism-card-small .tourism-card-overlay {
    display: none;
}

.tourism-card-small .tourism-card-content {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    flex: 1;
}

/* Badge jako tekst w polu pod obrazem */
.tourism-badge-text {
    display: inline-block;
    background: #27AE60;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 0.2rem;
}

.tourism-title-small {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    color: #f0f0f0;
}

/* Tourism Responsive */
@media (max-width: 1200px) {
    .tourism-masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tourism-item-1 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .tourism-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .tourism-item-1,
    .tourism-item-5 {
        grid-column: span 2;
    }

    .tourism-item-3 {
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .tourism-masonry-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .tourism-card {
        min-height: 200px;
    }
}

/* ============================================
   SECTION: KULTURA I SPOŁECZNOŚĆ
   Featured layout (desktop only change)
   ============================================ */
.section-culture {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    border: 1px solid rgba(155, 89, 182, 0.08);
}

.section-culture .section-title {
    border-left-color: #9B59B6;
    color: #9B59B6;
}

.section-culture .section-header-row {
    margin-bottom: 2rem;
    text-align: center;
}

.section-culture .section-subtitle {
    color: #9B59B6;
    opacity: 0.8;
    font-size: 1.1rem;
    margin-top: -1rem;
}

/* Culture Bento Grid - Desktop Only */
.culture-bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 200px);
    gap: 1.25rem;
}

/* Culture Cards */
.culture-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.culture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(155, 89, 182, 0.2);
}

.culture-card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.culture-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.culture-card:hover .culture-card-image img {
    transform: scale(1.08);
}

/* Text Overlay for Culture Cards */
.culture-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    pointer-events: none;
}

.culture-badge {
    background: #9B59B6;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.culture-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Featured Culture Card (item-1) - 2x2 */
.culture-item-1 {
    grid-column: span 1;
    grid-row: span 2;
}

.culture-item-1 .culture-title {
    font-size: 1.6rem;
}

.culture-item-1 .culture-card-overlay {
    padding: 2rem;
}

/* Małe kafelki z tekstem OBOK obrazu */
.culture-card-small {
    display: flex;
    flex-direction: row;
    background: rgba(40, 30, 50, 0.95);
    border-radius: 12px;
    overflow: hidden;
}

.culture-card-small .culture-card-image {
    aspect-ratio: 1/1;
    width: 120px;
    min-width: 120px;
    height: auto;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    position: relative;
}

.culture-card-small .culture-card-overlay {
    display: none;
}

.culture-card-small .culture-card-content {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    flex: 1;
}

/* Badge jako tekst w polu pod obrazem */
.culture-badge-text {
    display: inline-block;
    background: #9B59B6;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 0.2rem;
}

.culture-title-small {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    color: #f0f0f0;
}

/* Culture Responsive - tylko mobile stack */
@media (max-width: 768px) {
    .culture-bento-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .culture-card {
        min-height: 200px;
    }

    .culture-item-1 .culture-title {
        font-size: 1.3rem;
    }
}

.section-culture .article-category {
    background: #9B59B6;
}

/* Section: Transport */
.section-transport {
    border-top: 4px solid #E74C3C;
    padding-top: 1rem;
}

.section-transport .news-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Gallery Section */
.gallery-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

.gallery-card .article-image-wrapper {
    aspect-ratio: 1/1;
    /* Square for gallery */
}

/* Gallery Page Text Spacing */
.gallery-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: var(--text-main);
}

.gallery-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1rem;
}

.gallery-cta a {
    color: var(--primary);
    font-weight: 600;
}

.gallery-cta a:hover {
    text-decoration: underline;
}

/* Realizacje (Professional Tiles Grid) */
.realizacje-gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.realizacja-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: var(--transform-smooth), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    /* Fixed: Added for audio-indicator positioning */
}

.realizacja-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.realizacja-media {
    width: 100%;
    aspect-ratio: 1/1;
    /* Zmiana z 16/9 na 1:1 dla spójności z resztą portalu */
    overflow: hidden;
    position: relative;
}

.realizacja-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.realizacja-card:hover .realizacja-media img {
    transform: scale(1.08);
}

.realizacja-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.realizacja-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.realizacja-title a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.realizacja-title a:hover {
    color: var(--primary);
}

.realizacja-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.realizacja-fb-embed {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #f0f2f5;
}

.realizacja-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* Facebook Reels */
.fb-reels-section {
    margin: 4rem 0;
    text-align: center;
}

.reels-grid {
    display: flex;
    justify-content: flex-start;
    /* Wyrównanie do lewej */
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.reel-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 4px solid #fff;
    width: 280px;
    height: 480px;
    /* Skrócono wysokość, aby lepiej kadrować dół */
    display: flex;
    position: relative;
    background: #000;
    /* Zapobieganie problemom z zaokrąglaniem iframe w Safari */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.reel-card iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   PREMIUM WIDGETS - Chatbot & YouTube Player
   ========================================================================== */

/* Widgets Container */
#fixed-widgets-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 10003;
    /* Najwyższy - przyciski zawsze widoczne */
    align-items: flex-end;
    pointer-events: none;
    /* Kontener nie blokuje kliknięć */
}

#fixed-widgets-container>* {
    pointer-events: auto;
    /* Dzieci kontenera są klikalne */
}

/* --- YouTube Widget Premium Styles --- */
#youtube-widget-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#youtube-toggle-button {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #ff0000, #cc0000);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow:
        0 8px 25px rgba(255, 0, 0, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

#youtube-toggle-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0.8;
}

#youtube-toggle-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.4);
    animation: youtube-pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes youtube-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

#youtube-toggle-button .play-svg-icon {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

#youtube-toggle-button:hover {
    transform: scale(1.12) rotate(3deg);
    box-shadow:
        0 12px 35px rgba(255, 0, 0, 0.45),
        0 6px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

#youtube-toggle-button:hover .play-svg-icon {
    transform: scale(1.1);
}

#youtube-toggle-button:active {
    transform: scale(0.95);
}

/* YouTube Widget Container */
#youtube-widget-container {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 480px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 20px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: slideUpFade 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#youtube-widget-container.visible {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#youtube-widget-header {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#youtube-widget-header span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

#youtube-widget-header span::before {
    content: '▶';
    font-size: 0.75rem;
    padding: 4px 6px;
    background: rgba(255, 0, 0, 0.3);
    border-radius: 4px;
}

#youtube-widget-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#youtube-widget-close:hover {
    background: rgba(255, 0, 0, 0.5);
    transform: rotate(90deg);
}

#youtube-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

#youtube-player-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Chatbot Premium Styles --- */
#chat-widget-container {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    /* Button na dole, okno na górze */
    align-items: flex-end;
    /* Wyrównanie do prawej */
    z-index: 10003;
    /* Nie ustawiamy sztywnej szerokości/wysokości, kontener dopasuje się */
    pointer-events: none;
    /* Kontener przepuszcza kliknięcia */
}

/* Przywracamy klikalność dla dzieci */
#chat-widget-container>* {
    pointer-events: auto;
}

#chat-toggle-button {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #27AE60, #1e8449);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow:
        0 8px 25px rgba(39, 174, 96, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.25);
    display: block;
    padding: 0;
    position: relative;
    /* Normalne pozycjonowanie w flexie */
    overflow: visible;
    z-index: 10;
    font-size: 1.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Flex-shrink zapobiega zgniataniu */
    flex-shrink: 0;
}

#chat-toggle-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0.8;
}

#chat-toggle-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.4);
    animation: chat-pulse 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes chat-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

#chat-toggle-button .chat-svg-icon {
    display: none;
}

#chat-toggle-button:hover {
    transform: scale(1.12) rotate(-3deg);
    box-shadow:
        0 12px 35px rgba(39, 174, 96, 0.45),
        0 6px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

#chat-toggle-button:active {
    transform: scale(0.95);
}

/* Stan otwarty chatbota - ikona zmienia się na X */
#chat-toggle-button.chat-open {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    box-shadow:
        0 8px 25px rgba(231, 76, 60, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.25);
}

#chat-toggle-button.chat-open::after {
    background: rgba(231, 76, 60, 0.4);
    animation: chat-pulse-close 2s ease-out infinite;
}

@keyframes chat-pulse-close {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Ikony wewnątrz przycisku - pozycjonowane absolutnie dla płynnego przejścia */
.chat-emoji,
.chat-close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Dymek - domyślnie widoczny */
.chat-emoji {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
    font-size: 1.8rem;
    line-height: 1;
}

/* Krzyżyk - domyślnie ukryty i zmniejszony */
.chat-close-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-90deg);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    display: block;
    /* Zawsze block, ukrywamy przez opacity */
}

/* Stan otwarty - Dymek znika */
#chat-toggle-button.chat-open .chat-emoji {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(90deg);
}

/* Stan otwarty - Krzyżyk się pojawia */
#chat-toggle-button.chat-open .chat-close-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
}

/* Efekt hover dla krzyżyka */
#chat-toggle-button.chat-open:hover .chat-close-icon {
    transform: translate(-50%, -50%) scale(1.2) rotate(90deg);
}

/* Ukrywamy pseudo-elementy tekstowe jeśli jakieś są */
#chat-toggle-button.chat-open::before {
    content: '';
    display: none;
}

/* Chat Window Premium Design */
#chat-window {
    position: relative;
    margin-bottom: 0;
    /* Brak odstępu - okno bezpośrednio nad przyciskiem */
    right: auto;
    bottom: auto;
    width: 400px;
    height: 560px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    animation: slideUpFade 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#chat-window.hidden {
    display: none !important;
}

/* Chat Header */
#chat-header {
    background: linear-gradient(135deg, #27AE60 0%, #1e8449 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

#chat-header::before {
    content: '🤖';
    font-size: 1.3rem;
}

#chat-header::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -50px;
    pointer-events: none;
}

/* Chat Messages Area */
#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(180deg, #f8faf9 0%, #f0f4f2 100%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
    position: relative;
}

#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(39, 174, 96, 0.3);
    border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(39, 174, 96, 0.5);
}

/* Chat Bubbles */
.chat-bubble {
    padding: 1rem 1.25rem;
    border-radius: 18px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.55;
    position: relative;
    animation: bubbleAppear 0.3s ease-out;
}

@keyframes bubbleAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-bubble.bot {
    background: white;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.chat-bubble.user {
    background: linear-gradient(135deg, #27AE60 0%, #2ecc71 100%);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.25);
}

/* ==========================================================================
   INTERNAL PROMO / AD-STYLE BLOCKS
   ========================================================================== */

.internal-promo-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
    padding: 3rem;
    margin: 4.5rem 0;
    background: #f4f6f8;
    /* Subtelne, ciemniejsze tło */
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none !important;
    transition: all 0.5s ease;
    width: 100%;
}

.internal-promo-block:hover {
    background: #eceef1;
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.internal-promo-block .fb-card-media-wrapper {
    width: 320px;
    flex: 0 0 320px;
    height: 240px;
    /* Wyższy obrazek */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.internal-promo-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.internal-promo-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.internal-promo-title {
    font-size: 1.85rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.internal-promo-excerpt {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.internal-promo-footer {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
    .internal-promo-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 2rem;
    }

    .internal-promo-block .fb-card-media-wrapper {
        width: 100%;
        flex: 0 0 240px;
    }
}


/* Typing Indicator */
.chat-bubble.typing {
    display: flex;
    gap: 4px;
    padding: 1rem 1.5rem;
}

.chat-bubble.typing .dot {
    width: 8px;
    height: 8px;
    background: rgba(39, 174, 96, 0.6);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.chat-bubble.typing .dot:nth-child(1) {
    animation-delay: 0s;
}

.chat-bubble.typing .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-bubble.typing .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {

    0%,
    80%,
    100% {
        transform: scale(0.7);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input Area */
#chat-input-container {
    padding: 1.25rem 1.5rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

#chat-input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: 2px solid rgba(39, 174, 96, 0.2);
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: #f8faf9;
    transition: all 0.3s ease;
    outline: none;
}

#chat-input:focus {
    border-color: #27AE60;
    background: white;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

#chat-input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

#chat-send-button {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #27AE60 0%, #1e8449 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Usunięto ::after, używamy SVG */

#chat-send-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

#chat-send-button:active {
    transform: scale(0.95);
}

/* Mobile Responsive Widgets */
@media (max-width: 768px) {
    #fixed-widgets-container {
        bottom: 1.5rem;
        right: 1rem;
        gap: 1rem;
    }

    #youtube-toggle-button,
    #chat-toggle-button {
        width: 56px;
        height: 56px;
    }

    #youtube-widget-container {
        width: calc(100vw - 2rem);
        right: -1rem;
        border-radius: 16px;
    }

    #chat-window {
        position: absolute;
        width: calc(100vw - 2rem);
        height: 70vh;
        max-height: 500px;
        right: -1rem;
        bottom: calc(100% + 0.75rem);
        border-radius: 20px;
    }

    #chat-input-container {
        padding: 1rem;
    }

    #chat-input {
        padding: 0.75rem 1rem;
    }

    #chat-send-button {
        width: 44px;
        height: 44px;
    }
}

/* Sidebar Widgets (Right) */
.sidebar-widget {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    /* Reduced from 1.5rem for better fit in 250px */
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.sidebar-title {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* ==========================================================================
   SUBPAGES & ARTICLE TEMPLATES
   ========================================================================== */

/* Single Article Styling */
.premium-article {
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    margin-bottom: 3rem;
}

/* Premium Voice Player Styling */
.article-voice-player {
    display: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--h-primary), 30%, 90%, 0.4);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0 3rem;
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-voice-player.is-ready {
    display: flex;
}

.article-voice-player:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.article-voice-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}

.voice-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.voice-player-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary);
}

.voice-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
}

.voice-player-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.voice-play-button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(var(--h-primary), 80%, 40%, 0.25);
    flex-shrink: 0;
}

.voice-play-button:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(var(--h-primary), 80%, 40%, 0.35);
}

.voice-play-button svg {
    transition: transform 0.2s ease;
}

.voice-progress-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.voice-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(var(--h-secondary), 15%, 90%);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.voice-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.voice-time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.voice-speed-control {
    background: var(--bg-alt);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.voice-speed-control:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 600px) {
    .premium-article {
        padding: 1.5rem;
    }

    .voice-player-controls {
        gap: 1rem;
    }

    .voice-play-button {
        width: 48px;
        height: 48px;
    }
}

.article-headline {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--secondary);
}

.article-meta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-text a {
    color: var(--primary);
    font-weight: 600;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.featured-image-attribution {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Article Content Typography */
.premium-article p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.premium-article h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
}

.premium-article ul,
.premium-article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.premium-article li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   ARTICLES LIST PAGE (.artykuly-page) - Ultra-Wide Elite Grid
   ========================================================================== */

/* Force page to full width by overriding the sidebar grid in base.njk */
.artykuly-page .page-container.with-sidebar {
    display: block;
    /* Break the 3-column grid */
    max-width: 1600px;
    margin: 0 auto;
}

.artykuly-page .sidebar {
    display: none;
    /* Sidebars are empty but still might take space */
}

.artykuly-page .article-content {
    width: 100%;
    padding: 2rem 0;
}

.articles-page-wrapper h1 {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.articles-intro {
    text-align: center;
    margin: 0 auto 4rem;
    font-size: 1.25rem;
    max-width: 850px;
    color: var(--text-muted);
}

/* Wide Premium Search Bar */
.article-search-container {
    max-width: 800px;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 10;
}

#article-search-input {
    width: 100%;
    padding: 1.5rem 3rem 1.5rem 4.5rem;
    font-size: 1.25rem;
    border-radius: 100px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.article-search-container::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23999' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.6;
    z-index: 11;
}

/* Grid of Elite Tiles (Kafelki) */
#articles-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.articles-page h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.articles-page .articles-intro {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.article-summary {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.article-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Horizontal override for main articles list */
.articles-page .article-summary {
    flex-direction: row;
    align-items: stretch;
    min-height: auto;
    width: 100%;
}

.articles-page .summary-image-link {
    width: 320px;
    height: 300px;
    flex: 0 0 320px;
    position: relative;
    overflow: hidden;
}

.articles-page .summary-content {
    padding: 2rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.articles-page .summary-content h2 {
    min-height: 0;
    /* Usuwamy min-height z układu pionowego */
    margin-bottom: 0.8rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.articles-page #articles-list-container {
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Responsywność dla listy artykułów */
@media (max-width: 1024px) {
    .articles-page .article-summary {
        flex-direction: column;
    }

    .articles-page .summary-image-link {
        width: 100%;
        flex: 0 0 250px;
        height: 250px;
    }
}

.summary-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.article-summary:hover .summary-image-link img {
    transform: scale(1.1);
}

/* Tile Text Content */
.summary-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.summary-content h2 {
    font-size: 1.65rem;
    margin-bottom: 1.2rem;
    line-height: 1.25;
    color: var(--secondary);
    min-height: 3.8em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.summary-content .article-meta {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.source-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    padding: 4px;
    transition: all 0.3s ease;
}

.source-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.source-icon.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.source-icon.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.summary-content p:not(.article-meta) {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.summary-content .read-more {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ad Full Width inside Grid */
.ad-container-centered {
    grid-column: 1 / -1;
    margin: 3rem 0;
}

/* Badge Premium Position */
.is-szkolenie-article .article-summary::after {
    top: 1.5rem;
    right: 1.5rem;
}

@media (max-width: 1400px) {
    #articles-list-container {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
}

@media (max-width: 900px) {
    .articles-page-wrapper h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    #articles-list-container {
        grid-template-columns: 1fr;
    }

    .artykuly-page .page-container.with-sidebar {
        padding: 0 1.5rem;
    }
}

/* Realizacje Gallery Specific Adjustments */
.realizacje-gallery-section {
    padding: 2rem 0;
}

.realizacje-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-main);
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Sequential Page Layout Refinements */
.sequential-page-section {
    padding-bottom: 5rem;
    margin-bottom: 5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sequential-page-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.sequential-page-section h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin: 3.5rem 0 1.5rem;
    padding-left: 1.25rem;
    border-left: 5px solid var(--primary);
}

.sequential-page-section h3 {
    font-size: 1.6rem;
    color: var(--secondary);
    margin: 2.5rem 0 1rem;
}

/* Figure & Image Styling for Pages */
.article-content figure {
    margin: 3.5rem 0;
    clear: both;
}

.article-content figure img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Override for gallery cards inside article-content (gallery page) */
.article-content .gallery-grid .article-image-wrapper img,
.article-content .news-grid .article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.article-content figcaption {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1.25rem;
    font-style: italic;
    line-height: 1.5;
}

/* Google Maps embeds - taki sam styl jak featured-image */
.google-maps-embed {
    width: 100%;
    margin: 2rem 0;
}

.article-content .google-maps-embed img {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

/* Place Gallery - galeria zdjęć miejsca */
.place-gallery {
    width: 100%;
    margin: 3rem 0;
}

.place-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.place-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.place-gallery-grid img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.place-gallery figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    line-height: 1.5;
    margin-top: 0.75rem;
}

/* Photo count icon - ikona liczby zdjęć na kafelkach */
.photo-count-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

.photo-count-icon:hover {
    background: rgba(var(--h-primary), 80%, 40%, 0.9);
    transform: scale(1.05);
}

.photo-count-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .place-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0.75rem;
    }

    .photo-count-icon {
        bottom: 0.75rem;
        right: 0.75rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}


.trigger-container {
    text-align: center;
    padding: 3rem 0;
}

/* Contact Page & Layout Fixes */
.contact-page .article-content,
.kontakt-page .article-content {
    /* Ustawienia dla treści wewnątrz gridu */
    width: 100%;
}

.contact-page h1,
.kontakt-page h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-logo-wrapper {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
}

.contact-logo-wrapper img {
    max-width: 450px;
    width: 100%;
    height: auto;
}

.contact-form {
    background: #fff;
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    margin: 3rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.1rem 1.4rem;
    border: 2px solid #edeff2;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    background: #fcfdfe;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 5px hsla(var(--h-primary), var(--s-primary), var(--l-primary), 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

/* Checkbox Consent Styling */
.form-group label[for="consent"] {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
}

.contact-page h2,
.kontakt-page h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.contact-page p strong,
.kontakt-page p strong {
    display: block;
    font-size: 1.15rem;
    color: var(--secondary);
    margin-top: 2rem;
    font-family: 'Outfit', sans-serif;
}

.contact-page p:has(strong)+p,
.kontakt-page p:has(strong)+p {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-light);
    color: var(--text-muted);
}

/* ==========================================================================
   ELITE BUTTONS & CTA (Ultra-Premium System)
   ========================================================================== */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Cinematic Shine Effect */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Secondary / Glassmorphism Button */
.cta-button-outline {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    box-shadow: none;
}

.cta-button-outline:hover {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Small / Compact Variant */
.cta-button-small {
    padding: 0.8rem 2.2rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-radius: 50px;
}

/* Unique Footer CTA Style (Light Theme) */
.cta-footer-sales {
    background: #fff;
    color: var(--secondary) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-footer-sales:hover {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Card 'Read More' Premium Interaction */
.read-more,
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    padding-bottom: 2px;
}

.read-more::after,
.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.read-more:hover,
.read-more-link:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

.read-more:hover::after,
.read-more-link:hover::after {
    width: 100%;
}

/* Update Contact Form Button to use elite structure */
.contact-form .cta-button {
    width: 100%;
    margin-top: 1.5rem;
}

/* Responsive Subpages */
@media (max-width: 900px) {
    .article-summary {
        flex-direction: column;
    }

    .summary-image-link {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }

    .realizacje-gallery-container {
        grid-template-columns: 1fr;
    }

    .article-headline {
        font-size: 2rem;
    }
}

/* Tag Page Specifics */
.tag-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.back-to-all-articles {
    margin-top: 3rem;
    text-align: center;
}

.sidebar-news-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-news-item {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    gap: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-news-thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-alt);
}

.sidebar-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-news-item:hover .sidebar-news-thumb img {
    transform: scale(1.1);
}

/* Specyficzne skalowanie embedów FB dla małych miniatur w sidebarze */
.sidebar-news-thumb .fb-card-media-wrapper iframe {
    height: 500px !important;
    transform: translateX(-50%) scale(0.22);
    /* Drastyczne zmniejszenie dla 70px */
    transform-origin: bottom center;
}

.sidebar-news-item:hover .sidebar-news-thumb .fb-card-media-wrapper iframe {
    transform: translateX(-50%) scale(0.26);
    /* Subtelny hover dla miniatury */
}

/* Specyficzne skalowanie embedów FB dla dużych kafelków na liście artykułów */
.summary-image-link .fb-card-media-wrapper iframe {
    height: 500px !important;
    transform: translateX(-50%) scale(1.2);
    /* Większa skala dla szerszych kafelków (min 400px) */
    transform-origin: bottom center;
}

.sidebar-news-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-news-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.2rem 0;
    line-height: 1.3;
    color: var(--secondary);
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-item:hover h4 {
    color: var(--primary);
}

.news-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Base Mobile Adjustments */
@media (max-width: 768px) {
    .site-header {
        height: 70px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .realizacje-gallery-container {
        grid-template-columns: 1fr;
    }

    .realizacja-card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .realizacja-media {
        height: 200px;
    }

    .section-investments,
    .section-tourism,
    .section-transport .news-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==========================================================================
   INTERACTIVE WIDGETS (Elite UI)
   ========================================================================== */

#fixed-widgets-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 10000;
}

#chat-toggle-button,
#youtube-toggle-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

#chat-toggle-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

#youtube-toggle-button {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

#chat-toggle-button:hover,
#youtube-toggle-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

#chat-window {
    width: 380px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    z-index: 10001;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#chat-header {
    background: var(--secondary);
    color: #fff;
    padding: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-input-container {
    padding: 1.2rem;
    display: flex;
    gap: 0.8rem;
    background: #f9fafb;
}

#chat-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    outline: none;
}

#chat-send-button {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

#chat-send-button:hover {
    background: var(--primary-dark);
}

/* Chat Messages Styling */
.chat-message {
    margin-bottom: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    animation: messageScale 0.3s ease-out;
}

@keyframes messageScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.user-message {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(var(--h-primary), 80%, 40%, 0.2);
}

.bot-message {
    background: #f0f2f5;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bot-message a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

@media (max-width: 768px) {
    #chat-window {
        width: 320px;
        right: -1rem;
    }
}

/* Professional Footer Styles */
.site-footer {
    position: relative;
    z-index: 500;
    background: #1a1a1a;
    color: #fff;
    padding: 6rem 0 3rem;
    font-size: 0.95rem;
    margin-top: 0;
    border-top: 5px solid var(--primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-footer.state-hidden {
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    border-top-width: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.site-footer.state-full-static {
    max-height: none;
    opacity: 1;
    pointer-events: auto;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-core-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.footer-navigation a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.footer-navigation a:hover {
    color: var(--primary);
}

.site-credit a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* Footer Partners & Logo */
.footer-partners {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-partners h4 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.partner-logos-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Partner logos always colored and visible */
.partner-logos-placeholder img {
    width: 150px !important;
    height: 50px !important;
    object-fit: contain;
    opacity: 1;
    /* Always full opacity */
    filter: none;
    /* No grayscale */
    transition: transform 0.3s ease;
}

.partner-logos-placeholder img:hover {
    transform: scale(1.05);
}

.partner-separator-line {
    height: 30px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.partner-placeholder-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-style: italic;
}

/* Footer CTA */
.footer-sales-cta {
    background: linear-gradient(135deg, var(--secondary), #2a1a10);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-sales-cta h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-sales-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.cta-button-small.cta-footer-sales {
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-button-small.cta-footer-sales:hover {
    transform: translateY(-3px);
    background: var(--primary-light);
}

/* Social Share (Premium Refinements) */
.social-share-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.social-share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--secondary);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
}

.social-share-link:hover {
    transform: translateY(-8px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: #fff !important;
}

.social-share-link.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #0d59c1);
    border-color: #1877f2;
}

.social-share-link.twitter:hover {
    background: linear-gradient(135deg, #000, #333);
    border-color: #000;
}

.social-share-link.linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #005582);
    border-color: #0077b5;
}

.social-share-link.email:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
}

.social-share-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
    pointer-events: none;
}

/* Video Container (Responsive YouTube) */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    margin: 2.5rem 0;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Social Follow (Sidebar/Footer) */
.social-follow-list {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.social-follow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-follow-link:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.social-follow-link svg {
    width: 18px;
    height: 18px;
}

.social-share-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.social-share-bottom h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.article-more-in-topic {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-more-in-topic-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

.article-more-in-topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-more-in-topic-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.article-more-in-topic-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-more-in-topic-list a {
    font-weight: 600;
    color: var(--secondary);
    transition: color var(--transition-fast);
}

.article-more-in-topic-list a:hover {
    color: var(--primary);
}

.article-more-in-topic-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Pagination Professional Styling */
.pagination-container {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.ad-container-centered {
    margin: 3rem 0;
    text-align: center;
    padding: 1rem;
    background: #fafafa;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.author-signature {
    text-align: right;
    margin-top: 30px;
    font-style: italic;
    font-size: 0.9em;
    color: #555;
}


.image-attribution {
    font-size: 0.75em;
    text-align: right;
    color: #777;
    margin-top: -5px;
    margin-bottom: 15px;
    padding-right: 10px;
}

/* Facebook Photo Embeds */


.fb-photo-embed-wrapper iframe {
    max-width: 100%;
    border: none;
    overflow: hidden;
    display: inline-block;
    background: transparent;
}

/* Facebook Photo Embeds Standardized */
.fb-photo-embed-wrapper {
    margin: 2.5em auto;
    padding-top: 1.5em;
    border-top: 1px solid #eee;
    text-align: center;
    max-width: 750px;
    /* Dostosowanie do wymiarów zlecenia */
    clear: both;
}

.fb-photo-embed-wrapper iframe {
    max-width: 100%;
    border: none;
    overflow: hidden;
    display: inline-block;
    background: transparent;
}

/* Ostateczny styl dla figcaption pod embedami FB */
.fb-photo-embed-wrapper+figcaption {
    text-align: center !important;
    font-size: 1.4em !important;
    /* Większa czcionka */
    margin-top: -25px !important;
    /* Jeszcze bliżej (ujemny margines niweluje puste pole) */
    margin-bottom: 3em !important;
    color: #333 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* Link do oryginalnego posta Facebook - Styl CTA */
.fb-original-link-container {
    text-align: center;
    margin: 3em 0;
    padding: 2em;
    border: 1px dashed hsla(var(--h-primary), var(--s-primary), var(--l-primary), 0.3);
    border-radius: 16px;
    background: linear-gradient(135deg, hsla(var(--h-primary), var(--s-primary), var(--l-primary), 0.05) 0%, hsla(var(--h-primary), var(--s-primary), var(--l-primary), 0.1) 100%);
}

.fb-original-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 25px hsla(var(--h-primary), var(--s-primary), var(--l-primary), 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Cinematic Shine Effect for FB Link */
.fb-original-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.fb-original-link:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, hsl(var(--h-primary), var(--s-primary), 30%) 100%);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px hsla(var(--h-primary), var(--s-primary), var(--l-primary), 0.35);
}

.fb-original-link:hover::before {
    left: 100%;
}

.fb-original-link:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 10px 20px hsla(var(--h-primary), var(--s-primary), var(--l-primary), 0.2);
}

/* Table of Contents & Anchor Scroll Fix */
h2[id] {
    scroll-margin-top: 120px;
}

.toc-list {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border-left: 6px solid var(--primary);
    box-shadow: var(--shadow-soft);
}

.toc-list h2 {
    margin-top: 0 !important;
    font-size: 1.4rem !important;
    margin-bottom: 1.2rem !important;
    color: var(--secondary);
    border: none !important;
    padding: 0 !important;
}

.toc-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toc-links li {
    padding-left: 1.8rem;
    position: relative;
}

.toc-links li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

.toc-links a {
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-fast);
}

.toc-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.article-figcaption {
    margin-top: 5px;
    margin-bottom: 35px;
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES - Interia-Inspired Layout
   ========================================================================== */

/* ==========================================================================
   MOBILE NAVIGATION - Professional Hamburger Menu (≤768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* --- Prevent Horizontal Overflow (Mobile Only) --- */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container,
    .page-container,
    .article-content,
    .homepage-content-wrapper {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Header Compact - Floating */
    body {
        padding-top: 60px;
        /* Kompensacja fixed header */
    }

    .site-header {
        height: 60px;
        padding: 0 1rem;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 1000;
        transition: transform 0.3s cubic-bezier(0.215, 0.610, 0.355, 1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .site-header.header-hidden {
        transform: translateY(-100%);
    }

    .site-header .container {
        padding: 0 0.5rem;
    }

    .logo img {
        max-height: 45px !important;
    }

    /* Hide Desktop Navigation */
    .main-navigation {
        display: none;
    }

    /* Mobile Header Controls */
    .mobile-header-controls {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .mobile-coffee-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: #FFDD00;
        color: #000;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(255, 221, 0, 0.3);
        transition: transform 0.3s ease;
    }

    .mobile-coffee-btn:active {
        transform: scale(0.9);
    }

    /* Hamburger Button */
    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        gap: 5px;
        z-index: 3001;
    }

    .mobile-nav-toggle .line {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--secondary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation - Open State */
    .mobile-nav-toggle[aria-expanded="true"] .line1 {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-nav-toggle[aria-expanded="true"] .line2 {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-nav-toggle[aria-expanded="true"] .line3 {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 2999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menu - Show navigation as sliding panel when menu is open */
    body.mobile-nav-open .main-navigation {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 3000;
        overflow-y: auto;
        padding: 1rem 1.5rem 2rem;
        animation: slideInRight 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }

    body.mobile-nav-open .main-navigation .nav-links-list {
        flex-direction: column;
        gap: 0;
    }

    body.mobile-nav-open .main-navigation .nav-links-list li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.mobile-nav-open .main-navigation .nav-links-list a {
        display: block;
        padding: 0.1rem 0;
        font-family: 'Outfit', sans-serif;
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--secondary);
        transition: all 0.2s ease;
    }

    body.mobile-nav-open .main-navigation .nav-links-list a:hover {
        color: var(--primary);
        padding-left: 0.5rem;
    }

    /* Submenu in mobile */
    body.mobile-nav-open .main-navigation .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 1rem;
        background: transparent;
        box-shadow: none;
    }

    body.mobile-nav-open .main-navigation .submenu a {
        font-size: 0.85rem;
        font-weight: 500;
        padding: 0.5rem 0;
    }
}

/* Show mobile controls only on mobile */
@media (min-width: 769px) {
    .mobile-header-controls {
        display: none;
    }
}

/* ==========================================================================
   MOBILE HERO SECTION - Interia-Style Layout (≤768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* Homepage Head - Stack Vertically */
    .homepage-head-section {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0.5rem;
        height: auto;
        min-height: 0;
    }

    .hero-left-wrapper {
        gap: 1rem;
    }

    /* Main Hero Article */
    .hero-main-article {
        border-radius: var(--radius-md);
        aspect-ratio: 16/10;
    }

    .hero-overlay {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin: 0.3rem 0 0.5rem;
    }

    .hero-excerpt {
        font-size: 0.9rem;
        display: none;
    }

    .article-category {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }

    /* Sub-tiles in 1 column */
    .hero-sub-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-sub-tile {
        aspect-ratio: 16/9;
    }

    .hero-sub-overlay h3 {
        font-size: 0.95rem;
    }

    /* Latest News Sidebar - Mobile List Style (Like Interia) */
    .latest-news-column,
    .latest-sidebar {
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 0;
    }

    .latest-sidebar h3,
    .sidebar-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .sidebar-news-item {
        flex: 0 0 auto;
        min-height: auto;
        gap: 0.75rem;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .sidebar-news-thumb {
        flex: 0 0 80px;
        height: 55px;
        border-radius: 6px;
    }

    .sidebar-news-item h4 {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .news-date {
        font-size: 0.65rem;
    }
}

/* ==========================================================================
   MOBILE NEWS GRIDS - Single Column Layout (≤768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* All News Grids - Single Column */
    .news-grid,
    .gallery-grid,
    .realizacje-gallery-container {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Compact Article Cards */
    .article-card {
        border-radius: var(--radius-sm);
    }

    .article-image-wrapper {
        aspect-ratio: 16/10;
    }

    .article-info {
        padding: 0.75rem;
    }

    .article-title {
        font-size: 1rem;
        line-height: 1.35;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.4rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        padding-left: 0.75rem;
        border-left-width: 4px;
    }

    /* Section Investments */
    .section-investments {
        padding: 1.25rem;
        margin: 1.5rem 0;
        border-radius: var(--radius-sm);
    }

    /* Realizacje Cards */
    .realizacja-card {
        border-radius: var(--radius-sm);
    }

    .realizacja-media {
        aspect-ratio: 16/10;
    }

    .realizacja-content {
        padding: 1rem;
    }

    .realizacja-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .realizacja-excerpt {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    /* Mobile Facebook Embed Scaling for News Grid */
    .news-grid .article-card .fb-card-media-wrapper {
        aspect-ratio: 16/10;
    }

    .news-grid .article-card .fb-card-media-wrapper iframe {
        height: 500px !important;
        transform: translateX(-50%) scale(0.5);
        transform-origin: bottom center;
    }

    .news-grid .article-card:hover .fb-card-media-wrapper iframe {
        transform: translateX(-50%) scale(0.55);
    }

    /* Realizacje FB Embeds */
    .realizacja-media .fb-card-media-wrapper {
        aspect-ratio: 16/10;
    }

    .realizacja-media .fb-card-media-wrapper iframe {
        height: 500px !important;
        transform: translateX(-50%) scale(0.5);
        transform-origin: bottom center;
    }
}

/* ==========================================================================
   MOBILE COMPACT LIST VIEW (≤480px) - Interia Style
   ========================================================================== */

@media (max-width: 480px) {

    /* Page Container */
    .page-container {
        padding-top: 70px;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Very Compact Header */
    .site-header {
        height: 55px;
    }

    .logo img {
        max-height: 38px !important;
    }

    /* Hero Adjustments */
    .homepage-head-section {
        padding: 0 0.25rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-overlay {
        padding: 1rem;
    }

    /* Compact Article Cards */
    .article-card {
        flex-direction: row;
        height: auto;
    }

    .article-card .article-image-wrapper {
        flex: 0 0 120px;
        aspect-ratio: 1/1;
        border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    }

    .article-card .article-info {
        flex: 1;
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .article-card .article-title {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .article-card .article-excerpt {
        display: none;
    }

    .article-card .article-category {
        position: static;
        margin-bottom: 0.3rem;
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
        width: fit-content;
    }

    /* Gallery grid - Keep 2 columns */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .gallery-grid .article-card {
        flex-direction: column;
    }

    .gallery-grid .article-image-wrapper {
        flex: 0 0 auto;
        aspect-ratio: 1/1;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }

    /* Section Titles Very Compact */
    .section-title {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
}

/* ==========================================================================
   MOBILE FACEBOOK REELS - Horizontal Scroll (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
    .fb-reels-section {
        margin: 2rem 0;
        padding: 0 0.5rem;
    }

    .reels-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0.5rem 0;
        margin: 0 -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .reels-grid::-webkit-scrollbar {
        display: none;
    }

    .reel-card {
        flex: 0 0 auto;
        width: 200px;
        height: 360px;
        scroll-snap-align: start;
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 480px) {
    .reel-card {
        width: 180px;
        height: 320px;
    }
}

/* ==========================================================================
   MOBILE SIDEBARS - Stacked Below Content (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
    .page-container.with-sidebar {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .sidebar,
    .left-sidebar,
    .right-sidebar {
        position: static;
        width: 100%;
        display: block;
        order: 10;
    }

    .sidebar-widget {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    /* Hide left sidebar on mobile for cleaner look */
    .left-sidebar {
        display: none;
    }

    /* Show right sidebar at bottom */
    .right-sidebar {
        display: block;
        margin-top: 2rem;
    }
}

/* ==========================================================================
   MOBILE FOOTER - Stacked Layout (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-navigation a {
        font-size: 0.75rem;
    }

    .footer-sales-cta {
        padding: 1.5rem;
        margin: 1rem auto 2rem;
    }

    .footer-sales-cta h4 {
        font-size: 1.2rem;
    }

    .partner-logos-placeholder {
        gap: 1rem;
    }

    .partner-logos-placeholder img {
        width: 100px !important;
        height: 35px !important;
    }

    .partner-separator-line {
        display: none;
    }
}

/* ==========================================================================
   MOBILE ARTICLE PAGES (≤768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* Premium Article */
    .premium-article {
        padding: 1.25rem;
        border-radius: var(--radius-sm);
        margin-bottom: 1.5rem;
    }

    .article-headline {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.25;
    }

    .article-meta-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .premium-article p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .premium-article h2 {
        font-size: 1.4rem;
        margin: 2rem 0 0.75rem;
    }

    /* Article Content Figures */
    .article-content figure {
        margin: 2rem 0;
    }

    .article-content figure img {
        border-radius: var(--radius-sm);
    }

    .article-content figcaption {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }

    /* Table of Contents */
    .toc-list {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .toc-list h2 {
        font-size: 1.2rem !important;
    }

    /* Social Share */
    .social-share-list {
        gap: 0.75rem;
    }

    .social-share-link {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .social-share-link svg {
        width: 18px;
        height: 18px;
    }

    /* Facebook Embed Wrappers */
    .fb-photo-embed-wrapper {
        max-width: 100%;
        margin: 1.5rem 0;
        padding-top: 1rem;
    }

    .fb-original-link-container {
        padding: 1.25rem;
        margin: 2rem 0;
    }

    .fb-original-link {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   MOBILE ARTICLES LIST PAGE (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
    .articles-page-wrapper h1 {
        font-size: 2rem;
    }

    .articles-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .article-search-container {
        margin-bottom: 2rem;
    }

    #article-search-input {
        padding: 1rem 1.5rem 1rem 3rem;
        font-size: 1rem;
    }

    .article-search-container::before {
        left: 1rem;
        width: 20px;
        height: 20px;
    }

    /* List Style Cards */
    .articles-page .article-summary {
        flex-direction: column;
    }

    .articles-page .summary-image-link {
        width: 100%;
        flex: 0 0 180px;
        height: 180px;
    }

    .articles-page .summary-content {
        padding: 1.25rem;
    }

    .summary-content h2 {
        font-size: 1.2rem;
        min-height: auto;
    }

    .summary-content p:not(.article-meta) {
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   MOBILE CONTACT FORM (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }

    .contact-logo-wrapper {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .contact-logo-wrapper img {
        max-width: 280px;
    }
}

/* ==========================================================================
   MOBILE CTA BUTTONS (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }

    .cta-button-small {
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
    }

    .gallery-footer {
        margin-top: 2rem !important;
    }
}

/* ==========================================================================
   MOBILE SEQUENTIAL PAGES (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
    .sequential-page-section {
        padding-bottom: 3rem;
        margin-bottom: 3rem;
    }

    .sequential-page-section h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .sequential-page-section h2 {
        font-size: 1.5rem;
        margin: 2.5rem 0 1rem;
        padding-left: 1rem;
        border-left-width: 4px;
    }

    .sequential-page-section h3 {
        font-size: 1.25rem;
        margin: 2rem 0 0.75rem;
    }
}

/* ==========================================================================
   MINIMUM VIEWPORT SUPPORT (≤375px)
   ========================================================================== */

@media (max-width: 375px) {
    .container {
        padding: 0 0.5rem;
    }

    .page-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .article-card .article-image-wrapper {
        flex: 0 0 100px;
    }

    .article-card .article-title {
        font-size: 0.85rem;
    }

    /* Very compact sidebar items */
    .sidebar-news-thumb {
        flex: 0 0 60px;
        height: 45px;
    }

    .sidebar-news-item h4 {
        font-size: 0.8rem;
    }
}

/* Facebook Reel/Video Embed - Vertical Format (9:16) */
.fb-reel-embed-wrapper {
    margin-bottom: 2em;
    border-top: 1px solid #eee;
    padding-top: 1.5em;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fb-reel-embed-wrapper iframe {
    width: 360px;
    height: 640px;
    border: none;
    overflow: hidden;
}

.fb-reel-embed-wrapper .article-figcaption {
    margin-top: 1rem;
    text-align: center;
}

/* Google Maps Embed Styling - podobnie do featured-image */

/* ===============================================
   Lightbox Styles - Consolidated (Desktop)
   =============================================== */
@keyframes lightbox-zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: transparent;
    pointer-events: auto;
    justify-content: center;
    align-items: center;
}

.lightbox-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 4px solid #fff;
    animation: lightbox-zoom 0.3s ease;
}

.lightbox-content {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    background: #000;
}

.lightbox-overlay-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lightbox-close {
    pointer-events: auto;
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.5);
    padding: 0px 10px 5px 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100002;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-footer {
    pointer-events: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 30px 20px 15px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#lightbox-caption {
    font-size: 16px;
    font-weight: 500;
}

#lightbox-attribution {
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
}

/* Gallery Page Specific Styles */
.gallery-embed-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.embed-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.embed-item h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.google-maps-embed {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* ===============================================
   Mobile Lightbox Overrides - MUST be at the end
   =============================================== */

/* Mobile Portrait - pełna szerokość */
@media only screen and (max-width: 768px) and (orientation: portrait) {
    .lightbox-modal {
        background-color: rgba(0, 0, 0, 0.95) !important;
        padding: 0 !important;
    }

    .lightbox-wrapper {
        max-width: 100vw !important;
        max-height: 85vh !important;
        width: 100vw !important;
        height: auto !important;
        border-radius: 0 !important;
        background: #000 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .lightbox-content {
        max-height: 80vh !important;
        max-width: 100vw !important;
        width: 100vw !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 0 !important;
    }

    .lightbox-close {
        top: 10px !important;
        right: 10px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 28px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        display: flex !important;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        color: #fff !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }

    .lightbox-prev {
        left: 8px !important;
    }

    .lightbox-next {
        right: 8px !important;
    }

    /* Ukryj alty/caption w mobile */
    .lightbox-footer {
        display: none !important;
    }

    .lightbox-overlay-controls::after {
        display: none !important;
    }
}

/* Mobile Landscape - PEŁNY EKRAN */
@media only screen and (max-width: 920px) and (orientation: landscape) {
    .lightbox-modal {
        background-color: #000 !important;
        padding: 0 !important;
        inset: 0 !important;
    }

    .lightbox-wrapper {
        position: fixed !important;
        inset: 0 !important;
        max-width: none !important;
        max-height: none !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        background: #000 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .lightbox-content {
        position: absolute !important;
        inset: 0 !important;
        max-height: none !important;
        max-width: none !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 0 !important;
    }

    .lightbox-close {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 28px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        display: flex !important;
        z-index: 100010 !important;
    }

    .lightbox-prev,
    .lightbox-next {
        position: fixed !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        color: #fff !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        z-index: 100010 !important;
    }

    .lightbox-prev {
        left: 10px !important;
    }

    .lightbox-next {
        right: 10px !important;
    }

    .lightbox-footer,
    .lightbox-overlay-controls::after {
        display: none !important;
    }
}

/* Homepage Feature Embeds */
.section-footer-embed {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1rem 0;
}

.section-footer-embed iframe {
    height: 410px;
    width: auto;
    aspect-ratio: 560 / 315;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}