/* Zmienne kolorystyczne i bazowe ustawienia */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #ff6b00;
    --text-light: #f4f4f4;
    --text-dark: #333333;
    --bg-light: #ffffff;
    --bg-grey: #f9f9f9;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Nowoczesne, responsywne skalowanie kontenerów */
.container {
    width: min(90%, 1200px);
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================================ */
/* NAWIGACJA (Skalowanie i widoczność na mobile)                */
/* ============================================================ */
.navbar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo img {
    height: clamp(40px, 5vw, 50px);
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: clamp(10px, 2vw, 20px);
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    transition: 0.3s;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* ============================================================ */
/* SEKCJE OGÓLNE (Użycie clamp dla płynnego skalowania)         */
/* ============================================================ */
.section {
    padding: clamp(60px, 8vw, 100px) 0;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.subtitle {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    color: #666;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* Klasy pomocnicze (Utility classes brakujące w oryginalnym kodzie) */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: clamp(2rem, 5vw, 4rem); }
.bg-light { background-color: var(--bg-grey); }

/* ============================================================ */
/* SEKCJA O NAS                                                 */
/* ============================================================ */
.about-section {
    text-align: center;
    background-color: var(--bg-light);
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.about-list {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}
.about-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.about-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ============================================================ */
/* GRID (Produkty i Usługi - nowoczesny auto-fit)               */
/* ============================================================ */
.product-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 30px);
}

/* Karty */
.product-card, .service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover, .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Produkty wewnątrz */
.image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 45vh;
    object-fit: contain;
    display: block;
}
.image-wrapper {
    background: #f1f1f1;
}

.product-info {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-allegro {
    background-color: var(--accent-color);
    color: white;
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-allegro:hover {
    background-color: #e55a00;
}

/* ============================================================ */
/* USŁUGI WATERJET (Zoptymalizowane pod urządzenia mobilne)     */
/* ============================================================ */
.service-card {
    padding: 40px 20px;
    border-top: 4px solid var(--accent-color);
    justify-content: center;
}

.main-card .service-icon {
    color: var(--accent-color);
}

.material-list ul {
    margin-top: 20px;
    text-align: left;
}

.material-list li {
    font-size: 1.05rem;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}
.material-list li i {
    color: #007bff;
}

.btn-secondary {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #333;
}

/* Proces w punktach (steps) - responsywny CSS Grid zamiast sztywnego flex */
.process-steps {
    background: #ffffff;
    padding: clamp(30px, 5vw, 50px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.section-subheading {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin-bottom: 30px;
    color: #333;
}

.step-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.step-item {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background-color 0.3s;
    border: 1px solid #eee;
}
.step-item:hover {
    background: #f1f3f5;
}

.step-item h4 {
    color: #007bff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ============================================================ */
/* STOPKA                                                       */
/* ============================================================ */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    color: #ccc;
    transition: 0.3s;
}

.social-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
    .social-links {
        align-items: center;
    }
}


/* ============================================================ */
/* HERO SECTION (Oryginalna, zgodnie z prośbą, poprawiony syntax)*/
/* ============================================================ */
.hero {
    background: #111;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-wrapper {
    width: min(95%, 1500px);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    padding: 40px;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
    text-align: center;
    color:  #e9ecef;
    max-width: 900px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background:  #e9ecef;
    color: #1a1a1a;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero .btn-primary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media(max-width: 1024px) {
    .hero-wrapper { gap: 40px; }
    .hero-image img { max-width: 480px; }
}

@media(max-width: 768px) {
    .hero { padding: 40px 0; }
    .hero-wrapper { flex-direction: column; text-align: center; }
    .hero-content { text-align: center; }
    .hero-image { order: -1; justify-content: center; }
    .hero-image img { width: 80%; max-width: 350px; }
}


/* ============================================================ */
/* SEKCJA REALIZACJE (Poprawiona responsywność slidera)         */
/* ============================================================ */
.realizations-section {
    background: #f9f9f9;
}

.slider-container {
    position: relative;
    width: min(75%, 1600px);
    margin: auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    background: #000;
}

.slides-wrapper {
    display: flex;
    transition: transform .5s ease;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    display: block;
    background: #f9f9f9;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(42px, 4vw, 60px);
    height: clamp(42px, 4vw, 60px);
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    cursor: pointer;
    z-index: 10;
    transition: .3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    transform: translateY(-50%) scale(1.08);
    background: #fff;
}

.slider-prev { left: 15px; }
.slider-next { right: 15px; }

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: 0.3s;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

@media(max-width: 768px) {
    .slider-container { width: 100%; border-radius: 0; }
    .slider-dots { bottom: 10px; }
}

@media (max-width: 900px) and (orientation: landscape) {
    .slide img { height: 75vh; aspect-ratio: auto; }
}
/* ========================================== */
/* SEKCJA O NAS - NOWE STYLE                  */
/* ========================================== */

.about-section {
    text-align: center;  
    background-color: #e9ecef;
    padding: 60px 20px; /* Margines wewnętrzny, aby tło miało oddech */
    border-radius: 12px; /* Opcjonalnie: delikatnie zaokrąglone rogi sekcji */
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    color: #333333;
    line-height: 1.7;
}

.about-content p {
    margin-bottom: 15px;
}

/* Idealne wyrównanie w sekcji O Nas (CSS Grid) */
.about-features {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.about-features li {
    display: grid;
    /* Kolumny: Ikona (20px) | Tytuł (210px) | Myślnik (15px) | Reszta opisu */
    grid-template-columns: 20px 210px 15px 1fr; 
    align-items: start;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-features li i {
    color: #27ae60;
    margin-top: 4px; /* Drobna korekta wysokości ptaszka */
}

.about-features .dash {
    color: #888888;
    text-align: center;
}

/* Wersja na telefony - płynny układ bez sztywnych kolumn */
@media (max-width: 768px) {
    .about-features li {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .about-features .dash {
        display: none; /* Ukrywamy myślnik na małych ekranach dla czystszego wyglądu */
    }
}
/* Tło dla sekcji Produkty */
#products {
    background-color: #e9ecef;
    padding: 60px 20px;
}

/* Upewnij się, że karty produktów są białe – dzięki temu świetnie "wyskoczą" z tła */
.product-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Delikatny cień pod kartą */
}