/* ==========================================================================
   1. ZMIENNE I KONFIGURACJA (Custom Properties)
   ========================================================================== */
:root {
    --primary: #00c92f;          /* Główny kolor akcentu */
    --primary-hover: #00a828;
    --bg-dark: #0b1120;         /* Tło główne */
    --bg-header: #020617;       /* Tło headera/stopki */
    --text-main: #f3f4f6;       /* Jasny tekst */
    --text-muted: #9ca3af;      /* Szary tekst (meta) */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --container-max: 1200px;
    --transition: 0.3s ease-in-out;
    --radius: 12px;
  
  /* Tryb jasny (domyślny) */
  --bg-color: #f4f6f8;
  --text-color: #1a1a1a;

  --card-bg: rgba(255,255,255,0.6);
  --card-border: rgba(0,0,0,0.08);

  --white: #ffffff;
  --black: #000000;

  /* Neon glow */
  --glow: 0 0 12px rgba(0,200,50,0.35);
}

/* Tryb ciemny */
[data-theme="dark"] {
  --bg-color: #0b1120;
  --text-color: #f3f4f6;

  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.1);

  --white: #ffffff;
  --black: #000000;

  /* Neon glow w dark mode */
  --glow: 0 0 12px rgba(0,200,50,0.35);
}
[data-theme="light"] .glass-box,
[data-theme="light"] .kpo-bar,
[data-theme="light"] .banner {
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.1);
}
/* ============================================
   LIGHT MODE — pół‑jasny, zbliżony do dark mode
   ============================================ */

[data-theme="light"] {
  --bg-color: #e5e7eb; /* jasny grafit, nie biały */
  --text-color: #1a1f2b; /* ciemny grafit, nie czarny */

  /* szkło — jasna wersja */
  --glass: rgba(0, 0, 0, 0.06);
  --glass-border: rgba(0, 0, 0, 0.12);

  /* karty / moduły */
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-border: rgba(0, 0, 0, 0.12);

  /* header / footer */
  --bg-header: #d5d7dd; /* jasny grafit, spójny z dark mode */

  /* neon glow — delikatniejszy */
  --glow: 0 0 12px rgba(0,200,50,0.35);

  /* teksty sekcji */
  --text-main: #1a1f2b;
  --text-muted: #4b5563;
}
[data-theme="light"] .glass-box,
[data-theme="light"] .kpo-bar,
[data-theme="light"] .banner,
[data-theme="light"] .article,
[data-theme="light"] .services .card,
[data-theme="light"] .product-item {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}
[data-theme="light"] .hero::after {
  background: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .hero-content {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .article-content p {
  color: var(--text-color);
}

[data-theme="light"] .article {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .services .card h3,
[data-theme="light"] .product-item h4 {
  color: var(--primary);
}

[data-theme="light"] .services .card p,
[data-theme="light"] .product-text {
  color: var(--text-color);
}
[data-theme="light"] .kpo-more {
    border-color: var(--primary);
    color: var(--primary) !important;
}

[data-theme="light"] .kpo-more:hover {
    background: var(--primary);
    color: #000 !important;
}
[data-theme="light"] .kpo-bar {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .kpo-bar p {
  color: var(--text-color);
}
[data-theme="light"] .header {
  background: var(--bg-header);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .header nav ul li a {
  color: var(--text-color);
}

[data-theme="light"] .header nav ul li a:hover {
  color: var(--primary);
}

/* ==========================================================================
   2. RESET I PODSTAWY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Dostępność: link pomijania, tekst tylko dla czytników, widoczny fokus klawiatury */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 100001;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 18px;
    clip: auto;
    overflow: visible;
    white-space: normal;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.hamburger:focus:not(:focus-visible),
.theme-toggle:focus:not(:focus-visible) {
    outline: none;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* ==========================================================================
   UJEDNOLICONE PRZYCISKI (Services & Products)
   ========================================================================== */
/* Karty, moduły, bannery, glassmorphism */
.card,
.module,
.kpo-bar,
.banner,
.glass-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
}
/* Neon glow */
.glow,
.button-primary,
.kpo-more {
  box-shadow: var(--glow);
}

/* Linki */
a {
  color: var(--primary);
}
a:hover {
  color: var(--primary-hover);
}
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);

  padding: 10px 14px;
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;

  transition: all 0.3s ease;
}

.theme-toggle:hover {
  box-shadow: var(--glow);
  transform: scale(1.05);
}

/* 1. Resetujemy kolor dla wszystkich przycisków .btn w obu sekcjach */
.services .card .btn,
.product-item .btn,
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--primary); /* Zielona ramka */
    color: var(--primary) !important; /* Wymuszamy zielony kolor tekstu */
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: bold;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

/* 2. Efekt po najechaniu dla obu sekcji */
.services .card .btn:hover,
.product-item .btn:hover,
.btn:hover {
    background: var(--primary);    /* Tło robi się zielone */
    color: #000 !important;        /* Tekst robi się czarny */
    box-shadow: 0 0 15px rgba(0, 255, 55, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

::selection {
    background: var(--primary);
    color: #000;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-color);
}



/* ==========================================================================
   3. HEADER I NAWIGACJA
   ========================================================================== */
.header {
    background: var(--bg-header);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

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

.header .logo {
    max-width: 180px;
    transition: var(--transition);
}

/* Menu Desktopowe (domyślnie ukryte na mobile w JS) */
.header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.header nav ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
}

.header nav ul li a:hover,
.header nav ul li.active a,
.header nav ul li.current a {
    color: var(--primary);
}

/* Hamburger */
.hamburger {
    display: none; /* Pokazywany w Media Query */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    transition: var(--transition);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/img_baner.png') center/cover no-repeat;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    background: rgba(0, 0, 0, 0.3); /* Ciemna szybka */
    backdrop-filter: blur(8px);    /* Rozmycie zdjęcia pod tekstem */
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 80%;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.4);
    font-weight: 700;
    line-height: 1.2;
}

/* ==========================================================================
   5. ZAWARTOŚĆ (Artykuły i Komponenty)
   ========================================================================== */
.main-content {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px 30px;
    margin: 40px auto;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 255, 55, 0.15);
}

.article {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: clamp(20px, 5vw, 40px);
    border-radius: var(--radius);
}

.article-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content a { color: var(--primary); }

.article-content p {
    margin-bottom: 1.5rem; /* Automatyczne odstępy między akapitami */
    text-align: justify;
    color: var(--text-main); /* Delikatniejszy kolor dla długiego tekstu */
}

.article-content strong {
    text-align: justify;
    color: var(--text-main); /* Wyróżnienie "Zapraszamy do współpracy" Twoim kolorem */
}

/* Ukrycie ramki artykułu tylko na stronie głównej, by nie konkurowała z kartami ofert */
.is-home .main-content .article {
    background: none;
    border: none;
    backdrop-filter: none;
    padding-top: 0;
}

/* ==========================================================================
   6. USŁUGI (Services Grid)
   ========================================================================== */
.services {
    padding: 80px 0;
}

.services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.services .card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.services .card a {
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

.services .card p {
    flex-grow: 1; /* Pcha przycisk zawsze na sam dół karty */
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.services .card h3 {
    margin: 15px 0;
    color: var(--primary);
}

/* ==========================================================================
   7. WYROZNIONE ARTYKUŁY
   ========================================================================== */

.products-showcase {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02); /* Delikatne wyróżnienie sekcji */
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}
/* ============================
   KARTY PRODUKTÓW – PREMIUM STYLE
   Dopasowane do Tyranik_pro_animated
============================ */

/* Kontener karty */
.product-card {
    background: --card-bg;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

/* Hover – lekki „lift” + cień */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Obrazek produktu */
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 10px;
    transition: var(--transition);
}

/* Delikatne powiększenie zdjęcia na hover */
.product-card:hover img {
    transform: scale(1.03);
}

/* Sekcja tekstowa */
.product-card .product-info {
    padding: 18px 20px;
}

/* Tytuł */
.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111;
}

/* Opis */
.product-card .product-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.45;
}

/* Przycisk */
.product-card .btn {
    display: inline-block;
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

/* Hover przycisku */
.product-card .btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Karta produktu — ta sama „obudowa” co .services .card (padding, przejścia).
   data-aos jest na .product-item__animated, żeby AOS nie ustawiał overflow na karcie z cieniem. */
.product-item {
    text-align: center;
    background: var(--glass);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}

.product-item__animated {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

/* Zapewnienie, że przycisk w produktach i usługach jest na dole karty */
.product-info, .card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-text, .services .card p {
    flex-grow: 1; /* Pcha przycisk na dół */
    margin-bottom: 20px;
}

.product-item h4 {
    margin: 10px 0 5px;
    color: var(--text-main);
}

.product-item span {
    font-size: 0.85rem;
    color: var(--primary);
}
.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.product-desc p {
    margin: 0; /* Usuwamy marginesy z edytora tekstu */
}

.text-center {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;;
}
/* Nagłówek sekcji */
.products-section-header h2 {
    margin-bottom: 20px; /* Zwiększony odstęp pod tytułem */
    font-size: 2.5rem;
    color: var(--text-main);
    text-align: center; 
}

.products-section-header p {
    margin-bottom: 40px; /* Odstęp pod opisem, przed siatką produktów */
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Siatka produktów */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* To układa je obok siebie */
    gap: 30px; /* To tworzy odstępy MIĘDZY produktami */
    padding: 20px 0;
}

/* Wspólny efekt najechania: SERVICES + PRODUCTS */
.services .card:hover,
.product-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 255, 55, 0.1);
}

/* Kontener na zdjęcie */
.product-img-wrapper {
    width: 100%;
    height: 200px;
    background: #fff; /* Produkty papierowe najlepiej wyglądają na białym */
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrapper img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

/* Teksty w produkcie */
.product-title {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.product-text {
    font-size: 0.95rem;
    color: var(--text-main);
    opacity: 0.9;
    line-height: 1.5;
}
.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Sprawia, że ta część zajmuje całe wolne miejsce */
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6
}

/* ==========================================================================
   8. STOPKA I BANER COOKIE
   ========================================================================== */
.footer {
    background: var(--bg-header);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    z-index: 9999;
    display: none; /* Sterowane przez JS */
}

.cookie-banner__inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1 1 220px;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__link {
    color: #4ea3ff;
    text-decoration: underline;
    margin-left: 0.25em;
    white-space: nowrap;
}

.cookie-banner__link:hover {
    color: #7ec8ff;
}

.cookie-banner-button {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-banner-button:hover {
    background: var(--primary-hover);
}

.mod-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

.footer-copy {
    font-size: 1.1rem;
    color: var(--primary); /* Twój zielony kolor */
    margin-bottom: 5px;
}

.footer-info, .footer-tradition {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 2px 0;
}

/* W trybie jasnym nieco przyciemniamy tekst */
[data-theme="light"] .mod-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
/* ==========================================================================
   9. MEDIA QUERIES (Responsywność)
   ========================================================================== */

/* TABLETY I SMARTFONY */
@media (max-width: 768px) {
    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__link {
        white-space: normal;
    }

    .hamburger {
        display: flex;
    }

    .header nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-header);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
    }

    .header nav ul.open {
        right: 0;
    }

    /* Animacja Hamburgera do X */
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .hero { height: 50vh; }
}

/* MAŁE SMARTFONY */
@media (max-width: 480px) {
    .header .logo { max-width: 140px; }
    .services h2 { font-size: 1.8rem; }
}
/* ==========================================================================
10. NAWIGACJA JOOMLA (mod_menu)
   ========================================================================== */

/* 1. Reset i układ listy */
.header nav ul.mod-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* 2. Stylizacja linków */
.header nav ul.mod-menu li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center; /* Wyrównanie tekstu i ewentualnych ikon/obrazków w pionie */
    gap: 8px;
    padding: 8px 12px;
}

/* 3. Obsługa obrazków w menu (np. Przycisk KPO) */
.header nav ul.mod-menu li a img {
    max-height: 28px; /* Ograniczenie wysokości, żeby nie rozbiło menu */
    width: auto;
    border-radius: 4px;
    vertical-align: middle;
}

/* 4. Efekty Hover i Active */
.header nav ul.mod-menu li a:hover,
.header nav ul.mod-menu li.active > a,
.header nav ul.mod-menu li.current > a {
    color: var(--primary);
}

/* 5. Obsługa menu mobilnego (zgodnie z klasami Joomla) */
@media (max-width: 768px) {
    .header nav ul.mod-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Menu ukryte */
        width: 80%;
        height: 100vh;
        background: var(--bg-header);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    /* Klasa .open dodawana przez Twój JS do ul */
    .header nav ul.mod-menu.open {
        right: 0;
    }

    .header nav ul.mod-menu li {
        width: 100%;
        text-align: center;
    }

    .header nav ul.mod-menu li a {
        display: inline-flex;
        font-size: 1.3rem;
        width: auto;
    }
}

/* 6. Fix dla pozycji logo na mobile */
@media (max-width: 768px) {
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }
}
/* === Pasek KPO === */
.kpo-bar {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    margin-bottom: 40px;
    backdrop-filter: blur(6px);
}

.kpo-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    flex-wrap: wrap;
}

.kpo-logo {
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 255, 55, 0.15);
    transition: var(--transition);
}


.kpo-bar p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
}

.kpo-more {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: bold;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: none; /* usuwamy glow z wersji pierwotnej */
} 

.kpo-more:hover {
    background: var(--primary);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 255, 55, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}
/* ==========================================================================
   COOKIE BANNER — warianty motywu (jeden zestaw, z #cookie-banner dla spójnej specyficzności)
   ========================================================================== */

html[data-theme="dark"] .cookie-banner,
html[data-theme="dark"] #cookie-banner {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .cookie-banner,
html[data-theme="light"] #cookie-banner {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: var(--text-color) !important;
    backdrop-filter: blur(15px) !important;
}

html[data-theme="light"] .cookie-banner p,
html[data-theme="light"] .cookie-banner span,
html[data-theme="light"] .cookie-banner__text,
html[data-theme="light"] #cookie-banner p,
html[data-theme="light"] #cookie-banner span,
html[data-theme="light"] #cookie-banner .cookie-banner__text {
    color: var(--text-color) !important;
}

html[data-theme="light"] .cookie-banner__link,
html[data-theme="light"] #cookie-banner .cookie-banner__link {
    color: #0369a1 !important;
}

html[data-theme="light"] .cookie-banner__link:hover,
html[data-theme="light"] #cookie-banner .cookie-banner__link:hover {
    color: #0284c7 !important;
}

html[data-theme="light"] .cookie-banner-button,
html[data-theme="light"] #cookie-banner .cookie-banner-button {
    background: var(--primary) !important;
    color: #000 !important;
}

html[data-theme="light"] .cookie-banner-button:hover,
html[data-theme="light"] #cookie-banner .cookie-banner-button:hover {
    background: var(--primary-hover) !important;
}

html[data-theme="light"] .hero::after {
    background: rgba(255, 255, 255, 0.35);
}

html[data-theme="light"] .hero-content {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .services .card p,
html[data-theme="light"] .product-text {
    opacity: 1;
}
html[data-theme="dark"] .product-img-wrapper {
    background: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .article-content p {
    color: #d9d9d9;
}
html[data-theme="light"] .header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
html[data-theme="light"] .footer {
    background: #d7d9df;
}
html[data-theme="light"] .kpo-bar p {
    color: #2a2f3b;
}
html[data-theme="light"] .theme-toggle {
    border: 1px solid rgba(0,0,0,0.2);
}
html[data-theme="light"] .hero h1 {
    color: #0f172a; /* ciemny granat – idealny kontrast */
    text-shadow: none; /* opcjonalnie: usuwa ciemny cień z dark mode */
}
html[data-theme="light"] h1,
html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero-content h1 {
    color: #0e1525 !important; /* czysty, ciemny kolor */
    text-shadow: none !important; /* usuwa przydymienie */
}
