/* ==========================================================================
   BF-LOGISTYK - SERWIS REGENERACJI BATERII TRAKCYJNYCH
   Design System & Premium Styles (2026 Edition)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-glow: rgba(249, 115, 22, 0.35);
    --primary-light: rgba(249, 115, 22, 0.1);
    --secondary: #0f172a;
    
    --bg-dark: #0f172a;
    --bg-slate-800: #1e293b;
    --bg-slate-700: #334155;
    --bg-light: #f8fafc;
    --bg-light-alt: #f1f5f9;
    --bg-glass: rgba(15, 23, 42, 0.8);
    --bg-glass-light: rgba(255, 255, 255, 0.85);

    --text-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-muted-light: #cbd5e1;
    
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --error: #ef4444;
    --error-light: rgba(239, 68, 68, 0.1);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Grid & Layout */
    --container-max-width: 1400px;
    --header-height: 80px;
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.2), 0 10px 20px -10px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 25px var(--primary-glow);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Settings
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
}

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

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

/* Focus Outline for Accessibility (WCAG 2.2) */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light-alt);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --------------------------------------------------------------------------
   3. Reusable Components & Utilities
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-dark h2 {
    color: var(--text-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-dark .section-header .badge {
    background-color: rgba(249, 115, 22, 0.2);
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
}

.section-dark .section-header p {
    color: var(--text-muted-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background-color: white;
    color: var(--secondary);
    box-shadow: var(--shadow);
}

.btn-light:hover {
    background-color: var(--bg-light-alt);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background-color: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

/* Ambient Glow background blocks */
.glow-spot {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation (Sticky & Progress Bar)
   -------------------------------------------------------------------------- */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
}

.progress-bar {
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.1s ease-out;
}

.header {
    height: var(--header-height);
    background-color: transparent;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    color: white;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
}

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

.nav-link {
    color: var(--text-muted-light);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

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

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

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

.phone-quick {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.07);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.phone-quick i {
    color: var(--primary);
    animation: phonePulse 2s infinite ease-in-out;
}

.phone-quick:hover {
    background-color: rgba(249, 115, 22, 0.15);
    border-color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@keyframes phonePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* --------------------------------------------------------------------------
   5. Hero Section (Split View & Video Player)
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%), url('../img/hero_bg.png') no-repeat center center / cover;
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    left: -10%;
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: rgba(249, 115, 22, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 54px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted-light);
    margin-bottom: 36px;
    max-width: 600px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust-list {
    display: flex;
    gap: 24px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted-light);
    font-size: 14px;
    font-weight: 500;
}

.hero-trust-item i {
    color: var(--success);
    font-size: 16px;
}

/* Hero Video Container */
.hero-video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--bg-slate-800);
    aspect-ratio: 16 / 9;
    animation: fadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    border: none;
    padding-left: 5px; /* offset play icon */
}

.video-overlay:hover .play-btn {
    transform: scale(1.1);
    background-color: var(--primary-hover);
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.6);
}

.video-title {
    color: white;
    font-family: var(--font-heading);
    font-size: 18px;
    margin-top: 16px;
    font-weight: 600;
}

/* Glass card inside Hero Video Area */
.video-badge-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-badge-overlay .dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    animation: flashDot 1.5s infinite;
}

.video-badge-overlay span {
    color: white;
    font-size: 13px;
    font-weight: 500;
}

@keyframes flashDot {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   6. Statistics Block (Metrics)
   -------------------------------------------------------------------------- */
.stats {
    background-color: var(--bg-slate-800);
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    color: white;
    padding: 10px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted-light);
    font-size: 15px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. Benefits & trust blocks ("Dlaczego my")
   -------------------------------------------------------------------------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    display: flex;
    flex-direction: column;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Comparison Sub-block */
.comparison-box {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.comparison-card {
    border-radius: var(--radius);
    padding: 40px;
}

.comparison-card.regenerated {
    background-color: rgba(16, 185, 129, 0.05);
    border: 2px solid var(--success);
}

.comparison-card.new-battery {
    background-color: rgba(15, 23, 42, 0.02);
    border: 2px dashed #cbd5e1;
}

.comparison-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparison-card.regenerated h3 {
    color: var(--success);
}

.comparison-card.new-battery h3 {
    color: var(--secondary);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
}

.comparison-card.regenerated .comparison-list li::before {
    content: '\f058'; /* fontawesome check-circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success);
    position: absolute;
    left: 0;
}

.comparison-card.new-battery .comparison-list li::before {
    content: '\f057'; /* fontawesome times-circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--error);
    position: absolute;
    left: 0;
}

/* --------------------------------------------------------------------------
   8. Process Timeline (Interactive step-slider)
   -------------------------------------------------------------------------- */
.process-slider-wrapper {
    position: relative;
}

.process-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.process-nav::before {
    content: '';
    position: absolute;
    height: 4px;
    background-color: var(--bg-slate-800);
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.process-nav-progress {
    position: absolute;
    height: 4px;
    background-color: var(--primary);
    width: 0%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: var(--transition);
}

.process-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-slate-800);
    border: 3px solid var(--bg-dark);
    color: var(--text-muted-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 3;
    transition: var(--transition);
}

.process-nav-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.process-nav-btn.completed {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.process-nav-btn .step-title {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-muted-light);
    font-weight: 500;
    transition: var(--transition);
}

.process-nav-btn.active .step-title {
    color: white;
    font-weight: 700;
}

.process-slides {
    position: relative;
    min-height: 450px;
}

.process-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.process-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.process-slide-content {
    animation: fadeInUp 0.5s ease-out;
}

.slide-num {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.process-slide-content h3 {
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.process-slide-content ul {
    list-style: none;
    margin-bottom: 24px;
}

.process-slide-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-muted-light);
}

.process-slide-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
}

.process-result-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 14px;
}

.process-result-box strong {
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

/* Process Slider Media */
.process-slide-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1.4;
}

.process-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-media-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(15, 23, 42, 0.85);
    padding: 8px 16px;
    border-radius: var(--radius);
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   9. Before & After Slider (Interactive)
   -------------------------------------------------------------------------- */
.before-after-container {
    max-width: 900px;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    user-select: none;
    border: 4px solid white;
}

.image-before, .image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-before img, .image-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.image-after {
    width: 50%; /* Initial split width */
    overflow: hidden;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* Initial handle position */
    width: 4px;
    height: 100%;
    background-color: white;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.5);
    pointer-events: none;
}

.slider-button::before {
    content: '\f337'; /* FontAwesome arrows-alt-h */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.label-before, .label-after {
    position: absolute;
    bottom: 20px;
    padding: 8px 16px;
    background-color: rgba(15, 23, 42, 0.7);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-sm);
    z-index: 5;
    pointer-events: none;
}

.label-before {
    right: 20px;
}

.label-after {
    left: 20px;
}

/* --------------------------------------------------------------------------
   10. Supported Brands (Obsługiwane marki)
   -------------------------------------------------------------------------- */
.brands-marquee {
    overflow: hidden;
    padding: 30px 0;
    background-color: white;
    border-top: 1px solid var(--bg-light-alt);
    border-bottom: 1px solid var(--bg-light-alt);
    position: relative;
}

.brands-track {
    display: flex;
    width: calc(250px * 18); /* large enough width for duplicate items */
    animation: scrollTrack 25s linear infinite;
}

.brand-logo {
    width: 250px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
}

.brand-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.brand-logo img {
    max-height: 40px;
    width: auto;
}

@keyframes scrollTrack {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 9)); }
}

/* --------------------------------------------------------------------------
   11. Savings Calculator & Base Prices (Cennik & Kalkulator)
   -------------------------------------------------------------------------- */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.calculator-settings {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group-range {
    margin-bottom: 30px;
}

.form-group-range label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 12px;
}

.form-group-range label span:last-child {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--bg-light-alt);
    outline: none;
    margin-bottom: 10px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
    transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Custom radio tabs for battery voltage selection */
.voltage-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.voltage-option {
    position: relative;
}

.voltage-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.voltage-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: var(--bg-light);
    border: 2px solid var(--bg-light-alt);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
}

.voltage-label span:last-child {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 4px;
}

.voltage-option input[type="radio"]:checked + .voltage-label {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary);
}

.voltage-option input[type="radio"]:checked + .voltage-label span:last-child {
    color: var(--primary);
}

/* Calculator Results */
.calculator-results {
    background-color: var(--bg-slate-800);
    color: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.calculator-results::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.results-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    opacity: 0.9;
}

.results-price-box {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.results-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 16px;
}

.results-row.total-savings {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
    margin-top: 10px;
}

.results-val {
    font-family: var(--font-heading);
    font-weight: 700;
}

.savings-meter-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    height: 12px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 30px;
}

.savings-meter {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--success));
    width: 0%;
    transition: width 0.8s ease-out;
}

.results-disclaimer {
    font-size: 13px;
    color: var(--text-muted-light);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. Common Defects (Najczęstsze usterki)
   -------------------------------------------------------------------------- */
.defects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.defect-card {
    background-color: white;
    border-left: 4px solid var(--primary);
}

.defect-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.defect-card h3 i {
    color: var(--primary);
}

.defect-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   13. Customer Testimonials (Opinie klientów)
   -------------------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
}

.stars {
    color: #eab308;
    margin-bottom: 16px;
    font-size: 14px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 24px;
    flex-grow: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    border: 2px solid var(--primary-light);
}

.author-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Demo Badge */
.demo-badge {
    align-self: flex-start;
    padding: 3px 8px;
    background-color: var(--bg-light-alt);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   14. FAQ Accordion (SEO Optimized)
   -------------------------------------------------------------------------- */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-question::after {
    content: '\f078'; /* FontAwesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-item.active {
    box-shadow: var(--shadow);
    border-color: rgba(249, 115, 22, 0.2);
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-inner {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 15px;
    border-top: 1px solid var(--bg-light-alt);
    padding-top: 20px;
}

/* --------------------------------------------------------------------------
   15. Contact Section & Validation Form
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-panel {
    background-color: var(--bg-slate-800);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-info-panel h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

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

.contact-item-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.contact-item-content h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-item-content p {
    color: var(--text-muted-light);
    font-size: 15px;
}

.contact-item-content a:hover {
    color: var(--primary);
}

/* Form Styling */
.contact-form-panel {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 24px;
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-full {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bg-light-alt);
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    background-color: white;
    outline: none;
}

.form-input.error-field {
    border-color: var(--error);
}

.field-error-msg {
    color: var(--error);
    font-size: 12px;
    font-weight: 500;
    display: none;
    margin-top: -4px;
}

/* Checkbox options */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
}

.checkbox-label input {
    margin-top: 4px;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.recaptcha-placeholder {
    background-color: var(--bg-light-alt);
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    gap: 10px;
    margin-bottom: 20px;
}

/* Success & Error State notifications */
.form-notification {
    display: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    align-items: center;
    gap: 12px;
}

.form-notification.success {
    background-color: var(--success-light);
    border: 1px solid var(--success);
    color: var(--success);
}

.form-notification.error {
    background-color: var(--error-light);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Cookie consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 400px;
    background-color: var(--bg-slate-800);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 24px;
    z-index: 999;
    color: white;
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.5s ease-out;
}

.cookie-consent-banner.active {
    display: flex;
}

.cookie-consent-banner p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted-light);
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
}

.cookie-consent-actions .btn {
    padding: 10px 20px;
    font-size: 13px;
    flex: 1;
}

/* Floating Actions (Floating Call Button & Scroll to top) */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.floating-call {
    background-color: var(--success);
    animation: pulseCall 2.5s infinite;
}

.floating-call:hover {
    background-color: #059669;
    transform: scale(1.1);
}

.floating-top {
    background-color: var(--bg-slate-800);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    visibility: hidden;
}

.floating-top.active {
    opacity: 1;
    visibility: visible;
}

.floating-top:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

@keyframes pulseCall {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    50% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
}

/* --------------------------------------------------------------------------
   16. Footer Styles
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-muted-light);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: var(--transition);
}

.social-link-btn:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    font-size: 14px;
}

.footer-links li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: white;
}

/* --------------------------------------------------------------------------
   17. Keyframe Animations & Reveal Settings
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   18. Responsive Breakpoints (RWD)
   -------------------------------------------------------------------------- */

/* Breakpoint: 1600px+ (Ultra-wide screens) */
@media (min-width: 1600px) {
    :root {
        --container-max-width: 1500px;
    }
    .hero h1 {
        font-size: 60px;
    }
}

/* Breakpoint: 1400px (Extra large) */
@media (max-width: 1400px) {
    .hero h1 {
        font-size: 48px;
    }
}

/* Breakpoint: 1200px (Desktop / Large tablet) */
@media (max-width: 1200px) {
    .section {
        padding: 80px 0;
    }
    .hero h1 {
        font-size: 40px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Breakpoint: 992px (Medium tablets / Small desktops) */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header.scrolled .nav {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .nav.active {
        left: 0;
    }

    .nav-link {
        font-size: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero p {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust-list {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

/* Breakpoint: 768px (Small tablets) */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 32px;
    }
    .process-nav {
        margin-bottom: 80px;
    }
    .process-nav-btn .step-title {
        font-size: 11px;
        top: 55px;
    }
    .process-slide {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .comparison-box {
        grid-template-columns: 1fr;
    }
    .defects-grid {
        grid-template-columns: 1fr;
    }
    .voltage-selector {
        grid-template-columns: 1fr;
    }
}

/* Breakpoint: 576px (Large mobile) */
@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-trust-list {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group-full {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Breakpoints: 480px, 390px, 360px, 320px (Mobile optimizations) */
@media (max-width: 480px) {
    .phone-quick {
        display: none; /* Hide quick phone button in header on tiny screens */
    }
    .calculator-settings {
        padding: 20px;
    }
    .calculator-results {
        padding: 30px 20px;
    }
    .contact-form-panel {
        padding: 24px;
    }
    .slider-button {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
