/* ══════════════════════════════════════════════════════════════════════════
   POWERS 60+ – Główny arkusz stylów
   Kolorystyka: Turkus (#009B8D) + szary (#8C8C8C) z logo
   WCAG 2.1 AA Compliance
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ───────────────────────────────────────────────────────── */
:root {
    --powers-teal: #009B8D;
    --powers-teal-dark: #007A6E;
    --powers-teal-light: #00BFA9;
    --powers-teal-pale: #E0F5F2;
    --powers-gray: #8C8C8C;
    --powers-gray-dark: #4A4A4A;
    --powers-gray-light: #B8B8B8;
    --powers-accent: #E8A838;
    --powers-accent-dark: #D4922A;
    --powers-bg: #FAFBFC;
    --powers-text: #2D3436;
    --powers-text-light: #636E72;
    --powers-white: #FFFFFF;
    --powers-danger: #D63031;
    --powers-success: #00B894;
    --powers-radius: 12px;
    --powers-radius-sm: 8px;
    --powers-shadow: 0 2px 16px rgba(0, 155, 141, 0.08);
    --powers-shadow-lg: 0 8px 32px rgba(0, 155, 141, 0.12);
    --powers-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-base: 1.125rem;
}

/* ─── Scroll behavior dla kotwic (#anchor) ────────────────────────────────
   Aplikacja ma dwa sticky paski u góry (accessibility bar + navbar),
   które zasłaniałyby zakotwiczone nagłówki przy skoku do #fragmentu.
   scroll-padding-top przesuwa pozycję skoku poniżej tych pasków. */
html {
    scroll-padding-top: 110px;
    scroll-behavior: smooth;
}

/* Na bardzo wąskich ekranach pasek nawigacji się zwija - mniej zasłania */
@media (max-width: 767.98px) {
    html { scroll-padding-top: 80px; }
}

/* ─── Base ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: var(--font-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    color: var(--powers-text);
    background-color: var(--powers-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Kompensacja za fixed pasek (36px) + navbar (~56px) */
/* #main-content padding-top jest ustawiane DYNAMICZNIE przez JS w base.html
   (suma wysokości .accessibility-bar + .navbar-powers-scroll). Wartość 92px
   poniżej to FALLBACK gdy JS nie zdąży się załadować — żeby treść nie wskoczyła
   pod navbar przy pierwszym renderze. */
#main-content {
    padding-top: 92px;
}
/* Na stronach z hero – hero sam ma wystarczający padding-top
   (JS też respektuje to: jeśli wewnątrz #main-content jest .hero,
   pomija ustawianie paddingu). */
#main-content:has(.hero) {
    padding-top: 0;
}

/* ─── Skip Link (WCAG) ───────────────────────────────────────────────────── */
/* Schowany domyślnie przez translateY(-150%) — to translacja WZGLĘDEM
   WŁASNEJ wysokości elementu, więc działa zawsze niezależnie od rozmiaru
   fontu (135% / dyslexia-font / cokolwiek). Stała wartość w px (top: -100px)
   przestawała wystarczać przy font-size: 135%, bo sam element rośnie do ~70 px
   i jego bottom wystawał poniżej offsetu. */
.skip-link {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    background: var(--powers-teal);
    color: var(--powers-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--powers-radius-sm) var(--powers-radius-sm);
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--powers-transition);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateX(-50%) translateY(0);
    outline: 3px solid var(--powers-accent);
    outline-offset: 2px;
}

/* ─── Focus styles (WCAG) ────────────────────────────────────────────────── */
*:focus-visible {
    outline: 3px solid var(--powers-accent);
    outline-offset: 2px;
}

/* ─── Accessibility Bar ──────────────────────────────────────────────────── */
.accessibility-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1040;
    background: var(--powers-teal-dark);
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
}

.accessibility-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.btn-accessibility {
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: all var(--powers-transition);
    line-height: 1.3;
}

.btn-accessibility:hover,
.btn-accessibility:focus {
    background: rgba(255,255,255,0.2);
    color: var(--powers-white);
    border-color: rgba(255,255,255,0.6);
}

.btn-accessibility.active {
    background: var(--powers-accent);
    border-color: var(--powers-accent);
    color: #000;
}

/* WCAG 2.5.5: na mobile touch-target ≥44×44 px. Desktop zostawiamy
   kompaktowy (paski dostępności są obok siebie u góry). */
@media (max-width: 767.98px) {
    .btn-accessibility {
        min-width: 44px;
        min-height: 44px;
        padding: .35rem .55rem;
        font-size: .85rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* Pasek dostępności — kompaktowy układ żeby 4 przyciski + label
       zmieściły się w jednym wierszu nawet na iPhone SE (375 px). */
    .accessibility-bar .container {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
        gap: .35rem !important;
        flex-wrap: nowrap;
    }
}

/* Na bardzo małych ekranach (≤575.98 px) ukrywamy label "Dostępność:"
   i separator vr — same ikony przycisków są wystarczające i mają
   aria-label dla screenreaderów. Zachowujemy pełne 44×44 przycisków. */
@media (max-width: 575.98px) {
    .accessibility-bar .accessibility-label {
        display: none;
    }
    .accessibility-bar .vr {
        display: none;
    }
}

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
/* ─── Navbar – transparentna na hero, biała po scrollu ──────────────────── */
.navbar-powers-scroll {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    padding: 0.45rem 0;
    background:
        radial-gradient(circle at 8% 15%, rgba(0, 191, 169, 0.28), transparent 28%),
        linear-gradient(135deg, #053b40 0%, #006f65 52%, #008f86 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 41, 45, 0.2);
}

.navbar-brand { font-size: 1rem; }
.navbar-powers-scroll .container {
    gap: 0.9rem;
}
.navbar-powers-scroll .navbar-brand {
    flex-shrink: 0;
    margin-right: 0.4rem;
    padding: 0.25rem 0;
}
.navbar-powers-scroll .navbar-brand img {
    display: block;
    width: auto;
    height: 32px;
}
.navbar-powers-scroll .navbar-nav {
    align-items: center;
    gap: 0.2rem;
}

.brand-text { letter-spacing: 0.5px; transition: color 0.3s; }

.brand-60 { color: var(--powers-gray-light); font-weight: 400; }

.navbar-powers-scroll .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 750;
    padding: 0.48rem 0.62rem;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: all var(--powers-transition);
    font-size: 0.8rem;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: nowrap;
}

.navbar-powers-scroll .nav-link i {
    flex: 0 0 auto;
    margin-right: 0 !important;
    font-size: 0.98rem;
    line-height: 1;
    opacity: 0.96;
}

.navbar-powers-scroll .nav-link:hover,
.navbar-powers-scroll .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.navbar-powers-scroll .navbar-toggler {
    border-color: rgba(255,255,255,0.45);
    border-radius: 12px;
    padding: 0.42rem 0.55rem;
}
.navbar-powers-scroll .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-powers-scroll .container {
        max-width: 1320px;
    }
    .navbar-powers-scroll .nav-link {
        gap: 0.24rem;
        padding-inline: 0.42rem;
        font-size: 0.74rem;
    }
    .navbar-powers-scroll .nav-link i {
        font-size: 0.9rem;
    }
}

@media (max-width: 1199.98px) {
    .navbar-powers-scroll .navbar-collapse {
        margin-top: 0.7rem;
        padding: 0.65rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 18px;
        background: rgba(5, 59, 64, 0.94);
        box-shadow: 0 18px 36px rgba(0, 41, 45, 0.24);
    }

    .navbar-powers-scroll .navbar-nav {
        align-items: stretch;
        gap: 0.3rem;
    }

    .navbar-powers-scroll .nav-link {
        justify-content: flex-start;
        width: 100%;
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* ─── Hero Section – jasny gradient turkus → biel ───────────────────────── */
.hero {
    background: linear-gradient(180deg, #ffffff 0%, #f0faf9 50%, #d4f0ee 100%);
    color: var(--powers-dark);
    padding: 9.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -5%;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -5%;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(0,155,141,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--powers-dark);
}

.hero .lead {
    font-size: 1.15rem;
    color: #2d3436;
    opacity: 0.85;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 155, 141, 0.08);
    border: 1.5px solid rgba(0, 155, 141, 0.25);
    color: var(--powers-teal-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* ─── Page Hero – podstrony ──────────────────────────────────────────────── */
.page-hero {
    display: block;
    width: 100%;
    background:
        radial-gradient(circle at 12% 18%, rgba(0,155,141,.14), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(0,155,141,.10), transparent 26%),
        linear-gradient(90deg, #f0fbfa 0%, #ffffff 44%, #eef8f7 100%);
    padding: 2.35rem 0 2.15rem;
    border-bottom: 1px solid rgba(0,155,141,0.12);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    display: none;
}

.page-hero:not(.ws-page-hero)::after {
    display: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-icon {
    width: 58px; height: 58px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(0,155,141,0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.55rem; color: #007f76;
    margin-bottom: 1rem;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(0,155,141,.08);
}
.page-hero-icon.mb-0 {
    margin-bottom: 0;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 3.2vw, 2.65rem);
    line-height: 1.05;
    font-weight: 900;
    color: #102942;
    margin: 1rem 0 .75rem;
    letter-spacing: 0;
}

.page-hero h1 span,
.page-hero:not(.ws-page-hero) h1 span {
    color: #008f86 !important;
}

.page-hero .lead,
.page-hero p.lead,
.page-hero-grid > p {
    font-size: 1rem;
    color: #4f6870;
    max-width: 720px;
    line-height: 1.65;
    opacity: 1;
    margin: 0;
}

.page-hero-grid {
    max-width: 860px;
}

.page-hero .page-hero-kicker {
    display: inline-flex !important;
    align-items: center;
    gap: .55rem;
    padding: .55rem 1rem !important;
    margin: 0 !important;
    border: 1px solid rgba(0,155,141,.22) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.82) !important;
    color: #007f76 !important;
    font-weight: 850;
    font-size: .9rem !important;
    line-height: 1.2;
    box-shadow: 0 10px 28px rgba(0,155,141,.08);
    text-decoration: none;
}

.page-hero .page-hero-kicker i {
    font-size: 1rem;
    line-height: 1;
    color: #007f76;
}

.page-hero .breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.page-hero .breadcrumb-item a {
    color: var(--powers-teal);
    text-decoration: none;
}

.page-hero .breadcrumb-item.active {
    color: #777;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 1.85rem 0 1.7rem;
    }

    .page-hero::before,
    .page-hero:not(.ws-page-hero)::after {
        opacity: 0.45;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero-icon {
        width: 52px;
        height: 52px;
        font-size: 1.45rem;
    }
}

/* ─── Section Titles ─────────────────────────────────────────────────────── */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--powers-teal-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--powers-text-light);
    font-size: 1.1rem;
    max-width: 600px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--powers-teal), var(--powers-accent));
    border: none;
    border-radius: 2px;
    margin: 1rem 0 2rem;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card-powers {
    border: none;
    border-radius: var(--powers-radius);
    box-shadow: var(--powers-shadow);
    transition: all var(--powers-transition);
    overflow: hidden;
    background: var(--powers-white);
}

.card-powers:hover {
    box-shadow: var(--powers-shadow-lg);
    transform: translateY(-4px);
}

.card-powers .card-body {
    padding: 1.5rem;
}

.card-powers .card-title {
    font-weight: 700;
    color: var(--powers-teal-dark);
    margin-bottom: 0.75rem;
}

/* Obszar card z ikoną */
.obszar-card {
    text-align: center;
    padding: 2rem 1.5rem;
    cursor: pointer;
    position: relative;
}

.obszar-card .obszar-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--powers-white);
    transition: all var(--powers-transition);
}

.obszar-card:hover .obszar-icon {
    transform: scale(1.1);
}

.obszar-card .card-title {
    font-size: 1rem;
}

/* ─── Badges & Tags ──────────────────────────────────────────────────────── */
.badge-powers {
    background: var(--powers-teal-pale);
    color: var(--powers-teal-dark);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.badge-level-easy {
    background: #D5F5E3;
    color: #1E8449;
}

.badge-level-medium {
    background: #FEF9E7;
    color: #B7950B;
}

.badge-level-hard {
    background: #FADBD8;
    color: #C0392B;
}

/* Badge "ma scenariusz" / "brak" — używany na liście aktywności
   (element1/lista.html). Ikona PNG zamiast Bootstrap-icon, żeby spójnie
   z sekcją "Informacje" w detalu aktywności. */
.badge-scenariusz {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
    line-height: 1;
}
.badge-scenariusz img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}
.badge-scenariusz-jest {
    background: rgba(0,155,141,.11);
    color: #006d62;
    border-color: rgba(0,155,141,.18);
}
.badge-scenariusz-brak {
    background: rgba(232,168,56,.10);
    color: #8a6b1a;
    border-color: rgba(232,168,56,.18);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-powers {
    background: linear-gradient(135deg, var(--powers-teal) 0%, var(--powers-teal-dark) 100%);
    color: var(--powers-white);
    border: none;
    padding: 0.8rem 1.9rem;
    border-radius: var(--powers-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--powers-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-powers:hover {
    background: linear-gradient(135deg, var(--powers-teal-dark) 0%, #005F55 100%);
    color: var(--powers-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 155, 141, 0.3);
}

.btn-powers-outline {
    background: transparent;
    color: var(--powers-teal);
    border: 2px solid var(--powers-teal);
    padding: 0.75rem 1.9rem;
    border-radius: var(--powers-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--powers-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-powers-outline:hover {
    background: var(--powers-teal);
    color: var(--powers-white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--powers-accent) 0%, var(--powers-accent-dark) 100%);
    color: #000;
    border: none;
    padding: 0.8rem 1.9rem;
    border-radius: var(--powers-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    transition: all var(--powers-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 168, 56, 0.3);
    color: #000;
}

/* ─── Wyszukiwarka - Filtry ──────────────────────────────────────────────── */
.filter-panel {
    background: var(--powers-white);
    border-radius: var(--powers-radius);
    box-shadow: var(--powers-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-panel label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--powers-text);
    margin-bottom: 0.35rem;
}

.filter-panel .form-select,
.filter-panel .form-control {
    border-radius: var(--powers-radius-sm);
    border: 2px solid #E0E0E0;
    transition: all var(--powers-transition);
}

.filter-panel .form-select:focus,
.filter-panel .form-control:focus {
    border-color: var(--powers-teal);
    box-shadow: 0 0 0 3px rgba(0, 155, 141, 0.15);
}

/* Aktywność result card */
.aktywnosc-result {
    border-left: 4px solid var(--powers-teal);
    margin-bottom: 1rem;
    transition: all var(--powers-transition);
}

.aktywnosc-result:hover {
    border-left-color: var(--powers-accent);
}

/* ─── Scenariusz Steps ───────────────────────────────────────────────────── */
.step-timeline {
    position: relative;
    padding-left: 3rem;
}

.step-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--powers-teal) 0%, var(--powers-teal-pale) 100%);
    border-radius: 2px;
}

.step-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--powers-white);
    border-radius: var(--powers-radius-sm);
    box-shadow: var(--powers-shadow);
}

.step-item::before {
    content: attr(data-step);
    position: absolute;
    left: -2.75rem;
    top: 1.25rem;
    width: 2rem;
    height: 2rem;
    background: var(--powers-teal);
    color: var(--powers-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ─── Grywalizacja (Element 6) ───────────────────────────────────────────── */
.gamification-path {
    position: relative;
}

.gamy-step {
    background: var(--powers-white);
    border-radius: var(--powers-radius);
    box-shadow: var(--powers-shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all var(--powers-transition);
    border-left: 5px solid var(--powers-gray-light);
    position: relative;
}

.gamy-step.done {
    border-left-color: var(--powers-success);
    background: linear-gradient(135deg, #F0FFF4 0%, var(--powers-white) 100%);
}

.gamy-step .step-number {
    width: 50px;
    height: 50px;
    background: var(--powers-teal);
    color: var(--powers-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

.gamy-step.done .step-number {
    background: var(--powers-success);
}

.gamy-progress-bar {
    height: 12px;
    border-radius: 6px;
    background: #E0E0E0;
    overflow: hidden;
}

.gamy-progress-bar .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--powers-teal), var(--powers-success));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.points-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--powers-teal);
}

/* ─── Mapa ───────────────────────────────────────────────────────────────── */
#map-container {
    height: 500px;
    border-radius: var(--powers-radius);
    overflow: hidden;
    box-shadow: var(--powers-shadow);
}

/* ─── Opinie / Cytaty ────────────────────────────────────────────────────── */
.cytat-card {
    background: var(--powers-white);
    border-radius: var(--powers-radius);
    box-shadow: var(--powers-shadow);
    padding: 2rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.cytat-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--powers-teal-pale);
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.cytat-card .cytat-text {
    font-style: italic;
    font-size: 1.05rem;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.cytat-card .cytat-autor {
    font-weight: 600;
    color: var(--powers-teal-dark);
}

/* ─── Main content area ──────────────────────────────────────────────────── */
main {
    min-height: calc(100vh - 200px);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
    background:
        radial-gradient(circle at 12% 8%, rgba(0,155,141,.2), transparent 28rem),
        radial-gradient(circle at 88% 0%, rgba(232,168,56,.12), transparent 24rem),
        linear-gradient(135deg, #101b29 0%, #172536 58%, #102d32 100%) !important;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer a {
    transition: all var(--powers-transition);
}

.footer .small {
    font-size: 0.8rem;
}

.footer a:hover {
    opacity: 1 !important;
    color: var(--powers-teal-light) !important;
}

/* ─── Admin Panel ────────────────────────────────────────────────────────── */
.admin-sidebar {
    background: #1A2332;
    min-height: 100vh;
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 1rem;
    border-radius: var(--powers-radius-sm);
    margin: 0.1rem 0.5rem;
    font-size: 0.9rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(0, 155, 141, 0.3);
    color: var(--powers-white);
}

.stat-card {
    border: none;
    border-radius: var(--powers-radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--powers-teal);
}

/* ─── Wysoki kontrast (WCAG) ─────────────────────────────────────────────── */
body.high-contrast {
    --powers-bg: #000000;
    --powers-text: #FFFFFF;
    --powers-white: #1A1A1A;
    --powers-teal: #00E5D4;
    --powers-teal-dark: #00FFE5;
    --powers-teal-pale: #002A26;
    --powers-shadow: 0 2px 16px rgba(0, 229, 212, 0.15);
}

body.high-contrast .navbar {
    background: #000 !important;
    border-bottom: 2px solid var(--powers-teal);
}

body.high-contrast .card-powers,
body.high-contrast .filter-panel,
body.high-contrast .step-item,
body.high-contrast .gamy-step,
body.high-contrast .cytat-card {
    background: #1A1A1A;
    border: 1px solid #444;
}

body.high-contrast .footer {
    background: #000 !important;
    border-top: 2px solid var(--powers-teal);
}

body.high-contrast a {
    color: var(--powers-teal);
}

/* ─── Dyslexia font (WCAG) ──────────────────────────────────────────────── */
body.dyslexia-font {
    font-family: 'OpenDyslexic', 'Comic Sans MS', 'Trebuchet MS', sans-serif;
    letter-spacing: 0.05em;
    word-spacing: 0.1em;
}

/* ─── Font scaling ───────────────────────────────────────────────────────── */
body.font-size-sm { font-size: 0.875rem; }
body.font-size-md { font-size: 1rem; }
body.font-size-lg { font-size: 1.125rem; }
body.font-size-xl { font-size: 1.25rem; }
body.font-size-xxl { font-size: 1.375rem; }
body.font-size-large { font-size: 1rem; }

body.font-size-large .navbar .container {
    max-width: min(100%, 1320px);
}

body.font-size-large .navbar-nav {
    flex-wrap: wrap;
    row-gap: .35rem;
}

body.font-size-large .navbar .nav-link {
    font-size: .9rem;
    padding-left: .55rem;
    padding-right: .55rem;
}

body.font-size-large .navbar-brand img {
    max-width: 170px;
    height: auto;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .filter-panel {
        padding: 1rem;
    }

    #map-container {
        height: 350px;
    }

    .gamy-step {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    /* Mapa na bardzo małym ekranie — niższa wysokość żeby zostawić miejsce na listę */
    #map-container { height: 280px; }
}

@media (max-width: 576px) {
    .accessibility-bar .container {
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}

/* ─── Animacje wejścia ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Accessibility toolbar: visible, page-wide effects */
body.dyslexia-font,
body.dyslexia-font *:not(.bi):not([class*="bi-"]):not(i) {
    font-family: 'Comic Sans MS', 'Trebuchet MS', Arial, sans-serif !important;
    letter-spacing: .03em;
    word-spacing: .08em;
}

body.high-contrast {
    --powers-bg: #000000;
    --powers-white: #000000;
    --powers-text: #ffffff;
    --powers-muted: #ffffff;
    --powers-teal: #00fff0;
    --powers-teal-dark: #00fff0;
    --powers-teal-pale: #001f1d;
    --powers-accent: #ffd43b;
    background: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast main,
body.high-contrast .accessibility-bar,
body.high-contrast .navbar,
body.high-contrast .footer,
body.high-contrast .logos-bar,
body.high-contrast section,
body.high-contrast .page-hero,
body.high-contrast .hero {
    background: #000000 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.high-contrast :where(h1, h2, h3, h4, h5, h6, p, li, span, strong, small, label, .lead, .text-muted, .small) {
    color: #ffffff !important;
}

body.high-contrast :where(a, .nav-link, .btn-link) {
    color: #00fff0 !important;
    text-decoration-thickness: 2px;
    text-underline-offset: .18em;
}

body.high-contrast :where(.card, .card-powers, .logos-card, .logos-frame, .filter-panel, .step-item, .gamy-step, .cytat-card, .hero-card, .feature-card, .activity-card, .scenario-card, .stat-card, .modal-content, .dropdown-menu) {
    background: #111111 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
}

body.high-contrast :where(.btn, button, input, textarea, select, .form-control, .form-select) {
    border-color: #ffffff !important;
}

body.high-contrast :where(input, textarea, select, .form-control, .form-select) {
    background: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast :where(input::placeholder, textarea::placeholder) {
    color: #d7d7d7 !important;
    opacity: 1 !important;
}

body.high-contrast :where(.btn-primary, .btn-powers, .btn-powers-primary, .btn-accessibility.active) {
    background: #ffd43b !important;
    border-color: #ffd43b !important;
    color: #000000 !important;
}

body.high-contrast :where(.btn-outline-primary, .btn-powers-outline, .btn-accessibility) {
    background: #000000 !important;
    border-color: #00fff0 !important;
    color: #00fff0 !important;
}

body.high-contrast :focus-visible {
    outline-color: #ffd43b !important;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, .5) !important;
}

/* HC: BREADCRUMBS (Bootstrap + page-hero) — wszystkie podstrony */
body.high-contrast .breadcrumb {
    background: transparent !important;
    color: #d7d7d7 !important;
}
body.high-contrast .breadcrumb-item { color: #d7d7d7 !important; }
body.high-contrast .breadcrumb-item a {
    color: #00fff0 !important;
    text-decoration: underline;
}
body.high-contrast .breadcrumb-item a:hover { color: #ffd43b !important; }
body.high-contrast .breadcrumb-item.active { color: #ffd43b !important; }
body.high-contrast .breadcrumb-item + .breadcrumb-item::before {
    color: #888 !important;
}

/* HC: ALERTY (Bootstrap flash messages na opinie/kontakt/admin) */
body.high-contrast .alert {
    background: #111 !important;
    color: #fff !important;
    border: 2px solid currentColor !important;
}
body.high-contrast .alert-success { color: #5fff5f !important; background: #001a00 !important; }
body.high-contrast .alert-info,
body.high-contrast .alert-primary { color: #00fff0 !important; background: #002a26 !important; }
body.high-contrast .alert-warning { color: #ffd43b !important; background: #1a1500 !important; }
body.high-contrast .alert-danger { color: #ff8080 !important; background: #1a0000 !important; }
body.high-contrast .btn-close {
    filter: invert(1) brightness(2) !important;
    opacity: 1 !important;
}

/* HC: .section-title / .section-divider (element4/modul, element5/info, galeria) */
body.high-contrast .section-title { color: #fff !important; }
body.high-contrast .section-divider {
    background: #ffd43b !important;
    border-color: #ffd43b !important;
}

/* HC: NEUTRALIZACJA INLINE STYLES Z RICH-TEXT EDYTORA (TinyMCE/Quill).
   Admin przez TinyMCE/Quill może wstawić <p style="color:#1e3a5f">
   albo <span style="color:..">. CSS z !important normalnie wygrywa
   z inline bez !important — ale niektóre przeglądarki (Safari, stare
   Chrome) traktują to inaczej, a użytkownicy często wklejają tekst
   z Worda który ma inline tła i kolory. Wymuszamy `inherit` dla
   wszystkich elementów wewnątrz pojemników z treścią. */
body.high-contrast .el3-content [style],
body.high-contrast .ap-content-body [style],
body.high-contrast .sc-content-body [style],
body.high-contrast .ql-editor-content [style] {
    color: inherit !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: inherit !important;
    opacity: 1 !important;
    text-shadow: none !important;
    filter: none !important;
}
/* Pozwalamy tylko na strukturalne właściwości z inline-style (margin/padding/text-align) */
body.high-contrast .el3-content [style*="background"],
body.high-contrast .el3-content [style*="color"],
body.high-contrast .ap-content-body [style*="background"],
body.high-contrast .ap-content-body [style*="color"],
body.high-contrast .sc-content-body [style*="background"],
body.high-contrast .sc-content-body [style*="color"] {
    color: #fff !important;
    background-color: transparent !important;
}
/* …ale linki MUSZĄ zostać widoczne (cyjan/żółty) niezależnie od inline */
body.high-contrast .el3-content [style*="color"],
body.high-contrast .el3-content a[style],
body.high-contrast .ap-content-body a[style],
body.high-contrast .sc-content-body a[style],
body.high-contrast .ql-editor-content a[style] {
    color: inherit !important;
}
body.high-contrast .el3-content a,
body.high-contrast .ap-content-body a,
body.high-contrast .sc-content-body a,
body.high-contrast .ql-editor-content a {
    color: #ffd43b !important;
    text-decoration: underline;
}

/* HC: WSPÓLNE klasy "zasada-*" / "dw-callout" w treści admina (TinyMCE
   pozwala je wstawiać w treść). Definiowane są w wielu inline <style>
   blokach w element3/index.html, element3/wskazowka.html — pokrywamy
   raz globalnie, żeby zawsze działało. */
body.high-contrast .zasada-card {
    border-bottom: 1px solid #444 !important;
}
body.high-contrast .zasada-num {
    color: #ffd43b !important;
    opacity: .8;
}
body.high-contrast .zasada-body h3 { color: #fff !important; }
body.high-contrast .zasada-body p { color: #d7d7d7 !important; }
body.high-contrast .zasada-tip {
    background: #1a1500 !important;
    color: #fff !important;
    border-left: 4px solid #ffd43b !important;
}
body.high-contrast .zasada-tip i { color: #ffd43b !important; }
body.high-contrast .zasada-tip strong { color: #ffd43b !important; }

/* HC: ELEMENT 3 — szczegóły wskazówki (element3/wskazowka.html) */
body.high-contrast .el3-breadcrumb a { color: #00fff0 !important; }
body.high-contrast .el3-breadcrumb a:hover { color: #ffd43b !important; }
body.high-contrast .el3-content {
    background: #111 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    box-shadow: none !important;
}
body.high-contrast .el3-content .lead-text { color: #d7d7d7 !important; }
body.high-contrast .el3-content h2 { color: #00fff0 !important; }
body.high-contrast .el3-content p { color: #d7d7d7 !important; }
body.high-contrast .el3-content strong { color: #fff !important; }
body.high-contrast .el3-content .wskazowki-lista li {
    background: #002a26 !important;
    color: #fff !important;
    border-left-color: #00fff0 !important;
}
body.high-contrast .el3-content .wskazowki-lista li::marker { color: #00fff0; }
/* lead-text (cytat-podkreślenie) */
body.high-contrast .el3-content .lead-text {
    background: #1a1500 !important;
    color: #fff !important;
    border-left-color: #ffd43b !important;
    padding: .75rem 1rem !important;
    border-radius: 0 8px 8px 0;
}
/* Generyczna lista zasad/punktów w treści — cokolwiek z tłem */
body.high-contrast .el3-content ul li,
body.high-contrast .el3-content ol li,
body.high-contrast .el3-content blockquote {
    color: #fff !important;
}
body.high-contrast .el3-content blockquote {
    background: #1a1500 !important;
    border-left: 4px solid #ffd43b !important;
    padding: .75rem 1rem !important;
}
/* Każda nieoczekiwana karta/box w treści dostaje ciemne tło */
body.high-contrast .el3-content > div:not([class*="zasada"]):not([class*="dw-"]):not(.lead-text),
body.high-contrast .el3-content [class*="card"],
body.high-contrast .el3-content [class*="box"] {
    background: #002a26 !important;
    border-color: #00fff0 !important;
    color: #fff !important;
}
body.high-contrast .el3-nav-btn {
    background: #111 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}
body.high-contrast .el3-nav-btn:hover {
    background: #1a1500 !important;
    color: #ffd43b !important;
    border-color: #ffd43b !important;
    transform: none !important;
    box-shadow: 0 0 0 3px #ffd43b !important;
}
body.high-contrast .el3-nav-btn i { color: #00fff0 !important; }
body.high-contrast .el3-nav-btn:hover i { color: #ffd43b !important; }
body.high-contrast .el3-nav-btn small { color: #d7d7d7 !important; }
body.high-contrast .el3-back {
    background: #000 !important;
    color: #00fff0 !important;
    border: 2px solid #00fff0 !important;
}
body.high-contrast .el3-back:hover {
    background: #ffd43b !important;
    color: #000 !important;
    border-color: #ffd43b !important;
}

/* HC: ELEMENT 4 — sidebar i nav prev/next (_sidebar.html, _nav.html) */
body.high-contrast .e4-sidebar-card {
    background: #111 !important;
    border: 2px solid #fff !important;
}
body.high-contrast .e4-sidebar-head {
    background: #002a26 !important;
    color: #00fff0 !important;
    border-bottom: 1px solid #00fff0;
}
body.high-contrast .e4-sidebar-link {
    background: transparent !important;
    color: #fff !important;
    border-bottom-color: #444 !important;
}
body.high-contrast .e4-sidebar-link:hover {
    background: #002a26 !important;
    color: #00fff0 !important;
}
body.high-contrast .e4-sidebar-link.active {
    background: #1a1500 !important;
    color: #ffd43b !important;
    border-left-color: #ffd43b !important;
}
body.high-contrast .e4-sidebar-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
}
body.high-contrast .e4-sidebar-link.active .e4-sidebar-icon {
    background: #ffd43b !important;
    color: #000 !important;
}
body.high-contrast .e4-nav-btn {
    background: #111 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}
body.high-contrast .e4-nav-btn:hover {
    background: #1a1500 !important;
    color: #ffd43b !important;
    border-color: #ffd43b !important;
    transform: none !important;
    box-shadow: 0 0 0 3px #ffd43b !important;
}
body.high-contrast .e4-nav-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
}
body.high-contrast .e4-nav-btn:hover .e4-nav-icon {
    background: #ffd43b !important;
    color: #000 !important;
}
body.high-contrast .e4-nav-direction { color: #d7d7d7 !important; }
body.high-contrast .e4-nav-title { color: inherit !important; }

/* HC: .dw-* — wspólne klasy 5 podstron element4 (bariery, konsekwencje,
   korzysci, dobre_praktyki, przydatne_linki) */
body.high-contrast .dw-section-card,
body.high-contrast .dw-praktyka-card,
body.high-contrast .dw-link-card {
    background: #111 !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
    color: #fff !important;
}
body.high-contrast .dw-section-num {
    background: #ffd43b !important;
    color: #000 !important;
}
body.high-contrast .dw-section-title,
body.high-contrast .dw-praktyka-title { color: #fff !important; }
body.high-contrast .dw-praktyka-num {
    color: #00fff0 !important;
}
body.high-contrast .dw-praktyka-subtitle { color: #d7d7d7 !important; }
body.high-contrast .dw-list li { color: #d7d7d7 !important; }
body.high-contrast .dw-list li strong { color: #fff !important; }
body.high-contrast .dw-list a { color: #00fff0 !important; }
body.high-contrast .dw-sub { color: #00fff0 !important; }
body.high-contrast .dw-heading {
    color: #00fff0 !important;
    border-bottom-color: #00fff0 !important;
}
/* Callouty (info, wskazówki) — z paskiem po lewej */
body.high-contrast .dw-callout {
    background: #002a26 !important;
    border-left-color: #00fff0 !important;
    color: #fff !important;
}
body.high-contrast .dw-callout-title { color: #00fff0 !important; }
body.high-contrast .dw-wskazowka {
    background: #1a1500 !important;
    border-left-color: #ffd43b !important;
}
body.high-contrast .dw-wskazowka-title { color: #ffd43b !important; }

/* Karty linków (przydatne_linki.html) */
body.high-contrast .dw-link-title { color: #00fff0 !important; }
body.high-contrast .dw-link-desc { color: #d7d7d7 !important; }
body.high-contrast .dw-link-url {
    background: #000 !important;
    color: #00fff0 !important;
    border: 1px solid #00fff0 !important;
}
body.high-contrast .dw-link-url:hover {
    background: #ffd43b !important;
    color: #000 !important;
    border-color: #ffd43b !important;
}
body.high-contrast .dw-link-translate {
    background: #002a26 !important;
}
body.high-contrast .dw-lang-badge {
    background: #ffd43b !important;
    color: #000 !important;
}

/* HC: ELEMENT 1 — szczegóły aktywności (.ap-*) */
body.high-contrast .ap-content-block,
body.high-contrast .ap-sidebar-card,
body.high-contrast .ap-scenario-card,
body.high-contrast .ap-motivational-quote {
    background: #111 !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
    color: #fff !important;
}
body.high-contrast .ap-content-block::before,
body.high-contrast .ap-scenario-card::before {
    background: #ffd43b !important;
}
/* Header karty ma własny gradient #fff → #fbfdfd — nadpisujemy na ciemne */
body.high-contrast .ap-content-head {
    background: #002a26 !important;
    border-bottom: 1px solid #00fff0 !important;
}
body.high-contrast .ap-content-body {
    background: #111 !important;
}
body.high-contrast .ap-content-block:hover {
    transform: none !important;
    border-color: #ffd43b !important;
    box-shadow: 0 0 0 3px #ffd43b !important;
}
body.high-contrast .ap-content-head-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
    border: 1px solid #00fff0;
}
body.high-contrast .ap-content-head h2 { color: #00fff0 !important; }
body.high-contrast .ap-description,
body.high-contrast .ap-content-body p { color: #d7d7d7 !important; }
body.high-contrast .ap-haslo {
    background: #002a26 !important;
    color: #fff !important;
    border-left: 4px solid #ffd43b !important;
    padding: .85rem 1.1rem !important;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
body.high-contrast .ap-haslo em,
body.high-contrast .ap-haslo i,
body.high-contrast .ap-haslo span,
body.high-contrast .ap-haslo p { color: #fff !important; }
body.high-contrast .ap-links-box {
    background: #002a26 !important;
    border: 1px solid #00fff0 !important;
}
body.high-contrast .ap-links-box a {
    color: #00fff0 !important;
}
body.high-contrast .ap-links-box a:hover { color: #ffd43b !important; }
body.high-contrast .ap-scenarios-title {
    color: #00fff0 !important;
    border-bottom-color: #00fff0 !important;
}
body.high-contrast .ap-scenario-card .card-title { color: #fff !important; }
body.high-contrast .ap-scenario-card p { color: #d7d7d7 !important; }
body.high-contrast .ap-scenario-card:hover {
    transform: none !important;
    border-color: #ffd43b !important;
    box-shadow: 0 0 0 3px #ffd43b !important;
}
body.high-contrast .ap-scenario-btn {
    background: #ffd43b !important;
    color: #000 !important;
    border: 2px solid #ffd43b !important;
}

/* Sidebar params w aktywnosc */
body.high-contrast .ap-sidebar-head {
    background: #002a26 !important;
    color: #00fff0 !important;
    border-bottom: 1px solid #00fff0;
}
body.high-contrast .ap-param-row {
    background: transparent !important;
    border-bottom: 1px solid #444 !important;
}
body.high-contrast .ap-param-row:hover { background: #002a26 !important; }
body.high-contrast .ap-param-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
    border: 1px solid #00fff0;
}
body.high-contrast .ap-param-label { color: #d7d7d7 !important; }
body.high-contrast .ap-param-value { color: #fff !important; }
body.high-contrast .ap-param-badge {
    background: #000 !important;
    color: #ffd43b !important;
    border: 2px solid #ffd43b !important;
    font-weight: 700;
}

/* Quote */
body.high-contrast .ap-motivational-quote p { color: #fff !important; font-style: italic; }
body.high-contrast .ap-quote-icon { color: #ffd43b !important; }

/* Nav prev/next aktywnosc */
body.high-contrast .ap-nav-btn {
    background: #111 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}
body.high-contrast .ap-nav-btn:hover {
    background: #1a1500 !important;
    color: #ffd43b !important;
    border-color: #ffd43b !important;
    transform: none !important;
    box-shadow: 0 0 0 3px #ffd43b !important;
}
body.high-contrast .ap-nav-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
}
body.high-contrast .ap-nav-btn:hover .ap-nav-icon {
    background: #ffd43b !important;
    color: #000 !important;
}
body.high-contrast .ap-nav-direction { color: #d7d7d7 !important; }

/* HC: ELEMENT 2 — szczegóły scenariusza (.sc-*) */
body.high-contrast .sc-hero-box,
body.high-contrast .sc-content-block,
body.high-contrast .sc-sidebar-card {
    background: #111 !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
    color: #fff !important;
}
body.high-contrast .sc-hero-box::after { display: none !important; }
body.high-contrast .sc-content-block::before {
    background: #ffd43b !important;
}
/* Header content-block w scenariuszu — własny gradient → ciemny */
body.high-contrast .sc-content-head {
    background: #002a26 !important;
    border-bottom: 1px solid #00fff0 !important;
}
body.high-contrast .sc-content-body {
    background: #111 !important;
}
/* Warianty kolorów contentu — wszystkie na żółte */
body.high-contrast .sc-content-block.sc-navy::before,
body.high-contrast .sc-content-block.sc-red::before,
body.high-contrast .sc-content-block.sc-gold::before {
    background: #ffd43b !important;
}
body.high-contrast .sc-content-block:hover {
    transform: none !important;
    border-color: #ffd43b !important;
    box-shadow: 0 0 0 3px #ffd43b !important;
}
body.high-contrast .sc-hero-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
    border: 1px solid #00fff0;
}
body.high-contrast .sc-hero-title { color: #fff !important; }
body.high-contrast .sc-hero-pill {
    background: #002a26 !important;
    color: #00fff0 !important;
    border: 1px solid #00fff0;
}
body.high-contrast .sc-hero-intro { color: #d7d7d7 !important; }
body.high-contrast .sc-breadcrumb .breadcrumb a { color: #00fff0 !important; }
body.high-contrast .sc-breadcrumb .breadcrumb a:hover { color: #ffd43b !important; }
body.high-contrast .sc-content-head-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
    border: 1px solid #00fff0;
}
body.high-contrast .sc-content-head h2 { color: #00fff0 !important; }
body.high-contrast .sc-content-body p { color: #d7d7d7 !important; }

/* Kroki scenariusza */
body.high-contrast .sc-step:not(:last-child) {
    border-bottom: 1px solid #444 !important;
}
body.high-contrast .sc-step-num {
    background: #ffd43b !important;
    color: #000 !important;
}
body.high-contrast .sc-step-title { color: #fff !important; }
body.high-contrast .sc-step-opis { color: #d7d7d7 !important; }
body.high-contrast .sc-step-czas {
    background: #002a26 !important;
    color: #00fff0 !important;
    border: 1px solid #00fff0;
}

/* Sidebar scenariusza — params */
body.high-contrast .sc-sidebar-head {
    background: #002a26 !important;
    color: #00fff0 !important;
    border-bottom: 1px solid #00fff0;
}
body.high-contrast .sc-param-row {
    background: transparent !important;
    border-bottom: 1px solid #444 !important;
}
body.high-contrast .sc-param-row:hover { background: #002a26 !important; }
body.high-contrast .sc-param-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
    border: 1px solid #00fff0;
}
body.high-contrast .sc-param-label { color: #d7d7d7 !important; }
body.high-contrast .sc-param-value { color: #fff !important; }
body.high-contrast .sc-param-badge {
    background: #000 !important;
    color: #ffd43b !important;
    border: 2px solid #ffd43b !important;
    font-weight: 700;
}

/* Link "powrót do aktywności" */
body.high-contrast .sc-aktywnosc-link {
    background: #000 !important;
    color: #00fff0 !important;
    border: 2px solid #00fff0 !important;
}
body.high-contrast .sc-aktywnosc-link:hover {
    background: #ffd43b !important;
    color: #000 !important;
    border-color: #ffd43b !important;
}

/* Sidebar — "Inne z tego obszaru" + "Inne obszary" (.sc-obszar-card)
   te same klasy używane są dla obu sekcji */
body.high-contrast .sc-obszar-card {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
}
body.high-contrast .sc-obszar-card:hover {
    background: #002a26 !important;
    color: #00fff0 !important;
    border-color: #00fff0 !important;
    transform: none !important;
    box-shadow: 0 0 0 2px #00fff0 !important;
}
body.high-contrast .sc-obszar-card small {
    color: #d7d7d7 !important;
}
/* Ikony obszarów (PNG/SVG) wewnątrz kafelków */
body.high-contrast .sc-obszar-card img {
    filter: brightness(0) invert(1) !important;
}
body.high-contrast .sc-obszar-card i {
    color: #00fff0 !important;
}
/* Inline-styled ikony obszarów (np. style="color:#009B8D") nadpisuję */
body.high-contrast .sc-obszar-card i[style] {
    color: #00fff0 !important;
}

/* Przycisk "Pobierz PDF" w sidebarze — ma inline style="background:#009B8D;color:#fff;" */
body.high-contrast a.btn[style*="background:#009B8D"],
body.high-contrast a.btn[style*="background: #009B8D"] {
    background: #ffd43b !important;
    color: #000 !important;
    border: 2px solid #ffd43b !important;
    box-shadow: none !important;
}
body.high-contrast a.btn[style*="background:#009B8D"]:hover,
body.high-contrast a.btn[style*="background: #009B8D"]:hover {
    background: #fff !important;
}
/* Ikonki w obszar-card head — img z filter:brightness(0) invert(1) */
body.high-contrast .sc-sidebar-head img[style*="invert"] {
    filter: brightness(0) invert(1) sepia(1) saturate(8) hue-rotate(140deg) !important;
}

/* HC: Quill rich-text content (.ql-editor-content) — używane w aktywnosc i scenariusz */
body.high-contrast .ql-editor-content,
body.high-contrast .ql-editor-content p,
body.high-contrast .ql-editor-content li,
body.high-contrast .ql-editor-content span { color: #d7d7d7 !important; }
body.high-contrast .ql-editor-content strong,
body.high-contrast .ql-editor-content b { color: #fff !important; }
body.high-contrast .ql-editor-content h1,
body.high-contrast .ql-editor-content h2,
body.high-contrast .ql-editor-content h3,
body.high-contrast .ql-editor-content h4 { color: #00fff0 !important; }
body.high-contrast .ql-editor-content a {
    color: #ffd43b !important;
    text-decoration: underline;
}
body.high-contrast .ql-editor-content a:hover { color: #fff !important; }
body.high-contrast .ql-editor-content blockquote {
    background: #1a1500 !important;
    color: #fff !important;
    border-left: 4px solid #ffd43b !important;
    padding: .65rem 1rem !important;
}

/* HC: KONTAKT — polityka prywatności (.pp-*) */
body.high-contrast .pp-intro,
body.high-contrast .pp-update { color: #d7d7d7 !important; }
body.high-contrast .pp-section-title {
    color: #fff !important;
    border-bottom-color: #00fff0 !important;
}
body.high-contrast .pp-sub-title { color: #00fff0 !important; }
body.high-contrast .pp-list li { color: #d7d7d7 !important; }
body.high-contrast .pp-list li strong { color: #fff !important; }
body.high-contrast .pp-list a {
    color: #ffd43b !important;
    text-decoration: underline;
}
body.high-contrast .pp-list a:hover { color: #fff !important; }
body.high-contrast .pp-info-box {
    background: #002a26 !important;
    border: 2px solid #00fff0 !important;
    color: #fff !important;
}

/* HC: DODAJ — formularz dodawania (.dodaj-*) */
body.high-contrast .dodaj-card {
    background: #111 !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
}
body.high-contrast .dodaj-card-head {
    background: #002a26 !important;
    color: #00fff0 !important;
    border-bottom: 1px solid #00fff0;
}
body.high-contrast .dodaj-card-head i { color: #00fff0 !important; }
body.high-contrast .dodaj-label { color: #d7d7d7 !important; }
body.high-contrast .dodaj-label .opt { color: #888 !important; }
body.high-contrast .dodaj-form .form-control,
body.high-contrast .dodaj-form .form-select {
    background: #000 !important;
    color: #fff !important;
    border: 1.5px solid #fff !important;
}
body.high-contrast .dodaj-form .form-control:focus,
body.high-contrast .dodaj-form .form-select:focus {
    border-color: #ffd43b !important;
    box-shadow: 0 0 0 4px rgba(255,212,59,.4) !important;
}
body.high-contrast .dodaj-typ-btn {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}
body.high-contrast .dodaj-typ-btn:hover {
    background: #002a26 !important;
    color: #00fff0 !important;
    border-color: #00fff0 !important;
}
body.high-contrast .dodaj-typ-btn.active {
    background: #ffd43b !important;
    color: #000 !important;
    border-color: #ffd43b !important;
}
body.high-contrast .dodaj-submit {
    background: #ffd43b !important;
    color: #000 !important;
    border: 2px solid #ffd43b !important;
    box-shadow: none !important;
}
body.high-contrast .dodaj-submit:hover {
    background: #fff !important;
    transform: none !important;
}
body.high-contrast .dodaj-hero { background: #000 !important; }

/* HC: ELEMENT 5 — wspólne klasy .sw-* i .e5-* używane w o_innowacji,
   o_testowaniu, opinie, mapa, materialy, _sidebar.html, _nav.html. */

/* Sidebar (element5/_sidebar.html) */
body.high-contrast .e5-sidebar-card {
    background: #111 !important;
    border: 2px solid #fff !important;
}
body.high-contrast .e5-sidebar-head {
    background: #002a26 !important;
    color: #00fff0 !important;
    border-bottom: 1px solid #00fff0;
}
body.high-contrast .e5-sidebar-link {
    background: transparent !important;
    color: #fff !important;
    border-bottom-color: #444 !important;
}
body.high-contrast .e5-sidebar-link:hover {
    background: #002a26 !important;
    color: #00fff0 !important;
}
body.high-contrast .e5-sidebar-link.active {
    background: #1a1500 !important;
    color: #ffd43b !important;
    border-left-color: #ffd43b !important;
}
body.high-contrast .e5-sidebar-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
}
body.high-contrast .e5-sidebar-link.active .e5-sidebar-icon {
    background: #ffd43b !important;
    color: #000 !important;
}

/* Nav prev/next (element5/_nav.html) */
body.high-contrast .e5-nav-btn {
    background: #111 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}
body.high-contrast .e5-nav-btn:hover {
    background: #1a1500 !important;
    color: #ffd43b !important;
    border-color: #ffd43b !important;
    transform: none !important;
    box-shadow: 0 0 0 3px #ffd43b !important;
}
body.high-contrast .e5-nav-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
}
body.high-contrast .e5-nav-btn:hover .e5-nav-icon {
    background: #ffd43b !important;
    color: #000 !important;
}
body.high-contrast .e5-nav-direction { color: #d7d7d7 !important; }
body.high-contrast .e5-nav-title { color: inherit !important; }

/* Wspólne klasy .sw-* (Skąd wiemy?) */
body.high-contrast .sw-section-title {
    color: #fff !important;
    border-bottom-color: #00fff0 !important;
}
body.high-contrast .sw-sub-title { color: #fff !important; }
body.high-contrast .sw-list li { color: #d7d7d7 !important; }
body.high-contrast .sw-list li strong { color: #fff !important; }

/* Callout (cytaty/wskazówki na ramce) */
body.high-contrast .sw-callout {
    background: #1a1500 !important;
    color: #fff !important;
    border-left-color: #ffd43b !important;
}
body.high-contrast .sw-callout strong { color: #ffd43b !important; }

/* Karty osób (innowatorki, autor) */
body.high-contrast .sw-person-card,
body.high-contrast .sw-team-box,
body.high-contrast .sw-benefit-box,
body.high-contrast .sw-partner-card,
body.high-contrast .sw-etap,
body.high-contrast .sw-org-card,
body.high-contrast .sw-form-box {
    background: #111 !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
    color: #fff !important;
}
body.high-contrast .sw-person-name { color: #00fff0 !important; }
body.high-contrast .sw-person-role { color: #d7d7d7 !important; }
body.high-contrast .sw-quote {
    color: #fff !important;
    border-left-color: #ffd43b !important;
    background: #1a1500 !important;
    padding: .65rem 1rem !important;
    border-radius: 0 8px 8px 0;
}

body.high-contrast .sw-team-title,
body.high-contrast .sw-benefit-title,
body.high-contrast .sw-partner-name,
body.high-contrast .sw-etap-title { color: #00fff0 !important; }
body.high-contrast .sw-benefit-title i,
body.high-contrast .sw-partner-icon { color: #00fff0 !important; }
body.high-contrast .sw-team-list li {
    color: #d7d7d7 !important;
    border-bottom-color: #444 !important;
}

/* Etapy testowania — numery */
body.high-contrast .sw-etap-num {
    background: #ffd43b !important;
    color: #000 !important;
}

/* Partner-icon kółko */
body.high-contrast .sw-partner-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
    border: 1px solid #00fff0;
}
body.high-contrast .sw-partner-desc { color: #d7d7d7 !important; }

/* Mapa — karty miejsc */
body.high-contrast .sw-org-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
    border: 1px solid #00fff0;
}
body.high-contrast .sw-org-name { color: #00fff0 !important; }
body.high-contrast .sw-org-org { color: #d7d7d7 !important; }
body.high-contrast .sw-org-address,
body.high-contrast .sw-org-opis { color: #d7d7d7 !important; }
body.high-contrast .sw-org-link {
    background: #000 !important;
    color: #00fff0 !important;
    border: 1px solid #00fff0 !important;
}
body.high-contrast .sw-org-link:hover {
    background: #ffd43b !important;
    color: #000 !important;
    border-color: #ffd43b !important;
}
body.high-contrast .sw-org-card.highlighted {
    border-color: #ffd43b !important;
    box-shadow: 0 0 0 3px #ffd43b !important;
    transform: none !important;
}

/* CTA box "Chcesz dołączyć do mapy?" */
body.high-contrast .sw-cta-box {
    background: #002a26 !important;
    border: 2px solid #00fff0 !important;
    color: #fff !important;
}
body.high-contrast .sw-cta-icon {
    background: #ffd43b !important;
    color: #000 !important;
}
body.high-contrast .sw-cta-title { color: #00fff0 !important; }

/* Coming-soon / placeholder */
body.high-contrast .sw-coming-soon,
body.high-contrast .sw-gallery-placeholder {
    background: #111 !important;
    border: 2px dashed #00fff0 !important;
    color: #d7d7d7 !important;
}
body.high-contrast .sw-coming-soon .bi,
body.high-contrast .sw-gallery-placeholder .bi { color: #00fff0 !important; opacity: 1 !important; }
body.high-contrast .sw-coming-soon h3 { color: #00fff0 !important; }

/* Divider */
body.high-contrast .sw-divider { border-top-color: #444 !important; }

/* Opinie - blockquote cards */
body.high-contrast .sw-opinia-card {
    background: #111 !important;
    border: 2px solid #fff !important;
    border-left: 4px solid #ffd43b !important;
    box-shadow: none !important;
}
body.high-contrast .sw-opinia-tresc { color: #fff !important; }
body.high-contrast .sw-opinia-meta { color: #d7d7d7 !important; }
body.high-contrast .sw-opinia-meta strong { color: #00fff0 !important; }

/* Galeria */
body.high-contrast .sw-gallery-item {
    background: #111 !important;
    box-shadow: none !important;
    border: 2px solid #fff;
}
body.high-contrast .sw-gallery-item:hover {
    transform: none !important;
    box-shadow: 0 0 0 3px #ffd43b !important;
    border-color: #ffd43b !important;
}
body.high-contrast .sw-gallery-item:focus-visible {
    outline-color: #ffd43b !important;
}
body.high-contrast .sw-gallery-caption {
    background: rgba(0,0,0,.92) !important;
    color: #ffd43b !important;
}

/* Lightbox */
body.high-contrast .sw-lightbox {
    background: rgba(0,0,0,.97) !important;
}
body.high-contrast .sw-lb-close,
body.high-contrast .sw-lb-prev,
body.high-contrast .sw-lb-next {
    background: #000 !important;
    color: #00fff0 !important;
    border: 2px solid #00fff0 !important;
    backdrop-filter: none !important;
}
body.high-contrast .sw-lb-close:hover,
body.high-contrast .sw-lb-prev:hover,
body.high-contrast .sw-lb-next:hover {
    background: #ffd43b !important;
    color: #000 !important;
    border-color: #ffd43b !important;
}
body.high-contrast .sw-lb-tytul { color: #fff !important; }
body.high-contrast .sw-lb-opis { color: #d7d7d7 !important; }
body.high-contrast .sw-lb-counter { color: #ffd43b !important; }

/* Mapa Leaflet — popup (pw-popup-*) */
body.high-contrast .pw-popup-head {
    background: #ffd43b !important;
    color: #000 !important;
}
body.high-contrast .pw-popup-body { color: #fff !important; background: #111; }
body.high-contrast .pw-popup-addr { color: #00fff0 !important; }
body.high-contrast .pw-popup-scroll {
    color: #00fff0 !important;
    background: #000 !important;
    border: 1px solid #00fff0 !important;
    padding: .35rem .7rem !important;
    border-radius: 6px !important;
}
body.high-contrast .pw-popup-scroll:hover {
    background: #ffd43b !important;
    color: #000 !important;
    border-color: #ffd43b !important;
}

/* HC: page-hero — kicker pill, akcent w h1, lead text (wspólne dla podstron) */
body.high-contrast .page-hero .page-hero-kicker {
    background: #111 !important;
    color: #00fff0 !important;
    border-color: #00fff0 !important;
    box-shadow: none !important;
}
body.high-contrast .page-hero .page-hero-kicker i { color: #00fff0 !important; }
body.high-contrast .page-hero h1 span,
body.high-contrast .page-hero:not(.ws-page-hero) h1 span {
    color: #ffd43b !important;
}
body.high-contrast .page-hero .lead,
body.high-contrast .page-hero p.lead,
body.high-contrast .page-hero-grid > p {
    color: #d7d7d7 !important;
}
body.high-contrast .page-hero::before,
body.high-contrast .page-hero::after,
body.high-contrast .page-hero:not(.ws-page-hero)::after { display: none !important; }
body.high-contrast .page-hero-icon {
    background: #002a26 !important;
    color: #00fff0 !important;
    box-shadow: none !important;
}

/* ─── Print ──────────────────────────────────────────────────────────────── */
/* ─── Pills / Chips (używane też na podstronach) ────────────────────────── */
.adm-pill {
    display: inline-block; padding: 3px 10px;
    border-radius: 100px; font-size: 0.78rem; font-weight: 600;
}
.adm-pill-easy   { background: #e8f7f6; color: #006e63; }
.adm-pill-medium { background: #fef7e8; color: #a0720e; }
.adm-pill-hard   { background: #fdecea; color: #c0392b; }
.adm-pill-teal   { background: var(--powers-teal-pale); color: var(--powers-teal-dark); }
.adm-pill-gray   { background: #f0f0f0; color: #555; }


@media print {
    .accessibility-bar,
    .navbar,
    .footer,
    .logos-bar,
    .skip-link,
    .btn-powers,
    .btn-accent {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* ─── Pasek z logotypami partnerów (nad stopką) ─────────────────────────
   Białe tło, środkowane logo, responsywne (na mobile mniejsze).
   Sekcja jest na każdej stronie - część base.html, nad footerem. */
.logos-bar {
    background:
        linear-gradient(180deg, #f6fbfb 0%, #eef7f6 100%);
    padding: 2.75rem 1rem;
    border-top: 1px solid #dcebea;
}

.logos-card {
    display: block;
    padding: clamp(1.25rem, 2.4vw, 2rem);
    border-radius: 24px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(0,143,134,.16);
    box-shadow: 0 18px 42px rgba(15, 42, 63, .07);
}

.logos-frame {
    padding: clamp(1rem, 2.5vw, 1.6rem) clamp(1rem, 4vw, 2rem);
    border-radius: 18px;
    background: transparent;
    border: 0;
    text-align: center;
}
.logos-img {
    max-width: 100%;
    height: auto;
    /* Maksymalna wysokość żeby na dużych ekranach nie rozjeżdżało się
       w pionie - obrazek z 6 logotypami w dwóch rzędach jest dość wysoki.
       Bootstrap container ogranicza szerokość, ale wysokość kontrolujemy ręcznie. */
    max-height: 220px;
    object-fit: contain;
}
@media (max-width: 767.98px) {
    .logos-bar { padding: 1.75rem 1rem; }
    .logos-card { border-radius: 20px; }
    .logos-img { max-height: 180px; }
}

/* ─── Stopka: blok "Twórca innowacji" z logo Stowarzyszenia ─────────────
   Logo MOCnaMOC ma kolorystykę na bezpośrednio jasnym tle, więc na ciemnej
   stopce wstawiamy je do delikatnego białego kafelka z paddingiem. */
.footer-tworca-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.55);
    margin-bottom: .55rem;
}
.footer-tworca-link {
    display: inline-block;
    background: #fff;
    border-radius: 8px;
    padding: .55rem .8rem;
    transition: transform .15s, box-shadow .15s;
}
.footer-tworca-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.footer-tworca-logo {
    display: block;
    max-width: 170px;
    height: auto;
    max-height: 36px;
}

.footer-license {
    display: flex;
    align-items: center;
    gap: .65rem;
    line-height: 1.45;
}

.footer-license-img {
    display: block;
    width: 78px;
    height: auto;
    flex: 0 0 auto;
    border-radius: 2px;
}

body.high-contrast .footer-license {
    color: #d7d7d7 !important;
    opacity: 1 !important;
}

body.high-contrast .footer-license a {
    color: #00fff0 !important;
}

@media (max-width: 767.98px) {
    .footer-license {
        align-items: flex-start;
    }
}

/* WCAG 2.2: public accessibility layer */
:root {
    --powers-focus-ring: #102942;
    --powers-focus-glow: rgba(246, 165, 26, .38);
    --powers-teal-aa: #006f72;
    --powers-muted-aa: #4f6870;
}

*:focus-visible {
    outline: 4px solid var(--powers-focus-ring) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px var(--powers-focus-glow) !important;
}

a,
.text-primary,
.link-primary {
    color: var(--powers-teal-aa);
}

a:hover,
a:focus {
    color: #004f53;
}

.text-muted,
.small,
small,
.lead {
    color: var(--powers-muted-aa);
}

.btn-powers-outline,
.btn-outline-primary {
    color: var(--powers-teal-aa);
    border-color: var(--powers-teal-aa);
}

.btn-powers-outline:hover,
.btn-outline-primary:hover {
    background: var(--powers-teal-aa);
    border-color: var(--powers-teal-aa);
}

button:disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Public subpage hero — base rules above are the single source of truth.
   Old override block was removed to unify font sizes with "Jak działać?". */
