/* --- VARIABLES --- */
:root {
    --bg: #050505;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #E85D3F;
    --glass-bg: rgba(10, 10, 10, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --blur: 16px;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body { background-color: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
html.lenis { height: auto; } .lenis.lenis-smooth { scroll-behavior: auto; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { display: block; max-width: 100%; }

.strokeme {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px;
}

/* --- 3D CANVAS & VIGNETTE --- */
#webgl { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.5s; }
.vignette { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, transparent 0%, #050505 100%); z-index: -1; pointer-events: none; }

/* --- UI COMPONENTS --- */
.container { width: 90%; max-width: 1280px; margin: 0 auto; position: relative; }
.section-pad { padding: 8rem 0; }
.accent { color: var(--accent); }

.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border); border-radius: 16px; padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-panel:hover { border-color: var(--accent); transform: translateY(-5px); }

h1, h2, h3, h4 { font-family: var(--font-head); margin-bottom: 1rem; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -1px; }
h2 { font-size: 2.5rem; }

/* --- NAV --- */
.navbar { position: fixed; top: 0; width: 100%; height: 90px; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; z-index: 100; background: transparent; backdrop-filter: blur(5px); }
.logo-img { height: 35px; width: auto; }
.nav-links.desktop { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); font-family: var(--font-head); }
.nav-links a:hover { color: white; }
.btn-nav.solid { padding: 10px 24px; background: white; color: black; border-radius: 50px; font-weight: 700; font-size: 0.9rem; }
.btn-nav.solid:hover { background: var(--accent); color: white; }
.btn-nav.outline { padding: 10px 24px; border: 1px solid white; color: white; border-radius: 50px; font-weight: 700; font-size: 0.9rem; }
.btn-nav.outline:hover { background: white; color: black; }

/* Hamburger */
.hamburger-wrap { display: none; cursor: pointer; padding: 10px; z-index: 200; }
.hamburger { width: 24px; height: 12px; position: relative; }
.hamburger span { position: absolute; width: 100%; height: 2px; background: white; transition: 0.3s; }
.hamburger span:first-child { top: 0; }
.hamburger span:last-child { bottom: 0; }
.hamburger-wrap.active span:first-child { transform: rotate(45deg); top: 5px; }
.hamburger-wrap.active span:last-child { transform: rotate(-45deg); bottom: 5px; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #050505; z-index: 90; display: flex; align-items: center; justify-content: center; transform: translateY(-100%); transition: 0.4s ease; }
.mobile-menu.open { transform: translateY(0); }
.m-links { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.m-link { font-family: var(--font-head); font-size: 2rem; color: white; font-weight: 700; text-transform: uppercase; }

/* --- HERO --- */
.hero { min-height: 100vh; display: flex; align-items: center; }
.tag-pill { display: inline-block; padding: 6px 14px; border: 1px solid var(--glass-border); border-radius: 50px; font-size: 0.75rem; letter-spacing: 2px; margin-bottom: 2rem; color: var(--accent); background: rgba(232, 93, 63, 0.05); font-weight: 700; }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 550px; margin-bottom: 3rem; }
.btn-row { display: flex; gap: 1rem; }
.btn-main { padding: 14px 35px; background: var(--accent); color: white; border-radius: 50px; font-weight: 700; text-transform: uppercase; font-family: var(--font-head); }
.btn-main:hover { background: white; color: black; }
.btn-ghost { padding: 14px 35px; border: 1px solid white; color: white; border-radius: 50px; font-weight: 700; text-transform: uppercase; font-family: var(--font-head); }
.btn-ghost:hover { background: white; color: black; }

/* --- STATS --- */
.stats-section { padding-bottom: 4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-box { text-align: center; }
.stat-box h3 { font-size: 2rem; color: var(--accent); margin: 0; font-family: var(--font-head); }
.stat-box p { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }

/* --- TECH --- */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1.5rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
th { font-family: var(--font-head); text-transform: uppercase; font-size: 0.8rem; color: var(--text-muted); }
.active-col { color: var(--accent); font-weight: 600; background: rgba(232, 93, 63, 0.05); }
.mobile-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.m-card { background: var(--glass-bg); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--glass-border); margin-bottom: 2rem}
.m-card.active { border-color: var(--accent); }
.m-card h4 { font-size: 1.2rem; margin-bottom: 1rem; color: white; }
.m-card ul { list-style: none; }
.m-card li { display: flex; align-items: center; gap: 10px; margin-bottom: 0.8rem; color: var(--text-muted); }
.m-card i { color: var(--accent); font-size: 1.2rem; }

/* --- OFFER --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.offer-card .icon-box { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }
.highlight-card { border-color: var(--accent); background: rgba(232, 93, 63, 0.05); }

/* --- GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-item { position: relative; overflow: hidden; border-radius: 12px; background: #111; padding: 0 !important; height: 350px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s; display: block; filter: brightness(0.6); }
.g-item:hover img { transform: scale(1.1); filter: brightness(1); }
.g-overlay-static { position: absolute; bottom: 20px; left: 20px; z-index: 2; }
.g-overlay-static .cat { font-size: 0.7rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.g-overlay-static h4 { font-size: 1.2rem; margin: 0; color: white; }

/* --- BLOG TEASERS (POPRAWIONE OBRAZKI) --- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.head-link { color: var(--accent); font-weight: 600; }
.blog-grid-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.blog-card { 
    display: flex; flex-direction: column; 
    justify-content: space-between; 
    min-height: 380px; 
    padding: 0 !important; 
    overflow: hidden; 
}

/* KLUCZOWA POPRAWKA DLA OBRAZÓW W BLOGU */
.blog-thumb { 
    height: 240px; /* Sztywna wysokość pozioma */
    width: 100%; 
    overflow: hidden; 
    flex-shrink: 0;
}
.blog-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Gwarantuje wypełnienie bez deformacji */
    object-position: center;
    transition: 0.5s; 
    filter: brightness(0.8); 
}
.blog-card:hover .blog-thumb img { transform: scale(1.1); filter: brightness(1); }

.blog-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-info .cat { font-size: 0.75rem; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; display: block; }
.blog-info h4 { font-size: 1.2rem; margin-bottom: 1rem; line-height: 1.3; }
.read-link { margin-top: auto; font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; color: white; }

.blog-page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* --- FAQ --- */
.faq-container { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
.faq-head { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 1.1rem; }
.faq-head i { transition: 0.3s; color: var(--text-muted); }
.faq-body { height: 0; overflow: hidden; transition: 0.4s ease; color: var(--text-muted); margin-top: 0; opacity: 0; font-size: 0.95rem; }
.faq-item.active .faq-body { height: auto; margin-top: 1rem; opacity: 1; padding-bottom: 5px; }
.faq-item.active .faq-head { color: var(--accent); }
.faq-item.active .faq-head i { transform: rotate(180deg); color: var(--accent); }

/* --- ARTICLE PAGE --- */
.article-header { padding: 4rem 0 2rem 0; text-align: center; border-bottom: 1px solid var(--glass-border); margin-bottom: 3rem; }
.article-header h1 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 1rem; }
.article-body { max-width: 800px; margin: 0 auto; font-size: 1.1rem; color: #ddd; }
.article-body ul, .article-body ol { margin: 2rem; }
.article-body h2 { margin-top: 3rem; color: white; }
#art-img { width: 100%; height: 400px; object-fit: cover; object-position: center; border-radius: 8px; margin-bottom: 2rem; }
.mobile-back-link { display: none; font-size: 1.5rem; color: white; margin-right: 15px; align-items: center; justify-content: center; }

/* --- FOOTER --- */
#contact { padding-top: 4rem; border-top: 1px solid rgba(255,255,255,0.1); background: #020202; }
.footer-split { display: flex; justify-content: space-between; gap: 4rem; margin-bottom: 3rem; }
.phone-display { display: block; font-family: var(--font-head); font-size: 2.5rem; color: white; margin-top: 1rem; font-weight: 700; }
.big-icons i { font-size: 2rem; margin-right: 1rem; color: white; transition: 0.3s; }
.big-icons i:hover { color: var(--accent); }
.copy { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; color: #444; font-size: 0.8rem; }

/* --- RESPONSIVE --- */
.mobile-only { display: none; }
@media (max-width: 900px) {
    .nav-links.desktop { display: none; }
    .hamburger-wrap { display: block; }
    .mobile-back-link { display: flex; }
    .hero { align-items: flex-start; padding-top: 150px; } 
    .hero h1 { font-size: 3rem; }
    .btn-row { flex-direction: column; width: 100%; }
    .btn-main, .btn-ghost { width: 100%; text-align: center; }
    .grid-4, .grid-3, .blog-grid-home, .gallery-grid { grid-template-columns: 1fr; }
    .g-item.big { grid-column: span 1; }
    .g-item { height: 300px; } 
    .footer-split { flex-direction: column; gap: 2rem; }
    .phone-display { font-size: 2rem; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    #art-img { height: 250px; }
}