/* ============================================
   MOBILE FIX - Zapobiega przesuwaniu strony
   ============================================ */

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

img, 
video, 
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

.container,
.navbar-container,
.shop-container,
.section,
main,
header,
footer {
    max-width: 100%;
    overflow-x: hidden;
}

.hero {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.hero-content {
    max-width: 100%;
    padding: 0 1rem;
}

.cta-buttons {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-buttons .btn {
    flex: 0 1 auto;
    min-width: 200px;
}

.navbar {
    max-width: 100vw;
    overflow-x: hidden;
}

.navbar-container {
    max-width: 100vw;
    padding-left: 1rem;
    padding-right: 1rem;
}

.social-grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

pre,
code {
    overflow-x: auto;
    max-width: 100%;
}

.twitter-tweet,
.instagram-media,
.fb-post {
    max-width: 100% !important;
}

.video-container,
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe,
.video-container object,
.video-container embed,
.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sticky,
.fixed {
    left: 0;
    right: 0;
    max-width: 100vw;
}

.no-scroll-x {
    overflow-x: hidden !important;
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    input,
    textarea,
    select {
        font-size: 16px;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 10vw, 4rem);
        letter-spacing: 2px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .voltage-button {
        max-width: 100%;
        width: 100%;
    }
    
    .voltage-button button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .section {
        padding: 2rem 0.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .section {
        padding: 2rem 1rem;
    }
    
    .hero {
        min-height: auto;
        padding: 4rem 1rem;
    }
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

@media (max-width: 768px) {
    .blog-posts {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    max-width: 100%;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    max-width: 100%;
}

.adsense-container {
    max-width: 100%;
    overflow-x: hidden;
}

.adsense-container ins {
    max-width: 100% !important;
}