:root {
    --accent: #22c55e;
    --dark: #0f1724;
    --muted: #6b7280;
    --bg: #f8fafc;
    --text-main: #1e293b;
    --text-secondary: #475569;
}

* {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #f5fbf7 0%, #f8fafc 100%);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* HEADER */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    z-index: 40;
    border-bottom: 1px solid rgba(15, 23, 36, 0.05);
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 56px;
    width: auto;
    border-radius: 8px;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--dark);
}

.logo-subtitle {
    font-size: 13px;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--dark);
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav a:not(.btn-main)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav a:hover:not(.btn-main)::after {
    width: 100%;
}


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

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
    z-index: 50;
}

/* HERO */
.hero-new {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 6vw;
    background: url('https://images.pexels.com/photos/31127615/pexels-photo-31127615.jpeg') center/cover no-repeat;
    color: white;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
}

.hero-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-new h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-new p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}


/* SEKCA USŁUG */
.services-modern {
    padding: 120px 6vw;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 50%, #f0f9f0 100%);
    position: relative;
    overflow: hidden;
    max-width: 100vw;
}

.services-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.services-modern .box-header {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--dark), #1e3a2d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
}

.services-modern .box-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #16a34a);
    margin: 20px auto 0;
    border-radius: 2px;
}

.description {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
    align-items: start;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid rgba(34, 197, 94, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #22c55e, #16a34a);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 64px rgba(34, 197, 94, 0.2);
    border-color: var(--accent);
}

.service-image {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 16px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.service-features span {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* CTA */
.cta-section {
    text-align: center;
}

/* Animowane liście */
.floating-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.leaf {
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(74, 222, 128, 0.3);
    clip-path: polygon(50% 0%, 0% 60%, 30% 100%, 70% 100%, 100% 60%);
}

.leaf-1 {
    top: 20%;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
}

.leaf-2 {
    top: 60%;
    right: 15%;
    animation: float2 8s ease-in-out infinite;
    animation-delay: -2s;
}

.leaf-3 {
    bottom: 30%;
    left: 20%;
    animation: float3 7s ease-in-out infinite;
    animation-delay: -1s;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 1;
    }
}

@keyframes float3 {
    0% {
        transform: translateX(0px) rotate(0deg);
    }

    100% {
        transform: translateX(40px) rotate(360deg);
    }
}

/* SEO TEXT */
.seo-text {
    padding: 80px 6vw;
    line-height: 1.7;
    color: #334155;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdfa 0%, #d1fae5 100%);
    max-width: 100vw;
}

.seo-text h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1e3a2d;
}

/* KONTAKT */
.contact-leaves {
    position: relative;
    overflow: hidden;
    padding: 100px 6vw;
    background: linear-gradient(180deg, #e0f2f1 0%, #f0faf5 100%);
    border-top: 2px solid #22c55e;
    max-width: 100vw;
}

.contact-leaves canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.contact-leaves form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 480px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.contact-leaves input,
.contact-leaves textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(30, 58, 45, 0.4);
    font-size: 15px;
    background: transparent;
    color: #1e3a2d;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.contact-info img {
    max-width: 200px;
}

.contact-info h3 {
    margin-bottom: 12px;
    color: #1e3a2d;
}

footer {
    padding: 24px 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    max-width: 100vw;
}

/* HELPERS */
.small {
    font-size: 13px;
    color: var(--muted);
}

/* RESPONSIVENESS */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .services-grid {
        gap: 24px;
    }

    .services-modern .box-header {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        gap: 32px;
    }

    .nav.nav-active {
        transform: translateX(0);
    }
    
    .nav a {
        font-size: 24px;
    }

    .hamburger-menu {
        display: block;
    }
    
    .hero-new h1 {
        font-size: 40px;
    }

    .hero-new p {
        font-size: 18px;
    }

    .services-modern {
        padding: 60px 4vw;
    }

    .services-modern .box-header {
        font-size: 32px;
    }

    .description {
        font-size: 18px;
    }

    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Reduced gap for smaller screens */
    }

    .contact-leaves {
        padding: 60px 4vw; /* Adjusted padding */
    }

    .contact-leaves form,
    .contact-info {
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }

    .contact-logo-wrapper {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-new h1 {
        font-size: 32px;
    }

}


/* GALERIA */
.gallery-section {
    padding: 80px 6vw;
    max-width: 100vw;
    overflow: hidden;
}

.gallery-section h2 {
    font-size: 32px;
    margin-bottom: 6px;
    color: #1e3a2d;
    text-align: center;
}

.gallery-section .small {
    color: var(--muted);
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 36, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    transform: scale(0.95);
}

.lightbox.visible .lightbox-img {
    transform: scale(1);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Arial', sans-serif;
    z-index: 10000;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 28px;
    line-height: 48px;
}
.lightbox-prev, .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 24px;
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
     .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    .lightbox-prev, .lightbox-next {
        width: 44px;
        height: 44px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}
body.no-scroll {
    overflow: hidden;
}

.gallery-item.hidden {
    display: none;
}

#show-more-button.hidden {
    display: none;
}

.btn-main {
    background: var(--accent);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-main:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {

    background: rgba(255, 255, 255, 0.25);

    transform: translateY(-2px);

}



.btn-nav-call {

    padding: 10px;

}



.gallery-controls {

    text-align: center;

    margin-top: 40px;

}



#show-more-button {

    display: none;

}



.seo-list {

    padding-left: 20px;

}



#leavesCanvas {

    position: absolute;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;

}



.contact-wrapper {

    display: flex;

    flex-wrap: wrap;

    gap: 40px;

    justify-content: center;

    align-items: flex-start;

}



.contact-form {

    flex: 1;

}



.contact-form-title {

    margin-bottom: 24px;

    font-size: 28px;

    font-weight: 700;

    color: #1e3a2d;

}



.contact-logo-wrapper {

    text-align: center;

}

@media (min-width: 1201px) {
    .services-modern {
        padding-left: 2vw;
        padding-right: 2vw;
    }
    .services-modern .container {
        max-width: none;
    }
}