/* ==========================================================================
   SŁUŻBA BHP - Premium Design System & Stylesheet
   Optimized for maximum speed, clean code, accessibility and responsive UI
   ========================================================================== */

/* --- Zmienne CSS i tokeny --- */
:root {
    --font-heading: 'Roboto', -apple-system, sans-serif;
    --font-body: 'Open Sans', -apple-system, sans-serif;

    /* Paleta kolorów - lepszy kontrast i powaga */
    --color-primary-dark: #18181b; /* Neutralny ciemny grafit */
    --color-secondary-dark: #27272a;
    --color-accent-red: #d32f2f;
    --color-accent-red-hover: #b71c1c;
    --color-accent-orange: #f57c00;
    --color-accent-orange-hover: #e65100;
    --color-accent-yellow: #ffb300;

    --color-text-main: #111827;
    --color-text-muted: #4b5563;
    --color-text-light: #6b7280;
    --color-text-white: #ffffff;

    --color-bg-light: #f9fafb;
    --color-bg-card: #ffffff;
    --color-bg-alt: #f3f4f6;
    --color-border: #d1d5db;

    /* Odstępy i układ (Kanciaste) */
    --container-max-width: 1200px;
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-full: 0px;

    /* Cienie */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-glow-red: none;
    --shadow-glow-orange: none;

    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button, input, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Container & Layout --- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section {
    padding: 90px 0;
}

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

/* --- Typography Helpers --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    margin-bottom: 45px;
    line-height: 1.25;
}

.offer-section .section-title,
.timeline-section .section-title {
    color: var(--color-text-white);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .section {
        padding: 60px 0;
    }
}

/* --- Buttons System --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    will-change: transform;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
}
.btn-primary:hover {
    background-color: #262c35;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-consultation {
    background-color: var(--color-accent-red);
    color: var(--color-text-white);
    border-radius: var(--radius-sm);
}
.btn-consultation:hover {
    background-color: var(--color-accent-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-red);
}

.btn-red {
    background-color: var(--color-accent-red);
    color: var(--color-text-white);
    font-size: 1.15rem;
    padding: 16px 36px;
    border-radius: 8px;
}
.btn-red:hover {
    background-color: var(--color-accent-red-hover);
}

.btn-orange {
    background-color: var(--color-accent-orange);
    color: #12161a;
    font-size: 1.05rem;
    padding: 15px 32px;
    border-radius: 8px;
    font-weight: 700;
}
.btn-orange:hover {
    background-color: var(--color-accent-orange-hover);
}

.btn-outline {
    border: 2px solid var(--color-border);
    color: var(--color-text-main);
    background-color: transparent;
}
.btn-outline:hover {
    border-color: var(--color-primary-dark);
    background-color: rgba(0,0,0,0.03);
}

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

.btn-block {
    width: 100%;
}

/* Pulsing Button animation for CTA */
.btn-pulse {
    animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(230, 46, 45, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(230, 46, 45, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 46, 45, 0); }
}


/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #12161a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: padding var(--transition-fast);
    padding: 16px 0;
}

.site-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.site-logo-img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-fast);
}

.brand-logo:hover .site-logo-img {
    transform: scale(1.03);
}

.footer-logo-img {
    height: 44px;
    opacity: 0.95;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #cbd5e1;
    position: relative;
    padding: 6px 0;
}

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

.nav-link:hover {
    color: #ffffff;
}

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}


/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 170px;
    padding-bottom: 90px;
    background: 
        radial-gradient(circle at center, rgba(18, 22, 26, 0.4) 0%, rgba(18, 22, 26, 0.9) 100%),
        url('../img/inspektor-bhp.jpg') center 25% / cover no-repeat;
    color: var(--color-text-white);
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 25px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.hero-title .highlight-text {
    background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 35px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: var(--color-text-white);
    color: var(--color-primary-dark);
}
.hero-buttons .btn-primary:hover {
    background: #f1f5f9;
}

.hero-buttons .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: var(--color-text-white);
}
.hero-buttons .btn-outline:hover {
    border-color: var(--color-text-white);
    background: rgba(255,255,255,0.1);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent-orange);
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.12);
}


/* ==========================================================================
   Features Highlight Bar (Screenshot 5 Top)
   "Mamy wszystko co potrzebujesz | Wsparcie 24/7 | Stała współpraca"
   ========================================================================== */
.features-highlight-bar {
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
    padding: 35px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

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

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: var(--color-text-white);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-text h3::before {
    content: '✓';
    font-weight: 800;
    color: var(--color-text-white);
    margin-right: 4px;
}

.feature-text p {
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.45;
}


/* ==========================================================================
   Section: To dla Ciebie jeśli (Screenshot 5 Bottom)
   ========================================================================== */
.target-audience-section {
    background-color: #ffffff;
}

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

.target-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-normal);
}

.target-card:hover {
    transform: translateY(-8px);
}

.target-image-wrapper {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: var(--shadow-md);
    border: 4px solid #ffffff;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.target-card:hover .target-image-wrapper {
    box-shadow: var(--shadow-lg);
    transform: scale(1.04);
}

.target-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.target-card:hover .target-image-wrapper img {
    transform: scale(1.1);
}

.target-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.3;
    max-width: 220px;
}


/* ==========================================================================
   Section: Nasza oferta (Screenshot 4)
   ========================================================================== */
.offer-section {
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.offer-card {
    position: relative;
    height: 310px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.offer-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer-card:hover .offer-card-bg {
    transform: scale(1.1);
}

.offer-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.35) 100%);
    transition: background var(--transition-fast);
}

.offer-card:hover .offer-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.45) 100%);
}

.offer-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 24px;
    color: var(--color-text-white);
}

.offer-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.offer-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    max-width: 300px;
}


/* ==========================================================================
   Section: Szybka wycena (Screenshot 3)
   ========================================================================== */
.quick-quote-section {
    background-color: var(--color-primary-dark);
    padding-top: 40px;
}

.quote-box-wrapper {
    background-color: transparent;
    max-width: 1080px;
    margin: 0 auto;
}

.quote-box-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.quote-left-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quote-heading {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--color-text-white);
    line-height: 1.35;
    margin-bottom: 30px;
}

.quote-action-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.quote-gift-subtext {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.quote-right-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    object-fit: cover;
}


/* ==========================================================================
   Section: Jak pracujemy? (Screenshot 1)
   ========================================================================== */
.timeline-section {
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
    padding-top: 100px;
    padding-bottom: 110px;
}

.timeline-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 50px auto 0;
}

/* Horizontal line behind badges */
.timeline-connecting-line {
    position: absolute;
    top: 20px;
    left: 8%;
    right: 8%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--color-accent-orange);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-steps-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.timeline-step-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-right: 15px;
}

.step-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 0 0 6px var(--color-primary-dark);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.timeline-step-item.active .step-badge {
    background-color: var(--color-accent-red);
    transform: scale(1.15);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.25;
    margin-bottom: 15px;
}

.step-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}


/* ==========================================================================
   Section: Masz pytanie? (Screenshot 2 Top)
   ========================================================================== */
.call-to-action-section {
    background-color: var(--color-primary-dark);
    padding: 85px 0;
}

.cta-section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 8px;
}

.cta-section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 500;
}

.cta-button-container {
    position: relative;
    display: inline-block;
}

.arrow-annotation {
    position: absolute;
    top: -15px;
    left: -48px;
    transform: rotate(-10deg);
}

.btn-red-cta {
    padding: 16px 42px;
    font-size: 1.15rem;
    font-weight: 700;
}


/* ==========================================================================
   Section: Z kim współpracujemy (Screenshot 2 Bottom)
   ========================================================================== */
.partners-section {
    background-color: #e2e5e9;
    padding: 90px 0;
}

.partners-subtitle {
    font-size: 0.98rem;
    color: var(--color-text-muted);
    margin-top: -30px;
    margin-bottom: 50px;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 45px;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: var(--radius-sm);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 35px;
    width: max-content;
    will-change: transform;
    animation: marqueeScroll 28s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.partner-card {
    flex: 0 0 auto;
    min-width: 180px;
    background: transparent;
    padding: 15px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.partner-card:hover .partner-logo-box {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo-img {
    max-height: 65px;
    max-width: 190px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.museum-logo {
    margin-bottom: 2px;
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #2b303a;
    letter-spacing: 0.05em;
    max-width: 170px;
    line-height: 1.2;
}

.partner-badge-red {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: #d90429;
    letter-spacing: 0.05em;
}
.partner-sub {
    font-size: 0.65rem;
    font-weight: 700;
    color: #12161a;
    letter-spacing: 0.1em;
}

.partner-name-color {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
}
.c-purple { color: #7209b7; }
.c-green { color: #38b000; }
.c-pink { color: #f72585; }

.partner-name-sm {
    font-size: 0.65rem;
    color: #495057;
    line-height: 1.2;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #495057;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 10;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.carousel-nav:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
}

.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }


/* ==========================================================================
   Footer Section
   ========================================================================== */
.site-footer {
    background-color: #0d1014;
    color: #94a3b8;
    padding-top: 70px;
    padding-bottom: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    color: var(--color-text-white);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.88rem;
    color: #94a3b8;
}
.footer-links a:hover {
    color: var(--color-text-white);
}

.contact-col p {
    font-size: 0.88rem;
    margin-bottom: 10px;
}
.contact-col a {
    color: var(--color-text-white);
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.footer-bottom-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-to-top {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}
.back-to-top:hover {
    color: var(--color-text-white);
}


/* ==========================================================================
   Modals & Interactive Dialogs
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    position: relative;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.96);
    transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-card-sm {
    max-width: 440px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--color-text-light);
}
.modal-close:hover {
    color: var(--color-text-main);
}

.wizard-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #fff8eb;
    color: #d97706;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

/* ==========================================================================
   Calculator Modal Styles (Szybka Wycena 2-Column Design)
   ========================================================================== */
.modal-card-calculator {
    max-width: 880px;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Top Progress Line */
.calculator-top-progress-bar {
    width: 100%;
    height: 5px;
    background: #f3f4f6;
    position: relative;
}

.calculator-top-progress-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    transition: width 0.35s ease;
}

/* Container Split */
.calculator-container {
    display: flex;
    min-height: 480px;
}

.calculator-main {
    flex: 1;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: #ffffff;
}

.calculator-sidebar {
    width: 270px;
    background: #fffcf4;
    border-left: 1px solid #fceece;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column-reverse;
    }
    .calculator-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #fceece;
        padding: 20px;
        flex-direction: row;
    }
    .calculator-main {
        padding: 25px 20px;
    }
}

/* Step Title & Subtitle */
.wizard-step-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 22px;
    line-height: 1.25;
}

.wizard-step-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: -12px;
    margin-bottom: 22px;
    line-height: 1.5;
}

/* Cards Grid (Radio Options) */
.wizard-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.wizard-cards-grid.vertical-stack {
    grid-template-columns: 1fr;
}

.wizard-cards-grid .full-width {
    grid-column: span 2;
}

@media (max-width: 540px) {
    .wizard-cards-grid {
        grid-template-columns: 1fr;
    }
    .wizard-cards-grid .full-width {
        grid-column: span 1;
    }
}

/* Option Card */
.wizard-option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: #f9fafb;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.wizard-option-card:hover {
    background: #fffdf7;
    border-color: #fcd34d;
}

.wizard-option-card input[type="radio"] {
    display: none;
}

.custom-radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.custom-radio-dot::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f59e0b;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.wizard-option-card input[type="radio"]:checked + .custom-radio-dot {
    border-color: #f59e0b;
}

.wizard-option-card input[type="radio"]:checked + .custom-radio-dot::after {
    transform: scale(1);
}

.wizard-option-card input[type="radio"]:checked ~ .option-label {
    font-weight: 700;
    color: #111827;
}

.wizard-option-card:has(input[type="radio"]:checked) {
    background: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

.option-label {
    font-size: 0.96rem;
    font-weight: 500;
    color: #374151;
}

/* Slider Component (Krok 3) */
.wizard-slider-wrapper {
    margin: 35px 0 25px;
    position: relative;
}

.slider-badge-container {
    position: relative;
    height: 38px;
    margin-bottom: 8px;
}

.slider-value-badge {
    position: absolute;
    top: 0;
    left: 25%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px 14px;
    font-weight: 800;
    font-size: 1.05rem;
    color: #111827;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    transition: left 0.05s linear;
}

.wizard-range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #fcd34d;
    outline: none;
}

.wizard-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f59e0b;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.15s ease;
}

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

.slider-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.88rem;
    color: #9ca3af;
    font-weight: 600;
}

/* Agreement Checkbox (Krok 5) */
.wizard-checkbox-agreement {
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #4b5563;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f59e0b;
    cursor: pointer;
}

/* Footer Action Bar */
.wizard-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
}

.wizard-step-counter {
    font-size: 0.88rem;
    font-weight: 500;
    color: #9ca3af;
}

.wizard-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-calc-back {
    width: 44px;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #f59e0b;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-calc-back:hover:not(:disabled) {
    background: #fffdf7;
    border-color: #fcd34d;
}

.btn-calc-back:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-calc-next {
    background: #f59e0b;
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    transition: all 0.2s ease;
}

.btn-calc-next:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

/* Sidebar Styles */
.sidebar-expert-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 15px;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-discount-tooltip {
    position: relative;
    background: #ffbe3b;
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.sidebar-discount-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 8px solid #ffbe3b;
}

.tooltip-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.tooltip-subtitle {
    font-size: 0.78rem;
    color: rgba(17, 24, 39, 0.7);
    margin-bottom: 8px;
}

.tooltip-discount {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 800;
    color: #111827;
}

.sidebar-footer-note {
    font-size: 0.8rem;
    color: #78716c;
    line-height: 1.4;
    text-align: left;
    width: 100%;
}

.wizard-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.wizard-subtitle {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.wizard-progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--color-bg-alt);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
}

.wizard-progress-fill {
    height: 100%;
    width: 33.333%;
    background-color: var(--color-accent-orange);
    transition: width var(--transition-normal);
}

.wizard-step {
    display: none;
}
.wizard-step.active {
    display: block;
}

.wizard-step h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.wizard-options-grid, .wizard-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.wizard-radio-card, .wizard-check-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.wizard-radio-card:hover, .wizard-check-card:hover {
    border-color: var(--color-accent-orange);
    background-color: #fffdf9;
}

.wizard-radio-card input:checked + .radio-content,
.wizard-check-card input:checked ~ span {
    color: var(--color-primary-dark);
}

.wizard-radio-card input:checked,
.wizard-check-card input:checked {
    accent-color: var(--color-accent-orange);
}

.radio-content {
    display: flex;
    flex-direction: column;
}
.radio-content strong {
    font-size: 0.92rem;
}
.radio-content small {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 168, 52, 0.2);
}

.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
}

.wizard-success-state {
    text-align: center;
    padding: 10px 0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.download-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    text-align: left;
}
.download-box .file-icon {
    font-size: 2rem;
}


/* ==========================================================================
   Animations & Keyframes Definition
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.15);
    }
}

@keyframes pulseGlowRing {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 124, 0, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(245, 124, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 124, 0, 0);
    }
}

@keyframes pulseRedRing {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.6);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

@keyframes textShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(35px, -45px) scale(1.18);
    }
    100% {
        transform: translate(-25px, 25px) scale(0.88);
    }
}

@keyframes checkmarkDraw {
    0% {
        stroke-dashoffset: 60;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* ==========================================================================
   Phase 2 Premium Animations & Dynamic UI Enhancements
   ========================================================================== */

/* 1. Górny Pasek Postępu Przewijania */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #f57c00 0%, #d32f2f 50%, #ffb300 100%);
    z-index: 10000;
    box-shadow: 0 0 10px rgba(245, 124, 0, 0.8);
    transition: width 0.08s linear;
}

/* 2. Ozdobna Rozwijana Linia pod Nagłówkami Sekcji */
.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-orange), var(--color-accent-red));
    margin: 14px auto 0;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.section-title.is-visible::after,
.reveal-fade-up.is-visible .section-title::after,
.reveal-zoom.is-visible .section-title::after {
    transform: scaleX(1);
}

/* 3. Efekt Rozbłysku Świetlnego po Najechaniu na Karty (Light Sweep) */
.offer-card,
.risk-card,
.target-image-wrapper {
    position: relative;
    overflow: hidden;
}

.offer-card::after,
.risk-card::after,
.target-image-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: transform 0.85s ease;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
}

.offer-card:hover::after,
.risk-card:hover::after,
.target-card:hover .target-image-wrapper::after {
    opacity: 1;
    transform: translate(320%, 0) rotate(25deg);
}

/* 4. Pływające Kule Światła w Tle Hero (Ambient Orbs) */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.hero-orb-1 {
    top: 8%;
    left: 12%;
    width: 300px;
    height: 300px;
    background: #f57c00;
}

.hero-orb-2 {
    bottom: 10%;
    right: 12%;
    width: 350px;
    height: 350px;
    background: #d32f2f;
    animation-delay: -5s;
}

/* 5. Animowane Rysowanie Ikony SVG w Modalu Sukcesowym */
.animated-checkmark path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: checkmarkDraw 0.85s cubic-bezier(0.65, 0, 0.45, 1) forwards 0.2s;
}

/* ==========================================================================
   Scroll Reveal System (Intersection Observer Classes)
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Warianty kierunkowe Scroll Reveal */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-45px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(45px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-zoom.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Kaskadowe opóźnienia dla dzieci w siatkach (Staggered Animation) */
.target-grid > *:nth-child(1),
.features-grid > *:nth-child(1),
.offer-grid > *:nth-child(1),
.risks-grid > *:nth-child(1),
.team-grid > *:nth-child(1) { transition-delay: 0.05s; }

.target-grid > *:nth-child(2),
.features-grid > *:nth-child(2),
.offer-grid > *:nth-child(2),
.risks-grid > *:nth-child(2),
.team-grid > *:nth-child(2) { transition-delay: 0.15s; }

.target-grid > *:nth-child(3),
.features-grid > *:nth-child(3),
.offer-grid > *:nth-child(3),
.risks-grid > *:nth-child(3),
.team-grid > *:nth-child(3) { transition-delay: 0.25s; }

.target-grid > *:nth-child(4),
.features-grid > *:nth-child(4),
.offer-grid > *:nth-child(4),
.risks-grid > *:nth-child(4),
.team-grid > *:nth-child(4) { transition-delay: 0.35s; }

.offer-grid > *:nth-child(5) { transition-delay: 0.45s; }
.offer-grid > *:nth-child(6) { transition-delay: 0.55s; }

/* Animacje Hero */
.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .highlight-text {
    background: linear-gradient(135deg, #ffffff 0%, #ffb300 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 6s linear infinite;
}

/* ==========================================================================
   NEW SECTIONS: Risks, Comparison, Team, Map Contact
   ========================================================================== */

/* 1. Risks Section (Oszczędzając na BHP...) */
.risks-section {
    padding: 100px 0;
    background-color: #ffffff !important;
}
.risks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.risk-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}
.risk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
}
.risk-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    transition: transform 0.35s ease, color 0.35s ease;
}
.risk-card:hover .risk-icon {
    color: #dc2626;
    transform: scale(1.15) rotate(-5deg);
}
.risk-icon svg {
    width: 50px;
    height: 50px;
    stroke-width: 1.5;
}
.risk-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111827;
}
.risk-card p {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.6;
}

/* 2. Comparison Table (Dlaczego firmy wybierają nas?) */
.comparison-section {
    padding: 90px 0;
    background-color: #f4f4f5 !important;
}
.comparison-table-wrapper {
    max-width: 850px;
    margin: 50px auto 0;
}
.comparison-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #111827;
}
.comparison-header > div {
    padding: 20px;
    text-align: center;
}
.comparison-header .th-service { text-align: left; padding-left: 30px; }
.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    background-color: #ffffff;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.comparison-row:nth-child(odd) {
    background-color: #f9fafb;
}
.comparison-row:hover {
    background-color: #f0fdf4;
    transform: scale(1.015);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.12);
    position: relative;
    z-index: 2;
}
.comparison-row > div {
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-align: center;
}
.comparison-row .td-service {
    justify-content: flex-start;
    text-align: left;
    color: #111827;
    font-weight: 700;
    padding-left: 30px;
}
.comparison-row .td-us {
    color: #059669;
    font-weight: 600;
}
.comparison-row .td-competitors {
    color: #dc2626;
}

/* 3. Team Section (Nasza ekipa) */
.team-section {
    padding: 100px 0;
    background-color: #ffffff !important;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 960px;
    margin: 0 auto;
}
.team-card {
    text-align: center;
    transition: transform 0.35s ease;
}
.team-card:hover {
    transform: translateY(-6px);
}
.team-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.team-card:hover img {
    transform: scale(1.04);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.team-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-text-main);
    line-height: 1.2;
}
.team-card .role {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 15px;
}
.team-card .desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}
.team-card .desc small {
    color: var(--color-text-light);
    display: block;
    margin-top: 5px;
}

/* Pływający Przycisk Szybkiego Kontaktu / Wyceny (Floating CTA) */
.floating-cta-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.4);
    cursor: pointer;
    border: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    animation: pulseGlowRing 3s infinite;
}

.floating-cta-btn:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 30px rgba(245, 124, 0, 0.6);
}

.floating-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

/* 4. Map & Contact Overlay */
.map-contact-section {
    position: relative;
    height: 600px;
    background: #eaeaea;
    overflow: hidden;
}
.map-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.relative-contact-container {
    position: relative;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through to map where card isn't */
}
.contact-card-overlay {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 60px 50px;
    width: 450px;
    max-width: 90%;
    pointer-events: auto; /* Re-enable clicks on card */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 12px; /* Zaokrąglenie karty kontaktowej */
}

/* Poprawka kolizji transformacji dla karty kontaktowej i scroll reveal */
.contact-card-overlay.reveal-slide-left {
    opacity: 0;
    transform: translateY(-50%) translateX(-45px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card-overlay.reveal-slide-left.is-visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.contact-card-overlay h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #111827;
}
.contact-card-overlay .contact-pre {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-text-main);
}
.contact-card-overlay .contact-info {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.contact-card-overlay .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.contact-card-overlay .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-main);
    transition: color var(--transition-fast);
}
.contact-card-overlay .social-icons a:hover {
    color: var(--color-accent-red);
}
.contact-card-overlay .social-icons svg {
    width: 24px;
    height: 24px;
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .target-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .risks-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 14px 0;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #12161a;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 16px;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .target-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .target-image-wrapper {
        width: 150px;
        height: 150px;
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }

    .quote-box-grid {
        grid-template-columns: 1fr;
    }

    .timeline-connecting-line {
        display: none;
    }

    .timeline-steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .partner-card {
        flex: 0 0 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .wizard-options-grid, .wizard-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .risks-grid, .team-grid {
        grid-template-columns: 1fr;
    }

    .comparison-header, .comparison-row {
        grid-template-columns: 1fr;
        text-align: center !important;
    }
    .comparison-header .th-service, .comparison-row .td-service {
        text-align: center;
        justify-content: center;
        border-bottom: 1px dashed var(--color-border);
        padding-bottom: 10px;
    }
    .comparison-row {
        padding-bottom: 15px;
    }

    .contact-card-overlay,
    .contact-card-overlay.reveal-slide-left,
    .contact-card-overlay.reveal-slide-left.is-visible {
        position: relative;
        top: 0;
        left: 0;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        margin-top: 50px;
        box-shadow: none;
    }
    .map-contact-section {
        height: auto;
        display: flex;
        flex-direction: column-reverse;
    }
    .map-container {
        position: relative;
        height: 400px;
    }
}
