:root {
    --primary: #38bdf8;
    --primary-hover: #7dd3fc;
    --secondary: #10b981;
    --bg: #0f172a;
    --surface: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #ef4444;
    --glass-border: rgba(255, 255, 255, 0.1);
    /* Colors for dark navbar explicitly */
    --nav-bg: rgba(15, 23, 42, 0.85);
    --nav-text: #f8fafc;
    --nav-primary: #38bdf8;
    --nav-primary-hover: #7dd3fc;
    --nav-glass-border: rgba(255, 255, 255, 0.1);
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Pasek postępu przewijania strony */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--nav-primary));
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* --- Nawigacja --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--nav-glass-border);
    transition: all 0.3s ease;
}

.navbar .logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.navbar .nav-links {
    flex: 2;
    justify-content: center;
}

.navbar .hamburger {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--nav-text);
}

.logo-text .accent {
    color: var(--nav-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li a, .nav-links a {
    text-decoration: none;
    color: var(--nav-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links li a:hover, .nav-links a:hover {
    color: var(--nav-primary);
}

.nav-links a.active-link {
    color: var(--nav-primary) !important;
    position: relative;
    font-weight: 600;
}

.nav-links a.active-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--nav-primary);
    border-radius: 10px;
    box-shadow: 0 0 12px var(--nav-primary);
}

/* --- Dropdown Navigation --- */
.nav-dropdown {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--nav-glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    list-style: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 500;
    /* Padding zamiast gap - menu zaczyna się bezpośrednio pod linkiem */
    padding-top: 0.75rem;
    margin-top: 0;
}

/* Niewidoczny pomost między linkiem a menu żeby hover nie znikał */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.15s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: var(--nav-text) !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--nav-primary) !important;
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--nav-primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 12px;
    margin-left: 20px;
    align-items: center;
}

.lang-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.flag-icon {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hamburger {
    display: none;
}

@media (max-width: 1200px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
        border-top: 1px solid var(--nav-glass-border);
        gap: 1.5rem;
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 101;
    }
    
    .hamburger .line {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .lang-switcher {
        display: flex;
        margin-left: 0;
        margin-right: 20px;
    }

    /* Dropdown w mobile - wyświetl inline pod linkiem */
    .dropdown-menu {
        position: static;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-radius: 8px;
        box-shadow: none;
        padding: 0.25rem 0;
        min-width: unset;
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .hero-stats {
        justify-content: center;
    }
}

@keyframes pulse-heart {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.logo-ecg-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-ecg 3s linear infinite;
}

@keyframes draw-ecg {
    to {
        stroke-dashoffset: 0;
    }
}

.accent-text,
.accent {
    color: var(--primary);
}



/* --- MODAL V2 --- */
.modal-v2-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.modal-v2-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: white;
    margin: 0.5rem 0 0;
}

.modal-v2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.modal-v2-visual img {
    width: 100%;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

.modal-v2-info h4 {
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.modal-v2-info p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-v2-info ul {
    padding-left: 1.25rem;
    color: #94a3b8;
}

.modal-v2-info li {
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .modal-v2-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .modal-v2-title { font-size: 1.5rem; }
}



/* --- Hero Section V2 --- */
.hero.v2-hero-index {
    padding: 100px 5% 70px;
    background: radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.15), transparent 45%),
                radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.1), transparent 45%),
                linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.hero-ekg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1.1;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: live-blink 1.2s infinite ease-in-out;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 55%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2.2rem;
    max-width: 580px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.95rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.45);
    color: #0f172a;
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: white;
    transform: translateY(-3px);
}

/* === ATLAS 2.0 GLOBAL DESIGN SYSTEM COMPONENTS === */

/* Standardowa Sekcja Hero (Atlas 2.0) dla wszystkich podstron */
.v2-hero, .page-hero-atlas {
    padding: 110px 5% 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.14), transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08), transparent 45%),
                linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
    border-bottom: 1px solid var(--glass-border);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.v2-hero h1, .page-hero-atlas h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #f8fafc;
}

.v2-hero p, .page-hero-atlas p {
    color: #94a3b8;
    font-size: 1.18rem;
    max-width: 720px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
}

.hero-bg-accent {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.15) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

/* Interaktywne Chipy informacyjne */
.hero-stats-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.2rem auto 2.2rem;
}

.hero-stats-chips .chip, .chip {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 7px 16px;
    border-radius: 99px;
    font-size: 0.88rem;
    color: #cbd5e1;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.hero-stats-chips .chip:hover, .chip:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 15px rgba(56, 189, 248, 0.15);
}

.chip-num {
    color: #38bdf8;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

/* Severity Pills (Wskaźniki pilności klinicznej) */
.severity-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.severity-pill.normal {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.severity-pill.warning, .severity-pill.urgent {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.severity-pill.danger, .severity-pill.critical {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.severity-pill.info {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

/* Uniwersalne Szklane Karty Cyber-Glass */
.cyber-glass-card, .atlas-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cyber-glass-card:hover, .atlas-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.18);
}

/* Szklana Karta Treści Edukacyjnych (Lekcje i Artykuły) */
.content-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    padding: 3rem !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    overflow: hidden;
}

.content-card h1 {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(2.2rem, 4vw, 2.8rem) !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    letter-spacing: -0.02em;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(16, 185, 129, 0.06)) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-left: 5px solid #38bdf8 !important;
    border-radius: 14px !important;
    padding: 1.6rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Cyber Kardiomonitor w Hero */
.hero-visual {
    flex: 0.9;
}

.cyber-monitor-card {
    background: #060a14;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
    overflow: hidden;
    position: relative;
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.lead-badge {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.lead-text {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: 6px;
}

.monitor-hr {
    color: #7dd3fc;
    font-weight: 700;
}

.heart-pulse {
    display: inline-block;
    animation: heart-beat 1s ease-in-out infinite;
}

.hr-val {
    color: #38bdf8;
    font-size: 1.1rem;
    font-weight: 800;
}

.monitor-live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: live-blink 1.2s ease-in-out infinite;
}

.monitor-screen {
    position: relative;
    height: 180px;
    background: #060a14;
    overflow: hidden;
}

.monitor-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

.scan-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, transparent, rgba(56, 189, 248, 0.4), transparent);
    z-index: 3;
    pointer-events: none;
    animation: scan-sweep 2.5s linear infinite;
}

.monitor-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.monitor-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 18px;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
}

.monitor-tag {
    color: #64748b;
}

.text-emerald {
    color: #10b981;
    font-weight: 700;
}

/* --- Features --- */
/* --- Features Glassmorphism --- */
.features {
    padding: 5rem 5%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3.5rem 2.5rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.f-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    transition: transform 0.4s ease;
}

.feature-card:hover .f-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f8fafc;
    font-weight: 700;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 0;
}

.feature-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--nav-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.feature-link:hover {
    color: var(--nav-primary-hover);
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* --- Nagłówki Sekcji Premium --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- O Autorze Premium --- */
.about-author {
    padding: 6rem 5%;
    background: #020617; /* Głęboka czerń dla kontrastu */
    position: relative;
    overflow: hidden;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 4.5rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    max-width: 1000px;
    margin: 0 auto;
}

.author-image {
    font-size: 6rem;
    background: rgba(56, 189, 248, 0.1);
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
    position: relative;
    flex-shrink: 0;
}

.author-image::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50px;
    border: 1px dashed rgba(56, 189, 248, 0.3);
    animation: rotate-author 20s linear infinite;
}

@keyframes rotate-author {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.author-bio h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.author-bio .lead {
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    color: #38bdf8;
    font-weight: 600;
}

.author-bio p {
    color: #94a3b8;
    line-height: 1.8;
}

.author-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.a-stat {
    background: rgba(56, 189, 248, 0.08);
    padding: 0.8rem 1.4rem;
    border-radius: 14px;
    font-size: 0.95rem;
    color: #e2e8f0;
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-weight: 600;
}

@media (max-width: 768px) {
    .author-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
        gap: 2.5rem;
    }
    
    .author-image {
        width: 150px;
        height: 150px;
        font-size: 5rem;
    }
}

/* --- Atlas Sekcja --- */
.quick-atlas {
    padding: 5rem 5%;
    background: #0f172a;
    color: white;
}

.container-full {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header.invert h2 {
    color: white;
}

.atlas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ecg-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.ecg-card:hover {
    transform: translateY(-8px);
    border-color: var(--nav-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ecg-visual {
    height: 140px;
    background: #000;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ecg-visual img {
    width: 100%;
    height: 140%; /* Increase height to allow cropping */
    object-fit: cover;
    object-position: center 40px; /* Shift image down to hide top red bar */
}

.ecg-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
    display: none;
    /* Ukryte, ponieważ prawdziwe grafiki EKG mają już siatkę */
}

.ecg-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-repeat: repeat-x;
    background-position: 0 center;
    background-size: 800px auto;
    transform: translateY(-50%);
}

@keyframes scroll-ecg {
    from {
        background-position: 0 center;
    }

    to {
        background-position: -800px center;
    }
}

/* Animacje EKG zostały zastąpione statycznymi grafikami w formacie JPG.
Należy wrzucić pliki np. af.jpg, stemi.jpg do folderu images/ekg/ */

.af-animation {
    background-image: url('images/ekg/af.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stemi-animation {
    background-image: url('images/ekg/stemi.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.block-animation {
    background-image: url('images/ekg/block.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vt-animation {
    background-image: url('images/ekg/vt.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.normal-sinus-animation {
    background-image: url('images/ekg/normal-sinus.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sinus-tach-animation {
    background-image: url('images/ekg/sinus-tach.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sinus-brady-animation {
    background-image: url('images/ekg/sinus-brady.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stemi-v-animation {
    background-image: url('images/ekg/stemi-v.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ischemia-animation {
    background-image: url('images/ekg/ischemia.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.block-1-animation {
    background-image: url('images/ekg/block-1.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.block-3-animation {
    background-image: url('images/ekg/block-3.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pvc-animation {
    background-image: url('images/ekg/pvc.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wpw-animation {
    background-image: url('images/ekg/wpw.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hyperkalemia-animation {
    background-image: url('images/ekg/hyperkalemia.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.asystole-animation {
    background-image: url('images/ekg/asystole.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flutter-animation {
    background-image: url('images/ekg/flutter.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.svt-animation {
    background-image: url('images/ekg/svt.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vf-animation {
    background-image: url('images/ekg/vf.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wellens-animation {
    background-image: url('images/ekg/wellens.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dewinter-animation {
    background-image: url('images/ekg/dewinter.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.torsade-animation {
    background-image: url('images/ekg/torsade.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pac-animation {
    background-image: url('images/ekg/pac.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wap-animation {
    background-image: url('images/ekg/wap.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mat-animation {
    background-image: url('images/ekg/mat.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bigeminy-animation {
    background-image: url('images/ekg/bigeminy.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aivr-animation {
    background-image: url('images/ekg/aivr.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aneurysm-animation {
    background-image: url('images/ekg/aneurysm.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pericarditis-animation {
    background-image: url('images/ekg/pericarditis.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.block-mobitz2-animation {
    background-image: url('images/ekg/block-mobitz2.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rbbb-animation {
    background-image: url('images/ekg/rbbb.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lbbb-animation {
    background-image: url('images/ekg/lbbb.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hypercalcemia-animation {
    background-image: url('images/ekg/hypercalcemia.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hypocalcemia-animation {
    background-image: url('images/ekg/hypocalcemia.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hypokalemia-animation {
    background-image: url('images/ekg/hypokaliemia.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.digitalis-animation {
    background-image: url('images/ekg/digitalis.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pe-animation {
    background-image: url('images/ekg/pe.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.osborn-animation {
    background-image: url('images/ekg/osborn.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lahb-animation {
    background-image: url('images/ekg/lahb.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lphb-animation {
    background-image: url('images/ekg/lphb.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.junctional-animation {
    background-image: url('images/ekg/junctional.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sss-animation {
    background-image: url('images/ekg/sss.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dextro-animation {
    background-image: url('images/ekg/dextro.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trifascicular-animation {
    background-image: url('images/ekg/trifascicular.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.depression-st-animation {
    background-image: url('images/ekg/depression-st.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pace-pvc-animation {
    background-image: url('images/ekg/pace-pvc.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lqt-animation {
    background-image: url('images/ekg/lqt.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.brugada-animation {
    background-image: url('images/ekg/brugada.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lvh-animation {
    background-image: url('images/ekg/lvh.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rvh-animation {
    background-image: url('images/ekg/rvh.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pea-animation {
    background-image: url('images/ekg/pea.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.tag-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tag-urgent {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.tag-info {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.ecg-params {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.ecg-params span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.atlas-footer {
    text-align: center;
    margin-top: 5rem;
}

/* --- Footer --- */
footer {
    padding: 4rem 5%;
    border-top: 1px solid #e2e8f0;
}

.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Mobile */
@media (max-width: 968px) {

    .hero-container,
    .quick-atlas .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Realistyczne krzywe EKG */














/* Pozostałe 33 przypadki - czytelna animacja zastępcza */






























/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #1e293b;
    margin: 5vh auto;
    padding: 3rem;
    width: 90%;
    max-width: 1000px;
    border-radius: 30px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.3s;
}

.close:hover {
    color: white;
    transform: rotate(90deg);
}

.modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .modal-layout {
        grid-template-columns: 1fr;
    }
}

.ecg-visual.large {
    height: 300px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
    position: relative;
    overflow: hidden;
}

.modal-text h3 {
    color: #3b82f6;
    margin: 1.5rem 0 0.5rem;
}

.modal-text ul {
    list-style: none;
    padding: 0;
}

.modal-text li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.modal-text li::before {
    content: '→';
    margin-right: 0.8rem;
    color: #3b82f6;
}

/* --- Kontakt --- */
.contact-page .contact-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.contact-card {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    background: var(--surface);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.c-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.c-icon {
    font-size: 2.5rem;
    background: rgba(59, 130, 246, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
}

.c-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.c-item p,
.c-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
}

.c-item a:hover {
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0f172a;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-block {
    width: 100%;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 2rem;
        gap: 2rem;
    }
}

/* Medical Disclaimer & Cookies */
.medical-disclaimer {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.medical-disclaimer strong {
    display: block;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 20px;
    right: 20px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.active {
    bottom: 20px;
}

.cookie-content p {
    color: #f1f5f9;
    margin: 0;
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    margin-left: 2rem;
}

.btn-cookie {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-ok {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
}

.btn-ok:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-allow {
    background: var(--accent);
    color: white;
}

.btn-allow:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-decline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #94a3b8;
}

.btn-decline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    .cookie-actions { margin-left: 0; }
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Special Nav Links === */
.nav-links a.nav-atlas {
    color: #f59e0b !important;
    font-weight: 700 !important;
}
.nav-links a.nav-atlas:hover {
    color: #fbbf24 !important;
}
.nav-links a.nav-support {
    color: #a78bfa !important;
    font-weight: 700 !important;
}
.nav-links a.nav-support:hover {
    color: #c4b5fd !important;
}


/* ================================================
   ANATOMIA - style specyficzne dla strony anatomii
   ================================================ */
.anatomy-page {
    background-color: var(--bg);
    color: var(--text-main);
    padding-top: 0;
}

.anatomy-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.anatomy-header {
    text-align: center;
    padding: 4rem 1rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.anatomy-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.anatomy-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.heart-svg {
    width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.1));
}

.node {
    cursor: pointer;
    transition: all 0.3s;
    transform-origin: center;
}

.node:hover {
    filter: brightness(1.3);
    stroke: #fff;
    stroke-width: 2px;
}

.pathway {
    stroke-dasharray: 5;
    animation: dash 2s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -20; }
}

.anatomy-info {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.anatomy-info h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.node-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.node-list li {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 0.75rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    line-height: 1.5;
}

.node-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.node-list li strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: white;
}

.heart-interactive-section {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.heart-map-container {
    position: relative;
    flex: 1.4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.heart-map-container img {
    width: 100%;
    height: auto;
    display: block;
}

.label-patch {
    position: absolute;
    background-color: rgba(15, 23, 42, 0.9);
    color: var(--nav-primary);
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    white-space: nowrap;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.label-patch:hover,
.label-patch.active {
    background-color: var(--primary);
    color: #0f172a;
    border-color: white;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    z-index: 20;
    transform: translate(-50%, -50%) scale(1.1);
}

.heart-info-panel {
    flex: 1;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    position: sticky;
    top: 100px;
}

.heart-info-title {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
}

.heart-info-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.ekg-diagnostic-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.ekg-diagnostic-box.visible {
    display: block;
    animation: fadeInAnat 0.3s ease;
}

.ekg-diagnostic-box h4 {
    margin: 0 0 5px 0;
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ekg-diagnostic-box p {
    margin: 0;
    font-weight: 500;
    color: white;
    font-size: 0.85rem;
}

@keyframes fadeInAnat {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .anatomy-container { grid-template-columns: 1fr; gap: 2rem; }
    .heart-interactive-section { flex-direction: column; }
    .heart-map-container, .heart-info-panel { width: 100%; }
    .heart-info-panel { position: static; }
    .label-patch { padding: 2px 5px; font-size: 8px; }
}

/* ================================================
   INTERAKTYWNE - style specyficzne
   ================================================ */
:root {
    --accent-blue: #3b82f6;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
}

.interactive-hero {
    padding: 80px 20px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
}

.interactive-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.module-section {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.module-header {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--glass-border);
}

.module-header h2 { font-size: 1.5rem; color: #fff; margin-bottom: 5px; }
.module-header p { color: var(--text-muted); font-size: 0.95rem; }
.module-body { padding: 1.5rem; }

.simulator-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.sim-display {
    background: #000;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sim-controls { display: flex; flex-direction: column; gap: 1rem; }
.control-group label { display: flex; justify-content: space-between; font-size: 0.85rem; color: #cbd5e1; margin-bottom: 4px; }
.control-group input[type="range"] { width: 100%; accent-color: var(--accent-blue); }

.assistant-layout { display: flex; flex-direction: column; align-items: center; }
.question-box {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    text-align: center;
}
.question-box h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.answer-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn-answer {
    background: #1e293b; color: #fff; border: 1px solid #334155;
    padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 0.95rem; transition: all 0.2s;
}
.btn-answer:hover { background: var(--accent-blue); border-color: var(--accent-blue); }

.heart-vis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.heart-svg-box {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    height: 320px;
    display: flex;
    position: relative;
}
.label-3d {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(0,0,0,0.6); padding: 5px 10px; border-radius: 4px; font-size: 0.8rem;
}

@media (max-width: 800px) {
    .simulator-grid, .heart-vis-grid { grid-template-columns: 1fr; }
}

/* ================================================
   PRZYPADKI - style specyficzne
   ================================================ */
.cases-page {
    background-color: #0f172a;
    color: white;
    padding-top: 0;
    min-height: 100vh;
}

.cases-header {
    text-align: center;
    padding: 3rem 1rem;
}

.cases-header h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1rem;
}

.cases-header span.accent { color: #3b82f6; }

.cases-header p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cases-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5% 5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.case-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.15);
}

.case-scenario { padding: 2.2rem 2.5rem; }

.case-scenario h3 {
    font-size: 1.5rem;
    color: #f8fafc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.case-id-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.case-scenario p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.case-actions { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.case-visual, .case-solution {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-visual.active, .case-solution.active {
    display: block;
    animation: fadeInCase 0.4s ease forwards;
}

.case-visual {
    padding: 1.8rem;
    background: #060a14;
    text-align: center;
    position: relative;
}

.ecg-real-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}
    object-position: center;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(1.6);
    transition: transform 0.3s ease;
}

.case-visual:hover .ecg-real-image { transform: scale(1.7); }

.case-visual-wrapper {
    overflow: hidden;
    border-radius: 15px;
}

.case-solution {
    padding: 2.5rem;
    background: rgba(59, 130, 246, 0.05);
}

.case-solution h4 {
    color: #3b82f6;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-solution p { color: #f1f5f9; line-height: 1.6; }

@keyframes fadeInCase {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .case-scenario, .case-solution { padding: 1.5rem; }
    .case-visual { padding: 1rem; }
    .case-actions { flex-direction: column; }
}

/* ================================================
   V2 ATLAS CARDS - karty na stronie głównej
   ================================================ */
.v2-upgrade .atlas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0.5rem;
}

@media (max-width: 1200px) {
    .v2-upgrade .atlas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .v2-upgrade .atlas-grid { grid-template-columns: 1fr; }
}

.v2-card {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1.2rem !important;
    padding: 1.2rem !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease !important;
    cursor: pointer;
    text-align: left;
    height: 100%;
}

.v2-card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: #1f2937 !important;
    transform: translateY(-5px);
}

.v2-badge {
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
}

.v2-badge-norma { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.v2-badge-pilne { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.v2-badge-krytyczne { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.v2-card h4 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    margin: 0.4rem 0 0.2rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.v2-subtitle { color: #94a3b8 !important; font-size: 0.95rem !important; margin: 0 !important; }

.v2-visual-wrapper {
    background: #e2e8f0 !important;
    border-radius: 0.8rem;
    padding: 0.3rem;
    overflow: hidden;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.v2-visual-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 0.9;
}

.v2-footer-simple {
    display: flex;
    justify-content: flex-end;
    color: white;
    font-size: 1.2rem;
    margin-top: auto;
}

.v2-footer-simple .arrow { transition: transform 0.3s ease; }
.v2-card:hover .arrow { transform: translateX(5px); }

.btn-v2-glow {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: #0ea5e9;
    color: #0f172a !important;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-v2-glow:hover {
    background: #38bdf8;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5);
    color: #0f172a !important;
}

.btn-v2-glow::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 300%; height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-v2-glow:hover::before { transform: translate(-50%, -50%) scale(1); }


/* ================================================
   SCROLL PROGRESS BAR (Task 2)
   ================================================ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ================================================
   LESSON PROGRESS BAR (Task 7)
   ================================================ */
.lesson-progress-bar {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.lesson-progress-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lesson-progress-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.lesson-progress-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.lesson-progress-track {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lesson-progress-steps {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.lesson-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.lesson-progress-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.lesson-progress-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.lesson-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lesson-nav-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.lesson-nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 640px) {
    .lesson-progress-bar {
        padding: 1rem;
        gap: 1rem;
    }
    .lesson-progress-track {
        min-width: 100%;
    }
}

/* ================================================
   PRINT CSS (Task 8)
   ================================================ */
@media print {
    /* Hide non-content elements */
    .navbar,
    footer,
    .v2-footer,
    #cookie-banner,
    .cookie-banner,
    .back-btn,
    .lesson-progress-bar,
    #scroll-progress,
    .hamburger,
    .btn,
    .btn-primary,
    .btn-secondary,
    .hero-actions,
    .atlas-footer,
    .lang-switcher {
        display: none !important;
    }

    /* Reset background and text colors */
    html, body {
        background: #ffffff !important;
        color: #1a1a1a !important;
        font-size: 12pt;
        line-height: 1.6;
    }

    /* Article content containers */
    .basics-container,
    .content-card,
    .basics-info,
    .anatomy-container,
    .cases-container {
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        color: #1a1a1a !important;
    }

    .content-card {
        padding: 0 !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #1a1a1a !important;
        font-family: 'Outfit', Georgia, serif !important;
        page-break-after: avoid;
    }

    p, li, td, th {
        color: #333333 !important;
    }

    a {
        color: #1a1a1a !important;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    /* Highlight boxes */
    .highlight-box {
        background: #f5f5f5 !important;
        border-left: 4px solid #3b82f6 !important;
        color: #1a1a1a !important;
        break-inside: avoid;
    }

    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
    }
    th, td {
        border: 1px solid #ccc !important;
        padding: 8px !important;
        background: #fff !important;
    }
    th {
        background: #f0f0f0 !important;
        font-weight: bold;
    }

    /* Criteria tables */
    .criteria-table th {
        background: #e8e8e8 !important;
        color: #1a1a1a !important;
    }

    /* Medical disclaimer */
    .medical-disclaimer {
        border: 1px solid #ccc !important;
        background: #f9f9f9 !important;
        color: #555 !important;
        font-size: 10pt;
        margin-top: 2rem;
        padding: 1rem !important;
    }

    /* Page breaks */
    .basics-card,
    .content-card,
    .case-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Remove animations and transitions */
    * {
        animation: none !important;
        transition: none !important;
    }
}
