/* =========================================
   BetoCoat B.V. - FIXED CSS (FINAL v3)
   ========================================= */

/* RESET I BAZA */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
*:focus-visible { outline: 2px solid #e67e22; outline-offset: 2px; }

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

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: #050505; 
    color: #ffffff; 
    min-height: 100vh;
    background-image: radial-gradient(circle at 20% 20%, rgba(30, 30, 30, 0.4) 0%, transparent 40%),
                      radial-gradient(circle at 80% 80%, rgba(230, 126, 34, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

img, svg { max-width: 100%; height: auto; display: block; }
i { display: inline-block; }

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* UKŁAD STRON */
#page-home { display: block; }
#page-about, #page-services, #page-technologies, #page-projects, #page-contact { 
    display: none; 
    padding-top: 100px; 
    min-height: 80vh; 
}

/* NAV - DESKTOP */
.navbar { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 10px 5%; width: 100%; position: fixed; top: 0; 
    background: rgba(0, 0, 0, 0.8); 
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.logo-wrapper { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; z-index: 1001; }
.logo-img { height: 45px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.company-name { font-weight: 700; font-size: 1.1rem; color: #ffffff; letter-spacing: 0.5px; }
.company-slogan { font-size: 0.75rem; color: #aaaaaa; font-weight: 400; }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 5px; }
.nav-links a { 
    text-decoration: none; color: #bbb; font-weight: 600; font-size: 0.9rem; 
    transition: 0.3s; text-transform: capitalize; padding: 10px 15px; border-radius: 4px; cursor: pointer;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-links a.active-btn { background-color: #1a3c6e; color: white !important; border-color: #1a3c6e !important; }

.btn-nav-contact { background-color: transparent; color: #fff; font-weight: bold; border: 1px solid rgba(255,255,255,0.3); }
.btn-nav-contact:hover { border-color: #fff; }

.lang-switch { margin-left: 20px !important; font-size: 0.85rem; }
.lang-switch a { padding: 0 5px; color: #666; text-decoration: none; }
.lang-switch a.active-lang { color: #fff; font-weight: bold; }

/* HERO */
.hero { 
    height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; 
    text-align: center; position: relative; padding: 0 20px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 70%);
}
.hero h1 { font-size: 5rem; font-weight: 700; margin-bottom: 10px; color: white; text-transform: uppercase; z-index: 2; letter-spacing: -2px; line-height: 1.1; }
.hero p { font-size: 1.3rem; max-width: 800px; margin-bottom: 40px; color: #ddd; z-index: 2; line-height: 1.5; }
.buttons-container { display: flex; gap: 20px; z-index: 2; flex-wrap: wrap; justify-content: center; }
.btn-blue { padding: 14px 35px; background-color: #0055ff; color: white; border-radius: 6px; text-decoration: none; font-weight: 700; transition: 0.3s; border: none; cursor: pointer; font-size: 1rem; display: flex; align-items: center; gap: 10px;}
.btn-transparent { padding: 14px 35px; border: 1px solid #333; color: white; border-radius: 6px; text-decoration: none; font-weight: 700; transition: 0.3s; background: rgba(255,255,255,0.05); font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 10px;}

/* SEKCJE */
.section { padding: 80px 5%; background: transparent; border-top: 1px solid #111; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; }
h2 { font-size: 2.5rem; margin-bottom: 30px; color: white; text-transform: uppercase; }

/* OVER ONS HEADER */
.about-header-premium { position: relative; text-align: center; margin-bottom: 60px; padding: 40px 0; overflow: hidden; width: 100%; }
.about-bg-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 8rem; font-weight: 900; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.03); z-index: 0; white-space: nowrap; pointer-events: none; }
.about-title-premium { font-size: 2.5rem; color: #ffffff; text-transform: uppercase; font-weight: 800; margin-bottom: 20px; position: relative; z-index: 1; letter-spacing: 2px; display: inline-block; line-height: 1.2; }
.about-subtitle-premium { font-size: 1.4rem; color: #e67e22; margin-bottom: 20px; font-weight: 600; position: relative; z-index: 1; }
.about-desc-premium { max-width: 800px; margin: 0 auto; color: #ccc; font-size: 1.1rem; line-height: 1.8; position: relative; z-index: 1; }

/* GRIDY OGÓLNE */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 80px; }
.stat-card { background: #0f0f0f; border: 1px solid #222; border-radius: 12px; padding: 30px; text-align: center; transition: 0.3s; }
.stat-card:hover { transform: translateY(-5px); border-color: #333; }
.stat-icon { width: 40px; height: 40px; margin: 0 auto 15px; }
.stat-icon svg { stroke: #e67e22; stroke-width: 1.5; width: 100%; height: 100%; fill: none; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: #e67e22; margin-bottom: 5px; display: block; }
.stat-label { color: #aaa; font-size: 0.9rem; }

/* KONTAKT I KARTY */
.contact-header-box { text-align: center; margin-bottom: 40px; }
.contact-title-bg { background: transparent; padding: 0; font-size: 3.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: #fff; display: block; margin-bottom: 10px; }
.contact-subtitle { color: #aaa; font-size: 1.1rem; }
.contact-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }

.premium-contact-card { background: #0a0a0a; border: 1px solid #222; border-radius: 12px; padding: 30px; text-align: center; position: relative; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.premium-contact-card:hover { border-color: #e67e22; transform: translateY(-3px); }

.card-header-icon { 
    background: linear-gradient(90deg, rgba(230, 126, 34, 0.15), rgba(0,0,0,0)); 
    padding: 15px; border-radius: 8px; margin-bottom: 20px; display: inline-flex; 
    align-items: center; justify-content: flex-start; width: auto; max-width: 100%;
}
.card-header-icon i { color: #e67e22; font-size: 1.5rem; width: auto; }
.premium-contact-card h4 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px;}
.premium-contact-card p { color: #bbb; font-size: 0.95rem; line-height: 1.5; }

.opening-hours-wrapper { background: #0a0a0a; border: 1px solid #222; border-radius: 12px; padding: 30px; max-width: 350px; margin-bottom: 50px; }

/* MISJA, CERTYFIKATY */
.mission-box-premium { background: #0a0a0a; border-radius: 15px; padding: 50px; margin-bottom: 100px; position: relative; border: 1px solid #1a1a1a; border-bottom: 3px solid #e67e22; box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow: hidden; }
.mission-number { position: absolute; top: -20px; right: 20px; font-size: 10rem; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(230, 126, 34, 0.15); opacity: 0.5; pointer-events: none; }
.mission-title-premium { font-size: 2.2rem; margin-bottom: 30px; text-transform: uppercase; font-weight: 800; display: flex; align-items: center; gap: 15px; color: #fff; position: relative; z-index: 1; }
.mission-title-premium i { color: #e67e22; }
.mission-intro { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 30px; line-height: 1.6; position: relative; z-index: 1; }
.mission-list { list-style: none; padding: 0; margin-bottom: 40px; position: relative; z-index: 1; }
.mission-list-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; color: #ccc; font-size: 1rem; line-height: 1.5; }
.mission-list-item i { color: #e67e22; margin-top: 5px; font-size: 1.1rem; }
.mission-list-item strong { color: #fff; font-weight: 700; }
.mission-quote { display: flex; gap: 20px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 1; flex-wrap: wrap; }
.mission-quote i { color: #e67e22; font-size: 2rem; opacity: 0.8; }
.mission-quote p { font-size: 1.2rem; font-weight: 700; color: #fff; font-style: italic; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.cert-card { background: #0f0f0f; border-radius: 12px; overflow: hidden; border: 1px solid #222; }
.cert-img { height: 200px; width: 100%; background-size: cover; background-position: center; position: relative; border-bottom: 2px solid #e67e22; }
.cert-content { padding: 25px; }
.cert-icon { width: 30px; height: 30px; margin-bottom: 15px; }
.cert-icon svg { stroke: #e67e22; width: 100%; height: 100%; fill: none; }
.cert-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: #fff; text-transform: uppercase;}
.cert-desc { font-size: 0.9rem; color: #999; line-height: 1.5; }

.clients-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 40px; margin-bottom: 30px; }
.client-item { display: flex; align-items: center; font-size: 1rem; color: #ddd; }
.client-item i { color: #e67e22; margin-right: 15px; font-size: 0.8rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 80px; }
.team-card { height: 300px; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid #333; }
.team-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transition: 0.5s; }
.team-card:hover .team-bg { transform: scale(1.05); }
.team-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); border-top: 2px solid #e67e22; }
.team-role { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 5px; text-transform: uppercase; }
.team-sub { font-size: 0.85rem; color: #ccc; display: flex; align-items: center; gap: 5px; }
.team-sub i { color: #e67e22; }

.cta-box { background-color: #0044cc; border-radius: 15px; padding: 60px; text-align: center; color: white; position: relative; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 68, 204, 0.4); width: 100%; }
.cta-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; text-transform: uppercase; line-height: 1.2; }
.cta-text { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-white { background: #fff; color: #0044cc; padding: 12px 30px; border-radius: 6px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid #fff; padding: 12px 30px; border-radius: 6px; font-weight: 700; text-decoration: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* SERVICES & TECHNOLOGIES */
.services-premium-grid, .team-grid, .cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 100px; }
.service-card-premium { position: relative; height: 550px; border-radius: 15px; overflow: hidden; border: 1px solid #333; transition: 0.3s; background: #000; }
.service-card-premium:hover { border-color: #e67e22; transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.8); }
.service-bg { position: absolute; top:0; left:0; width:100%; height:100%; background-size: cover; background-position: center; transition: 0.5s; opacity: 0.7; }
.service-card-premium:hover .service-bg { transform: scale(1.05); opacity: 0.5; }
.service-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, #000 15%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.2) 100%); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; border-top: 3px solid #e67e22; }

/* === TYTUŁY USŁUG - PRZYGOTOWANE POD JS === */
.service-title { 
    font-size: 1.8rem; /* Rozmiar bazowy */
    font-weight: 800; 
    color: #fff; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    line-height: 1.2;
    
    /* KLUCZOWE: Nie łam tekstu, niech JS widzi przepełnienie */
    white-space: nowrap; 
    width: 100%;
    overflow: hidden; /* Bezpiecznik */
}

.service-desc { font-size: 0.95rem; color: #ddd; margin-bottom: 20px; line-height: 1.5; font-weight: 500; }
.service-list { list-style: none; padding: 0; }
.service-list li { display: flex; align-items: center; gap: 10px; color: #e67e22; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; }
.service-list li i { color: #e67e22; font-size: 1rem; background: rgba(230, 126, 34, 0.2); padding: 3px; border-radius: 50%; }
.service-list li span { color: #ccc; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 80px; }
.why-card { background: #0a0a0a; border: 1px solid #222; border-radius: 12px; padding: 35px 25px; text-align: center; transition: 0.3s; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.why-card h4 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #e67e22; }
.why-card p { font-size: 0.95rem; color: #bbb; line-height: 1.6; }
.why-card.orange { border-color: rgba(230, 126, 34, 0.6); box-shadow: inset 0 0 20px rgba(230, 126, 34, 0.1); }
.why-card.orange h4 { color: #e67e22; }
.why-card.blue { border-color: rgba(0, 85, 255, 0.6); box-shadow: inset 0 0 20px rgba(0, 85, 255, 0.1); }
.why-card.blue h4 { color: #e67e22; }
.why-card.green { border-color: rgba(40, 167, 69, 0.6); box-shadow: inset 0 0 20px rgba(40, 167, 69, 0.1); }
.why-card.green h4 { color: #e67e22; }

.cta-box-glow { background: #080808; border: 1px solid #e67e22; border-radius: 15px; padding: 60px; text-align: center; position: relative; box-shadow: 0 0 30px rgba(230, 126, 34, 0.15), inset 0 0 50px rgba(230, 126, 34, 0.05); margin-top: 50px; width: 100%; }
.cta-box-glow h3 { font-size: 2.2rem; color: #fff; margin-bottom: 15px; text-transform: uppercase; font-weight: 800; line-height: 1.2; }
.cta-box-glow p { color: #ccc; font-size: 1.1rem; margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-box-glow .cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-cta-blue { background: linear-gradient(135deg, #1a3c6e 0%, #0055ff 100%); color: white; padding: 15px 30px; border-radius: 6px; font-weight: 800; text-transform: uppercase; border: none; cursor: pointer; text-decoration: none; }
.btn-cta-outline { background: transparent; border: 1px solid #fff; color: white; padding: 15px 30px; border-radius: 6px; font-weight: 800; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.btn-cta-outline:hover { background: rgba(255,255,255,0.1); }

.contact-tabs { display: flex; background: #111; border-radius: 8px; overflow: hidden; margin-bottom: 40px; border: 1px solid #222; flex-wrap: wrap; }
.tab-btn { flex: 1; padding: 25px; background: transparent; border: none; color: #777; cursor: pointer; text-align: center; transition: 0.3s; border-right: 1px solid #222; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 150px; }
.tab-btn:last-child { border-right: none; }
.tab-btn.active { background: #1a1a1a; color: #fff; border-bottom: 2px solid #0055ff; }
.tab-title { font-size: 1.1rem; font-weight: 700; }
.tab-desc { font-size: 0.8rem; font-weight: 400; }
.tab-btn i { font-size: 1.3rem; }

.form-container { background: #0a0a0a; padding: 40px; border-radius: 12px; display: none; border: 1px solid #222; }
.form-container.active-content { display: block; }
.form-header h3 { font-size: 2rem; margin-bottom: 10px; color: #fff; text-transform: uppercase; }
.form-header p { color: #888; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.full-width { grid-column: 1 / -1; }

.input-group { display: flex; flex-direction: column; position: relative; }
.input-group label { margin-bottom: 8px; font-size: 0.9rem; font-weight: 700; color: #ddd; }
.input-icon-wrapper { position: relative; width: 100%; }
.input-icon-wrapper i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #888; pointer-events: none; font-size: 1rem; z-index: 2; }
.input-group input, .input-group select, .input-group textarea { background: #151515 !important; border: 1px solid #333 !important; padding: 15px; color: #fff !important; border-radius: 6px; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; width: 100%; }
.input-icon-wrapper input, .input-icon-wrapper select { padding-left: 45px; }
.input-group textarea { resize: vertical; min-height: 120px; }
.form-section-title { color: #e67e22; font-size: 1.3rem; font-weight: 700; margin-top: 30px; margin-bottom: 20px; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #222; padding-bottom: 10px; }
.checkbox-group { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; background: #111; padding: 15px; border-radius: 6px; border: 1px solid #222; }
.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; accent-color: #0055ff; cursor: pointer; }
.checkbox-group label { margin-bottom: 0; cursor: pointer; color: #ccc; }
.checkbox-group a { color: #e67e22; text-decoration: none; transition: 0.3s; }
.checkbox-group a:hover { text-decoration: underline; color: #fff; }
.form-actions { display: flex; justify-content: center; margin-top: 30px; }
.btn-whatsapp { display: none; }
.btn-email-submit { background-color: #1a3c6e; color: white; border: none; padding: 18px 40px; border-radius: 6px; font-weight: 800; cursor: pointer; text-transform: uppercase; display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; max-width: 400px; }

.map-container { width: 100%; height: 450px; margin-top: 60px; border-radius: 12px; overflow: hidden; border: 1px solid #222; }

.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 80px; }
.tech-card { background: #0a0a0a; border: 1px solid #333; border-radius: 15px; padding: 30px; transition: 0.3s; }
.tech-card:hover { border-color: #e67e22; box-shadow: 0 0 20px rgba(230, 126, 34, 0.1); }
.tech-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 25px; }
.tech-icon { min-width: 60px; height: 60px; background: #111; border: 1px solid #e67e22; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #e67e22; font-size: 1.8rem; box-shadow: 0 0 15px rgba(230, 126, 34, 0.2); }
.tech-info { width: 100%; min-width: 0; } /* Flexbox fix */
.tech-info h3 { font-size: 1.5rem; color: #fff; margin-bottom: 5px; text-transform: uppercase; font-weight: 700; white-space: nowrap; width: 100%; overflow: hidden; }
.tech-info p { color: #aaa; font-size: 0.95rem; line-height: 1.5; }
.tech-img { width: 100%; height: 250px; border-radius: 10px; background-size: cover; background-position: center; margin-bottom: 25px; border: 1px solid #222; }
.tech-list { list-style: none; padding: 0; }
.tech-list li { display: flex; align-items: center; gap: 10px; color: #ccc; margin-bottom: 10px; font-size: 0.95rem; }
.tech-list li i { color: #e67e22; font-size: 1rem; }

.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 80px; }
.comp-card { background: #0a0a0a; border: 1px solid #333; border-radius: 15px; padding: 25px; transition: 0.3s; }
.comp-card:hover { border-color: #e67e22; box-shadow: 0 0 20px rgba(230, 126, 34, 0.1); }
.comp-info { margin-bottom: 25px; }
.comp-info h3 { color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: 5px; text-transform: uppercase; }
.comp-sub { color: #888; font-size: 0.95rem; margin-bottom: 15px; display: block; }
.comp-tag { display: inline-block; background: rgba(230, 126, 34, 0.2); color: #e67e22; padding: 5px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; float: right; margin-top: -45px; }
.comp-desc { color: #ccc; font-size: 0.95rem; line-height: 1.6; }
.comp-img-wrapper { position: relative; width: 100%; height: 300px; border-radius: 10px; overflow: hidden; border: 1px solid #444; }
.img-back { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.img-front { position: absolute; top: 0; left: 0; width: 50%; height: 100%; overflow: hidden; border-right: 3px solid #e67e22; background: #000; }
.img-front img { width: 200%; height: 100%; object-fit: cover; }
.slider-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-appearance: none; background: transparent; z-index: 10; cursor: col-resize; margin: 0; }
.slider-input::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; background: #e67e22; border-radius: 50%; border: 3px solid #fff; cursor: col-resize; box-shadow: 0 0 10px rgba(0,0,0,0.5); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='20px' height='20px'%3E%3Cpath d='M10 6L5 12l5 6v-12zm4 12l5-6-5-6v12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.label-before, .label-after { position: absolute; top: 15px; padding: 5px 12px; background: rgba(0,0,0,0.7); color: #fff; font-weight: 700; font-size: 0.8rem; border-radius: 4px; z-index: 2; pointer-events: none; }
.label-before { left: 15px; }
.label-after { right: 15px; }

.quality-box { background: #0a0a0a; border: 1px solid #333; border-radius: 15px; padding: 50px; margin-top: 80px; margin-bottom: 80px; position: relative; overflow: hidden; }
.quality-title { font-size: 2.5rem; text-transform: uppercase; font-weight: 800; text-align: center; margin-bottom: 50px; color: #fff; position: relative; z-index: 1; }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; position: relative; z-index: 1; }
.quality-column h4 { color: #e67e22; font-size: 1.4rem; text-transform: uppercase; margin-bottom: 20px; font-weight: 700; }
.quality-column p { color: #bbb; line-height: 1.8; margin-bottom: 25px; font-size: 1rem; }
.quality-list { list-style: none; padding: 0; }
.quality-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; color: #ddd; font-size: 1rem; }
.quality-list li i { color: #e67e22; font-size: 1.1rem; }

.projects-filter-container { background: #0a0a0a; border: 1px solid #333; border-radius: 15px; padding: 25px; margin-bottom: 50px; width: 100%; }
.filter-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { color: #fff; font-weight: 700; margin-right: 5px; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.filter-label i { color: #e67e22; }
.filter-btn { background: transparent; border: 1px solid #333; color: #aaa; padding: 8px 16px; border-radius: 6px; cursor: pointer; transition: 0.3s; font-size: 0.9rem; font-family: 'Montserrat', sans-serif; font-weight: 500; }
.filter-btn:hover { border-color: #e67e22; color: #fff; }
.filter-btn.active { background: #1a3c6e; color: #fff; border-color: #1a3c6e; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.project-card { background: #0a0a0a; border: 1px solid #333; border-radius: 12px; overflow: hidden; transition: 0.3s; height: 100%; display: flex; flex-direction: column; cursor: pointer; }
.project-card:hover { border-color: #e67e22; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.project-img { width: 100%; height: 250px; object-fit: cover; border-bottom: 1px solid #222; }
.project-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.project-title { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 10px; text-transform: uppercase; line-height: 1.2; }
.project-desc { font-size: 0.9rem; color: #bbb; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tag-pill { font-size: 0.75rem; padding: 5px 10px; border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tag-type { background: rgba(230, 126, 34, 0.15); color: #e67e22; border: 1px solid rgba(230, 126, 34, 0.3); }
.tag-loc, .tag-year { background: transparent; color: #888; border: 1px solid #333; display: flex; align-items: center; gap: 5px; }
.project-footer { border-top: 1px solid #222; padding-top: 15px; display: flex; align-items: center; gap: 8px; color: #666; font-size: 0.85rem; font-weight: 600; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: #0a0a0a; border: 1px solid #e67e22; border-radius: 12px; width: 90%; max-width: 900px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 0 50px rgba(0,0,0,0.8); animation: fadeIn 0.3s; padding: 0; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #fff; cursor: pointer; transition: 0.3s; z-index: 10; background: rgba(0,0,0,0.5); padding: 5px 12px; border-radius: 5px; }
.close-modal:hover { color: #e67e22; background: rgba(0,0,0,0.8); }
.modal-body { padding: 40px; }
.modal-title { font-size: 2rem; color: #fff; margin-bottom: 20px; text-transform: uppercase; font-weight: 800; border-bottom: 1px solid #333; padding-bottom: 20px; }
.modal-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.modal-gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid #333; transition: 0.3s; cursor: pointer; }
.modal-tags { display: flex; gap: 10px; margin-bottom: 30px; }
.modal-section-title { font-size: 1.2rem; color: #e67e22; margin-bottom: 10px; font-weight: 700; text-transform: uppercase; }
.modal-text { color: #ccc; line-height: 1.7; margin-bottom: 30px; font-size: 1rem; }
.modal-solution-box { background: rgba(230, 126, 34, 0.05); border-left: 4px solid #e67e22; padding: 20px; border-radius: 0 8px 8px 0; }
.modal-solution-box h4 { color: #e67e22; margin-bottom: 10px; font-weight: 700; text-transform: uppercase; font-size: 1.1rem; }
.modal-solution-box p { margin: 0; color: #ddd; font-style: italic; }

/* === PARTNERZY === */
.partners-section { border-top: 1px solid #222; padding: 80px 0; background: radial-gradient(circle at center, #111111 0%, #050505 80%); text-align: center; position: relative; }
.partners-header { margin-bottom: 50px; display: flex; flex-direction: column; align-items: center; }
.partners-title { color: #fff; text-transform: uppercase; font-size: 1.1rem; letter-spacing: 3px; font-weight: 700; margin-bottom: 15px; }
.title-line { width: 60px; height: 3px; background: #e67e22; border-radius: 2px; }
.partners-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; align-items: stretch; }
.partner-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 40px 50px; display: flex; align-items: center; justify-content: center; transition: all 0.4s ease; min-width: 300px; position: relative; overflow: hidden; }
.partner-card:hover { transform: translateY(-7px); border-color: rgba(230, 126, 34, 0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(230, 126, 34, 0.05); background: rgba(255, 255, 255, 0.04); }
.no-link-style { text-decoration: none; color: inherit; }
.partner-logo-text { display: flex; align-items: center; gap: 20px; color: #fff; opacity: 0.9; transition: 0.3s; }
.partner-logo-text i { color: #e67e22; font-size: 2.2rem; }
.partner-name { font-size: 1.8rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.partner-logo-img-wrapper { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.partner-img { max-height: 100px; width: auto; object-fit: contain; opacity: 1; transition: all 0.4s ease; }
.partner-name-sub { font-size: 1rem; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.partner-card:hover .partner-logo-text { opacity: 1; }
.partner-card:hover .partner-img { transform: scale(1.05); }
.partner-card:hover .partner-name-sub { color: #fff; }

@media (max-width: 768px) {
    .partners-grid { flex-direction: column; align-items: center; }
    .partner-card { width: 90%; padding: 30px; }
    .partner-logo-text { flex-direction: column; gap: 10px; }
    .partner-name { font-size: 1.5rem; }
}

footer { background: #080808; color: #ccc; padding: 60px 5% 20px; border-top: 1px solid #222; font-size: 0.9rem; margin-top: 0px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 40px; }
.footer-column h3 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; text-transform: uppercase; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer-column ul li a:hover { color: #fff; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; color: #ddd; font-size: 0.9rem; line-height: 1.5; }
.contact-item span { display: block; }
.icon-box { width: 20px !important; height: 20px !important; min-width: 20px !important; margin-top: 2px; margin-right: 10px; flex-shrink: 0; display: inline-block; }
.icon-box svg { width: 100% !important; height: 100% !important; stroke: #ff6600; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid #222; display: flex; justify-content: space-between; color: #666; font-size: 0.8rem; }
.burger { display: none; cursor: pointer; z-index: 1002; }
.burger div { width: 25px; height: 3px; background-color: white; margin: 5px; transition: all 0.3s ease; }

@media (max-width: 1024px) {
    .stats-grid, .approach-grid, .contact-info-grid, .footer-container, .why-grid, .tech-grid, .comp-grid, .quality-grid, .projects-grid { grid-template-columns: 1fr 1fr; }
    .cert-grid, .team-grid, .services-premium-grid { grid-template-columns: 1fr; }
    .modal-gallery { grid-template-columns: 1fr 1fr; }
}

/* === WERSJA MOBILNA - PEŁNA NAPRAWA UCINANIA TEKSTU === */
@media (max-width: 768px) {
    /* Menu mobilne */
    .nav-links { position: fixed; right: 0; top: 0; height: 100vh; background: #000000; flex-direction: column; width: 100%; transform: translateX(100%); transition: transform 0.3s ease-in-out; justify-content: center; align-items: center; padding-top: 0; z-index: 999; }
    .burger { display: block; position: relative; z-index: 1002; }
    .nav-active { transform: translateX(0%); }
    .nav-links li { width: 100%; text-align: center; margin: 15px 0; opacity: 0; }
    .nav-active li { animation: navLinkFade 0.5s ease forwards 0.3s; }
    @keyframes navLinkFade { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

    /* Skalowanie czcionek (HERO) */
    .hero h1 { font-size: 2rem !important; } 
    .hero p { font-size: 0.95rem; }
    .about-bg-text { display: none; }
    .about-title-premium { font-size: 1.6rem !important; line-height: 1.3 !important; width: 100%; }
    .cta-title { font-size: 1.6rem !important; line-height: 1.3 !important; }
    .modal-title { font-size: 1.5rem !important; }

    /* Układy Siatkowe (Grid) - jedna kolumna */
    .projects-grid, .comp-grid, .stats-grid, .approach-grid, .contact-info-grid, .form-grid, .form-actions, .clients-list, .footer-container, .why-grid, .tech-grid, .quality-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
    }
    .project-img { height: 120px !important; }
    .comp-img-wrapper { height: 280px !important; } 
    .comp-info h3 { font-size: 1.2rem !important; margin-bottom: 5px !important; }
    .project-title { font-size: 1.1rem !important; margin-bottom: 5px !important; }
    .project-desc, .comp-desc { display: block !important; font-size: 0.9rem !important; line-height: 1.5 !important; margin-bottom: 10px !important; color: #ccc; }
    .project-tags, .project-footer, .comp-sub { display: none !important; }
    .comp-tag { font-size: 0.6rem !important; padding: 2px 6px !important; margin-top: -30px !important; }
    .project-content, .comp-card { padding: 15px !important; }
    
    .card-header-icon { width: 50px !important; height: 50px !important; flex-shrink: 0; display: flex !important; justify-content: center !important; align-items: center !important; margin: 0 auto 15px auto !important; }
    .card-header-icon i { font-size: 1.5rem !important; width: auto !important; height: auto !important; display: block !important; }
    .icon-box svg { width: 18px !important; height: 18px !important; }
    .cta-buttons, .cta-box-glow .cta-buttons { flex-direction: column; width: 100%; gap: 15px; }
    .btn-white, .btn-outline-white, .btn-cta-blue, .btn-cta-outline { width: 100%; justify-content: center; }
    .contact-tabs { flex-direction: column; }
    .tab-btn { border-right: none; border-bottom: 1px solid #222; width: 100%; }
    .filter-row { flex-direction: column; align-items: flex-start; }
    .filter-group { width: 100%; overflow-x: auto; padding-bottom: 10px; white-space: nowrap; }
    .modal-gallery { grid-template-columns: 1fr; }
    .modal-content { width: 95% !important; margin: 10px; max-height: 90vh; }
    .modal-body { padding: 20px; }
    .section { padding: 50px 5%; }
    
    /* Poprawki kontenerów (Diensten / Tech) */
    .service-card-premium {
        height: auto !important; 
        min-height: 0 !important;
        display: flex;
        flex-direction: column;
    }
    .service-bg {
        position: relative !important;
        height: 200px !important;
        opacity: 0.8 !important;
        border-bottom: 3px solid #e67e22;
    }
    .service-overlay {
        position: relative !important;
        height: auto !important;
        background: #000 !important;
        padding: 20px !important;
        border-top: none !important;
    }
    .tech-card {
        height: auto !important;
        overflow: visible !important; 
        padding: 20px !important;
    }
    .tech-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .tech-icon {
        margin-bottom: 15px;
    }
    
    /* BEZPIECZNIK DLA SŁÓW: Wymuszamy łamanie na mobile, 
       jeśli JS z jakiegoś powodu nie zmniejszy ich wystarczająco */
    h1, h2, h3, h4, .service-title, .about-title-premium {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        width: 100%;
    }

    html, body { max-width: 100% !important; overflow-x: hidden !important; }
    .container, .section { padding-left: 15px !important; padding-right: 15px !important; width: 100% !important; box-sizing: border-box !important; }
    .partner-card { min-width: 0 !important; width: 100% !important; }
}

/* --- PASEK COOKIES --- */
.cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background: #0f0f0f; border-top: 1px solid #e67e22; padding: 20px 5%; z-index: 9999; display: flex; justify-content: space-between; align-items: center; transition: bottom 0.5s ease-in-out; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); }
.cookie-banner.show { bottom: 0; }
.cookie-text { font-size: 0.9rem; color: #ccc; max-width: 80%; }
.cookie-btn { background: #e67e22; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: 700; white-space: nowrap; }
.cookie-btn:hover { background: #d35400; }
@media (max-width: 768px) { .cookie-banner { flex-direction: column; gap: 15px; text-align: center; } .cookie-text { max-width: 100%; } }