:root {
    --primary: #34c06d;
    --primary-dark: #238e4e;
    --primary-light: rgba(52, 192, 109, 0.15);
    --background: #0b0f1a;
    --surface: #161c2d;
    --surface-light: #21293d;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.8);
    --shadow-soft: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body, html {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: background-color 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-loader.loaded {
    background-color: transparent;
    pointer-events: none;
}

.loader-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-outline {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    fill: none;
    stroke: #ffffff; /* Jasny biały dla kontrastu */
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 100 400; /* Pasek o długości 100, przerwa 400 */
    filter: drop-shadow(0 0 8px var(--primary)); /* Poświata w kolorze marki */
    animation: outlineMove 1.8s linear infinite;
    z-index: 5;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.page-loader.loaded .loader-outline {
    opacity: 0;
    transform: scale(0.9);
}

@keyframes outlineMove {
    0% { stroke-dashoffset: 500; }
    100% { stroke-dashoffset: 0; }
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.page-loader.loaded .loader-logo {
    top: 0;
    transform: translate(-50%, 0);
    border-radius: 0 0 20px 20px;
}

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

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

/* Ukrywamy oryginalne logo, dopóki loader nie skończy animacji */
.logo {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo.visible {
    opacity: 1;
}

/* Animacja treści strony */
main, .hero {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

body.content-ready main, 
body.content-ready .hero {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 2.75rem); text-align: center; margin-bottom: 0.5rem; }

.subtitle {
    display: block;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero .highlight {
    color: #4ae58b;
    text-shadow: none;
}

/* Sections */
.section-container {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pb-100 { padding-bottom: 140px; }

.bg-pattern {
    background-color: var(--background);
    background-image: radial-gradient(rgba(52, 192, 109, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Hero Header */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-color: #000;
}

/* Animowane tło */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('img/serszynka.png');
    background-size: cover;
    background-position: center;
    animation: heroRotate 30s linear infinite;
    z-index: 0;
    scale: 1.2;
}

/* Nakładka przyciemniająca */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-color: #000;
}

/* Animowane tło */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('img/serszynka.png');
    background-size: cover;
    background-position: center;
    animation: heroRotate 30s linear infinite;
    z-index: 0;
    scale: 1.2;
}

/* Nakładka przyciemniająca */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        rgba(11, 15, 26, 0.7) 0%, 
        rgba(11, 15, 26, 0.2) 50%, 
        var(--background) 100%
    );
    z-index: 1;
}

@keyframes heroRotate {
    0% { transform: scale(1.1) translateY(0); }
    50% { transform: scale(1.2) translateY(-20px); }
    100% { transform: scale(1.1) translateY(0); }
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: clamp(20px, 4vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    z-index: 5;
    position: relative;
    text-align: center;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 8vw, 4.8rem); /* Płynna czcionka */
    margin-bottom: 1.5rem;
    line-height: 1.05;
    font-weight: 800;
    text-shadow: none;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem); /* Płynna czcionka */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: none;
}

.logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 16px;
    background: var(--primary);
    border-radius: 0 0 20px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none;
}

.logo img {
    height: 55px; /* Powiększone z 35px */
    width: auto;
    display: block;
}

.hero h1 {
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Buttons */
.btn-primary, .btn-tel {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 20px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(52, 192, 109, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover, .btn-tel:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(52, 192, 109, 0.4);
}

.btn-primary:active, .btn-tel:active { transform: scale(0.98); }

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    border-color: rgba(52, 192, 109, 0.3);
}

.product-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; 
    width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    z-index: 1;
}

.product-image img:not(.label-badge) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-image img:not(.label-badge) { transform: scale(1.1); }

.product-image h3 {
    position: absolute;
    bottom: 20px;
    left: 24px;
    color: #ffffff;
    z-index: 2;
    font-size: 1.4rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.label-badge {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    width: 80px !important;
    height: auto !important;
    z-index: 3 !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) !important;
    transition: transform 0.3s ease !important;
}

.product-card:hover .label-badge {
    transform: scale(1.1) rotate(-5deg);
}

.product-image .weight {
    position: absolute;
    bottom: 20px;
    right: 24px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-main {
    padding: 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-icon-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-icon {
    font-size: 2.2rem;
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    overflow: hidden;
}

.label-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

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

.price-netto {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-netto small {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 4px;
}

.price-brutto {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.product-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
}

/* Features (Warunki) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(52, 192, 109, 0.2);
}

.feature-icon {
    font-size: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(52, 192, 109, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.feature-text {
    flex-grow: 1;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    text-align: left;
}

/* Contact Section */
.contact-container {
    background: #0f172a;
    color: #fff;
    padding: 80px 48px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.contact-container::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary-dark);
    filter: blur(120px);
    opacity: 0.2;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

.contact-link {
    flex: 1;
    min-width: 250px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
    border-color: var(--primary);
}

.contact-link-icon {
    font-size: 1.5rem;
    margin-right: 16px;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(150px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-inner span {
    color: #fff;
    font-weight: 500;
}

.sticky-footer.visible {
    transform: translateY(0);
}

.sticky-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-tel-btn {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(52, 192, 109, 0.3);
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(52, 192, 109, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-call-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-call-btn:hover {
    transform: scale(1.05) translateY(-5px);
}

.floating-call-btn .phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: phoneShake 2s infinite;
}

.floating-call-btn svg {
    fill: #ffffff;
}

@keyframes phoneShake {
    0% { transform: rotate(0); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    50% { transform: rotate(0); }
}

@media (max-width: 768px) {
    .section-container { padding: 50px 20px; }
    .product-grid { grid-template-columns: 1fr; }
    .sticky-footer { display: none; } /* FAB replaces it on mobile */
    .sticky-inner { justify-content: center; }

    /* Poprawka dla Hero na Mobile */
    .hero {
        min-height: 90vh;
        min-height: 90svh;
        padding: 30px 16px;
    }

    .hero-content {
        padding: 24px 16px;
        margin-top: 30px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
}

