/* Zmienne CSS dla łatwego zarządzania kolorami i typografią */
:root {
    /* Udoskonilna paleta kolorów */
    --primary-red: #ca1d37; /* Nowa czerwień */
    --secondary-blue: #2e3b4c; /* Nowy granat */
    --accent-black: #1C1C1C; /* Czysta czerń dla kluczowych elementów (np. stopka) */
    --light-grey: #F5F5F5; /* Bardzo jasna szarość dla tła sekcji */
    --medium-grey: #666; /* Średnia szarość dla tekstu pomocniczego */
    --dark-grey: #333; /* Ciemna szarość dla głównego tekstu */

    --font-main: 'Lato', sans-serif; /* Jeden, spójny, bardzo czytelny font */

    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    /* Zaktualizowane cienie */
    --box-shadow-light: 0 5px 15px rgba(0,0,0,0.08);
    --box-shadow-medium: 0 10px 30px rgba(0,0,0,0.12);
    --transition-speed: 0.4s; /* Płynniejsze przejścia */
    --spacing-xl: 140px; /* Ekstra duże odstęty */
    --spacing-lg: 100px;
    --spacing-md: 60px;
    --spacing-sm: 30px;

    /* Nowe zmienne dla typografii */
    --h1-font-size: 5rem;
    --h2-font-size: 3.2rem;
    --h3-font-size: 2.4rem;
    --p-font-size: 1.05rem;
}

/* Podstawowe resetowanie i czcionki */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.65; /* Optymalna line-height dla czytelności */
    color: var(--dark-grey);
    background-color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased; /* Wygładzanie czcionek dla lepszej czytelności */
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

/* ---- NOWA SEKCJA: Animacje Globalne ---- */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(202, 29, 55, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 15px rgba(202, 29, 55, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(202, 29, 55, 0);
    }
}

@keyframes wobble {
  0%, 100% { transform: translateX(0%); }
  15% { transform: translateX(-15%) rotate(-5deg); }
  30% { transform: translateX(10%) rotate(3deg); }
  45% { transform: translateX(-8%) rotate(-3deg); }
  60% { transform: translateX(5%) rotate(2deg); }
  75% { transform: translateX(-2%) rotate(-1deg); }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}
/* ---- KONIEC NOWEJ SEKCJI ---- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main); /* Ujednolicony font, wagi decydują o hierarchii */
    margin-bottom: 1.2rem;
    color: var(--secondary-blue); /* Nagłówki w granacie */
    line-height: 1.2;
    text-rendering: optimizeLegibility;
    font-weight: 700; /* Domyślna waga dla nagłówków */
}

h1 { font-size: var(--h1-font-size); font-weight: 900; }
h2 { font-size: var(--h2-font-size); text-align: center; margin-bottom: var(--spacing-md); position: relative; }
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-red); /* Podkreślenie nagłówka w czerwieni */
    border-radius: 2px;
}
h3 { font-size: var(--h3-font-size); font-weight: 700; }
h4 { font-size: 1.8rem; font-weight: 600; margin-top: 1rem;}


p {
    margin-bottom: 1.2rem;
    font-size: var(--p-font-size);
    font-weight: 400; /* Bardziej czytelna waga */
    color: var(--medium-grey); /* Tekst akapitów w średniej szarości dla miękkości */
}

a {
    color: var(--secondary-blue); /* Domyślne linki granatowe */
    text-decoration: none;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-red); /* Akcent na hover w czerwieni */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Dostosowane globalne paddingi sekcji */
.section-padding {
    padding: var(--spacing-xl) 0; /* Standardowy padding, można dostosować */
}

.bg-light {
    background-color: var(--light-grey); /* Jasne tło sekcji */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e0e0e0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bg-dark {
    background-color: var(--secondary-blue); /* Ciemne tło sekcji (granat) */
    color: #fff;
}

.bg-dark h2 {
    color: #fff; /* Nagłówki na ciemnym tle białe */
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--medium-grey);
    font-size: 0.95rem;
}

.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.lead {
    font-size: 1.5rem;
    font-weight: 400; /* Bardziej czytelna waga */
    margin-bottom: 1.8rem;
    color: rgba(255,255,255,0.9); /* Jaśniejszy dla hero */
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: var(--border-radius-md);
    text-transform: uppercase;
    font-weight: 700; /* Grubsza waga */
    font-size: 1.05rem;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08); /* Lżejszy cień */
}

.btn:hover {
    transform: translateY(-3px); /* Zmniejszono efekt podniesienia dla subtelności */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* Zwiększono cień */
}

.btn:active {
    transform: translateY(-1px) scale(0.99); /* Subtelniejszy efekt active */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-red);
    color: #fff; /* Tekst jest biały */
}

.btn-primary:hover {
    background-color: #b0182f; /* Ciemniejszy odcień primary-red na hoverze */
    color: #fff; /* Tekst pozostaje biały dla lepszego kontrastu */
    box-shadow: 0 8px 20px rgba(202, 29, 55, 0.4); /* Cieplejszy cień */
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: var(--spacing-sm);
    /* Dodano border-color do transition dla płynnej zmiany */
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-blue); /* Wypełnia się granatowym */
    color: #fff; /* Tekst zostaje biały */
    border-color: var(--secondary-blue); /* Obwódka znika, stapiając się z tłem */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* Nowy cień */
}

/* Nagłówek */
.main-header {
    background-color: transparent;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: none;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.main-header.scrolled {
    background-color: rgba(46, 59, 76, 0.95);
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 75px;
    width: auto;
    transition: transform var(--transition-speed) ease;
}
.logo img:hover {
    transform: scale(1.05);
}

.main-nav {
    flex-grow: 1;
    text-align: center;
}

.nav-list {
    display: flex;
    justify-content: center;
    margin: 0;
}

.nav-list li {
    margin: 0 22px;
}

.nav-list a {
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    position: relative;
    padding-bottom: 8px;
    letter-spacing: 0.5px;
    transition: color var(--transition-speed) ease;
}

.main-header.scrolled .nav-list a {
    color: #fff;
}

.nav-list a::before, .nav-list a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    transform-origin: right;
    transform: scaleX(0);
}
.nav-list a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}
.nav-list a:hover {
    color: var(--primary-red);
}

/* Numer telefonu w prawym górnym rogu */
.top-phone {
    display: flex;
    align-items: center;
    z-index: 1010;
}

.top-phone a {
    background-color: var(--primary-red);
    color: #fff;
    font-weight: 900;
    font-size: 1.25rem;
    padding: 10px 15px;
    border: 2px solid var(--primary-red);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: pulse 2.5s infinite;
}

.top-phone a:hover {
    background-color: #fff;
    color: var(--primary-red);
    transform: translateY(-2px);
    animation: none;
}

.main-header.scrolled .top-phone a {
    background-color: #fff;
    color: var(--primary-red);
}


.top-phone a i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Przycisk menu dla urządzeń mobilnych (Hamburger) - ZMIENIONE */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    width: 40px;
    height: 30px;
    position: relative;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.2s ease-in-out;
    position: absolute;
    left: 50%;
    top: 50%;
}

.menu-toggle .bar:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-9px);
}
.menu-toggle .bar:nth-child(2) {
    transform: translate(-50%, -50%);
}
.menu-toggle .bar:nth-child(3) {
    transform: translate(-50%, -50%) translateY(9px);
}

.main-header.scrolled .menu-toggle .bar {
    background-color: #fff;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translate(-50%, -50%) rotate(135deg);
}
.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}
.menu-toggle.open .bar:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-135deg);
}


/* Sekcja Hero */
.hero-section {
    position: relative;
    height: 105vh;
    min-height: 900px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 0;
}

.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Upewnij się, że to jest ustawione! */
    z-index: 0;
}

/* Podstawowe style slajdu */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    /* Domyślne przejścia dla wszystkich slajdów, które będą modyfikowane */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out, clip-path 1s ease-in-out;
    z-index: 0; /* Domyślnie na spodzie */
}

/* Aktywny slajd */
.hero-slide.active {
    opacity: 1;
    z-index: 1; /* Aktywny slajd jest na wierzchu */
}

/* ------- Definicje konkretnych przejść ------- */

/* Fade (domyślny) */
/* Jeśli wybrany, po prostu aktywujemy slajd, a domyślne transition opactiy działa */


/* Transition: Slide Left (Solid Push) */
.hero-slide.transition-solid-push {
    transform: translateX(100%); /* Slajd zaczyna poza ekranem po prawej */
}
.hero-slide.active.transition-solid-push {
    transform: translateX(0%); /* Wsuwa się z prawej */
}


/* Transition: Tile Reveal (Uproszczony z clip-path) */
.hero-slide.transition-tile-reveal {
    /* Początkowy stan - ukryty jako mały kwadrat w lewym górnym rogu */
    clip-path: inset(0% 100% 100% 0%); /* Start from top-left corner as 0% width/height */
    opacity: 1; /* Musi być widoczne, żeby clip-path działał */
    /* Upewnij się, że przejście dla clip-path jest zdefiniowane */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out, clip-path 1.5s ease-in-out; /* Dłuższe dla efektu ujawnienia */
}
.hero-slide.active.transition-tile-reveal {
    /* Końcowy stan - ujawniony w pełni */
    clip-path: inset(0% 0% 0% 0%); /* Reveals fully */
    opacity: 1;
}


/* Overlay i treść */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)); /* Zwiększone wartości */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    max-width: 1000px;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 8vw, 5.8rem); /* Responsywny H1 */
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
    letter-spacing: -1px;
}

.wave-bottom-hero {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8vmax;
    overflow: hidden;
    z-index: 4;
    color: #ffffff;
}

.wave-bottom-hero svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 1.8rem;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0; /* Domyślnie ukryte */
}

/* Pokazuj strzałki nawigacyjne na hoverze na kontenerze slidera */
.hero-section:hover .hero-slider-nav {
    opacity: 1;
}

.hero-slider-nav:hover {
    background-color: var(--primary-red);
    transform: translateY(-50%) scale(1.05);
}

.hero-slider-nav.prev-slide { left: 15px; }
.hero-slider-nav.next-slide { right: 15px; }


/* Animacje przy przewijaniu */
.animate-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Separatory fal */
.wave-separator {
    position: relative;
    width: 100%;
    height: 8vmax;
    display: block;
    overflow: hidden;
    z-index: 2;
    margin-top: -1px;
    padding-bottom: 0;
}

.wave-separator svg {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Sekcja O nas */
.about-section {
    padding-top: var(--spacing-lg);
}
.about-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.about-image {
    min-width: 300px;
    max-width: 550px;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
}


.about-text {
    flex: 2;
    min-width: 350px;
    max-width: 750px;
}

.about-text h3 {
    color: var(--primary-red);
    margin-bottom: 1.8rem;
}


.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    text-align: center;
    align-items: stretch;
}

.highlight-item {
    background-color: #fff;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
    border-top: 4px solid var(--secondary-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.highlight-item:hover {
    transform: translateY(-8px); /* Subtelniejszy ruch */
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    border-color: var(--primary-red);
}

.highlight-item h4 {
    margin-bottom: 0.8rem;
    margin-top: 0.8rem;
    line-height: 1.3;
}

.highlight-item p {
    margin-bottom: 0;
    flex-grow: 1;
    line-height: 1.5;
}


.icon-xl {
    font-size: 4.5rem;
    color: var(--primary-red);
    margin-bottom: 0;
    margin-top: 0;
}

/* Sekcja Usługi */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-item {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-red), var(--secondary-blue));
    transition: height 0.3s ease, background 0.3s ease;
}
.service-item:hover::before {
    height: 8px; /* Zamiast 10px, subtle */
}

.service-item:hover {
    transform: translateY(-8px); /* Subtelniejszy ruch */
    box-shadow: var(--box-shadow-medium);
}

.service-item h3 {
    color: var(--secondary-blue);
    margin-bottom: 1.2rem;
}

.service-icon {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 1.8rem;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.service-item:hover .service-icon {
    transform: translateY(-15px) scale(1.15) rotate(-8deg);
}

/* Sekcja Jak działamy? */
.how-we-work-section {
    background-color: var(--secondary-blue);
    color: #fff;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.how-we-work-section h2 {
    color: #fff;
}
.how-we-work-section h2::after {
    background-color: var(--primary-red);
}

.how-we-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.how-we-work-container {
    position: relative;
}

.how-we-work-container::before {
    content: '';
    position: absolute;
    top: 50%; /* Center vertically with steps */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* Width of the line */
    height: 4px;
    background-color: rgba(255,255,255,0.2); /* Base color of the line */
    z-index: 0;
    pointer-events: none;
    display: none; /* Domyślnie ukryta na małych ekranach, widoczna tylko na desktop */
}

.how-we-work-container.is-visible::before {
    animation: drawLine 1.5s ease-out forwards; /* Animacja rysowania linii */
}

.how-we-work-container::after { /* Filled portion of the line */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0%; /* Start at 0 width */
    height: 4px;
    background-color: var(--primary-red); /* Color of the drawn line */
    z-index: 1;
    pointer-events: none;
    display: none; /* Domyślnie ukryta, widoczna tylko na desktop */
}

@keyframes fillLine {
    to {
        width: 80%;
    }
}


.work-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md);
    position: relative;
    z-index: 2; /* Ensure steps are above the line */
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 4px solid var(--secondary-blue); /* Solid border for contrast */
}

.work-step h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.work-step p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
}

/* Sekcja Licznik */
.counter-section {
    background-color: var(--secondary-blue);
    color: #fff;
    padding: var(--spacing-xl) 0;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.counter-item {
    padding: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.counter-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.counter-number span {
    display: inline-block;
}

.counter-label {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Sekcja Portfolio */
.portfolio-section {
    padding-top: var(--spacing-lg);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
}

.portfolio-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(29, 53, 87, 0.95), rgba(29, 53, 87, 0.7));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: var(--spacing-md);
    text-align: left;
}

.portfolio-item:hover img {
    transform: scale(1.2);
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-item h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}
.portfolio-item p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0;
}
.view-project-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2.8rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item:hover .view-project-btn {
    opacity: 1;
}

/* Sekcja Referencje */
.testimonials-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-blue);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="6" height="6" viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%232D436D" fill-opacity="0.4" fill-rule="evenodd"%3E%3Cpath d="M5 0h1L0 6V5zM6 5v1H1z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.4;
    z-index: 0;
}
.testimonials-section .container {
    position: relative;
    z-index: 1;
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--spacing-sm) 60px;
    position: relative;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    flex-wrap: nowrap;
}

.testimonial-item {
    box-sizing: border-box;
    padding: var(--spacing-md);
    text-align: center;
    font-size: 1.25rem;
    font-style: italic;
    color: #fff;
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-item .quote {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    position: relative;
    font-weight: 300;
    line-height: 1.7;
    color: inherit;
    flex-grow: 1;
}

.testimonial-item .author {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-top: 1.5rem;
}
.testimonial-item .author span {
    color: #fff;
    font-weight: 400;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.35);
    color: #fff;
    border: none;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 1.8rem;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0; /* Hidden by default */
}
.testimonial-slider-container:hover .slider-nav { /* Show on hover of the container */
    opacity: 1;
}

.slider-nav:hover {
    background-color: var(--primary-red);
    transform: translateY(-50%) scale(1.05);
}
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }


/* SEKCJA KONTAKT */
.contact-section {
    background-color: #fff;
    padding-top: var(--spacing-lg);
}
.contact-content {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 400px;
    max-width: 550px;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
    background-color: var(--light-grey);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.contact-info:hover, .contact-form:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.contact-info h3, .contact-form h3 {
    color: var(--secondary-blue);
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--dark-grey);
    line-height: 1.4;
}

.contact-info a {
    color: var(--secondary-blue);
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.contact-info a:last-of-type {
    margin-bottom: 0;
}

.contact-info a:hover {
    color: var(--primary-red);
    transform: translateX(8px);
}

.contact-info i {
    margin-right: 15px;
    font-size: 1.6rem;
    color: var(--primary-red);
    width: 30px;
    height: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    vertical-align: middle;
}

.social-icons {
    margin-top: 35px;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.social-icons a {
    font-size: 2.2rem;
    margin-right: 0;
    color: var(--secondary-blue);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.social-icons a:hover {
    color: var(--primary-red);
}

.social-icons a i {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
.social-icons a:hover i {
    transform: scale(1.2) rotate(10deg);
}


.opening-hours {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 0;
    text-align: left;
}
.opening-hours h4 {
    font-size: 1.4rem;
    color: var(--secondary-blue);
    margin-bottom: 0.8rem;
    text-align: center;
}
.opening-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.opening-hours li {
    font-size: 1.05rem;
    color: var(--dark-grey);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 10px;
}
.opening-hours li:last-child {
    margin-bottom: 0;
}
.opening-hours li span {
    font-weight: 600;
    color: var(--secondary-blue);
    margin-left: 5px;
}

.contact-cta {
    display: none;
}

.map-container {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--light-grey);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
}
.map-title {
    color: var(--secondary-blue);
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
}


.contact-form form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--dark-grey);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 5px rgba(202, 29, 55, 0.2);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
    flex-grow: 1;
}

.contact-form button {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.contact-form button.sending {
    background-color: var(--secondary-blue); /* Zmień kolor podczas wysyłania */
    cursor: not-allowed;
}

.contact-form .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.contact-form .error-message.show {
    display: block;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.form-message.success { background-color: #d4edda; color: #155724; border: 1px solid #badbcc; opacity: 1;}
.form-message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; font-weight: 500; opacity: 1;}


/* ---- Nowy, zaawansowany Footer ---- */
.main-footer {
    background-color: var(--secondary-blue);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-lg) 0 0;
    font-size: 0.98rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
}

.footer-column h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center; /* Wyrównanie ikon z tekstem */
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-column ul li a:hover::before {
    content: '›';
    position: absolute;
    left: -5px;
    color: var(--primary-red);
}

.footer-column .footer-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
}

.footer-column .footer-description {
    line-height: 1.7;
    margin-bottom: 1.5rem;
        color: rgba(255, 255, 255, 0.9); /* Zwiększony kontrast dla opisu */

}

.footer-social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    margin-right: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
    color: #fff;
    transform: scale(1.2) translateY(-2px); /* Delikatne podniesienie i powiększenie */
}

.footer-column .fa-map-marker-alt,
.footer-column .fa-phone-alt,
.footer-column .fa-envelope {
    color: var(--primary-red);
    margin-right: 10px;
    margin-top: 0; /* Usunięte aby flexbox działał prawidłowo */
    width: 20px;
}

.footer-bottom {
    background-color: var(--accent-black);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .footer-nav ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.footer-bottom .footer-nav a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .footer-nav a:hover {
    color: #fff;
}


/* Scroll to top button */
#scrollTopBtn {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: var(--primary-red);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-5px); /* Delikatne podniesienie na hoverze */
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Przycisk telefonu na mobile */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 998;
    background-color: var(--primary-red);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: pulse 2.5s 1s infinite;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.mobile-call-btn:hover {
    background-color: var(--secondary-blue);
    animation: none;
    transform: scale(1.1);
}


/* RESPONSYWNOŚĆ */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    :root {
        --h1-font-size: 4.5rem;
        --h2-font-size: 2.8rem;
        --h3-font-size: 2.2rem;
    }
    .nav-list li { margin: 0 15px; }
}

@media (max-width: 991px) {
    .main-header {
        padding: 10px 0;
        background-color: rgba(46, 59, 76, 0.95);
        box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    }
    .logo img {
        height: 65px;
    }

    @keyframes slideInLeft {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }

    .nav-list {
        display: none;
        flex-direction: column;
        background-color: var(--secondary-blue);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: 0 5px 15px rgba(0,0,0,0.4);
        z-index: 999;
        padding-top: 100px;
    }

    .nav-list.active {
        display: flex;
        animation: slideInLeft 0.4s forwards;
    }

    .nav-list li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-list a {
        padding: 20px 30px;
        display: block;
        text-align: left;
        font-size: 1.3rem;
        color: #fff;
    }
    .nav-list a::after, .nav-list a::before { display: none; }
    .menu-toggle { display: flex; }

    .top-phone {
        display: none;
    }

    .mobile-call-btn {
        display: flex;
    }

    .header-content {
        justify-content: space-between;
    }
    .logo { order: 1; }
    .main-nav { order: 2; flex-grow: 0; }
    .menu-toggle { order: 3; }

    .testimonial-item {
        width: 100%;
        margin-right: 0;
        flex-basis: 100%;
    }
    .testimonial-slider {
        width: auto;
    }
    .testimonial-slider-container {
        max-width: 900px;
    }

    .hero-section {
        height: 90vh;
        min-height: 700px;
    }
    .hero-content h1 {
        font-size: 3.2rem;
        line-height: 1.2;
    }

    .how-we-work-container::before,
    .how-we-work-container::after {
        display: none; /* Hide line on mobile */
    }
}
@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-column ul {
        align-items: center;
    }
    .footer-column .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 350px;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .container { padding: 0 20px; }
    :root {
        --h1-font-size: 2.5rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.8rem;
        --p-font-size: 1rem;
    }
    .hero-section {
        height: 85vh;
        min-height: 600px;
    }
    .hero-content h1 {
        font-size: var(--h1-font-size);
        line-height: 1.3;
    }
    .btn { padding: 14px 28px; font-size: 0.95rem; }
    .social-icons a { font-size: 1.8rem; }
    .contact-info p, .contact-info a { font-size: 0.9rem; }
    .contact-info i { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .logo img { height: 55px; }
    .section-padding { padding: 60px 0; }
    .container { padding: 0 15px; }
    h2 { font-size: 1.8rem; }
}


/* NOWE STYLE I POPRAWKI */

/* Poprawka dla linków w portfolio */
a[data-fancybox] {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Styl dla aktywnego linku w nawigacji */
.nav-list a.active {
    color: var(--primary-red);
}

.nav-list a.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Połączenie kroków w sekcji "Jak działamy?" */
@media (min-width: 992px) {
    .how-we-work-container::before,
    .how-we-work-container::after {
        display: block; /* Show line on desktop */
    }
    .how-we-work-container.is-visible::after {
        animation: fillLine 1.5s ease-out forwards;
    }
}

/* Style dla gwiazdek w sekcji opinii */
.testimonial-rating {
    color: #FFC107;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-item > .fa-quote-left {
    display: none;
}

/* Animacja kołysania dla ikon */
.highlight-item:hover .icon-xl {
    animation: wobble 0.8s ease-in-out;
}

.contact-info a:hover i {
    animation: wobble 0.8s ease-in-out;
}

/* Unikalny separator strzałkowy nad stopką */
.arrow-separator {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    margin-bottom: -1px;
    background-color: #ffffff;
}

.arrow-separator svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.arrow-separator .shape-fill {
    fill: var(--secondary-blue);
}