/* DESIGN SYSTEM APPLIED */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* =========================================
   DESIGN TOKENS (SYSTEM)
   ========================================= */
:root {
    /* --- TYPOGRAPHY --- */
    --font-main: 'Manrope', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* --- PALETTE --- */
    /* Core Neutrals */
    --color-dark: #231f20;      /* Primary Black/Graphite */
    --color-white: #ffffff;
    --color-light: #f9f9f7;     /* Organic Off-White */
    --color-grey: #8C8C8C;      /* Secondary Text */
    
    /* Brand Accents */
    --color-lime: #82c342;      /* BHP & Global Accent */
    --color-lime-hover: #71ad35;
    --color-sand: #E6E0D5;      /* Insurance Accent */

    /* Semantic Mappings (Legacy Support & Consistency) */
    /* BHP Context */
    --color-bhp-bg: var(--color-lime);
    --color-bhp-text: var(--color-dark);
    
    /* Generali Context */
    --color-ins-bg: var(--color-sand);
    --color-ins-text: var(--color-dark);
    --gen-lime: var(--color-lime);
    --gen-dark: var(--color-dark);
    
    /* Global Alias */
    --color-accent: var(--color-lime);
    --primary-dark: var(--color-dark);

    /* --- SPACING SCALE (8px Grid) --- */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-section: 100px;

    /* --- UI ELEMENTS --- */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    
    --shadow-sm: 0 2px 8px rgba(35, 31, 32, 0.08);
    --shadow-md: 0 10px 30px -10px rgba(35, 31, 32, 0.12);
    --shadow-lg: 0 20px 40px -10px rgba(35, 31, 32, 0.15);

    /* --- ANIMATION --- */
    --transition-speed: 0.3s;
    --transition-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll globally */
    max-width: 100vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Typography Scale */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

h1 { font-size: 3rem; }      /* 48px */
h2 { font-size: 2.25rem; }   /* 36px */
h3 { font-size: 1.75rem; }   /* 28px */
h4 { font-size: 1.5rem; }    /* 24px */
p { font-size: 1rem; margin-bottom: var(--space-md); }

/* Index page specific fix */
body.page-index {
    overflow: hidden;
    height: 100vh;
}

/* =========================================
   COMPONENTS (BUTTONS & CARDS)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    border-radius: var(--radius-pill);
    transition: all var(--transition-speed) var(--transition-ease);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 48px; /* Mobile touch target */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--color-lime);
    color: var(--color-dark);
}

.btn-primary:hover {
    background-color: var(--color-lime-hover);
}

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

.btn-secondary:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-dark);
    padding: 8px 16px;
}

.btn-ghost:hover {
    background-color: rgba(35, 31, 32, 0.05);
    box-shadow: none;
    transform: none;
}

/* =========================================
   HEADER / NAVIGATION (INDEX)
   ========================================= */
header.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 3rem;
    display: flex;
    justify-content: flex-end; /* Push contact to right */
    align-items: flex-start; /* Align to top */
    pointer-events: none;
}

header.main-header .logo {
    pointer-events: auto;
    position: absolute;
    left: 50%;
    top: 1rem; /* Slightly closer to top */
    transform: translateX(-50%);
    
    width: auto;
    height: auto;
    padding: 10px 25px; /* Reduced padding for tighter fit */
    background-color: #ffffff;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Deeper shadow */
    z-index: 101;
}

header.main-header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px; /* Reduced gap between signet and text */
}

header.main-header .logo .logo-signet {
    max-height: 55px; /* Increased size */
    width: auto;
    display: block;
}

header.main-header .logo .logo-text {
    max-height: 65px; /* Increased for better readability */
    width: auto;
    display: block;
}

header.main-header .nav-contact {
    /* ... existing styles ... */
    pointer-events: auto;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-bhp-text);
    border: 1px solid var(--color-bhp-bg);
    background-color: var(--color-bhp-bg);
    backdrop-filter: blur(0);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 10px; /* Align visually with the larger logo medallion */
}

/* Mobile Adjustment for Medallion */
@media(max-width: 1200px) {
    header.main-header {
        justify-content: space-between; /* Return to standard layout on mobile */
        align-items: center;
    }
    
    header.main-header .logo {
        position: relative; /* Reset absolute centering */
        left: auto;
        top: auto;
        transform: none;
        padding: 10px 20px;
        margin-right: auto; /* Push contact to right */
    }

    header.main-header .logo .logo-signet { max-height: 30px; }
    header.main-header .logo .logo-text { max-height: 35px; } /* Smaller but still legible */
    
    header.main-header .nav-contact { margin-top: 0; }
    
    /* Contact Page Specific Nav Breakpoint */
    .page-contact .desktop-menu { display: none !important; }
    .page-contact .hamburger-btn { display: block !important; }
    .page-contact nav { padding: 0 20px; }
}

/* =========================================
   MAIN CONTAINER (SPLIT SCREEN - INDEX)
   ========================================= */

.container-split {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

.split {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: flex var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    cursor: pointer;
    padding: 2rem;
}

.split-bhp {
    background-color: var(--color-bhp-bg);
    color: var(--color-bhp-text);
    transition: background-color 0.3s ease, filter 0.3s ease; /* Add transition for color */
}

.split-bhp::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Updated gradient to match #82c342 with high opacity for readability */
    background: linear-gradient(rgba(130, 195, 66, 0.9), rgba(130, 195, 66, 0.8)), 
                url('../images/BHP2.webp');
    background-size: cover;
    background-position: center;
    opacity: 1; /* Full opacity of the layer, controlling transparency via gradient alpha */
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    z-index: 0;
}

/* Darken on hover as requested */
.split-bhp:hover {
    filter: brightness(0.95);
}

.split-ins {
    background-color: var(--color-ins-bg);
    color: var(--color-ins-text);
}

.split-ins::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(230, 224, 213, 0.8), rgba(230, 224, 213, 0.6)),
                url('../images/Rodzina.webp');
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    z-index: 0;
}

.split .content {
    position: relative;
    z-index: 10;
    max-width: 550px; /* Slightly wider for bold text */
    transform: translateY(0);
    transition: transform var(--transition-speed) ease;
    /* Glassmorphism removed */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.split h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 700; /* Ensure main header is bold */
    min-height: 140px; /* Standardize headline container */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split h1 span {
    display: block;
    font-size: 1.2rem;
    font-family: var(--font-sans);
    font-weight: 700; /* Bold for subheader */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    opacity: 1; /* Full opacity for better readability */
    color: #000; /* Absolute black */
    min-height: 3rem; /* Ensure main H1 starts at same height */
    display: flex;
    align-items: flex-end; /* Align bottom of subheader */
    justify-content: center;
}

.split p {
    font-size: 1.15rem; /* Slightly larger */
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 1; /* Full opacity */
    font-weight: 500; /* Medium weight for body text */
    color: #111; /* Almost black */
    min-height: 220px; /* Increased to accommodate BHP text and align buttons */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align text to top */
}

.split .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    cursor: pointer; /* Added */
}

.btn-bhp {
    border: 1px solid var(--color-bhp-text);
    color: var(--color-bhp-text);
}

.btn-bhp:hover {
    background: var(--color-bhp-text);
    color: var(--color-bhp-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-ins {
    background-color: var(--color-ins-text);
    color: #fff;
    border: 1px solid var(--color-ins-text);
}

.btn-ins:hover {
    background-color: transparent;
    color: var(--color-ins-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.trust-badge {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #231f20;
    
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    pointer-events: none;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-badge .icon {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optional: Add hover effect to parent to make badge pop slightly even though it's non-clickable */
.split:hover .trust-badge {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

@media(min-width: 769px) {
    /* .container-split:has(.split-bhp:hover) .split-bhp { flex: 2; } */
    .container-split:has(.split-bhp:hover) .split-bhp::before { opacity: 0.3; transform: scale(1.05); }
    /* .container-split:has(.split-bhp:hover) .split-ins { filter: blur(2px) grayscale(30%); } */

    /* .container-split:has(.split-ins:hover) .split-ins { flex: 2; } */
    .container-split:has(.split-ins:hover) .split-ins::before { opacity: 0.15; transform: scale(1.05); }
    /* .container-split:has(.split-ins:hover) .split-bhp { filter: blur(2px) grayscale(30%); } */
}

footer.main-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.1;
    z-index: 200;
    background-color: #231f20; 
    color: #F2F0E9;
    opacity: 1;
    mix-blend-mode: normal;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer.main-footer p {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

footer.main-footer a {
    color: inherit;
    text-decoration: none;
    margin: 0 10px;
}

.footer-link-subtle {
    color: inherit !important;
    opacity: 0.6;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    transition: opacity 0.3s ease;
    margin-left: 8px !important;
    font-size: 0.95em;
}

.footer-link-subtle:hover {
    opacity: 1;
}

@media(max-width: 768px) {
    .container-split { flex-direction: column; height: auto; min-height: 100vh; }
    header.main-header { padding: 1.5rem; position: relative; background: #231f20; }
    .split { padding: 4rem 1rem; }
    /* .split .content padding removed */
    .container-split:has(.split:hover) .split { flex: 1; }
    footer.main-footer { position: relative; }
}

/* =========================================
   PAGE: BHP (bhp.html)
   ========================================= */
.page-bhp {
    background-color: var(--color-light);
    font-family: var(--font-main);
    color: var(--color-dark);
}

/* Fixed header anchor offset */
.page-bhp section[id] {
    scroll-margin-top: 100px;
}

.page-bhp h1, .page-bhp h2, .page-bhp h3, .page-bhp h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
}

.page-bhp p { color: #4a4a4a; margin-bottom: var(--space-md); }
.page-bhp a { text-decoration: none; color: inherit; transition: var(--transition-speed) var(--transition-ease); }
.page-bhp ul { list-style: none; }

.page-bhp .container {
    max-width: 1200px; /* Standardized max-width */
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: block;
    height: auto;
}

.page-bhp .highlight { 
    position: relative; 
    z-index: 1; 
    background-image: linear-gradient(rgba(130, 195, 66, 0.3), rgba(130, 195, 66, 0.3));
    background-size: 100% 35%;
    background-repeat: no-repeat;
    background-position: 0 85%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.page-bhp .highlight::after {
    display: none;
}

.page-bhp .text-center { text-align: center; }
.page-bhp .grid { display: grid; gap: 2rem; }

/* Buttons BHP */
.page-bhp .btn {
    display: inline-block;
    padding: 16px 36px; /* Increased from 14px 32px */
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.05rem; /* Increased from 1rem */
}

.page-bhp .btn-primary {
    background-color: var(--color-dark);
    color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.page-bhp .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(35, 31, 32, 0.2);
    border-bottom: 3px solid var(--color-lime);
}

.page-bhp .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
}

.page-bhp .btn-secondary:hover {
    background-color: var(--color-dark);
    color: var(--color-white) !important;
}

/* Header BHP */
.page-bhp header {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98); /* Slight transparency */
    backdrop-filter: blur(5px);
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

/* Compensate for fixed header */
body.page-bhp {
    padding-top: 85px; /* Height of header + padding */
}

.page-bhp nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-bhp .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.page-bhp .logo-icon { height: 60px; width: auto; }
.page-bhp .logo-text { height: 60px; width: auto; }

.page-bhp .desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.page-bhp .desktop-menu a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-dark);
}

.page-bhp .desktop-menu a:hover {
    color: var(--accent-lime);
}

.page-bhp .desktop-menu .btn-nav {
    padding: 12px 28px; /* Increased from 10px 24px */
    font-size: 1rem; /* Increased from 0.9rem */
}

/* Hero BHP */
.page-bhp .hero {
    padding: 60px 0 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.page-bhp .hero-content h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.page-bhp .hero-content h2 {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.page-bhp .hero-image { position: relative; }
.page-bhp .image-wrapper {
    background-color: #e5e5e5;
    border-radius: var(--border-radius) 50px var(--border-radius) var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4/5;
    position: relative;
}

.page-bhp .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d3d3d3 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
    font-family: 'Playfair Display';
}

.page-bhp .hero-decoration {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border: 3px solid var(--accent-lime);
    border-radius: 50%;
    z-index: -1;
}

/* Diagnosis BHP */
.page-bhp .diagnosis { padding: 80px 0; background-color: var(--color-white); }
.page-bhp .diagnosis-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 3rem; }
.page-bhp .diagnosis-card {
    padding: 2rem;
    border-left: 4px solid var(--color-lime);
    background: var(--color-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.page-bhp .diagnosis-card h3 { font-family: var(--font-main); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }

/* Solution BHP */
.page-bhp .solution { padding: 100px 0; scroll-margin-top: 100px; }
.page-bhp .solution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.page-bhp .card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) var(--transition-ease);
    border-top: 4px solid transparent;
}

.page-bhp .card:hover { transform: translateY(-5px); border-top: 4px solid var(--color-lime); }
.page-bhp .icon-box { width: 60px; height: 60px; margin-bottom: 1.5rem; }
.page-bhp .icon-box svg { width: 100%; height: 100%; stroke: var(--color-dark); stroke-width: 1.5; fill: none; }
.page-bhp .icon-box .lime-dot { fill: var(--color-lime); stroke: none; }
.page-bhp .motto { text-align: center; margin-top: 4rem; font-size: 1.5rem; font-family: var(--font-heading); font-style: italic; }

/* Footer BHP */
.page-bhp .responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
    margin-bottom: 40px;
}

/* Benefits BHP */
.page-bhp .benefits { 
    padding: 80px 0; 
    background-color: #111111; /* Deep black/gray, removing any brown tint */
    color: var(--color-light); 
    text-align: center; 
}
.page-bhp .benefits h2 { 
    color: #ffffff; 
    margin-bottom: 1rem; 
}
.page-bhp .benefits p { 
    color: #ffffff !important; /* Pure white for max readability */
    opacity: 0.9;
    font-weight: 400;
}
.page-bhp .benefit-row { display: flex; justify-content: center; margin-top: 3rem; flex-wrap: wrap; gap: 2rem; }
.page-bhp .benefit-item { flex: 1; min-width: 250px; max-width: 350px; }
.page-bhp .benefit-item h3 { color: var(--color-lime); margin-bottom: 1rem; font-size: 1.5rem; }

/* About BHP */
.page-bhp .about { padding: 100px 0; display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; scroll-margin-top: 100px; }
.page-bhp .about-quote { font-size: 1.2rem; font-style: italic; border-left: 3px solid var(--accent-lime); padding-left: 1.5rem; margin-top: 2rem; color: var(--primary-dark); }

/* Pricing BHP */
.page-bhp .pricing {
    padding: 80px 0 120px; /* Extra padding at bottom to prevent overlap */
    background-color: var(--bg-organic);
}

.page-bhp .pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    align-items: stretch; /* Ensure cards stretch to full height */
}

.page-bhp .price-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%; /* Fill the grid cell */
}

.page-bhp .price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-lime);
    z-index: 2; /* Bring above others on hover */
}

/* Featured card specific scaling */
.page-bhp .price-card.featured {
    border: 2px solid var(--accent-lime);
    transform: scale(1.05);
    z-index: 1;
}

.page-bhp .price-card.featured:hover {
    transform: scale(1.08);
    z-index: 3;
}

.page-bhp .price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.page-bhp .price-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-lime);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.page-bhp .price-card .price span {
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    color: #999;
    font-weight: 400;
}

.page-bhp .price-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Push the button and list to the bottom */
.page-bhp .price-card .price-list {
    margin-bottom: 2rem;
    flex-grow: 1; /* Occupy available space */
}

.page-bhp .price-card .btn {
    margin-top: auto; /* Align button to bottom */
    width: 100%;
    text-align: center;
}

.page-bhp .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-lime);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Pricing List Styling */
.page-bhp .price-list {
    text-align: left;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.page-bhp .price-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.page-bhp .price-list li::before {
    content: '✓';
    color: var(--accent-lime);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
    line-height: 1;
}

/* Solution Cards (Offer Section) Improvements */
.page-bhp .solution-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    align-items: stretch;
}

.page-bhp .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-bhp .card p {
    margin-bottom: 0; /* Remove default margin to let flex handle spacing if needed */
}

/* Responsive Adjustments for Cards */
@media (max-width: 1024px) {
    .page-bhp .pricing-table,
    .page-bhp .solution-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* On tablet, reset the scale so it doesn't look weird in a 2-col grid */
    .page-bhp .price-card.featured {
        transform: scale(1);
    }
    .page-bhp .price-card.featured:hover {
        transform: translateY(-10px);
    }
}

    @media (max-width: 768px) {
        .page-bhp .desktop-menu { display: none !important; }
        .page-bhp .hamburger-btn { display: block !important; }
        .page-bhp nav { padding: 0 15px; }
        
        /* Logo sizing for mobile */
        .page-bhp .logo-text { display: none; }
        .page-bhp .logo-icon { height: 35px; }

        /* Hero Section Fix */
        .page-bhp .hero {
            grid-template-columns: 1fr !important;
            text-align: center;
            gap: 3rem;
            padding-top: 40px;
            padding-bottom: 60px;
        }
        
        .page-bhp .hero-image {
            order: -1; /* Image first on mobile */
            width: 100%;
            max-width: 350px;
            margin: 0 auto;
        }

        .page-bhp .hero-content h1 {
            font-size: 2.2rem; /* Smaller font for mobile */
            line-height: 1.2;
            margin-top: 2rem; /* Increased top margin */
            margin-bottom: 2rem; /* Increased bottom margin */
        }
        
        .page-bhp .hero-content h2 {
            font-size: 1rem;
            margin: 0 auto 3rem; /* Increased margin */
        }

        /* Grid & Layout Stacking (Crucial for "Tragic" layout fix) */
        .page-bhp .grid,
        .page-bhp .diagnosis-grid,
        .page-bhp .solution-cards,
        .page-bhp .pricing-table,
        .page-bhp .about {
            grid-template-columns: 1fr !important;
            gap: 2rem;
        }
        
        /* Diagnosis Cards */
        .page-bhp .diagnosis-card {
            border-left: none;
            border-top: 4px solid var(--accent-lime);
            border-radius: var(--border-radius);
        }

        /* Pricing & Offer Cards */
        .page-bhp .price-card, 
        .page-bhp .card {
            width: auto; /* Let margin control width */
            margin: 0 10px; /* Visible side edges */
            height: auto !important; /* Reset height so content defines it */
        }

        .page-bhp .pricing {
            padding-bottom: 60px;
        }
        
        /* About Section Image */
        .page-bhp .about .image-wrapper {
            width: 100%;
            max-width: 100%;
            height: auto;
            aspect-ratio: 1/1;
        }

        .page-bhp .about {
            text-align: left !important; /* Force left alignment */
        }
    
    /* Footer Stack */
    .page-bhp footer .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }
    
    .page-bhp footer h2 {
        font-size: 2rem !important;
    }
}

/* Contact Form Select Styling */.page-bhp .contact-form select {
    width: 100%; 
    margin-bottom: 10px; 
    padding: 15px; 
    border-radius: 8px; 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: white;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

.page-bhp .contact-form select:focus {
    outline: none;
    border-color: var(--accent-lime);
    background-color: rgba(255,255,255,0.15);
}

.page-bhp .contact-form select option {
    background-color: #231f20;
    color: #fff;
    padding: 10px;
}
    
.footer-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    font-size: 0.85em;
    opacity: 0.8;
    vertical-align: middle;
}
.footer-author span { color: inherit; }
.footer-author img {
    height: 14px; /* Modified */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    opacity: 0.7; /* Added */
}
.footer-author a:hover img { transform: scale(1.1); }
footer.main-footer .footer-author {
    margin-left: 0;
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

/* =========================================
   PAGE: CONTACT (kontakt.html)
   ========================================= */
.page-contact {
    --primary-dark: #231f20;
    --accent-lime: #82c342;
    --bg-organic: #f9f9f7;
    --bg-white: #ffffff;
    --text-body: #4a4a4a;
    --border-radius: 12px;
    
    background-color: var(--bg-organic);
    font-family: 'Lato', sans-serif;
    color: var(--primary-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-contact header {
    padding: 1rem 0;
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.page-contact nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.page-contact .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.page-contact .logo-icon { height: 40px; width: auto; }
.page-contact .logo-text { height: 40px; width: auto; }

.page-contact .desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.page-contact .desktop-menu a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s;
}
.page-contact .desktop-menu a:hover { color: var(--accent-lime); }

.page-contact .btn-nav {
    border: 2px solid var(--primary-dark);
    padding: 10px 24px;
    border-radius: 50px;
    background: transparent;
    white-space: nowrap;
}
.page-contact .btn-nav:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

/* Spacing & Grid Fixes for Mobile */
@media (max-width: 768px) {
    .page-bhp .container {
        padding: 0 40px !important; /* Increased from 30px */
    }

    .page-bhp .hero,
    .page-bhp .diagnosis,
    .page-bhp .solution,
    .page-bhp .benefits,
    .page-bhp .about,
    .page-bhp section#kontakt {
        padding: 50px 0 !important; 
    }

    .page-bhp .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .page-bhp .solution-cards {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .page-bhp .diagnosis-grid {
        gap: 20px !important;
    }

    .page-bhp .motto {
        font-size: 1.2rem !important;
        margin-top: 2rem;
        padding: 0 10px;
    }

    .page-bhp .about {
        text-align: center;
    }

    .page-bhp .about-quote {
        margin-top: 1.5rem;
        text-align: left;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS FIXES
   ========================================= */

/* Prevent horizontal scroll globally */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Fix Form Inputs on Mobile */
input, select, textarea, button {
    max-width: 100%;
    box-sizing: border-box; /* Ensure padding doesn't add width */
}

/* BHP Footer Responsive Layout */
.footer-container {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 30px; 
    margin-bottom: 20px;
}

.footer-contact-group {
    display: flex; 
    gap: 30px; 
    flex-wrap: wrap;
}

.footer-socials {
    display: flex; 
    gap: 20px;
}

@media (max-width: 768px) {
    /* Stack footer elements vertically on mobile */
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-contact-group {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .footer-socials {
        width: 100%;
        justify-content: flex-start; /* Align left to match others */
    }

    /* Fix long emails breaking layout */
    .footer-contact-group a {
        word-break: break-word;
        font-size: 1rem;
    }
}

/* =========================================
   PREMIUM MOBILE MENU (UNIFIED)
   ========================================= */

/* Body Scroll Lock */
body.no-scroll {
    overflow: hidden;
}

/* Menu Overlay - Side Drawer Style */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(35, 31, 32, 0.95); /* #231f20 with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

/* Close Button Position */
.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10000;
}

.mobile-menu-close:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.mobile-menu-close::before { transform: rotate(45deg); }
.mobile-menu-close::after { transform: rotate(-45deg); }
.mobile-menu-close:hover::before { transform: rotate(135deg); }
.mobile-menu-close:hover::after { transform: rotate(45deg); }

/* BHP Mobile Menu Overrides */
.page-bhp .mobile-menu-overlay {
    background-color: rgba(130, 195, 66, 0.95); /* More opaque BHP Green */
    backdrop-filter: blur(20px) saturate(140%); /* Stronger blur, slightly less saturation */
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.page-bhp .mobile-nav-link {
    color: var(--color-bhp-text);
}

.page-bhp .mobile-nav-link::after {
    background-color: var(--color-bhp-text);
}

.page-bhp .mobile-menu-close::before,
.page-bhp .mobile-menu-close::after {
    background-color: var(--color-bhp-text);
}

/* Menu Links Container */
.mobile-nav-list {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

/* Individual Links */
.mobile-nav-item {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

/* Staggered Animation Delay when Active */
.mobile-menu-overlay.active .mobile-nav-item:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

.mobile-nav-link {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-lime, #82c342);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-nav-link:hover {
    color: var(--accent-lime, #82c342);
}

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

/* Hamburger Button (Universal) */
.hamburger-btn {
    display: none; /* Hidden on Desktop by default */
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 2000; /* Ensure it's above everything */
    padding: 0;
}

/* ... existing hamburger lines styles ... */

.hamburger-lines {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark, #231f20);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.hamburger-lines::before,
.hamburger-lines::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark, #231f20);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-lines::before { top: -8px; }
.hamburger-lines::after { top: 8px; }

/* Responsive Trigger */
@media (max-width: 768px) {
    .hamburger-btn { display: block; }
    /* Hide desktop menu in respective parent classes if not already hidden */
}

/* BHP Mobile Menu Specifics */
.page-bhp .mobile-nav-link:hover {
    color: #fff; /* Fix invisible green on green */
    opacity: 0.8;
}

.page-bhp .mobile-nav-link::after {
    background-color: #fff; /* White underline instead of green */
}

/* BHP Mobile Menu Contact Button */
.page-bhp .mobile-nav-list li:last-child a {
    background-color: #fff;
    color: var(--accent-lime) !important;
    padding: 10px 25px;
    border-radius: 50px;
    margin-top: 10px;
    font-size: 1.5rem; /* Slightly smaller than main links */
}

.page-bhp .mobile-nav-list li:last-child a:hover {
    background-color: var(--primary-dark);
    color: #fff !important;
}

.page-bhp .mobile-nav-list li:last-child a::after {
    display: none; /* Remove underline for button */
}

/* --- BHP MOBILE UX/UI IMPROVEMENTS --- */
@media (max-width: 768px) {
    .page-bhp .hero-content h2 {
        font-size: 1.25rem !important; /* Bigger subtitle */
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .page-bhp p, 
    .page-bhp .card p, 
    .page-bhp .diagnosis-card p,
    .page-bhp .about p,
    .page-bhp .benefit-item p {
        font-size: 1rem !important; /* 16px base size for readability */
        line-height: 1.6;
    }

    .page-bhp .btn {
        padding: 16px 32px !important; /* Balanced padding */
        width: fit-content !important; /* Not stretched anymore */
        margin: 0 auto !important; /* Centered */
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.05rem !important;
    }

    /* Better spacing for cards */
    .page-bhp .solution-cards,
    .page-bhp .pricing-table,
    .page-bhp .diagnosis-grid {
        gap: 3rem !important; /* Clearer separation */
    }

    .page-bhp .card, 
    .page-bhp .diagnosis-card {
        padding: 2rem 1.5rem; /* Comfortable padding */
    }

    /* Prevent Hero Image from dominating and fix scaling */
    .page-bhp .hero {
        padding-top: 2rem !important;
        padding-bottom: 4rem !important;
        gap: 2rem !important;
    }
    
    .page-bhp .hero-content {
        order: 1; /* Content first */
    }
    
    .page-bhp .hero-image {
        order: 2; /* Image second */
        margin-bottom: 0;
        max-width: 100%;
        width: 100%;
    }

    /* Fix Image Wrappers on Mobile to stop cropping */
    .page-bhp .image-wrapper {
        aspect-ratio: auto !important; /* Reset forced aspect ratios */
        height: auto !important;
        max-width: 100% !important;
        border-radius: 12px;
    }

    .page-bhp .image-wrapper img {
        width: 100%;
        height: auto !important;
        object-fit: contain !important; /* Ensure full image is visible */
        max-height: 400px; /* Prevent being too tall */
        object-position: top center;
    }
}

/* Contact Content */
.contact-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.contact-main .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-lime);
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: var(--bg-organic);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-lime);
    flex-shrink: 0;
}

.info-item .text {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    font-weight: 700;
}

.info-item .value {
    font-size: 1.2rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-lime);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.page-contact .form-group {
    margin-bottom: 20px;
}

.page-contact input,
.page-contact textarea,
.page-contact select {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background: #fcfcfc;
    transition: all 0.3s ease;
}

.page-contact input:focus,
.page-contact textarea:focus,
.page-contact select:focus {
    outline: none;
    border-color: var(--accent-lime);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(130, 195, 66, 0.1);
}

.page-contact .btn-primary {
    background: var(--primary-dark);
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.page-contact .btn-primary:hover {
    background: var(--accent-lime);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(130, 195, 66, 0.3);
}

/* Custom Select styling (arrow) */
.page-contact select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231f20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center; /* Center horizontally */
    }
    .contact-info {
        text-align: center;
        width: 100%;
        max-width: 500px;
    }
    .contact-info h1 { font-size: 2.5rem; margin-bottom: 1rem; }
    
    .info-items {
        align-items: center; /* Center items in flex col */
    }
    
    .info-item { 
        justify-content: flex-start; /* Icon left, text right inside item */
        text-align: left; 
        width: 100%;
        max-width: 400px; /* Limit width */
        margin: 0 auto; /* Center the item itself */
    }
    
    .social-links { justify-content: center; }
    
    .contact-form-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact-main { padding: 40px 0; }
    .contact-form-wrapper { padding: 25px; }
}

/* =========================================
   INDEX VIEW SWITCHER
   ========================================= */
.desktop-view {
    display: block;
}

.mobile-view {
    display: none;
}

@media (max-width: 768px) {
    /* Hide Desktop View on Mobile */
    body.page-index .desktop-view {
        display: none !important;
    }
    
    /* Show Mobile View */
    body.page-index .mobile-view {
        display: flex !important;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        background: #1a1a1a;
    }

    /* Reset global padding for mobile index */
    body.page-index {
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* --- MOBILE SPLIT SCREEN STYLES (From v2) --- */
    
    .mobile-view .split-container {
        flex: 1; 
        width: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .mobile-view .panel {
        position: relative;
        flex: 1; /* Start at 50/50 */
        transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        cursor: pointer;
        padding: 20px;
        touch-action: none; 
        -webkit-tap-highlight-color: transparent;
    }

    /* Background Colors Only (Images Removed) */
    .mobile-view .panel::before {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 0;
        transition: transform 0.7s ease, filter 0.5s ease;
    }

    .mobile-view .panel-bhp::before {
        background: linear-gradient(rgba(130, 195, 66, 1), rgba(130, 195, 66, 0.8));
    }

    .mobile-view .panel-ins::before {
        background: linear-gradient(rgba(230, 224, 213, 1), rgba(230, 224, 213, 0.8));
    }

    /* States Logic */
    .mobile-view .split-container.state-top .panel-bhp { flex: 4; }
    .mobile-view .split-container.state-top .panel-ins { flex: 1; }

    .mobile-view .split-container.state-bottom .panel-bhp { flex: 1; }
    .mobile-view .split-container.state-bottom .panel-ins { flex: 4; }

    /* Effects on Inactive */
    .mobile-view .split-container.state-top .panel-ins::before,
    .mobile-view .split-container.state-bottom .panel-bhp::before {
        filter: brightness(0.8);
    }

    /* Content */
    .mobile-view .content {
        position: relative;
        z-index: 10;
        opacity: 1;
        transition: all 0.4s ease;
        max-width: 320px;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-view h2 {
        font-family: 'Playfair Display', serif;
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
        color: #1a1a1a;
        line-height: 1.1;
        transition: all 0.4s ease;
    }
    
    .mobile-view .subtitle {
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.8rem;
        font-weight: 700;
        margin-bottom: 10px;
        display: block;
        color: #1a1a1a;
        transition: all 0.4s ease;
    }

    .mobile-view p.desc {
        font-size: 1.1rem;
        margin-bottom: 25px;
        line-height: 1.4;
        max-height: 200px;
        overflow: hidden;
        opacity: 1;
        transition: all 0.5s ease;
        color: #1a1a1a;
    }

    .mobile-view .btn {
        display: inline-block;
        padding: 14px 35px !important;
        background: #1a1a1a;
        color: #fff;
        text-decoration: none;
        border-radius: 30px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.9rem !important;
        letter-spacing: 1px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(0);
        transition: all 0.4s ease;
        pointer-events: auto;
        width: auto !important;
        margin: 0 !important;
    }

    /* Animations */
    @keyframes btn-pulse {
        0% { transform: scale(1); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
        50% { transform: scale(1.05); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
        100% { transform: scale(1); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    }

    /* Active Button Pulse */
    .mobile-view .split-container.state-top .panel-bhp .btn,
    .mobile-view .split-container.state-bottom .panel-ins .btn {
        animation: btn-pulse 2s infinite ease-in-out;
    }

    /* Styling Inactive States: Show ONLY Button, Hide everything else */
    /* Bottom Panel when Top is active */
    .mobile-view .split-container.state-top .panel-ins h2 { display: none; }
    .mobile-view .split-container.state-top .panel-ins .subtitle { display: none; }
    .mobile-view .split-container.state-top .panel-ins p.desc { display: none; }
    .mobile-view .split-container.state-top .panel-ins .btn { 
        padding: 10px 20px !important; 
        font-size: 0.75rem !important; 
        opacity: 0.9;
        margin-top: 0 !important;
    }

    /* Top Panel when Bottom is active */
    .mobile-view .split-container.state-bottom .panel-bhp h2 { display: none; }
    .mobile-view .split-container.state-bottom .panel-bhp .subtitle { display: none; }
    .mobile-view .split-container.state-bottom .panel-bhp p.desc { display: none; }
    .mobile-view .split-container.state-bottom .panel-bhp .btn { 
        padding: 10px 20px !important; 
        font-size: 0.75rem !important; 
        opacity: 0.9;
        margin-top: 0 !important;
    }

    /* Separator Handle */
    .mobile-view .split-separator {
        height: 0;
        width: 100%;
        position: relative;
        z-index: 50;
        overflow: visible; 
    }

    .mobile-view .handle-wrapper {
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        width: 70px;
        height: 70px;
        pointer-events: none;
        z-index: 50;
    }

    .mobile-view .handle-btn {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: #ffffff;
        color: #1a1a1a;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
        pointer-events: auto;
        cursor: pointer;
        transition: transform 0.2s ease-out;
        position: relative;
        overflow: hidden;
    }

    .mobile-view .handle-btn:active { transform: scale(0.9); }

    /* Icons */
    .mobile-view .handle-icon {
        position: absolute;
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .mobile-view .icon-logo {
        width: 55%; height: auto; opacity: 1; transform: scale(1);
    }

    .mobile-view .icon-close {
        width: 40%; height: auto; opacity: 0; transform: scale(0) rotate(-90deg); color: #1a1a1a;
    }

    /* Active State Icons */
    .mobile-view .split-container.state-top .icon-logo,
    .mobile-view .split-container.state-bottom .icon-logo {
        opacity: 0; transform: scale(0);
    }

    .mobile-view .split-container.state-top .icon-close,
    .mobile-view .split-container.state-bottom .icon-close {
        opacity: 1; transform: scale(1) rotate(0deg);
    }

    /* Mobile Footer */
    .mobile-view .main-footer {
        position: relative;
        width: 100%;
        padding: 10px 20px;
        background: rgba(35, 31, 32, 1);
        z-index: 100;
        display: flex;
        justify-content: center;
        align-items: center;
        color: rgba(255,255,255,0.7);
        font-size: 0.7rem;
        flex-shrink: 0;
        bottom: auto; left: auto;
    }
}

/* =========================================
   PAGE: GENERALI (Native CSS Conversion)
   ========================================= */
.page-generali {
    /* Restore local variables mapped to System Tokens */
    --gen-lime: var(--color-lime);
    --gen-lime-hover: var(--color-lime-hover);
    --gen-dark: var(--color-dark);
    --gen-bg: var(--color-light);
    --gen-white: var(--color-white);
    
    background-color: var(--color-light);
    color: var(--color-dark);
    font-family: var(--font-main);
    /* overflow-x handled globally */
    position: relative;
    width: 100%;
}

/* --- UTILS & TYPOGRAPHY --- */
.page-generali .gen-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
}

.page-generali h1, .page-generali h2, .page-generali h3 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.1;
}

.page-generali .text-lime { color: var(--color-lime); }
.page-generali .bg-lime { background-color: var(--color-lime); }
.page-generali .bg-dark { background-color: var(--color-dark); }

/* --- DECORATIVE BLOBS --- */
.blob-wrapper {
    position: fixed; /* Fixed to viewport so it doesn't scroll/expand page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Clip blobs */
    z-index: 0; /* Behind content */
    pointer-events: none;
}

.gen-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}
.gen-blob-1 { top: 0; right: 0; width: 400px; height: 400px; background: rgba(130, 195, 66, 0.2); transform: translate(30%, -30%); }
.gen-blob-2 { bottom: 0; left: 0; width: 300px; height: 300px; background: #e5e5e5; transform: translate(-30%, 30%); }

/* --- NAVIGATION --- */
.gen-nav {
    position: fixed;
    width: 100vw;
    max-width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.gen-nav.scrolled { padding: 10px 0; }

.gen-nav-inner {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.gen-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.gen-logo img { height: 40px; width: auto; transition: transform 0.3s; }
.gen-logo:hover img { transform: scale(1.05); }

.gen-menu { display: flex; gap: 30px; list-style: none; }
.gen-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.gen-menu a:hover { color: var(--color-lime); }

.gen-nav-btn {
    background-color: var(--color-lime);
    color: var(--color-dark);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(130, 195, 66, 0.3);
}
.gen-nav-btn:hover { transform: translateY(-2px); background-color: var(--color-lime-hover); }

/* --- HERO SECTION --- */
.gen-hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.gen-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.gen-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(130, 195, 66, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}
.gen-hero-badge span { width: 8px; height: 8px; background: var(--color-lime); border-radius: 50%; }

.gen-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 800;
}
.gen-hero-underline {
    position: relative;
    display: inline-block;
}
.gen-hero-underline svg {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    color: var(--color-lime);
}

.gen-hero p {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

.gen-hero-actions { display: flex; gap: 20px; align-items: center; }
.gen-social-proof { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 500; color: #555; }
.gen-avatars { display: flex; margin-right: 5px; }
.gen-avatars img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; object-fit: cover; }
.gen-avatars img:first-child { margin-left: 0; }
.gen-avatars .count {
    width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px;
    background: var(--color-lime); display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}

/* Hero Card */
.gen-hero-card {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}
.gen-hero-card:hover { transform: rotate(0deg); }

.gen-card-header { display: flex; gap: 15px; align-items: center; margin-bottom: 25px; }
.gen-card-icon {
    width: 48px; height: 48px; background: #FFF0F0; color: #DC2626;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.gen-check-item {
    display: flex; gap: 12px; align-items: center;
    background: #F9FAFB; padding: 12px; border-radius: 12px; margin-bottom: 10px;
}
.gen-check-item.solved {
    background: rgba(130, 195, 66, 0.1); border: 1px solid var(--color-lime); margin-top: 20px;
}

/* --- PROBLEMS SECTION --- */
.gen-section { padding: 100px 0; }

.gen-section-header { margin-bottom: 60px; max-width: 700px; }
.gen-section-header h2 { font-size: 3rem; margin-bottom: 15px; font-weight: 700; }
.gen-section-header p { font-size: 1.2rem; color: #666; }

.gen-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 24px;
}

.gen-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.gen-card:hover { transform: translateY(-5px); }

.gen-card.large { grid-column: span 2; position: relative; overflow: hidden; }
.gen-card.dark { background: var(--color-dark); color: #fff; justify-content: space-between; }
.gen-card.highlight { background: var(--color-lime); grid-column: span 2; box-shadow: var(--shadow-lg); }

.gen-card h3 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 700; }
.gen-card p { line-height: 1.6; opacity: 0.8; }

.gen-quote { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 20px; position: relative; z-index: 2; }
.gen-card-icon-lg { width: 40px; height: 40px; margin-bottom: 20px; color: var(--color-lime); }

/* --- PROCESS SECTION --- */
.gen-process { background: #fff; position: relative; overflow: hidden; }
.gen-step { display: flex; gap: 60px; align-items: center; margin-bottom: 80px; position: relative; z-index: 2; }
.gen-step:last-child { margin-bottom: 0; }

.gen-step-num {
    width: 64px; height: 64px; background: var(--color-light); border: 4px solid #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; color: var(--color-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); flex-shrink: 0;
}
.gen-step.step-2 .gen-step-num { background: var(--color-lime); }
.gen-step.step-3 .gen-step-num { background: var(--color-dark); color: #fff; }

.gen-step-content { flex: 1; }
.gen-step-content h3 { font-size: 1.8rem; margin-bottom: 10px; font-weight: 700; }

/* Scroll Line */
.gen-line {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--color-lime), transparent);
    transform: translateX(-50%); z-index: 1;
}

/* --- ABOUT SECTION --- */
.gen-about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.gen-about-img {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    background: #ddd; /* placeholder color */
}
.gen-about-img img { width: 100%; height: 100%; object-fit: cover; }
.gen-about-bg {
    position: absolute; inset: 0; background: var(--color-lime);
    border-radius: 40px; transform: rotate(3deg) translate(15px, 15px); z-index: -1;
}

.gen-testimonial {
    border-left: 4px solid var(--color-lime);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
}

/* --- CONTACT FORM --- */
.gen-contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 30px;
    padding: 60px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
/* .gen-contact-deco removed per user request regarding footer gradient confusion */

.gen-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.gen-input-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.9rem; }
.gen-input {
    width: 100%; padding: 14px 20px; border: 1px solid #ddd; border-radius: 8px;
    font-family: var(--font-main); font-size: 1rem; transition: all 0.3s;
    background-color: #fff; /* Ensure white background */
}
.gen-input:focus { border-color: var(--color-lime); outline: none; box-shadow: 0 0 0 3px rgba(130, 195, 66, 0.1); }

.gen-radio-group { display: flex; flex-direction: column; gap: 12px; }
.gen-radio-label {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border: 1px solid #eee; border-radius: 8px;
    cursor: pointer; transition: all 0.2s;
}
.gen-radio-label:hover { border-color: var(--color-lime); background: rgba(130, 195, 66, 0.05); }
.gen-radio-label input { width: auto; margin: 0; accent-color: var(--color-lime); }

.gen-submit-btn {
    width: 100%; background: var(--color-lime); color: var(--color-dark);
    border: none; padding: 18px; border-radius: 12px; font-weight: 800; font-size: 1.1rem;
    cursor: pointer; transition: all 0.3s; margin-top: 20px;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.gen-submit-btn:hover { background: var(--color-lime-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(130, 195, 66, 0.3); }

/* --- FOOTER --- */
.gen-footer { 
    background: var(--color-dark); /* Force dark background */
    color: #fff; 
    padding: 80px 0 30px; 
    position: relative; 
    z-index: 10; 
}
.gen-footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 50px; margin-bottom: 60px; padding-bottom: 60px; }
.gen-footer-links { list-style: none; }
.gen-footer-links li { margin-bottom: 12px; }
.gen-footer-links a { color: #999; text-decoration: none; transition: color 0.3s; }
.gen-footer-links a:hover { color: var(--color-lime); }
.gen-footer-col h4 { margin-bottom: 20px; font-weight: 700; color: #fff; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .gen-cards-grid { grid-template-columns: 1fr 1fr; }
    .gen-card.large, .gen-card.highlight { grid-column: span 2; }
}

    @media (max-width: 768px) {
        .page-generali .desktop-menu { display: none; }
        
        .gen-nav {
            padding: 15px 0; /* Keep the floating look */
        }

        .gen-nav-inner { 
            padding: 10px 20px; 
            margin: 0 15px;
            width: auto; /* Let margin define width */
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .gen-nav .gen-menu, .gen-nav .gen-nav-btn { display: none; }
        
        #universal-menu-btn { 
            display: block !important; 
            margin-left: auto;
        }
        
        .gen-hero-grid { grid-template-columns: 1fr; gap: 40px; }
        .gen-hero { padding-top: 120px; text-align: center; }
        .gen-hero p { margin: 0 auto 40px; }
        .gen-hero-actions { justify-content: center; flex-direction: column; }
        .gen-hero-card { transform: rotate(0); margin: 0 20px; }

        .gen-section-header h2 { font-size: 2rem; }
        
        .gen-cards-grid { grid-template-columns: 1fr; }
        .gen-card.large, .gen-card.highlight { grid-column: span 1; }
        
        /* --- PROCESS SECTION REPAIR --- */
        .gen-process .gen-container {
            padding-left: 10px;
            padding-right: 10px;
        }

        .gen-step { 
            flex-direction: row !important; 
            text-align: left !important; 
            gap: 20px; 
            margin-bottom: 40px;
            align-items: flex-start;
            position: relative;
        }

        /* Ukrywamy puste spacery */
        .gen-step-content.gen-opacity-0, 
        .gen-step-content:empty {
            display: none !important;
        }

        /* Numerek zawsze pierwszy */
        .gen-step-num {
            order: 1;
            width: 45px; height: 45px;
            font-size: 1rem;
            flex-shrink: 0;
            z-index: 2;
            margin: 0 !important; /* Reset margin */
            background: #fff; /* Tło żeby linia nie przecinała numerka */
            position: relative;
        }

        /* Treść zawsze druga */
        .gen-step-content {
            order: 2;
            text-align: left !important;
            opacity: 1 !important;
            display: block !important;
            flex: 1;
            padding-top: 5px; /* Wyrównanie optyczne z numerkiem */
        }

        .gen-step-content h3 {
            font-size: 1.3rem;
            margin-bottom: 8px;
        }

        .gen-step-content p {
            font-size: 0.95rem !important;
            opacity: 0.8;
        }

        /* Linia łącząca */
        .gen-line {
            left: 22.5px !important; /* Środek numerka (45px / 2) */
            transform: none !important; /* Reset transform translate -50% */
            width: 2px;
            opacity: 0.2;
            background: linear-gradient(to bottom, var(--gen-lime), var(--gen-lime)); /* Stały kolor na mobile dla czytelności */
        }
        
        .gen-about-grid { grid-template-columns: 1fr; }
        .gen-about-img { order: -1; max-width: 400px; margin: 0 auto; }
        
        .gen-form-grid { grid-template-columns: 1fr; }
        .gen-contact-wrapper { padding: 30px 20px; }
    }

/* =========================================
   REFACTORED UTILITIES (ADDED DURING AUDIT)
   ========================================= */

/* --- FOOTER UTILS --- */
.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
}

.footer-author-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-author-text {
    font-size: 0.8rem;
    color: #888;
}

.footer-shelp-logo {
    height: 20px;
    width: auto;
    filter: sepia(100%) hue-rotate(180deg) saturate(300%) brightness(70%);
    transition: filter 0.3s ease;
}

.footer-shelp-logo:hover {
    filter: none;
}

/* --- BHP PAGE REFACTOR --- */
.page-bhp .hero-img-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-bhp .trust-badge-hero {
    margin-left: 0;
    align-self: flex-start;
}

.page-bhp .contact-section-dark {
    background-color: #231f20;
    color: #ffffff;
    padding: 60px 20px;
    font-family: 'Manrope', sans-serif;
}

.page-bhp .contact-heading {
    font-size: 2.5rem;
    line-height: 1.2;
    color: white;
}

.page-bhp .contact-subheading {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.page-bhp .input-dark {
    width: 100%;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.page-bhp .btn-lime-submit {
    background-color: #82c342;
    color: #231f20;
    width: 100%;
    border: none;
    font-weight: bold;
}

.page-bhp .footer-dark {
    background-color: #231f20;
    color: #ffffff;
    padding: 40px 0 20px;
    font-family: 'Manrope', sans-serif;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.page-bhp .footer-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.page-bhp .footer-icon-lime {
    color: #82c342;
    flex-shrink: 0;
}

.page-bhp .footer-social-icon {
    color: #82c342;
}

.shelp-logo-small {
    height: 14px;
    vertical-align: middle;
    opacity: 0.7;
}

/* --- GENERALI PAGE REFACTOR --- */
.gen-progress-container {
    background: #eee;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.gen-progress-bar {
    width: 25%;
    background: #F87171;
    height: 100%;
}

.gen-nav-btn-right {
    margin-left: auto;
}

.gen-hero-link {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.gen-card-subtitle {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0;
}

.gen-card-title-sm {
    font-weight: 700;
    margin: 0;
    color: #231f20;
}

.gen-card-desc-sm {
    font-size: 0.9rem;
    opacity: 0.7;
}

.gen-text-alert {
    color: #DC2626;
}

.gen-card-svg-dim {
    opacity: 0.5;
}

.gen-card-text-xs {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.gen-card-meta {
    font-size: 0.75rem;
    text-align: right;
    margin-top: 5px;
    color: #999;
}

.gen-section-subtitle {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.gen-process-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.gen-step-right {
    text-align: right;
}

.gen-opacity-0 {
    opacity: 0;
}

.gen-about-text {
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.gen-testimonial-author {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
}

.gen-partner-wrapper {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gen-partner-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.gen-partner-name {
    font-size: 1.2rem;
}

.gen-contact-header {
    margin-bottom: 40px;
    text-align: center;
}

.gen-contact-privacy {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 15px;
}

.gen-footer-logo-wrapper {
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.gen-footer-desc {
    max-width: 300px;
    color: #999;
    font-size: 0.9rem;
}

.gen-footer-link-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gen-footer-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
}

/* --- KONTAKT PAGE REFACTOR --- */

/* Contact Page Responsive */
@media (max-width: 1024px) {
    .page-contact .desktop-menu { display: none; }
    .page-contact .hamburger-btn { display: block; }
    .page-contact nav { padding: 0 20px; }
    .page-contact .logo-text { display: none; }
}

@media (max-width: 768px) {
    .page-contact header { padding: 0.5rem 0; }
    .page-contact .logo-icon { height: 35px; }
}

/* =========================================
   RODO / COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    color: var(--color-dark);
    padding: 15px 40px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 10000;
    display: none; /* Hidden by default */
    border-top: 4px solid var(--color-lime);
    animation: slideUp 0.5s ease-out forwards;
    
    /* Flex layout for bar look */
    display: flex; /* Override JS display:block later, but set flexible structure */
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0; /* Reset margin for bar layout */
}

.cookie-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
    display: inline-block;
    margin-right: 10px;
}

.cookie-content p {
    display: inline;
    margin: 0;
}

.cookie-content a {
    color: var(--color-dark);
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Buttons sizing for banner */
.btn-cookie {
    padding: 8px 16px;
    border-radius: 4px; /* More rectangular for bar look */
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    text-align: center;
    font-family: var(--font-main);
    white-space: nowrap;
}

.btn-cookie-accept {
    background-color: var(--color-lime);
    color: var(--color-dark);
    border-color: var(--color-lime);
}
.btn-cookie-accept:hover {
    background-color: var(--color-lime-hover);
    border-color: var(--color-lime-hover);
}

.btn-cookie-settings {
    background-color: transparent;
    border-color: #ccc;
    color: #666;
}
.btn-cookie-settings:hover {
    border-color: var(--color-dark);
    color: var(--color-dark);
}

.btn-cookie-reject {
    background-color: transparent;
    border-color: var(--color-dark);
    color: var(--color-dark);
}
.btn-cookie-reject:hover {
    background-color: var(--color-dark);
    color: #fff;
}

/* --- PREFERENCES MODAL --- */
.cookie-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-overlay.open {
    display: flex;
    opacity: 1;
}

.cookie-modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.cookie-modal h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--color-light);
    padding-bottom: 15px;
}

.cookie-option {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cookie-option-text {
    flex: 1;
    padding-right: 20px;
}

.cookie-option-text h4 {
    font-family: var(--font-main);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.cookie-option-text p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--color-lime);
}

input:disabled + .slider {
    background-color: #999;
    opacity: 0.5;
    cursor: not-allowed;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.cookie-modal-actions {
    margin-top: 30px;
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Mobile Compact Layout */
@media (max-width: 900px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 25px; /* Increased gap between text and buttons */
    }
    
    .cookie-content h3 {
        display: block; /* Stack heading on mobile */
        margin-bottom: 8px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    
    .btn-cookie {
        flex: 1;
        padding: 10px 5px;
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .cookie-content {
        font-size: 0.85rem;
    }
    .cookie-buttons {
        flex-wrap: wrap;
    }
    .btn-cookie-accept {
        width: 100%; /* Make accept prominent on very small screens */
        order: -1;
    }
    .btn-cookie-settings, .btn-cookie-reject {
        flex: 1;
    }
    .cookie-modal {
        padding: 20px;
    }
}

/* =========================================
   UX FORM STYLES (2026 UPDATE)
   ========================================= */

/* Kontener pola (dla pozycjonowania komunikat�w) */
.form-group, .gen-input-group {
    position: relative;
    margin-bottom: 25px; /* Wi�cej miejsca na komunikat b��du */
}

/* Stan b��du inputa */
input.input-error, select.input-error, textarea.input-error {
    border-color: #ff4d4d !important;
    background-color: #fff0f0 !important;
    animation: shake 0.4s ease-in-out;
}

/* Komunikat b��du pod polem */
.field-error-msg {
    display: block;
    font-size: 0.8rem;
    color: #ff4d4d;
    position: absolute;
    bottom: -20px;
    left: 0;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.field-error-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animacja trz�sienia przy b��dzie */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Sukces / Status box */
.form-status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    display: none; /* Ukryty domy�lnie */
}

.form-status-message.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.form-status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading state na przycisku */
button.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

button.btn-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


/* =========================================
   FIX FOR DARK MODE FORMS (BHP / CONTACT)
   ========================================= */

/* Poprawka widoczno�ci b��du na ciemnym tle */
input.input-dark.input-error, 
select.input-dark.input-error, 
textarea.input-dark.input-error {
    border-color: #ff6b6b !important; /* Ja�niejsza czerwie� */
    background-color: #2a1515 !important; /* Ciemne t�o z czerwon� nut� */
    color: #fff !important; /* Bia�y tekst, �eby by� czytelny */
}

/* Kolor tekstu komunikatu b��du na ciemnym tle */
.contact-form .field-error-msg,
.contact-section-dark .field-error-msg {
    color: #ff8787 !important; /* Jasna pastelowa czerwie� */
    margin-top: 5px;
    position: relative; /* Zmiana z absolute na relative, �eby zrobi� miejsce */
    bottom: auto;
    left: auto;
    transform: none;
}

/* Je�li formularz jest w gridzie, upewnij si�, �e komunikat ma miejsce */
.contact-form .select-wrapper {
    margin-bottom: 0; /* Wrapper ma margin-bottom z .form-group */
}

/* Fix dla selecta w wrapperze */
.select-wrapper select.input-error {
    color: #fff !important;
}

/* FIX: Animation for 5th and 6th menu items (previously invisible) */
.mobile-menu-overlay.active .mobile-nav-item:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

