@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Baloo+2:wght@400;500;600;700;800&display=swap');

/* =============================
   THEME: Colors + Layout Tokens
   ============================= */
:root{
    /* Palette – from illustrations */
    --bear-gold: #C9975A;
    --bear-gold-light: #E7BD88;
    --bear-brown: #8C5E3C;
    --bear-brown-dark: #6B4A32;
    --bear-text: #4A3F35;
    --bear-text-muted: #665C54;
    --bear-text-light: #7A6E64;

    --sage-accent: #8BB66B;
    --sage-light: #E8F0E0;
    --hill-green-dark: #74A74F;
    --hill-green-light: #B9D2B0;

    --paper-warm: #FFFCF7;
    --cream-ground: #F7F1E6;
    --sky-pale: #CDE8F0;
    --card-white: #FFFFFF;

    --scrollbar-thumb: #D4C8BE;

    /* Menu colors */
    --menu-orange: #F2AE4C;
    --menu-red: #DD6B4F;
    --menu-green: #a8b856;
    --menu-border: rgba(80, 55, 40, 0.3);

    /* Aliases */
    --bg-main: var(--paper-warm);
    --text-dark: var(--bear-text);

    /* Layout */
    --container: 1280px;
    --gutter: clamp(16px, 3vw, 30px);
    --space-1: clamp(10px, 1.4vw, 16px);
    --space-2: clamp(16px, 2vw, 22px);
    --space-3: clamp(22px, 3vw, 34px);

    /* UI */
    --radius-xl: 32px;
    --radius-btn: 50px;

    /* Shadows */
    --shadow-soft: 0 10px 40px -10px rgba(74, 63, 53, 0.06);
    --shadow-float: 0 20px 60px -15px rgba(139, 182, 107, 0.18);

    /* Motion */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =============================
   Base Reset + Rendering
   ============================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img{ max-width: 100%; height: auto; }

a{ text-decoration: none !important; transition: var(--transition); }
ul, ol{ list-style: none !important; padding: 0 !important; margin: 0 !important; }

::selection{ background: var(--bear-gold); color: #fff; }

/* Scrollbar – subtle */
::-webkit-scrollbar{ width: 8px; }
::-webkit-scrollbar-track{ background: var(--paper-warm); }
::-webkit-scrollbar-thumb{ background: var(--scrollbar-thumb); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover{ background: var(--bear-gold); }

/* Typography – headings */
h1, h2, h3, h4, h5, h6,
.h1, .hero-title, .logo-area, .sidebar-header, .mobile-nav-title{
    font-family: 'Baloo 2', sans-serif !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
}

/* =============================
   Page Background + Body
   ============================= */
body{
    font-family: 'Quicksand', sans-serif !important;
    background-color: var(--bg-main) !important;
    background-image:
        linear-gradient(to bottom,
            rgba(255,255,255,0.02) 0%,
            rgba(253,252,248,0.92) 700px,
            rgba(253,252,248,0.5) 100%),
        url('images/bg.jpg') !important;
    background-position: top top, center center;
    background-repeat: repeat-x;
    color: var(--text-dark) !important;
    line-height: 1.7 !important;
    font-size: 16px;
    margin: 0;
    position: relative;
}

/* Subtle grain overlay (above backgrounds, below content) */
body::before{
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Keep subtle noise above backgrounds, below content */
.eco-premium > *{ position: relative; z-index: 1; }

/* Containers (shared) */
.top-bar-container,
.hero-container,
.app-wrapper{
    max-width: var(--container);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* --- 2. GLOBALNY RESET & CZYSTE TŁO --- */
/* DOM: body → header, hero, .app-wrapper (tu kończy treść/menu), .clearfix, .clear, #footer (tu zaczyna tło stopki). */
html { scroll-behavior: smooth; }

body {
    font-family: 'Quicksand', sans-serif !important;
    background-color: var(--bg-main) !important;
    background-image:
        linear-gradient(to bottom, 
        rgba(255,255,255,0.02) 0%, rgba(253,252,248,0.92) 700px, rgba(253,252,248,0.5) 100%),
        url('images/bg.jpg') !important;
    background-position: top top, center center;
    background-repeat: repeat-x;
    color: var(--text-dark) !important;
    line-height: 1.7 !important;
    font-size: 16px;
    margin: 0;
    position: relative;
}

/* Dodajemy ziarno na wierzch */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.6; /* Bardzo delikatne */
}


/* nagłówki */
h1,h2,h3,h4,h5,h6,.h1,.hero-title,.logo-area,.sidebar-header,.mobile-nav-title{
    font-family: 'Baloo 2', sans-serif !important;
    font-weight: 700 !important;
  }

a { text-decoration: none !important; transition: var(--transition); }
ul, ol { list-style: none !important; padding: 0 !important; margin: 0 !important; }

/* Selekcja tekstu w kolorze motywu */
::selection {
    background: var(--bear-gold);
    color: #fff;
}

/* Scrollbar - minimalistyczny */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper-warm); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--bear-gold); }

.breadcrumb {
    background: none !important;
    margin-bottom:20px !important;
}

/* --- 3. HEADER --- */
.top-bar { padding: 22px 0; background: transparent; }
.top-bar-container {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
    display: flex; justify-content: space-between; align-items: center;
}

.logo-area { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.logo-leaf { color: var(--sage-accent); transform: rotate(-15deg); }

/* Przycisk nagĹĂłwka - Minimalistyczny */
.btn-nature {
    background: var(--bear-gold);
    color: #fff !important; padding: 12px 30px; border-radius: var(--radius-btn);
    font-weight: 700; box-shadow: 0 5px 15px rgba(201, 151, 90, 0.35);
}
.btn-nature:hover {
    background: var(--bear-gold-light); transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 151, 90, 0.4);
}

/* --- 4. HERO SECTION (Wizytówka) --- */
.hero-module { padding: 50px 0 60px; }
.hero-container {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.hero-subtitle {
    display: inline-block; 
    color: var(--bear-gold); 
    font-weight: 700; font-size: 18px; letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(201, 151, 90, 0.25);
    padding-bottom: 5px;
}

.hero-title { font-size: 3.5rem; line-height: 1.15; margin-bottom: 30px; letter-spacing: -0.02em; }
.hero-title span { color: var(--bear-gold); position: relative; }
/* Ozdobny "mazej" pod tekstem */
.hero-title span::after {
    content: ''; position: absolute; bottom: 8px; left: -5px; width: 105%; height: 10px;
    background: var(--sage-light); z-index: -1; border-radius: 5px; opacity: 1;
}

/* Opis w sekcji hero */
.hero-desc {
    font-size: 1.15rem;
    color: var(--bear-text-light);
    line-height: 1.9;
    max-width: 480px;
}

/* Obraz w hero – blob za zdjęciem, floating, cień */
.hero-visual {
    position: relative;
    isolation: isolate;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    animation: float 5s ease-in-out infinite;
}

/* Obrazek - Czysty Blob bez ramek (gdy używany) */
.blob-image-wrapper { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1/1; margin: 0 auto; }
.blob-bg {
    position: absolute; inset: 0; background: var(--sage-light);
    border-radius: 48% 52% 68% 32% / 42% 28% 72% 58%;
    animation: morph 12s ease-in-out infinite; opacity: 0.6;
}
.blob-img {
    position: absolute; inset: 20px; background: #fff;
    border-radius: 48% 52% 68% 32% / 42% 28% 72% 58%;
    overflow: hidden; 
    box-shadow: var(--shadow-soft); /* MiÄkki cieĹ */
    animation: morph 12s ease-in-out infinite reverse;
}
.blob-img img { width: 100%; height: 100%; object-fit: cover; }
@keyframes morph { 0%, 100% { border-radius: 48% 52% 68% 32% / 42% 28% 72% 58%; } 50% { border-radius: 32% 68% 38% 62% / 63% 42% 58% 37%; } }

/* Delikatne unoszenie (floating) */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- 5. UKŁAD KART (Lewitacja) --- */
.eco-premium .app-wrapper {
    position: relative;
    z-index: 2; /* nad tłem stopki i ::before – menu i treść nie są zasłaniane */
}
.app-wrapper {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
    display: grid; grid-template-columns: 280px 1fr; gap: 50px;
}
.sidebar-card ul li {
    margin-bottom: 10px; /* delikatne rozdzielenie pozycji menu */
}
.sidebar-card ul li:last-child { margin-bottom: 0; }

.sidebar-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bear-brown);
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    background: rgba(201, 151, 90, 0.12);
    border-radius: 10px;
}

/* Pozycje menu – kształt „bannera” z wcięciem + kolory jak na wzorze */
.sidebar-card .sidebar-nav > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-weight: 700;
    color: #fff !important;
    text-align: center;
    transition: var(--transition);
    transform: scale(1);
    border: 1px solid var(--menu-border);
    border-radius: 14px 6px 14px 6px;
    box-shadow: 0 2px 6px rgba(74, 63, 53, 0.06);
    /* lekki „wcięty” kształt */
    clip-path: polygon(0 0, 100% 0, 98% 50%, 100% 100%, 0 100%, 2% 50%);
}
/* Kolory naprzemiennie: pomarańcz → czerwony → zielony */
.sidebar-card .sidebar-nav > ul > li:nth-child(3n+1) > a { background: var(--menu-orange); }
.sidebar-card .sidebar-nav > ul > li:nth-child(3n+2) > a {
    background: var(--menu-red);
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 1.5px, transparent 1.5px),
                      radial-gradient(circle at 65% 35%, rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
    background-size: 20px 20px, 24px 24px;
}
.sidebar-card .sidebar-nav > ul > li:nth-child(3n) > a { background: var(--menu-green); }

.sidebar-card .sidebar-nav > ul > li > a:hover,
.sidebar-card .sidebar-nav > ul > li.active > a {
    filter: brightness(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: scale(1.02);
}
.sidebar-card .sidebar-nav > ul > li > a:hover::before,
.sidebar-card .sidebar-nav > ul > li > a::before { display: none; }

/* Podstrony w menu (zagnieżdżone) – mniejszy banner, ten sam klimat */
.sidebar-card .sidebar-nav ul ul li a {
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff !important;
    background: var(--menu-green) !important;
    border: 1px solid var(--menu-border);
    border-radius: 10px 4px 10px 4px;
    clip-path: polygon(0 0, 100% 0, 98% 50%, 100% 100%, 0 100%, 2% 50%);
}
.sidebar-card .sidebar-nav ul ul { margin-top: 6px !important; padding-left: 12px !important; }

/* Rozwijane menu – pozycja z dziećmi (has-children) */
.sidebar-card .sidebar-nav > ul > li.has-children > .menu-item-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    font-weight: 700;
    color: #fff !important;
    text-align: left;
    transition: var(--transition);
    transform: scale(1);
    border: 1px solid var(--menu-border);
    border-radius: 14px 6px 14px 6px;
    box-shadow: 0 2px 6px rgba(74, 63, 53, 0.06);
    clip-path: polygon(0 0, 100% 0, 98% 50%, 100% 100%, 0 100%, 2% 50%);
}
.sidebar-card .sidebar-nav > ul > li.has-children:nth-child(3n+1) > .menu-item-wrap { background: var(--menu-orange); }
.sidebar-card .sidebar-nav > ul > li.has-children:nth-child(3n+2) > .menu-item-wrap {
    background: var(--menu-red);
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 1.5px, transparent 1.5px),
                      radial-gradient(circle at 65% 35%, rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
    background-size: 20px 20px, 24px 24px;
}
.sidebar-card .sidebar-nav > ul > li.has-children:nth-child(3n) > .menu-item-wrap { background: var(--menu-green); }
.sidebar-card .sidebar-nav > ul > li.has-children > .menu-item-wrap:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: scale(1.02);
}
.sidebar-card .sidebar-nav .menu-item-wrap > a { flex: 1; color: inherit !important; text-align: left; justify-content: flex-start; }
.sidebar-card .sidebar-nav .menu-toggle,
.mobile-nav-links .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
}
.sidebar-nav .has-children.open .menu-toggle,
.mobile-nav-links .has-children.open .menu-toggle {
    transform: rotate(180deg);
}
.sidebar-nav .has-children .submenu,
.mobile-nav-links .has-children .submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0 !important;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.2s ease;
}
.sidebar-nav .has-children.open .submenu,
.mobile-nav-links .has-children.open .submenu {
    max-height: 280px;
    opacity: 1;
    margin-top: 6px !important;
}
/* Podmenu na pełną szerokość (bez wcięcia) */
.sidebar-card .sidebar-nav .has-children .submenu {
    padding-left: 0 !important;
    width: 100%;
}
.sidebar-card .sidebar-nav .has-children .submenu li {
    width: 100%;
}
.sidebar-card .sidebar-nav .has-children .submenu li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    background: color-mix(in srgb, var(--menu-green) 75%, white) !important;
}
.sidebar-card .sidebar-nav .has-children .submenu li a:hover {
    background: color-mix(in srgb, var(--menu-green) 65%, white) !important;
}
.mobile-nav-links .has-children > .menu-item-wrap {
    display: flex;
    align-items: center;
    padding: 16px 6px;
    color: rgba(255,255,255,0.88) !important;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    cursor: pointer;
}
/* Link wewnątrz wrapa nie może mieć własnego paddingu – wrap już go ma */
.mobile-nav-links .has-children > .menu-item-wrap > a {
    flex: 1;
    padding: 0 !important;
    color: inherit !important;
    border-bottom: none !important;
    cursor: pointer;
}
.mobile-nav-links .menu-item-wrap > a { flex: 1; color: inherit !important; }
.mobile-nav-links .has-children .submenu { padding-left: 0 !important; width: 100%; }
.mobile-nav-links .has-children .submenu li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 12px 6px 12px 22px !important;
    opacity: 0.92;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.mobile-nav-links .has-children .submenu li a:hover { opacity: 1; padding-left: 30px !important; }

/* GĹĂłwna zawartoĹÄ - Reset */
.main-content-card { background: transparent; padding: 0; box-shadow: none; }

/* Karty Artykułów */
article, .article {
    background: var(--card-white) !important;
    border-radius: var(--radius-xl) !important;
    padding: 24px !important;
    box-shadow: var(--shadow-soft) !important;
    border: 1px solid rgba(139, 182, 107, 0.15) !important;
    transition: var(--transition);
}

article:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float) !important;
}

/* TreĹÄ artykuĹĂłw */
article {
    font-size: 17px !important; /* OdrobinÄ wiÄkszy niĹź 16px */
    color: var(--bear-text-muted) !important;
}

article p {
    margin-bottom: 25px !important; /* WiÄksze odstÄpy miÄdzy akapitami */
    line-height: 1.85 !important;
}

article h2, article h3 {
    color: var(--bear-brown) !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
}


/* TytuĹy i treĹÄ */
.article-title { background: transparent !important; padding: 0 !important; border: none !important; }
.article-title a { font-size: 2rem !important; color: var(--bear-text) !important; display: block; }
.article-title a:hover { color: var(--bear-gold) !important; }

article p, article .p-2 { font-size: 1.05rem !important; color: var(--bear-text-muted) !important; line-height: 1.9 !important; }

/* Przyciski w kartach */
.btn, .text-center .btn {
    background: var(--card-white) !important;
    border: 2px solid var(--bear-gold) !important;
    color: var(--bear-gold) !important;
    padding: 12px 32px !important; border-radius: var(--radius-btn) !important;
    font-weight: 700 !important; font-family: 'Quicksand', sans-serif !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn:hover, .text-center .btn:hover {
    background: var(--bear-gold) !important; 
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 151, 90, 0.28) !important;
}
 .btn i, .text-center .btn i {
    transition: transform 0.3s ease;
}
 .btn:hover i, .text-center .btn:hover i {
    transform: translateX(4px);
}
/* Linki kontaktowe w headerze */
.contact-link {
    color: var(--bear-text);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    margin-right: 15px;
    opacity: 0.8;
}
.contact-link:hover {
    opacity: 1;
    color: var(--bear-gold);
    background: rgba(139, 182, 107, 0.12);
}
.contact-link i {
    margin-right: 6px;
    color: var(--sage-accent);
}

/* Top contacts wrapper */
.top-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- 6. MENU MOBILNE --- */
/* Gdy menu otwarte: cały app-wrapper (z overlayem) nad headerem (z-index 1500) */
body.mobile-nav-open .app-wrapper { z-index: 9999; }

/* html_menu(true) generuje <ul class="d-sm-inline d-none"> — Bootstrap ukrywa na xs.
   Wewnątrz overlay nadpisujemy żeby lista była zawsze widoczna. */
#nav-menu-mobile .d-none,
#nav-menu-mobile .d-sm-inline { display: block !important; }

#nav-menu-mobile {
    background: linear-gradient(135deg, var(--bear-brown) 0%, var(--bear-brown-dark) 100%) !important;
}
#nav-menu-mobile ul li a {
    display: block;
    padding: 18px 0;
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}
#nav-menu-mobile .has-children > .menu-item-wrap > a { border-bottom: none !important; }
#nav-menu-mobile ul li a:hover {
    color: #fff !important;
    padding-left: 15px;
}
#nav-menu-mobile .fa-times {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
#nav-menu-mobile .fa-times:hover {
    color: #fff;
    transform: rotate(90deg);
}


/* --- 9. MOBILE --- */
.mobile-hamburger { 
    display: none; 
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 22px; 
    color: var(--bear-brown); 
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 151, 90, 0.2);
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 63, 53, 0.08);
    transition: var(--transition);
}
.mobile-hamburger:hover {
    background: var(--bear-gold);
    color: #fff;
    border-color: var(--bear-gold);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(201, 151, 90, 0.28);
}
.mobile-hamburger:active {
    transform: scale(0.95);
}

@media (max-width: 992px) {
    .app-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .sidebar-with-animals, .sidebar-card, .top-contacts { display: none; }
    .mobile-hamburger { display: flex; }
    .hero-module { padding: 40px 0 60px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-title { font-size: 2.4rem; }
    .hero-desc { margin: 0 auto; text-align: center; }
    .blob-image-wrapper { max-width: 320px; }
    article { padding: 30px !important; margin-bottom: 30px !important; }
    .article-title a { font-size: 1.5rem !important; }
    footer, .footer { padding: 40px 20px; margin-top: 50px; }
}

@media (max-width: 576px) {
    .top-bar-container { padding: 0 15px; }
    .logo-area { font-size: 18px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.75rem; }
    article { padding: 25px !important; border-radius: 24px !important; }
    .main-content-card .btn, .text-center .btn { 
        padding: 10px 25px !important; 
        font-size: 0.9rem !important; 
    }
}

/* === PREMIUM PATCH v2 (layout + footer + page + accessibility) === */

/* Focus styles (keyboard users) */
:focus { outline: none; }
:focus-visible {
    outline: 3px solid rgba(201, 151, 90, 0.55);
    outline-offset: 3px;
    border-radius: 12px;
}

/* Skip link */
.skip-link{
    position: absolute;
    left: 16px;
    top: -60px;
    padding: 10px 14px;
    background: var(--paper-warm);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(140, 94, 60, 0.12);
    z-index: 10000;
    color: var(--bear-text);
    font-weight: 700;
}
.skip-link:focus{ top: 16px; }

/* Sticky / glass header */
.top-bar{
    position: sticky;
    top: 0;
    z-index: 1500;
    transition: var(--transition);
}
body.is-scrolled .top-bar{
    background: rgba(255, 252, 247, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(140, 94, 60, 0.08);
    box-shadow: 0 4px 24px -8px rgba(74, 63, 53, 0.08);
}

/* Opakowanie menu + zwierzątka (wiewiórka, jeż, królik) */
.sidebar-with-animals {
    position: relative;
    align-self: start;
}
.sidebar-animal {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    max-width: 85px;
    height: auto;
    object-fit: contain;
}
.sidebar-animal--1 {
    left: -18px;
    top: -35px;
    width: 72px;
}

.sidebar-animal--2 {
    right: -12px;
    bottom: 25px;
    width: 70px;
}
.sidebar-animal--1 { animation: float 6s ease-in-out infinite; }
.sidebar-animal--2 { animation: float 5.5s ease-in-out infinite 0.5s; }

/* Sidebar card – bez białej ramki, tylko odstępy */
.sidebar-card{
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    padding: 28px 0;
    border: none;
    top: 92px;
}
.sidebar-nav ul{ margin: 0 !important; padding: 0 !important; }
.sidebar-nav li{ margin: 0; }
.sidebar-nav > ul > li > a{
    width: 100%;
}
.sidebar-footer-icon{
    margin-top: 22px;
    text-align: center;
    color: var(--bear-brown);
    opacity: 0.55;
}

/*
 * ANALIZA: gdzie co się kończy, gdzie zaczyna (żeby nie było odcięć kreski)
 * 1. body.eco-premium – tło na CAŁEJ stronie (gradient + bg.jpg). Kolor bazowy: --paper-warm (krem).
 * 2. .app-wrapper – kończy się razem z </main></div></div> (szablon footer.php). Ma z-index: 2.
 * 3. .clearfix, .clear – między app-wrapper a #footer, bez tła (transparent).
 * 4. #footer – PIERWSZY piksel tego bloku = początek tła stopki. Gradient musi zaczynać się od
 *    tego samego koloru co body (rgb(255,252,247)), żeby nie było ostrej linii.
 * 5. #footer::before – pas nad stopką (bottom: 100%), przedłuża krem w górę; jest pod .app-wrapper.
 */
.eco-premium .clearfix,
.eco-premium .clear {
    background: transparent !important;
}

/* Tło stopki – pierwszy piksel = ten sam krem co body (brak ostrej kreski) */
.eco-premium .footer,
.eco-premium #footer {
    position: relative;
    z-index: 0;
    /* 0% = pełny krem jak body, potem stopniowo w dół */
    background-image:
        linear-gradient(to bottom,
            rgb(255, 252, 247) 0%,
            rgb(255, 252, 247) 5%,
            rgba(255,252,247,0.95) 15%,
            rgba(255,252,247,0.82) 28%,
            rgba(247,241,230,0.6) 50%,
            rgba(247,241,230,0.35) 75%,
            rgba(247,241,230,0.12) 100%),
        url('images/bg-bottom.jpg');
    background-size: auto, cover;
    background-position: top, center bottom;
    background-repeat: repeat-x;
}

/* Pasek nad stopką: przedłuża krem w górę, płynne zejście (pod .app-wrapper) */
.eco-premium .footer::before,
.eco-premium #footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 380px;
    z-index: -1;
    background: linear-gradient(to bottom,
        rgb(255, 252, 247) 0%,
        rgb(255, 252, 247) 12%,
        rgba(255, 252, 247, 0.94) 30%,
        rgba(255, 252, 247, 0.72) 55%,
        rgba(247, 241, 230, 0.35) 80%,
        transparent 100%);
    pointer-events: none;
}

/* Make CMS menu output nicer (it is <ul><li><a>...) */
.sidebar-nav ul ul { margin-top: 6px !important; } /* in case CMS nests UL */
.sidebar-nav li a::after{
    content: "";
    margin-left: auto;
    opacity: 0.25;
    transition: var(--transition);
}
.sidebar-nav li a:hover::after{ opacity: 0.6; transform: translateX(4px); }

/* Content area spacing */
.content-area{
    min-width: 0;
    padding-bottom: 40px;
}


@media (max-width: 992px){
    .page, .main-content-card .page{ padding: 28px 22px; }
}

/* Improve headings rendered by CMS */
.page .h1, .page h1.h1{
    font-size: 2.1rem;
    margin-bottom: 28px;
}
.text-gray{
    color: var(--bear-text-light) !important;
}

/* Listy z kropkami i wcięciami tylko w .page */
.page ul,
.page ol {
    list-style: disc !important;
    padding-left: 30px !important;
    margin: 15px 0 !important;
}

.page ol {
    list-style: decimal !important;
}

.page ul li,
.page ol li {
    margin-bottom: 8px !important;
    padding-left: 8px !important;
    line-height: 1.8 !important;
}

.page ul ul,
.page ol ol,
.page ul ol,
.page ol ul {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-left: 25px !important;
}

.page ul ul {
    list-style: circle !important;
}

.page ul ul ul {
    list-style: square !important;
}

/* Linki w treści strony – spójny styl */
.page a:not(.btn):not(.page-link) {
    color: var(--bear-gold);
    font-weight: 600;
    border-bottom: 1px solid rgba(201, 151, 90, 0.35);
}
.page a:not(.btn):not(.page-link):hover {
    color: var(--bear-brown);
    border-bottom-color: var(--bear-gold);
}

/* Cleaner "no posts" state */
.page .text-center{
    color: var(--bear-text-light);
}
.page .text-center i{
    color: var(--sage-accent);
    margin-right: 10px;
}

/* Pagination */
.pagination .page-link{
    border: none;
    border-radius: 14px !important;
    margin: 0 6px;
    padding: 10px 14px;
    color: var(--bear-text);
    background: rgba(255,255,255,0.7);
    box-shadow: 0 10px 30px -18px rgba(74,63,53,0.25);
}
.pagination .page-item.active .page-link{
    background: var(--bear-gold);
    color: #fff;
}
.pagination .page-link:hover{
    transform: translateY(-1px);
    background: rgba(201, 151, 90, 0.12);
}

/* Mobile nav overlay */
.mobile-nav{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding: 26px 22px;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--bear-brown) 0%, var(--bear-brown-dark) 100%);
}
.mobile-nav.is-open{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.mobile-nav-links{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 2;
}
.mobile-nav-top{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}
.mobile-nav-close{
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 14px;
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: var(--transition);
}
.mobile-nav-close:hover{
    background: rgba(255,255,255,0.14);
    transform: rotate(6deg);
}
.mobile-nav-title{
    text-align: center;
    margin-bottom: 16px;
    color: #fff;
    font-size: 26px;
    position: relative;
    z-index: 2;
}
.mobile-nav-links ul{ margin: 0 !important; padding: 0 !important; }
.mobile-nav-links a{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6px;
    color: rgba(255,255,255,0.88) !important;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.mobile-nav-links a::after{  opacity: 0.35; }
.mobile-nav-links a:hover{
    color: #fff !important;
    padding-left: 16px;
}

.footer, .footer-2, .eco-premium #footer {
    margin-top: 0 !important;
    padding-top: 200px !important;
    font-size: 1rem;
    color: var(--bear-text-muted);
    line-height: 1.7;
}
.eco-premium #footer a {
    color: var(--bear-gold);
    font-weight: 600;
}
.eco-premium #footer a:hover {
    color: var(--bear-brown);
}

/* Napisy typu „Adres”, „Kontakt” – mniejszy rozmiar; ikonki w kolorze motywu */
.eco-premium #footer h3,
.eco-premium #footer h4,
.eco-premium .page h3,
.eco-premium .page h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bear-text);
}
.eco-premium #footer .fa,
.eco-premium #footer .fas,
.eco-premium #footer .far,
.eco-premium #footer .fad,
.eco-premium .page .fa,
.eco-premium .page .fas,
.eco-premium .page .far,
.eco-premium .page .fad {
    color: var(--bear-gold) !important;
    margin-right: 0.35em;
}

/* Reduced motion – wyłączenie animacji (float, blob, morph) i gwałtownych przejść */
@media (prefers-reduced-motion: reduce){
    *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .hero-visual::before,
    .hero-visual img,
    .sidebar-animal{ animation: none !important; }
}

/* Wklej do style.css po .eco-premium #footer a:hover { ... }, przed "Reduced motion" */

/* Napisy typu „Adres”, „Kontakt” – mniejszy rozmiar; ikonki w kolorze motywu */
.eco-premium #footer h3,
.eco-premium #footer h4,
.eco-premium .page h3,
.eco-premium .page h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bear-text);
}
.eco-premium #footer .fa,
.eco-premium #footer .fas,
.eco-premium #footer .far,
.eco-premium #footer .fad,
.eco-premium .page .fa,
.eco-premium .page .fas,
.eco-premium .page .far,
.eco-premium .page .fad {
    color: var(--bear-gold) !important;
    margin-right: 0.35em;
}
