/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* HSL Color Tokens: Savannah Expedition Palette (Theme 2.0 - Lighter Version) */
    --color-bg-dark: 222, 47%, 5%;         /* Deep Navy Blue (#020617) */
    --color-bg-panel: 120, 12%, 18%;       /* Deep Olive Charcoal (#283028) */
    --color-primary: 39, 45%, 68%;         /* Sahara Sand Gold (#dfcfb3) */
    --color-primary-hover: 39, 45%, 78%;   /* Light Champagne Sand */
    --color-accent: 43, 60%, 50%;          /* Muted Amber Ochre (#d9a73d) */
    --color-text-bright: 210, 40%, 98%;    /* White (#f8fafc) */
    --color-text-muted: 215, 16%, 65%;     /* Muted Silver Gray (#94a3b8) */
    --color-border: 217, 33%, 17%;         /* Border Gray (#1e293b) */
    
    /* Layout Constants */
    --font-headers: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-monospace: 'Courier Prime', 'Courier', monospace;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: hsl(var(--color-bg-dark));
    color: hsl(var(--color-text-bright));
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    background-color: hsl(var(--color-bg-dark));
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Spacing */
.section {
    padding: 100px 0;
    position: relative;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-headers);
    font-weight: 400; /* Road Rage is a display brush font with single weight */
    letter-spacing: 2px;
    line-height: 1.1;
    text-transform: uppercase;
}

h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-transform: uppercase;
}

.text-accent {
    color: hsl(var(--color-primary));
}

/* ==========================================================================
   GLASSMORPHISM UTILITIES
   ========================================================================== */
.glass-panel {
    background: hsla(var(--color-bg-panel), 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: var(--border-radius-md);
    padding: 30px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 12px 40px 0 rgba(245, 158, 11, 0.08);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-headers);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--color-primary)), hsl(var(--color-accent)));
    color: hsl(var(--color-bg-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, hsl(var(--color-primary-hover)), hsl(var(--color-accent)));
}

.btn-outline {
    background: transparent;
    color: hsl(var(--color-text-bright));
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: hsl(var(--color-primary));
    color: hsl(var(--color-primary));
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    max-width: 1450px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.brand-logo {
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.brand-accent {
    color: hsl(var(--color-primary));
}

.brand-muted {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 300;
    margin-left: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-headers);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: hsl(var(--color-text-muted));
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: hsl(var(--color-primary));
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: hsl(var(--color-text-bright));
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: hsl(var(--color-text-bright));
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: hsl(var(--color-bg-dark));
    border-left: 1px solid var(--color-border);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 40px;
    transition: var(--transition-smooth);
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-close {
    align-self: flex-end;
    font-size: 2rem;
    color: hsl(var(--color-text-muted));
    margin-bottom: 40px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-link {
    font-family: var(--font-headers);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.3rem;
    color: hsl(var(--color-text-muted));
}

.mobile-link.active, .mobile-link:hover {
    color: hsl(var(--color-primary));
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-zoom {
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    animation: kenBurns 30s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(2,6,23,0.3) 0%, rgba(2,6,23,0.95) 90%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metadata-pills {
    display: flex;
    gap: 12px;
    margin-top: 140px; /* Pushes it down below the header */
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 5.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    background: linear-gradient(to right, #ffffff 40%, hsl(var(--color-primary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: hsl(var(--color-primary));
    font-weight: 500;
    margin-top: 10px;
    letter-spacing: 1px;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, hsl(var(--color-primary)), hsl(var(--color-accent)));
    margin: 30px 0;
    border-radius: 2px;
}

.logline-container {
    max-width: 800px;
    margin-bottom: 40px;
    text-align: left;
}

.logline {
    font-size: 1.1rem;
    color: hsl(var(--color-text-bright));
    margin-bottom: 16px;
    line-height: 1.7;
}

.hero-pitch-hook {
    font-size: 0.95rem;
    color: hsl(var(--color-text-muted));
    border-left: 2px solid hsl(var(--color-primary));
    padding-left: 15px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    margin-top: 40px;
    margin-bottom: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: hsl(var(--color-text-muted));
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover {
    color: hsl(var(--color-primary));
}

/* Animations */
@keyframes kenBurns {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.15); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ==========================================================================
   GRID SYSTEM & COMMON HEADERS
   ========================================================================== */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2-col { grid-template-columns: 1.2fr 1fr; }
.grid-3-col { grid-template-columns: repeat(3, 1fr); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, hsl(var(--color-text-muted)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: hsl(var(--color-primary));
    letter-spacing: 1px;
}

/* ==========================================================================
   DZIEDZICTWO SECTION
   ========================================================================== */
.dziedzictwo-text-panel p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: hsl(var(--color-text-muted));
}

.highlight-quote {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.highlight-quote i {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.highlight-quote p {
    font-family: var(--font-headers);
    font-size: 1.4rem;
    color: #fff;
    font-style: normal;
    line-height: 1.4;
    margin-bottom: 10px;
}

.highlight-quote cite {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: hsl(var(--color-primary));
    font-style: normal;
    font-weight: 500;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.8rem;
    color: hsl(var(--color-primary));
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #fff;
}

.feature-card p {
    font-size: 0.95rem;
    color: hsl(var(--color-text-muted));
    line-height: 1.5;
}

/* ==========================================================================
   EKIPA SECTION
   ========================================================================== */
.char-card {
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    border-radius: var(--border-radius-md);
}

.char-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.char-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.char-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(var(--color-bg-panel), 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.char-overlay span {
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: hsl(var(--color-primary));
    border: 2px solid hsl(var(--color-primary));
    padding: 10px 20px;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.char-card:hover .char-img {
    transform: scale(1.05);
}

.char-card:hover .char-overlay {
    opacity: 1;
}

.char-card:hover .char-overlay span {
    transform: scale(1);
}

.char-info {
    padding: 24px;
    background: hsla(var(--color-bg-panel), 0.4);
}

.char-name {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.char-role {
    font-size: 0.9rem;
    color: hsl(var(--color-primary));
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   TRASA SECTION
   ========================================================================== */
.trasa-section {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.trasa-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.trasa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.95) 40%, rgba(2, 6, 23, 0.7));
    z-index: 2;
}

.trasa-content {
    position: relative;
    z-index: 3;
}

.trasa-info-panel h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.trasa-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.trasa-meta span {
    font-family: var(--font-headers);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
}

.trasa-info-panel p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: hsl(var(--color-text-muted));
}

.countries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.country-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: hsl(var(--color-text-muted));
    padding: 6px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.country-badge.active {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: hsl(var(--color-primary));
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.map-placeholder-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: hsla(var(--color-bg-panel), 0.75);
}

.map-header {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-headers);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.map-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-stat-item {
    border-left: 2px solid hsl(var(--color-primary));
    padding-left: 16px;
}

.map-stat-item h5 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.map-stat-item p {
    font-size: 0.9rem;
    color: hsl(var(--color-text-muted));
    line-height: 1.4;
}

/* ==========================================================================
   ODCINKI SECTION
   ========================================================================== */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, hsl(var(--color-primary)), rgba(245, 158, 11, 0.05));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    top: 24px;
    left: -50px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: hsl(var(--color-bg-dark));
    border: 2px solid hsl(var(--color-primary));
    color: hsl(var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headers);
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: #fff;
}

.episode-location {
    font-size: 0.85rem;
    color: hsl(var(--color-primary));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 16px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: hsl(var(--color-text-muted));
    line-height: 1.6;
}

/* ==========================================================================
   SCENOPIS SECTION
   ========================================================================== */
.scenopis-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.scenopis-header {
    background: rgba(2, 6, 23, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: hsl(var(--color-text-muted));
    font-family: var(--font-headers);
    font-weight: 700;
    letter-spacing: 1px;
}

.scenopis-body {
    background: #f8fafc;
    color: #0f172a;
    padding: 40px;
    overflow-x: auto;
}

.scenopis-body pre {
    font-family: var(--font-monospace);
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* ==========================================================================
   BIZNES & CSR SECTION
   ========================================================================== */
.biznes-card {
    display: flex;
    flex-direction: column;
}

.biznes-icon {
    font-size: 2.2rem;
    color: hsl(var(--color-primary));
    margin-bottom: 20px;
}

.biznes-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #fff;
}

.biznes-card p {
    font-size: 0.95rem;
    color: hsl(var(--color-text-muted));
    line-height: 1.5;
    margin-bottom: 24px;
}

.biznes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.biznes-list li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.partners-panel {
    margin-top: 60px;
    text-align: center;
}

.partners-panel h4 {
    font-size: 0.85rem;
    color: hsl(var(--color-primary));
    margin-bottom: 20px;
    letter-spacing: 1.5px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-family: var(--font-headers);
    font-size: 1.5rem;
    font-weight: 700;
}

.partner-text {
    color: #fff;
}

.partner-separator {
    color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--color-border);
    padding: 50px 0 130px 0; /* extra padding at bottom to clear the floating player */
    background: rgba(2, 6, 23, 0.6);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h4 {
    font-size: 1.4rem;
    color: #fff;
}

.footer-brand p {
    font-size: 0.9rem;
    color: hsl(var(--color-primary));
}

.footer-links {
    text-align: right;
}

.footer-links p:first-child {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 5px;
}

.footer-links p:last-child {
    font-size: 0.85rem;
    color: hsl(var(--color-text-muted));
}

/* ==========================================================================
   DYNAMIC FLOATING MUSIC PLAYER (4x Smaller, Right Aligned)
   ========================================================================== */
.floating-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
    width: 140px;
    z-index: 999;
    padding: 12px;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.85);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-album-art {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.vinyl-disc {
    font-size: 2rem;
    color: hsl(var(--color-primary));
    transform-origin: center;
}

.vinyl-disc.playing {
    animation: rotateVinyl 4s linear infinite;
}

@keyframes rotateVinyl {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.player-info {
    width: 100%;
}

.song-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.65rem;
    color: hsl(var(--color-text-muted));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-player {
    color: hsl(var(--color-text-muted));
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.btn-player:hover {
    color: hsl(var(--color-primary));
}

.btn-play-pause {
    background-color: hsl(var(--color-primary));
    color: hsl(var(--color-bg-dark));
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.btn-play-pause:hover {
    background-color: hsl(var(--color-primary-hover));
    color: hsl(var(--color-bg-dark));
    transform: scale(1.05);
}

.player-progress-container {
    display: none;
}

.player-progress-bar {
    display: none;
}

/* ==========================================================================
   DYNAMIC CHARACTER MODAL DIALOG
   ========================================================================== */
.char-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 20px;
}

.char-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    background: hsla(var(--color-bg-panel), 0.9);
}

.char-modal.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.8rem;
    color: hsl(var(--color-text-muted));
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: hsl(var(--color-primary));
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}

.modal-img-col {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-char-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-char-name {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.modal-char-role {
    font-size: 0.85rem;
    color: hsl(var(--color-primary));
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-divider {
    width: 60px;
    height: 3px;
    background: hsl(var(--color-primary));
    margin: 20px 0;
}

.modal-body-section {
    margin-bottom: 24px;
}

.modal-body-section:last-child {
    margin-bottom: 0;
}

.modal-body-section h5 {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body-section p {
    font-size: 0.95rem;
    color: hsl(var(--color-text-muted));
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    
    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-img-col {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .header-actions .btn {
        display: none; /* Hide button on mobile, toggle drawer will handle links */
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .grid-3-col {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-badge {
        left: -35px;
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    
    .scenopis-body {
        padding: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
}

/* ==========================================================================
   PRZYGOTOWANIA SECTION
   ========================================================================== */
.prep-block-header {
    margin-top: 40px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-headers);
    font-size: 1.6rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.prep-block-header h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prep-grid {
    margin-bottom: 40px;
}

.char-quote {
    font-size: 0.85rem;
    color: hsl(var(--color-text-muted));
    margin-top: 12px;
    font-style: normal;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}
/* ==========================================================================
   ROUTE MAP IMAGE & CUSTOM PRZYGOTOWANIA LAYOUT
   ========================================================================== */
.map-image-container {
    padding: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-map-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.route-map-img:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: scale(1.02);
}

.prep-grid .feature-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 30px;
    height: 100%;
}

.prep-grid .feature-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.prep-grid .feature-card p {
    text-align: justify;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: hsl(var(--color-text-muted));
}
/* Override browser italics */
em, cite {
    font-style: normal !important;
}

/* Align Trasa panel vertically */
.trasa-section .grid-2-col {
    align-items: center;
}

.dziedzictwo-section {
    position: relative;
    background-image: url('assets/images/dziedzictwo_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 !important;
}

.dziedzictwo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(28, 36, 28, 0.95) 0%, rgba(28, 36, 28, 0.75) 50%, rgba(28, 36, 28, 0.95) 100%);
    z-index: 1;
}

.dziedzictwo-section > * {
    position: relative;
    z-index: 2;
}

/* Custom 6-column layout for Warsztaty cards (3 on top, 2 on bottom shifted) */


/* Itinerary Day-by-Day Track */
.itinerary-wrapper {
    margin-top: 40px;
    padding: 24px;
}

.itinerary-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth;
}

.itinerary-track::-webkit-scrollbar {
    height: 6px;
}

.itinerary-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.itinerary-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.itinerary-track::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.itinerary-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: var(--transition-smooth);
}

.itinerary-card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--color-primary));
    background: rgba(255, 255, 255, 0.04);
}

.itinerary-day {
    font-family: var(--font-headers);
    font-size: 1.1rem;
    font-weight: bold;
    color: hsl(var(--color-primary));
}

.itinerary-date {
    font-size: 0.75rem;
    color: hsl(var(--color-text-muted));
}

.itinerary-route {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

.itinerary-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: hsl(var(--color-text-muted));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

/* Fundacja & Gosia Section */
.fundacja-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.fundacja-initiatives {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.fundacja-init-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fundacja-init-item i {
    font-size: 1.5rem;
    margin-top: 3px;
}

.fundacja-init-item strong {
    display: block;
    font-size: 0.85rem;
    color: hsl(var(--color-primary));
    margin-bottom: 4px;
}

.fundacja-init-item p {
    font-size: 0.85rem;
    color: hsl(var(--color-text-muted));
    line-height: 1.4;
    padding-bottom: 0;
}

.gosia-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    height: 100%;
}

.gosia-img-container {
    width: 100%;
    max-height: 380px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gosia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.gosia-content h4 {
    font-family: var(--font-headers);
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.gosia-role {
    font-size: 0.85rem;
    color: hsl(var(--color-primary));
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.gosia-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: hsl(var(--color-text));
    border-left: 3px solid hsl(var(--color-primary));
    padding-left: 16px;
}

.gosia-quote p {
    margin-bottom: 12px;
    padding-bottom: 0;
}

.gosia-quote p:last-child {
    margin-bottom: 0;
}

/* O nas Section */
.o-nas-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Stage Maps Tabs */
.map-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.map-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: hsl(var(--color-text-muted));
    padding: 10px 12px;
    border-radius: 6px;
    font-family: var(--font-headers);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.map-tab:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.map-tab.active {
    background: rgba(229, 169, 60, 0.1);
    border-color: hsl(var(--color-primary));
    color: hsl(var(--color-primary));
}

.map-content {
    position: relative;
    width: 100%;
}

.route-map-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   FLOATING MUSIC PLAYER STYLE
   ========================================================================== */
.audio-player-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    padding: 0;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    background: rgba(18, 19, 28, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.audio-player-container.expanded {
    border-radius: 16px;
    width: 280px;
    height: 250px;
}

.player-trigger {
    background: transparent;
    border: none;
    color: hsl(var(--color-primary));
    font-size: 1.5rem;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.audio-player-container.expanded .player-trigger {
    opacity: 0;
    pointer-events: none;
}

.player-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid hsl(var(--color-primary));
    opacity: 0.6;
    animation: playerPulse 2s infinite ease-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes playerPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.player-expanded-card {
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.audio-player-container.expanded .player-expanded-card {
    opacity: 1;
    pointer-events: auto;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.player-title {
    font-family: var(--font-headers);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: hsl(var(--color-text-muted));
    font-weight: bold;
}

.player-minimize {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.player-minimize:hover {
    opacity: 1;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.track-art-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.track-art {
    font-size: 1.5rem;
    color: hsl(var(--color-primary));
}

.track-art.playing {
    animation: spinDisc 6s linear infinite;
}

@keyframes spinDisc {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.track-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}

.track-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.track-artist {
    font-size: 0.75rem;
    color: hsl(var(--color-text-muted));
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.audio-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 24px;
    margin-top: 8px;
}

.audio-wave span {
    width: 3px;
    height: 4px;
    background: hsl(var(--color-primary));
    border-radius: 2px;
    transition: height 0.2s ease;
}

.audio-wave.playing span {
    animation: waveAnim 1.2s infinite ease-in-out;
}

.audio-wave.playing span:nth-child(1) { animation-delay: 0s; }
.audio-wave.playing span:nth-child(2) { animation-delay: 0.15s; }
.audio-wave.playing span:nth-child(3) { animation-delay: 0.3s; }
.audio-wave.playing span:nth-child(4) { animation-delay: 0.45s; }
.audio-wave.playing span:nth-child(5) { animation-delay: 0.6s; }

@keyframes waveAnim {
    0%, 100% { height: 4px; }
    50% { height: 20px; }
}

.player-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    margin-top: 12px;
    position: relative;
}

.player-progress-bar {
    height: 100%;
    background: hsl(var(--color-primary));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

.control-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.control-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.control-btn.play-btn {
    width: 40px;
    height: 40px;
    background: hsl(var(--color-primary));
    border-radius: 50%;
    color: #12131C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 1;
    box-shadow: 0 0 10px rgba(229, 169, 60, 0.3);
}

.control-btn.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(229, 169, 60, 0.5);
}



.timeline-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding: 2.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.05);
}

.timeline-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.timeline-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

.timeline-horizontal-track {
    display: flex;
    gap: 2.2rem;
    padding: 0 2rem;
    min-width: max-content;
    position: relative;
}

.timeline-horizontal-track::before {
    content: '';
    position: absolute;
    top: 44px; /* Center of the dot: date 20px + margin 16px + dot radius 8px */
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 290px;
    position: relative;
}

.node-date {
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    z-index: 2;
    background: #020617; /* Matches body background */
    padding: 0 8px;
}

.node-dot {
    width: 16px;
    height: 16px;
    background: var(--color-gold);
    border: 3px solid #020617;
    border-radius: 50%;
    z-index: 2;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.timeline-node:hover .node-dot {
    transform: scale(1.3);
}

.node-card {
    padding: 1.5rem !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    white-space: normal;
}

.timeline-node:hover .node-card {
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.04);
}

.node-title {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

.node-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}



.timeline-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding: 2.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.05);
}

.timeline-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.timeline-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

.timeline-horizontal-track {
    display: flex;
    gap: 2.2rem;
    padding: 0 2rem;
    min-width: max-content;
    position: relative;
}

.timeline-horizontal-track::before {
    content: '';
    position: absolute;
    top: 44px; /* Center of the dot: date 20px + margin 16px + dot radius 8px */
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 290px;
    position: relative;
}

.node-date {
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    z-index: 2;
    background: #020617; /* Matches body background */
    padding: 0 8px;
}

.node-dot {
    width: 16px;
    height: 16px;
    background: var(--color-gold);
    border: 3px solid #020617;
    border-radius: 50%;
    z-index: 2;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.timeline-node:hover .node-dot {
    transform: scale(1.3);
}

.node-card {
    padding: 1.5rem !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    white-space: normal;
}

.timeline-node:hover .node-card {
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.04);
}

.node-title {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

.node-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}



.timeline-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding: 2.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.05);
}

.timeline-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.timeline-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

.timeline-horizontal-track {
    display: flex;
    gap: 2.2rem;
    padding: 0 2rem;
    min-width: max-content;
    position: relative;
}

.timeline-horizontal-track::before {
    content: '';
    position: absolute;
    top: 44px; /* Center of the dot: date 20px + margin 16px + dot radius 8px */
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 290px;
    position: relative;
}

.node-date {
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    z-index: 2;
    background: #020617; /* Matches body background */
    padding: 0 8px;
}

.node-dot {
    width: 16px;
    height: 16px;
    background: var(--color-gold);
    border: 3px solid #020617;
    border-radius: 50%;
    z-index: 2;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.timeline-node:hover .node-dot {
    transform: scale(1.3);
}

.node-card {
    padding: 1.5rem !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    white-space: normal;
    display: flex;
    flex-direction: column;
}

.timeline-node:hover .node-card {
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.04);
}

.node-title {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

.node-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    flex-grow: 1;
}

.node-duration {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.8rem;
}


/* ==========================================================================
   Horizontal Scrollable Production Schedule Timeline (X-Axis)
   ========================================================================== */
.timeline-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding: 2.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.05);
}

.timeline-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.timeline-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

.timeline-horizontal-track {
    display: flex;
    gap: 2.2rem;
    padding: 0 2rem;
    min-width: max-content;
    position: relative;
}

.timeline-horizontal-track::before {
    content: '';
    position: absolute;
    top: 44px; /* Center of the dot: date 20px + margin 16px + dot radius 8px */
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 290px;
    position: relative;
}

.node-date {
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    z-index: 2;
    background: #020617; /* Matches body background */
    padding: 0 8px;
}

.node-dot {
    width: 16px;
    height: 16px;
    background: var(--color-gold);
    border: 3px solid #020617;
    border-radius: 50%;
    z-index: 2;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.timeline-node:hover .node-dot {
    transform: scale(1.3);
}

.node-card {
    padding: 1.5rem !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    white-space: normal;
    display: flex;
    flex-direction: column;
}

.timeline-node:hover .node-card {
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.04);
}

.node-title {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

.node-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    flex-grow: 1;
}

.node-duration {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.8rem;
}

@media print {
  input[type="text"], textarea {
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    background: transparent !important;
  }

  /* Pokazuje pełny adres strony w nawiasie przy linku */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 85%;
    color: #666;
  }

  /* Pokazuje wszystkie zakładki i rozwijane bloki naraz */
  .tab-content, .accordion-collapse, .hidden-mobile {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
  }

  /* Zapewnia, że żaden obrazek nie wyjdzie poza kontener ani poza stronę A4 */
  img, figure, svg {
    max-width: 100% !important;   /* Nie przekracza szerokości kontenera */
    max-height: 240mm !important; /* Maksymalna wysokość na stronie A4 */
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    page-break-inside: avoid;     /* Nie rozrywa zdjęcia między stronami */
    break-inside: avoid;
  }

  /* Jeśli używasz zdjęć w tle (background-image) */
  .hero-bg, .banner {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  /* 1. Ustawienie dokładnego formatu A4 i marginesów */
  @page {
    size: A4 portrait; /* lub landscape dla poziomu */
    margin: 15mm;
  }

  /* 2. Resetowanie tła i wymuszenie druku kolorów/grafiki */
  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #020617 !important; /* Wymuszenie ciemnego tła, aby białe teksty były widoczne */
    color: #f8fafc !important;
  }
  .timeline-scroll-container {
    overflow-x: visible !important;
  }
  .timeline-horizontal-track {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    min-width: 100% !important;
  }
  .timeline-horizontal-track::before {
    display: none !important;
  }
  .timeline-node {
    width: 100% !important;
  }
  .node-dot {
    display: none !important;
  }
  .node-duration {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .timeline-scroll-container {
    overflow-x: visible !important;
  }
  .timeline-horizontal-track {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    min-width: 100% !important;
  }
  .timeline-horizontal-track::before {
    display: none !important;
  }
  .timeline-node {
    width: 100% !important;
  }
  .node-dot {
    display: none !important;
  }
  .node-duration {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .timeline-scroll-container {
    overflow-x: visible !important;
  }
  .timeline-horizontal-track {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    min-width: 100% !important;
  }
  .timeline-horizontal-track::before {
    display: none !important;
  }
  .timeline-node {
    width: 100% !important;
  }
  .node-dot {
    display: none !important;
  }

  .timeline-scroll-container {
    overflow-x: visible !important;
  }
  .timeline-horizontal-track {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    min-width: 100% !important;
  }
  .timeline-horizontal-track::before {
    display: none !important;
  }
  .timeline-node {
    width: 100% !important;
  }
  .node-dot {
    display: none !important;
  }


  /* 3. Auto-skalowanie zdjęć – nie będą wykraczać poza stronę */
  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* 4. Zapobieganie rozrywaniu bloków/sekcji na pół między stronami */
  .section, .card, table, tr, .glass-panel, .feature-card, .char-card, .timeline-item, .episode-card, .node-card, .timeline-node, .node-card, .timeline-node, .node-card, .timeline-node, .node-card, .timeline-node, .package-card, .timeline-rates-container, .calculator-panel, .demographic-card, .form-container {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* 5. Ukrycie elementów niepotrzebnych w PDF (np. przyciski, nawigacja) */
  .no-print, button, nav, .main-header, .mobile-nav-toggle, #floating-audio-player, .floating-actions-container, .scroll-indicator, .hero-buttons, .back-to-bible, .mobile-nav-drawer, .btn-lang, .btn-homepage, .header-actions, header.navbar, .hero-actions, .cta-section, .stars-overlay, #gate-overlay, footer {
    display: none !important;
  }

  /* Usprawnienie druku sekcji Ekipa - wyświetlanie kart poziomo, aby zdjęcie i opis były na jednej stronie */
  .char-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .char-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    gap: 1.5rem !important;
  }
  .char-img-container {
    width: 180px !important;
    min-width: 180px !important;
    height: auto !important;
    margin: 0 !important;
  }
  .char-img {
    width: 100% !important;
    height: auto !important;
    max-height: 240px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
  }
  .char-info {
    flex: 1 !important;
    text-align: left !important;
  }
  .char-name {
    margin-top: 0 !important;
    font-size: 1.2rem !important;
  }
  .char-role {
    font-size: 0.9rem !important;
    color: var(--color-gold) !important;
    margin-bottom: 0.5rem !important;
  }
  .char-quote {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }
}

/* Logo Image Styles */
.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

/* Vertical layout for Preparations and Workshops with alternating images */
.prep-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.prep-vertical-list .feature-card p {
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.6;
}

.prep-vertical-list .feature-card h4 {
    font-size: 1.35rem;
}


.prep-row {
    display: flex;
    align-items: stretch;
    gap: 3rem;
}

/* Alternate order of image and text card */
.prep-row:nth-child(even) {
    flex-direction: row-reverse;
}

.prep-image-container {
    flex: 0 0 40%;
    width: 40%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    aspect-ratio: 2.39 / 1;
}

.prep-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.prep-row:hover .prep-image-container img {
    transform: scale(1.04);
}

.prep-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .prep-row {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .prep-vertical-list {
        gap: 2.5rem;
    }
    .prep-row {
        flex-direction: column !important;
        gap: 1rem;
    }
    .prep-image-container, .prep-text-container {
        width: 100%;
    }
    .prep-image-container {
        aspect-ratio: 2.39 / 1;
    }
}

/* Print layout overrides for vertical lists */
@media print {
    .prep-vertical-list {
        gap: 1.5rem !important;
    }
    .prep-row {
        flex-direction: row !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        gap: 1.5rem !important;
    }
    .prep-row:nth-child(even) {
        flex-direction: row !important;
    }
    .prep-image-container {
        width: 35% !important;
        aspect-ratio: 2.39 / 1 !important;
        box-shadow: none !important;
    }
    .prep-text-container {
        width: 65% !important;
    }
}

/* ==========================================================================
   LANGUAGE DROPDOWN SELECTOR (CLICK & HOVER SYSTEM)
   ========================================================================== */
.floating-actions-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .floating-actions-container {
        top: 80px;
        right: 12px;
        gap: 6px;
    }
}

.lang-dropdown-container, .nav-lang-dropdown {
    position: relative;
    display: inline-block;
}

.btn-lang-trigger, .nav-lang-trigger {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-headers);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
    outline: none;
}

.btn-lang-trigger:hover,
.nav-lang-trigger:hover,
.lang-dropdown-container.open .btn-lang-trigger,
.nav-lang-dropdown.open .nav-lang-trigger {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--color-gold, #e5a93c);
    color: #fff;
    box-shadow: 0 0 15px rgba(229, 169, 60, 0.3);
}

.btn-lang-trigger .fa-chevron-down,
.nav-lang-trigger .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.25s ease;
}

.lang-dropdown-container.open .btn-lang-trigger .fa-chevron-down,
.nav-lang-dropdown.open .nav-lang-trigger .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu Container */
.lang-dropdown-menu, .nav-lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(229, 169, 60, 0.35);
    border-radius: 8px;
    overflow: hidden;
    min-width: 135px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(229, 169, 60, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100000;
}

/* Invisible Hover Bridge: covers gap between button and dropdown */
.lang-dropdown-menu::before, .nav-lang-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

/* Both hover AND .open class display the menu */
.lang-dropdown-container:hover .lang-dropdown-menu,
.lang-dropdown-container.open .lang-dropdown-menu,
.nav-lang-dropdown:hover .nav-lang-menu,
.nav-lang-dropdown.open .nav-lang-menu {
    display: block !important;
}

.lang-dropdown-menu a, .nav-lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-headers);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.15s ease, color 0.15s ease;
    border-left: 3px solid transparent;
}

.lang-dropdown-menu a:hover, .nav-lang-menu a:hover {
    background: rgba(229, 169, 60, 0.18) !important;
    color: var(--color-gold, #e5a93c) !important;
    border-left-color: var(--color-gold, #e5a93c);
}

.lang-dropdown-menu a.active, .nav-lang-menu a.active {
    background: rgba(229, 169, 60, 0.12);
    color: var(--color-gold, #e5a93c);
    border-left-color: var(--color-gold, #e5a93c);
}

/* Mobile drawer language bar */
.mobile-lang-container {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold, #e5a93c);
    font-family: var(--font-headers);
    margin-bottom: 0.6rem;
}

.mobile-lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mobile-lang-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-headers);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-lang-pill:hover,
.mobile-lang-pill.active {
    background: rgba(229, 169, 60, 0.2);
    border-color: var(--color-gold, #e5a93c);
    color: var(--color-gold, #e5a93c);
}


/* Custom font overrides requested by user */
.dziedzictwo-text-panel > p,
.feature-card p {
    font-family: var(--font-monospace);
    color: hsl(var(--color-text-muted));
    font-size: 0.95rem; /* slightly larger or normal to match the vibe */
}
