/* --- ZMIENNE CSS --- */
:root {
    --primary-color: #3C4DA7;
    --primary-hover: #26347c;
    --accent-color: #5b72df;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --bg-light: #f4f6fa;
    --dark-bg: #11141c; 
    --footer-bg: #0a0c11; 
    --divider: #eef0f6;
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    background-color: var(--white);
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.container-fluid-custom { width: 95%; max-width: 1400px; margin: 0 auto; padding: 0 15px; }

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Typografia i elementy pomocnicze */
.text-center { text-align: center; }
.text-accent { color: var(--accent-color) !important; }
.mt-20 { margin-top: 20px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.bg-light { background-color: var(--bg-light); }
.box-shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.box-shadow-heavy { box-shadow: 0 15px 40px rgba(0,0,0,0.08); }

.section-padding { padding: 100px 0; }
.subtitle { display: block; font-size: 0.9rem; font-weight: 700; color: var(--primary-color); letter-spacing: 2px; margin-bottom: 5px; text-transform: uppercase; }
.section-title h2 { font-size: 2.8rem; font-weight: 800; color: var(--text-dark); margin-bottom: 15px; line-height: 1.2; }
.subtitle-text { font-size: 1.1rem; color: var(--text-light); max-width: 700px; margin: 0 auto 40px; }

.divider-left { width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); margin: 15px 0 30px; border-radius: 2px; }
.divider.center { width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); margin: 15px auto 30px; border-radius: 2px; }

/* Przyciski */
.btn-primary, .btn-cta-nav, .btn-outline-white {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 35px; border-radius: 50px;
    font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px;
    transition: var(--transition-fast); cursor: pointer;
}

.btn-primary { background-color: var(--primary-color); color: var(--white); box-shadow: 0 10px 20px rgba(60, 77, 167, 0.25); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 15px 25px rgba(60, 77, 167, 0.35); }

.btn-cta-nav { background-color: var(--primary-color); color: var(--white); padding: 12px 25px; }
.btn-cta-nav:hover { background-color: var(--primary-hover); }

.btn-outline-white { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline-white:hover { background-color: var(--white); color: var(--primary-color); }

/* --- NAGŁÓWEK I MENU --- */
#main-header {
    background-color: var(--white); width: 100%; z-index: 1000;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06); position: fixed; top: 0; left: 0;
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.logo img { height: 45px; }

.main-nav ul { display: flex; flex-direction: row; gap: 20px; align-items: center; }
.main-nav > ul > li { position: relative; } 
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); display: flex; align-items: center; }
.main-nav a:hover { color: var(--primary-color); }

/* Kolor linku ARBURG */
.main-nav a.arburg-link {
    color: #10b880; /* Wskazany kolor z logo Arburga */
    font-weight: 700;
}
.main-nav a.arburg-link:hover {
    color: #0d9668; /* Nieco ciemniejszy przy najeździe */
    text-shadow: 0 0 8px rgba(16, 184, 128, 0.2);
}

/* Plakietka "Wkrótce" */
.badge-soon {
    background-color: #ff4757;
    color: var(--white);
    font-size: 0.6rem;
    padding: 3px 6px;
    border-radius: 12px;
    margin-left: 6px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.4);
    transition: var(--transition-fast);
}
.store-link:hover .badge-soon { background-color: var(--primary-color); }

.dropdown { padding: 10px 0; }
.dropdown i { font-size: 0.75rem; margin-left: 5px; transition: transform 0.3s; }
.dropdown:hover > a { color: var(--primary-color); }
.dropdown:hover > a i { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute; top: 100%; left: 0; width: 280px;
    background-color: var(--white); border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); opacity: 0; visibility: hidden;
    transform: translateY(15px); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100; padding: 10px 0; display: block !important; 
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { display: block !important; width: 100%; }
.dropdown-menu a { display: block !important; padding: 12px 25px; font-weight: 500; font-size: 0.9rem; color: var(--text-light); border-bottom: 1px solid var(--divider); white-space: normal; }
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu a:hover { background-color: var(--bg-light); color: var(--primary-color); padding-left: 32px; }

.hamburger-menu { display: none; font-size: 1.8rem; cursor: pointer; color: var(--primary-color); }

/* --- SLIDER HERO --- */
#hero-slider { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; justify-content: center; }
.slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(17, 20, 28, 0.8) 0%, rgba(60, 77, 167, 0.6) 100%); z-index: 1; }
.slide.active { opacity: 1; }
.slide-content { position: relative; z-index: 2; max-width: 850px; color: var(--white); text-align: center; }
.slide-content h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.slide-content p { font-size: 1.25rem; margin-bottom: 40px; font-weight: 300; opacity: 0.9; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* --- NOWOCZESNA SEKCJA O NAS --- */
.grid-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { font-size: 1.05rem; color: var(--text-light); margin-bottom: 20px; }
.about-features { margin: 30px 0; }
.about-features li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-weight: 600; color: var(--text-dark); }
.about-features i { color: var(--primary-color); font-size: 1.3rem; }

.about-image-wrapper { position: relative; }
.image-frame { position: relative; border-radius: 20px; padding: 20px; background: var(--white); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.image-frame .main-img { border-radius: 15px; width: 100%; object-fit: cover; }
.experience-badge { position: absolute; bottom: -20px; left: -20px; background: var(--primary-color); color: var(--white); padding: 25px 30px; border-radius: 15px; display: flex; align-items: center; gap: 15px; box-shadow: 0 15px 30px rgba(60, 77, 167, 0.4); }
.experience-badge .years { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.experience-badge .text { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* --- SEKCJA: TECHNOLOGIE I KOMPETENCJE --- */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.tech-card {
    background: var(--white); padding: 40px 25px; border-radius: 15px;
    text-align: center; transition: var(--transition-fast);
    border-bottom: 4px solid transparent; position: relative;
    overflow: hidden;
}
.tech-card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--primary-color); box-shadow: 0 15px 35px rgba(60, 77, 167, 0.1); }
.tech-icon {
    width: 80px; height: 80px; background: rgba(60, 77, 167, 0.05); color: var(--primary-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin: 0 auto 20px; transition: var(--transition-fast);
}
.tech-card:hover .tech-icon { background: var(--primary-color); color: var(--white); transform: scale(1.1); }
.tech-card h4 { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: 15px; }
.tech-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }

/* --- SEKCJA SKLEPU ARBURG --- */
#arburg-store { background-color: var(--bg-light); padding: 0 0 100px 0; }
.arburg-banner { 
    background: var(--white); 
    padding: 60px; 
    border-radius: 20px; 
    border-left: 6px solid var(--primary-color); 
    position: relative; 
    overflow: hidden; 
}
.arburg-banner::after { 
    content: '\f07a'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
    position: absolute; 
    right: 5%; 
    bottom: -15%; 
    font-size: 18rem; 
    color: rgba(60, 77, 167, 0.03); 
    z-index: 0; 
    pointer-events: none;
}
.arburg-content { position: relative; z-index: 2; max-width: 850px; }
.arburg-content h2 { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; font-size: 2.5rem; }
.inline-arburg-logo { height: 40px; object-fit: contain; }
.arburg-content p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 25px; line-height: 1.8; }
.arburg-content strong { color: var(--text-dark); font-weight: 700; }

/* --- PROCES NAPRAWY --- */
.dark-section { background-color: var(--dark-bg); color: var(--white); }
.dark-section .section-title h2 { color: var(--white); }
.dark-section .subtitle-text { color: rgba(255,255,255,0.7); }

.process-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 50px; }
.process-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 40px 25px;
    border-radius: 15px; text-align: left; position: relative; transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}
.process-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.06); border-color: var(--primary-color); box-shadow: 0 10px 30px rgba(60, 77, 167, 0.15); }
.step-number { font-size: 3.5rem; font-weight: 800; color: rgba(255,255,255,0.05); position: absolute; top: 15px; right: 20px; line-height: 1; }
.process-card h4 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 15px; position: relative; z-index: 2; }
.process-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); position: relative; z-index: 2; line-height: 1.6; }
.process-card h4::before { content: ''; display: block; width: 12px; height: 12px; background: var(--primary-color); border-radius: 50%; margin-bottom: 15px; box-shadow: 0 0 15px var(--primary-color); }

/* --- CTA PARALLAX --- */
.parallax-section { 
    position: relative; 
    background-image: url('../images/about.jpeg'); 
    background-attachment: fixed; 
    background-size: cover; 
    background-position: center; 
    padding: 120px 0; 
}
.cta-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(17,20,28,0.9), rgba(60,77,167,0.8)); z-index: 1; }
.cta-content-relative { position: relative; z-index: 2; color: var(--white); }
.cta-content-relative h2 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.cta-content-relative p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }
.cta-btns { display: flex; gap: 30px; justify-content: center; align-items: center; }
.phone-cta { font-size: 2.2rem; font-weight: 800; color: var(--white); display: flex; align-items: center; gap: 15px; }

/* --- STOPKA --- */
footer { background-color: var(--footer-bg); color: rgba(255,255,255,0.6); padding: 80px 0 20px; }
.grid-four { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 50px; }
.filter-white { filter: brightness(0) invert(1); opacity: 0.9; height: 45px; margin-bottom: 20px; }
.footer-col.about p { margin-bottom: 15px; font-size: 0.95rem; }

.privacy-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.6); font-weight: 500; transition: var(--transition-fast); margin-top: 10px; }
.privacy-link i { color: var(--primary-color); }
.privacy-link:hover { color: var(--white); transform: translateX(5px); }

.footer-col h4 { color: var(--white); margin-bottom: 25px; text-transform: uppercase; font-size: 1rem; font-weight: 700; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 12px; font-size: 0.95rem; }
.footer-col.contact-info li { display: flex; align-items: flex-start; gap: 15px; }
.footer-col.contact-info i { color: var(--primary-color); margin-top: 5px; font-size: 1.1rem; }
.footer-col a:hover { color: var(--white); padding-left: 5px; }

.footer-bottom { margin-top: 60px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; }
.flex-footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.dev-info a { font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 1px; }
.dev-info a:hover { color: var(--white); }

/* --- SCROLL TOP --- */
#scrollTopBtn { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 100; border: none; background-color: var(--primary-color); color: var(--white); cursor: pointer; width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; transition: var(--transition-fast); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
#scrollTopBtn:hover { background-color: var(--primary-hover); transform: translateY(-5px); }

/* --- ANIMACJE --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- RWD --- */
@media (max-width: 1200px) {
    .process-cards { grid-template-columns: repeat(3, 1fr); } 
}
@media (max-width: 1024px) {
    .grid-two-cols { grid-template-columns: 1fr; gap: 40px; }
    .experience-badge { padding: 15px 20px; }
    .experience-badge .years { font-size: 2rem; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .grid-four { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .arburg-banner { padding: 40px; }
    
    .main-nav a { font-size: 0.85rem; }
    .main-nav ul { gap: 15px; }
}
@media (max-width: 768px) {
    .process-cards { grid-template-columns: 1fr; } 
    .tech-grid { grid-template-columns: 1fr; } 
    .arburg-banner { padding: 30px; }
    .arburg-content h2 { font-size: 1.8rem; }
    .arburg-banner::after { display: none; } 
    
    .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white); box-shadow: 0 15px 30px rgba(0,0,0,0.1); padding: 0; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: var(--transition-fast); }
    .main-nav.active { visibility: visible; opacity: 1; transform: translateY(0); }
    .main-nav > ul { flex-direction: column; gap: 0; align-items: stretch; }
    .main-nav > ul > li > a { display: block; font-size: 1rem; padding: 18px 20px; border-bottom: 1px solid var(--divider); }
    
    .badge-soon { display: inline-block; margin-top: 0; }
    
    .dropdown { padding: 0; }
    .dropdown-menu { position: static; box-shadow: none; padding: 0; background: var(--bg-light); visibility: visible; opacity: 1; transform: none; display: none !important; border-radius: 0; width: 100%; }
    .dropdown.active .dropdown-menu { display: block !important; }
    .dropdown-menu a { padding: 12px 20px 12px 40px !important; border-bottom: 1px solid #e0e0e0; }

    .hamburger-menu { display: block; }
    .btn-cta-nav { display: none; }
    .slide-content h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .grid-four { grid-template-columns: 1fr; }
    .cta-btns { flex-direction: column; gap: 20px; }
    .parallax-section { background-attachment: scroll; } 
}
/* --- STYLE DLA PODSTRON (np. O Nas) --- */
.page-hero {
    position: relative;
    width: 100%;
    height: 40vh; /* Niższy baner niż na głównej */
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px; /* Miejsce na przypięte menu */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(17, 20, 28, 0.85) 0%, rgba(60, 77, 167, 0.7) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.active-link {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

/* Dostosowanie dla mobile */
@media (max-width: 768px) {
    .page-hero { height: 35vh; min-height: 300px; margin-top: 60px; }
    .page-hero-content h1 { font-size: 2.2rem; }
    .page-hero-content p { font-size: 1rem; }
}

/* --- KARUZELA LOGOTYPÓW PLC --- */
.logo-slider {
    background: transparent;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Wygładzanie na krawędziach (gradienty) */
.logo-slider::before,
.logo-slider::after {
    background: linear-gradient(to right, rgba(244, 246, 250, 1) 0%, rgba(244, 246, 250, 0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    top: 0;
}

.logo-slider::before {
    left: 0;
}

.logo-slider::after {
    right: 0;
    transform: rotateZ(180deg);
}

.logo-slide-track {
    display: flex;
    width: calc(250px * 12); /* Zależne od ilości logotypów (tu: 6 logotypów * 2 kopie = 12 elementów) */
    animation: scrollLogos 25s linear infinite;
}

.logo-slide-track:hover {
    animation-play-state: paused; /* Zatrzymuje się po najechaniu myszką */
}

.logo-slide {
    width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
}

.logo-slide img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6); /* Elegancki szary wygląd */
    transition: var(--transition-fast);
}

/* Kolor powraca po najechaniu */
.logo-slide img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Animacja przesuwania */
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); } /* Przesunięcie o połowę szerokości całości (6 elementów) */
}

/* RWD dla karuzeli i gridu na tej stronie */
@media (max-width: 768px) {
    .logo-slider::before,
    .logo-slider::after { width: 50px; }
    .logo-slide { width: 150px; padding: 0 15px; }
    .logo-slide-track { width: calc(150px * 12); animation: scrollLogosMobile 20s linear infinite; }
    @keyframes scrollLogosMobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-150px * 6)); }
    }
    
    .tech-grid[style*="grid-template-columns: repeat(3, 1fr);"] {
        grid-template-columns: 1fr !important;
    }
}

/* --- DYNAMICZNY HERO BANER NA PODSTRONIE --- */
.page-hero-dynamic {
    position: relative;
    width: 100%;
    height: 40vh; /* Niższy niż na głównej, ale wyższy niż page-hero na innych podstronach */
    min-height: 400px;
    margin-top: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dynamic-background-track {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.dynamic-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Płynne przenikanie */
}

.dynamic-slide.active {
    opacity: 1;
}

.hero-overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(17, 20, 28, 0.9) 0%, rgba(60, 77, 167, 0.6) 100%);
    z-index: 2;
}

@media (max-width: 768px) {
    .page-hero-dynamic { height: 35vh; min-height: 350px; margin-top: 60px; }
    .page-hero-dynamic .dynamic-slide { background-attachment: scroll; } /* Disable parallax on mobile */
}
/* --- STRONA KONTAKTOWA --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Lewa mniejsza, prawa większa na formularz */
    gap: 50px;
    align-items: flex-start;
}

.contact-info-block {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
}

.contact-details-list {
    margin-top: 30px;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-details-list .icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(60, 77, 167, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.details-text strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.details-text span, .details-text a {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.details-text a:hover {
    color: var(--primary-color);
    font-weight: 600;
}

/* NOWOCZESNY FORMULARZ */
.contact-form-block {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
}

.modern-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.modern-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-form .form-group.full-width {
    flex: 100%;
}

.modern-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0.7;
}

.modern-form input[type="text"],
.modern-form input[type="tel"],
.modern-form select {
    width: 100%;
    padding: 14px 15px 14px 45px; /* Miejsce na ikonę */
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--bg-light);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.modern-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--bg-light);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
    resize: vertical;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(60, 77, 167, 0.1);
    background-color: var(--white);
}

/* Dostosowanie ikony strzałki dla elementu SELECT */
.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.select-wrap::after {
    content: '\f107'; /* FontAwesome chevron down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 18px;
    font-size: 1rem;
    border: none;
}

/* RWD dla formularza */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .modern-form .form-row { flex-direction: column; gap: 15px; }
    .contact-form-block { padding: 30px 20px; }
    .contact-info-block { padding: 30px 20px; }
}
/* --- ZAKŁADKA SKLEP ARBURG --- */
.store-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar / Kategorie */
.sidebar-widget {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 12px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 6px;
}

.category-list a:hover, .category-list a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
}

.category-list a.active {
    border-left: 3px solid var(--primary-color);
}

.category-list .count {
    background: #eef0f6;
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
}

/* Produkty Prawa Strona */
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.store-info-badge {
    background: rgba(16, 184, 128, 0.1);
    color: #10b880;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 200px;
    background: #fff;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.cat-electronics { background-color: #f39c12; }
.cat-hydraulics { background-color: #3498db; }
.cat-pneumatics { background-color: #9b59b6; }

.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-availability {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.in-stock { color: #10b880; }
.on-request { color: #f39c12; }

.product-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    background: var(--bg-light);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.product-price .netto {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
}

.product-price .brutto {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.btn-store {
    display: block;
    text-align: center;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.btn-store:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* RWD Sklepu */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .store-layout { grid-template-columns: 1fr; gap: 30px; }
    .store-header { flex-direction: column; gap: 15px; text-align: center; }
    .products-grid { grid-template-columns: 1fr; }
}
/* --- EFEKT LUPY (E-COMMERCE ZOOM) --- */
.product-image img {
    max-height: 100%;
    object-fit: contain;
    cursor: crosshair; /* Zmienia kursor na celownik, co sugeruje powiększenie */
}

.zoom-preview-box {
    display: none;
    position: fixed; /* Pływa po ekranie */
    width: 450px; /* Rozmiar okna powiększenia */
    height: 450px;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    pointer-events: none; /* Kursor przez to przenika, nie blokuje myszki */
    background-repeat: no-repeat;
}