/*
Theme Name: ADSCode Compressor Pro
Theme URI: https://adscode.pl
Author: ADSCode.pl
Author URI: https://adscode.pl
Description: Kompleksowy, ultraszybki motyw dla serwisu kompresorów. Wbudowane wsparcie dla Local SEO, Schema.org oraz Core Web Vitals.
Version: 1.1.0
Tested up to: 6.5
Requires PHP: 8.2
Text Domain: adscode
*/

/* ==========================================================================
   1. Zmienne CSS i Reset
   ========================================================================== */
:root {
    --adscode-primary: #002b5e; /* Navy Blue */
    --adscode-primary-dark: #001a38;
    --adscode-accent: #ff6600; /* Orange CTA */
    --adscode-accent-hover: #e55c00;
    --adscode-text-dark: #333333;
    --adscode-text-light: #666666;
    --adscode-bg-light: #f8f9fa;
    --adscode-bg-white: #ffffff;
    --adscode-border: #e0e0e0;
    --adscode-radius: 8px;
    --adscode-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Glassmorphism */
    --adscode-glass-bg: rgba(255, 255, 255, 0.1);
    --adscode-glass-border: rgba(255, 255, 255, 0.2);
    --adscode-glass-blur: blur(12px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--adscode-text-dark);
    background-color: var(--adscode-bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--adscode-primary);
    text-decoration: none;
    transition: var(--adscode-transition);
}

a:hover {
    color: var(--adscode-accent);
}

/* ==========================================================================
   2. Klasy Narzędziowe (Utility) i Typografia
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--adscode-bg-light);
}

.text-center {
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--adscode-primary);
}

h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

.section-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(255, 102, 0, 0.1);
    color: var(--adscode-accent);
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   3. Przyciski (Buttons)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--adscode-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--adscode-transition);
}

.btn-primary {
    background-color: var(--adscode-accent);
    color: var(--adscode-bg-white);
}

.btn-primary:hover {
    background-color: var(--adscode-accent-hover);
    color: var(--adscode-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--adscode-bg-white);
    color: var(--adscode-bg-white);
}

.btn-outline:hover {
    background-color: var(--adscode-bg-white);
    color: var(--adscode-primary);
}
/* ==========================================================================
   4. Sekcja Hero (Zaktualizowana - Video + Split Layout)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Miejsce na header */
    overflow: hidden;
}

/* Tło Wideo i Overlay */
.hero-media-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Wypełnia całą przestrzeń zachowując proporcje */
    object-position: center;
}

.hero-overlay-industrial {
    position: absolute;
    inset: 0;
    /* Ciemny granat z delikatnym gradientem do czerni dla lepszego kontrastu tekstu */
    background: linear-gradient(135deg, rgba(0, 43, 94, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

/* Lewa Strona - Treść (Glassmorphism Heavy) */
.glass-panel-heavy {
    background: rgba(0, 26, 56, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--adscode-bg-white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e; /* Zielony (aktywny) */
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    color: var(--adscode-bg-white);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.hero-checklist {
    list-style: none;
    margin-bottom: 40px;
}

.hero-checklist li {
    color: var(--adscode-bg-white);
    font-size: 1.05rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.hero-checklist li span {
    margin-right: 12px;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline-light {
    background: transparent;
    color: var(--adscode-bg-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--adscode-bg-white);
    color: var(--adscode-primary-dark);
}

.pulse-effect {
    animation: cta-pulse 2s infinite;
}

@keyframes cta-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 102, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

/* Prawa Strona - Pływające Dane (Visual Data) */
.hero-visual-data {
    position: relative;
    height: 100%;
    min-height: 520px;
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

.card-top-right {
    top: 6%;
    right: 0;
    animation-delay: 0s;
}

.card-middle-right {
    top: 34%;
    right: 55px;
    animation-delay: 1.5s;
}

.card-bottom-left {
    top: 63%;
    right: 110px;
    left: auto;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.stat-icon {
    font-size: 2.5rem;
    background: var(--adscode-accent);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    color: var(--adscode-bg-white);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsywność Hero */
@media (max-width: 992px) {
    .hero-split-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-visual-data {
        display: none; /* Ukrywamy pływające statystyki na małych ekranach by nie zasłaniały głównego tekstu */
    }
}

@media (max-width: 576px) {
    .glass-panel-heavy {
        padding: 30px 20px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}
/* ==========================================================================
   5. Sekcja O Firmie
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    list-style: none;
    margin-top: 30px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 2rem;
    margin-right: 20px;
    color: var(--adscode-accent);
}

.feature-desc strong {
    display: block;
    font-size: 1.1rem;
    color: var(--adscode-primary);
}

.feature-desc span {
    color: var(--adscode-text-light);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--adscode-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--adscode-accent);
    color: white;
    padding: 20px;
    border-radius: var(--adscode-radius);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

/* ==========================================================================
   6. Usługi (Kafelki)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--adscode-bg-white);
    padding: 40px 30px;
    border-radius: var(--adscode-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom: 4px solid transparent;
    transition: var(--adscode-transition);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--adscode-accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--adscode-text-light);
    margin-bottom: 20px;
}

.service-link {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ==========================================================================
   7. Dlaczego My (Timeline)
   ========================================================================== */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.why-item {
    position: relative;
    padding-top: 34px;
    border-top: 2px solid var(--adscode-border);
}

.why-number {
    position: absolute;
    top: -34px;
    left: 0;
    background: var(--adscode-primary);
    color: var(--adscode-bg-white);
    font-weight: 800;
    font-size: 1.2rem;
    padding: 10px 15px;
    border-radius: var(--adscode-radius);
}

/* ==========================================================================
   8. Obszar Działania (Local SEO)
   ========================================================================== */
.local-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.map-placeholder, .local-map iframe {
    width: 100%;
    height: 400px;
    border-radius: var(--adscode-radius);
    border: none;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.local-seo-links ul {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.local-seo-links a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--adscode-bg-white);
    border: 1px solid var(--adscode-border);
    border-radius: 20px;
    font-size: 0.9rem;
}

.local-seo-links a:hover {
    border-color: var(--adscode-accent);
    background: var(--adscode-accent);
    color: var(--adscode-bg-white);
}

/* ==========================================================================
   9. Opinie (Glassmorphism)
   ========================================================================== */
.reviews-section {
    background: var(--adscode-primary) url('assets/images/pattern.svg') center/cover;
    color: var(--adscode-bg-white);
}

.reviews-section h2 {
    color: var(--adscode-bg-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.glass-panel {
    background: var(--adscode-glass-bg);
    backdrop-filter: var(--adscode-glass-blur);
    -webkit-backdrop-filter: var(--adscode-glass-blur);
    border: 1px solid var(--adscode-glass-border);
    border-radius: var(--adscode-radius);
    padding: 40px;
    text-align: left;
}

.stars {
    margin-bottom: 15px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.reviewer-info strong {
    display: block;
    color: var(--adscode-accent);
}

.reviewer-info span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ==========================================================================
   10. FAQ
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--adscode-bg-white);
    border: 1px solid var(--adscode-border);
    border-radius: var(--adscode-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    background: var(--adscode-bg-white);
    color: var(--adscode-primary);
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--adscode-accent);
    transition: transform 0.35s ease, color 0.35s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 20px;
    color: var(--adscode-text-light);
    transition: grid-template-rows 0.35s ease, padding 0.35s ease;
}

.faq-content-inner {
    overflow: hidden;
}

.faq-content-inner p {
    margin: 0;
    padding-bottom: 20px;
}

.faq-item[open] .faq-content {
    grid-template-rows: 1fr;
    padding: 0 20px 20px;
}

.faq-item[open] summary {
    color: var(--adscode-primary-dark);
}

/* ==========================================================================
   11. Kontakt
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-details-list {
    list-style: none;
    margin-top: 30px;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--adscode-accent);
    margin-right: 15px;
}

.contact-form-wrapper.glass-panel {
    background: #f1f5f9;
    backdrop-filter: none;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form-wrapper h3 {
    margin-bottom: 20px;
}

/* WCSS dla standardowych inputów WP/CF7 */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--adscode-border);
    border-radius: 4px;
    font-family: inherit;
}

input[type="submit"] {
    background: var(--adscode-accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--adscode-transition);
}

input[type="submit"]:hover {
    background: var(--adscode-accent-hover);
}

/* ==========================================================================
   12. Responsive Design (Mobile First Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid, .local-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }

    .hero-counters {
        flex-direction: column;
        gap: 20px;
    }

    .why-us-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 50px 0;
    }
}

/* ==========================================================================
   13. Stopka (Footer)
   ========================================================================== */
.site-footer {
    background-color: var(--adscode-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0 0;
    font-size: 0.95rem;
    position: relative;
    border-top: 5px solid var(--adscode-accent);
}

.site-footer h3 {
    color: var(--adscode-bg-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--adscode-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Kolumna 1: Brand */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo a {
    color: var(--adscode-bg-white);
    font-size: 1.5rem;
    font-weight: 300;
}

.footer-logo strong {
    font-weight: 800;
    color: var(--adscode-accent);
}

.footer-desc {
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-socials a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--adscode-bg-white);
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.footer-socials a:hover {
    background: var(--adscode-accent);
    transform: translateY(-3px);
}

/* Kolumna 2: Kontakt (NAP) */
.footer-contact-details {
    font-style: normal;
    margin-bottom: 20px;
}

.footer-contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-details i {
    color: var(--adscode-accent);
    margin-top: 4px;
}

.footer-contact-details a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-details a:hover {
    color: var(--adscode-accent);
}

.working-hours {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Kolumna 3: Linki */
.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    transition: var(--adscode-transition);
}

.footer-nav a:hover {
    color: var(--adscode-accent);
    transform: translateX(5px);
}

/* Kolumna 4: Local SEO */
.footer-cities-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-cities-list li a {
    display: block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-cities-list li a:hover {
    background: var(--adscode-accent);
    border-color: var(--adscode-accent);
    color: var(--adscode-bg-white);
}

.view-all-cities {
    color: var(--adscode-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-credits strong {
    color: var(--adscode-accent);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
    color: var(--adscode-bg-white);
}

/* ==========================================================================
   14. Sticky Mobile Contact Bar
   ========================================================================== */
.mobile-only {
    display: none;
}

.sticky-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--adscode-bg-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
}

.mobile-bar-btn {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.call-btn {
    background: var(--adscode-accent);
    color: var(--adscode-bg-white);
}

.quote-btn {
    background: var(--adscode-primary);
    color: var(--adscode-bg-white);
}

.call-btn:hover, .quote-btn:hover {
    opacity: 0.9;
    color: var(--adscode-bg-white);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-bottom: 80px; /* Miejsce na Sticky Mobile Bar */
    }

    .mobile-only {
        display: flex; /* Aktywacja paska na mobile */
    }
}

/* ==========================================================================
   NAGŁÓWEK V2 (2-Tier Architecture) & MENU MOBILNE
   ========================================================================== */

/* --- Dostępność (WCAG) --- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--adscode-bg-white);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--adscode-primary);
    display: block;
    font-size: 1rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* --- Główny Kontener --- */
.site-header-v2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* --- Top Bar (Poziom 1) --- */
.header-top-bar {
    background-color: var(--adscode-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    align-items: center;
}

.emergency-badge {
    color: var(--adscode-bg-white);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 102, 0, 0.2);
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 102, 0, 0.3);
}

.pulse-dot-small {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--adscode-transition);
}

.top-bar-link:hover {
    color: var(--adscode-accent);
}

/* --- Main Nav (Poziom 2) --- */
.header-main-nav {
    background-color: var(--adscode-bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.header-main-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.main-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo --- */
.site-branding .custom-logo {
    max-height: 45px;
    width: auto;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--adscode-primary-dark);
}

.site-title strong {
    font-weight: 800;
    color: var(--adscode-accent);
}

/* --- Desktop Menu --- */
.desktop-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.desktop-menu a {
    color: var(--adscode-text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--adscode-accent);
    transition: width 0.3s ease;
}

.desktop-menu a:hover::after {
    width: 100%;
}

.desktop-menu a:hover {
    color: var(--adscode-primary);
}

/* --- Actions & Contact Block --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-contact-block {
    display: flex;
    flex-direction: column;
    text-align: right;
    border-right: 1px solid var(--adscode-border);
    padding-right: 25px;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--adscode-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--adscode-primary);
}

.contact-number:hover {
    color: var(--adscode-accent);
}

/* --- Hamburger Menu (Mobile Toggle) --- */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--adscode-primary-dark);
    position: absolute;
    border-radius: 4px;
    transition: transform 0.15s ease;
}

.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ''; top: -10px; }
.hamburger-inner::after { content: ''; bottom: -10px; }

/* --- Menu Mobilne (Offcanvas) --- */
.mobile-offcanvas {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background-color: var(--adscode-bg-white);
    z-index: 1005;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-offcanvas.active {
    right: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--adscode-border);
}

.offcanvas-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--adscode-primary-dark);
}

.offcanvas-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--adscode-text-light);
    line-height: 1;
}

.offcanvas-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.mobile-nav-wrapper ul {
    list-style: none;
}

.mobile-nav-wrapper li {
    border-bottom: 1px solid var(--adscode-bg-light);
}

.mobile-nav-wrapper a {
    display: block;
    padding: 15px 0;
    color: var(--adscode-text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-nav-wrapper a:hover {
    color: var(--adscode-accent);
    padding-left: 10px;
}

.emergency-badge-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 102, 0, 0.1);
    color: var(--adscode-accent);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.offcanvas-contact {
    margin-top: 30px;
}

/* --- Offcanvas Overlay (Zaciemnienie) --- */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Klasy Pomocnicze --- */
.w-100 { width: 100%; text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* --- RWD --- */
@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
    .desktop-menu { display: none; }
    .mobile-menu-toggle { display: block; }
}

/* ==========================================================================
   16. Hamburger i Menu Mobilne (Offcanvas)
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002; /* Nad Overlayem */
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--adscode-bg-white); /* Biały na Hero */
    position: absolute;
    border-radius: 4px;
    transition: transform 0.15s ease;
}

.scrolled .hamburger-inner, 
.scrolled .hamburger-inner::before, 
.scrolled .hamburger-inner::after {
    background-color: var(--adscode-primary-dark); /* Ciemny po scrollu */
}

.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ''; top: -10px; }
.hamburger-inner::after { content: ''; bottom: -10px; }

/* Offcanvas Panel */
.mobile-offcanvas {
    position: fixed;
    top: 0;
    right: -300px; /* Schowane z prawej */
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background-color: var(--adscode-bg-white);
    z-index: 1005;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-offcanvas.active {
    right: 0; /* Pokazane */
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--adscode-border);
}

.offcanvas-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--adscode-primary-dark);
}

.offcanvas-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--adscode-text-light);
    line-height: 1;
}

.offcanvas-body {
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-wrapper ul {
    list-style: none;
}

.mobile-nav-wrapper li {
    border-bottom: 1px solid var(--adscode-bg-light);
}

.mobile-nav-wrapper a {
    display: block;
    padding: 15px 0;
    color: var(--adscode-text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-nav-wrapper a:hover {
    color: var(--adscode-accent);
    padding-left: 10px;
}

/* Offcanvas Overlay (Zaciemnienie) */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Klasy pomocnicze (Utility) w Offcanvas */
.w-100 { width: 100%; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.desktop-only { display: inline-flex; }

/* Skip Link (WCAG) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--adscode-bg-white);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--adscode-primary);
    display: block;
    font-size: 1rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Nad wszystkim */
}

/* ==========================================================================
   17. RWD (Responsive) Nagłówka
   ========================================================================== */
@media (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

@media (max-width: 576px) {
    .phone-number {
        display: none; /* Chowamy numer na bardzo wąskich ekranach, zostaje ikonka */
    }
    
    .header-phone {
        font-size: 1.5rem; /* Zwiększamy samą słuchawkę */
    }
}

/* ===========================================================================
   18. Header Refinements
   =========================================================================== */
.site-header-v2 {
    isolation: isolate;
}

.top-bar-right,
.top-bar-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-top-bar {
    position: relative;
    z-index: 2;
}

.header-main-nav {
    position: relative;
    z-index: 3;
}

.main-nav-inner {
    gap: 24px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    flex-shrink: 0;
}

.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-tagline {
    margin: 0;
    font-size: 0.8rem;
    color: var(--adscode-text-light);
    line-height: 1.4;
}

.desktop-menu .menu {
    align-items: center;
}

.desktop-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 43, 94, 0.12);
    border-radius: 999px;
    background-color: var(--adscode-bg-white);
    color: var(--adscode-primary);
    cursor: pointer;
    transition: var(--adscode-transition);
}

.desktop-menu-toggle:hover {
    border-color: rgba(255, 102, 0, 0.35);
    color: var(--adscode-accent);
    box-shadow: 0 12px 24px rgba(0, 43, 94, 0.1);
}

.desktop-menu-toggle-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.desktop-toggle-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
}

.desktop-toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background-color: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.desktop-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 20px;
    width: min(560px, calc(100vw - 40px));
    padding: 24px 28px;
    background-color: var(--adscode-bg-white);
    border: 1px solid rgba(0, 43, 94, 0.08);
    border-radius: 18px;
    box-shadow: 0 24px 56px rgba(0, 26, 56, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 20;
}

.desktop-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.desktop-menu ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
}

.desktop-menu li {
    min-width: 0;
}

.desktop-menu a {
    display: inline-flex;
}

body.desktop-menu-active .desktop-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.desktop-menu-active .desktop-toggle-line:nth-child(2) {
    opacity: 0;
}

body.desktop-menu-active .desktop-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header-actions {
    flex-shrink: 0;
}

.header-cta-group {
    display: flex;
    align-items: center;
}

.header-phone {
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--adscode-primary);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 43, 94, 0.06);
}

.header-phone:hover {
    color: var(--adscode-accent);
    background: rgba(255, 102, 0, 0.08);
}

.phone-icon {
    font-size: 1rem;
    line-height: 1;
}

.skip-link {
    z-index: 2000;
}

.mobile-offcanvas {
    right: 0;
    width: min(360px, 92vw);
    max-width: 92vw;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-offcanvas.active {
    transform: translateX(0);
}

.offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.offcanvas-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offcanvas-contact .btn-outline {
    border-color: var(--adscode-primary);
    color: var(--adscode-primary);
}

.offcanvas-contact .btn-outline:hover {
    background-color: var(--adscode-primary);
    color: var(--adscode-bg-white);
}

.offcanvas-overlay {
    pointer-events: none;
}

.offcanvas-overlay.active {
    pointer-events: auto;
}

body.mobile-menu-active {
    overflow: hidden;
}

body.mobile-menu-active .hamburger-inner {
    transform: rotate(45deg);
}

body.mobile-menu-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

body.mobile-menu-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

@media (max-width: 1180px) {
    .top-bar-inner,
    .main-nav-inner {
        gap: 18px;
    }

    .top-bar-left {
        gap: 16px;
        flex-wrap: wrap;
    }

    .desktop-menu ul {
        gap: 18px;
    }

    .desktop-menu a {
        font-size: 0.9rem;
    }

    .header-actions {
        gap: 16px;
    }

    .desktop-menu {
        width: min(500px, calc(100vw - 40px));
    }
}

@media (min-width: 1025px) {
    .mobile-offcanvas,
    .offcanvas-overlay {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .desktop-menu-toggle {
        display: none;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        background-color: var(--adscode-primary-dark);
    }

    .header-top-bar {
        padding: 10px 0;
    }

    .top-bar-inner {
        align-items: flex-start;
    }

    .top-bar-left {
        width: 100%;
        gap: 10px;
    }

    .main-nav-inner {
        min-height: 72px;
    }

    .site-tagline,
    .header-contact-block,
    .header-cta-group {
        display: none;
    }

    .header-phone {
        display: inline-flex;
    }

    .mobile-menu-toggle {
        order: 3;
    }

    .header-actions {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .header-main-nav {
        padding: 12px 0;
    }

    .main-nav-inner {
        gap: 12px;
    }

    .site-branding .custom-logo {
        max-height: 40px;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .top-bar-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .emergency-badge {
        width: fit-content;
    }

    .mobile-offcanvas {
        width: min(340px, 100vw);
        max-width: 100vw;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .header-top-bar {
        font-size: 0.78rem;
    }

    .top-bar-link {
        word-break: break-word;
    }

    .header-phone {
        padding: 9px 12px;
    }

    .mobile-menu-toggle {
        padding: 6px;
    }

    .offcanvas-header,
    .offcanvas-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===========================================================================
   19. Mobile Layout Fixes
   =========================================================================== */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    }

    .hero-section {
        min-height: auto;
        align-items: flex-start;
        padding-top: 150px;
        padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
    }

    .hero-container {
        padding-top: 58px;
    }

    .glass-panel-heavy {
        width: 100%;
        padding: 28px 20px;
        border-radius: 18px;
    }

    .trust-badge {
        max-width: 100%;
        font-size: 0.76rem;
        line-height: 1.35;
        padding: 8px 14px;
        margin-bottom: 18px;
    }

    .hero-title {
        font-size: clamp(2.15rem, 11vw, 3rem);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 24px;
    }

    .hero-checklist {
        margin-bottom: 28px;
    }

    .hero-checklist li {
        align-items: flex-start;
        font-size: 0.98rem;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .hero-checklist li span {
        flex-shrink: 0;
        margin-top: 0.12rem;
    }

    .hero-actions {
        gap: 12px;
    }

    .hero-actions .btn {
        min-height: 54px;
    }

    .section-padding {
        padding: 48px 0;
    }

    .header-top-bar {
        padding: 6px 0;
    }

    .top-bar-inner {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .top-bar-left {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
    }

    .top-bar-link {
        display: inline-flex;
        align-items: center;
        justify-self: end;
        max-width: 100%;
        white-space: nowrap;
        word-break: normal;
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .emergency-badge {
        min-width: 0;
        white-space: normal;
        line-height: 1.2;
        font-size: 0.74rem;
        padding: 5px 10px;
    }

    .main-nav-inner {
        min-height: 64px;
        gap: 10px;
        justify-content: space-between;
    }

    .site-branding {
        order: 1;
        margin-left: 0;
        max-width: calc(100% - 64px);
    }

    .site-branding .custom-logo {
        max-height: 38px;
    }

    .site-title {
        font-size: 1.15rem;
        line-height: 1.1;
    }

    .header-phone {
        display: none !important;
    }

    .mobile-menu-toggle {
        order: 2;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-actions {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        margin-left: auto;
        margin-right: 34px;
    }

    .sticky-mobile-bar {
        min-height: 72px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-bar-btn {
        min-height: 72px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        text-transform: none;
        line-height: 1.3;
        font-size: 0.82rem;
    }

    .footer-bottom {
        padding-bottom: 24px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 14px;
    }

    .hero-section {
        padding-top: 180px;
        padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px));
    }

    .glass-panel-heavy {
        padding: 24px 18px;
    }

    .hero-title {
        font-size: clamp(2rem, 12.5vw, 2.75rem);
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-checklist li {
        font-size: 0.94rem;
    }

    .top-bar-inner {
        gap: 8px;
    }

    .top-bar-left {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .top-bar-link {
        font-size: 0.76rem;
    }

    .emergency-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .site-branding {
        max-width: calc(100% - 56px);
    }

    .site-branding .custom-logo {
        max-height: 34px;
    }

    .header-actions {
        gap: 0;
    }

    .hamburger-box {
        transform: scale(0.92);
    }

    .mobile-bar-btn {
        padding: 10px 8px;
        font-size: 0.78rem;
    }
}