/* Reset CSS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --turquoise: #0CABA8;
    --blue: #1D78C1;
    --cyan: #00C9D0;
    --white: #F9FBFD;
    --ochre: #E9A825;
    --burnt-orange: #C85127;
    --light-gray: #F5F7FA;
    --text-dark: #2D3748;
    --text-light: #4A5568;
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'DM Sans', sans-serif;
    --accent-font: 'Bebas Neue', cursive;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: var(--body-font);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}
h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    letter-spacing: -0.01em;
    color: var(--blue);
}
h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--turquoise);
}
p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
}
a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.3s var(--ease-out-expo);
}
a:hover {
    color: var(--turquoise);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: var(--turquoise);
    color: white;
    font-family: var(--accent-font);
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    text-align: center;
    border: none;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--blue);
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out-expo);
    z-index: -1;
}
.btn:hover::before {
    transform: translateY(0);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(12, 171, 168, 0.2);
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.btn-secondary {
    background-color: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    font-family: var(--accent-font);
    font-weight: 400;
    text-transform: uppercase;
}
.btn-secondary::before {
    background-color: var(--blue);
}
.btn-secondary:hover {
    color: white;
    background-color: transparent;
}
.btn-secondary:hover::before {
    transform: translateY(0);
}
.btn-whatsapp {
    background-color: #25d366;
    color: white;
}
.btn-whatsapp::before {
    background-color: #128c7e;
}
.btn-whatsapp svg {
    margin-right: 0.5rem;
}
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease-in-out;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
}
.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: white;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
header {
    padding: 1.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(249, 251, 253, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-phone a {
    font-family: var(--heading-font);
    color: var(--turquoise);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}
.header-phone a:hover {
    color: var(--blue);
}
.header-phone svg {
    vertical-align: middle;
    margin-right: 0.5rem;
}
.logo {
    font-family: var(--accent-font);
    font-size: 1.75rem;
    color: var(--turquoise);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}
.logo svg {
    width: 36px;
    height: 36px;
    margin-right: 0.5rem;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-family: var(--heading-font);
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cyan);
    transition: width 0.3s var(--ease-out-expo);
}
.nav-links a:hover::after {
    width: 100%;
}
.hero {
    padding: 10rem 0 5rem;
    margin-top: -4rem;
    position: relative;
    overflow: hidden;
}
.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Podział na dwie kolumny: 2/3 dla tekstu, 1/3 dla obrazu */
    gap: 3rem;
    align-items: center;
}
.hero-text {
    position: relative;
    z-index: 2;
    order: 1; /* Tekst po lewej */
}
.hero-text h1 {
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    position: relative;
    white-space: pre;
    overflow: hidden;
    display: block;
}
.hero-text h1 span {
    color: var(--turquoise);
}
.hero-text p {
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Style for the portrait image on the right */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Sprawia, że kontener jest kwadratowy */
    border-radius: 8px; /* Zaokrąglone rogi */
    overflow: hidden;
    box-shadow: 5px 15px 30px rgba(0, 0, 0, 0.1);
    order: 2; /* Obraz po prawej */
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.hero-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Animacja dla zdjęcia hero */
.reveal-image.visible {
    opacity: 1;
    transform: scale(1);
}

.hero-accent {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: var(--ochre);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
}
.cta-subtitle {
    font-family: var(--body-font);
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}
.trust {
    padding: 5rem 0;
    background-color: var(--light-gray);
    position: relative;
}
.trust-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.trust-card {
    background-color: white;
    padding: 2.25rem;
    border-radius: 8px;
    box-shadow: 2px 7px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}
.trust-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--cyan);
}
.trust-card:nth-child(2)::before {
    background-color: var(--blue);
}
.trust-card:nth-child(3)::before {
    background-color: var(--turquoise);
}
.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 15px 30px rgba(0, 0, 0, 0.1);
}
.trust-card h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.trust-card svg {
    width: 36px;
    height: 36px;
    margin-right: 0.75rem;
    color: var(--cyan);
}
.trust-card:nth-child(2) svg {
    color: var(--blue);
}
.trust-card:nth-child(3) svg {
    color: var(--turquoise);
}
.testimonials {
    padding: 5rem 0;
}
.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.testimonial-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 2px 7px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}
.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
.testimonial-author {
    font-weight: bold;
    color: var(--blue);
}
.testimonial-rating {
    color: var(--ochre);
    margin-bottom: 1rem;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 5rem;
    color: var(--turquoise);
    opacity: 0.1;
    line-height: 1;
}
.faq {
    padding: 5rem 0;
}
.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
}
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.accordion-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--heading-font);
    background-color: var(--white);
    color: var(--text-dark); /* Poprawiony kolor tekstu */
    transition: background-color 0.3s;
}
.accordion-header:hover {
    background-color: var(--light-gray);
}
.accordion-header span {
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.accordion-item.active .accordion-header span {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background-color: var(--light-gray);
}
.accordion-content p {
    padding: 1.25rem 0;
    color: var(--text-dark); /* Poprawiony kolor tekstu */
}
.contact {
    padding: 5rem 0;
    position: relative;
}
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}
.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.contact p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.contact-form {
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 2px 7px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
}
.contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}
.form-group {
    margin-bottom: 1.75rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 201, 208, 0.1);
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-submit {
    text-align: center;
    margin-top: 0.5rem;
}
.map-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
    text-align: center;
}
.map-section h2 {
    margin-bottom: 1.5rem;
}
#map-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 5px 15px 30px rgba(0, 0, 0, 0.1);
}
footer {
    padding: 2.5rem 0;
    background-color: var(--text-dark);
    color: white;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-logo {
    font-family: var(--accent-font);
    font-size: 1.5rem;
    color: var(--cyan);
    letter-spacing: 0.05em;
}
.footer-info {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}
.footer-info .privacy-link {
    color: var(--turquoise);
    text-decoration: underline;
    margin-top: 0.5rem;
    display: inline-block;
}
.footer-info .privacy-link:hover {
    color: var(--cyan);
}
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}
.social-links a {
    color: var(--white);
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--turquoise);
}
.social-links svg {
    width: 24px;
    height: 24px;
}
/* Style dla banera RODO */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    z-index: 1001;
    display: none; /* Domyślnie ukryty */
    animation: fadeIn 0.5s ease-out;
}
.cookie-banner.visible {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}
.cookie-content h2 {
    color: var(--blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.cookie-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
    max-width: 600px;
}
.cookie-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}
.cookie-options .option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.cookie-options input[type="checkbox"] {
    margin-right: 0.5rem;
}
.cookie-options label {
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    font-family: var(--heading-font);
    font-size: 1.1rem;
}
.cookie-options .description {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}
.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
.cookie-buttons .btn {
    flex-grow: 1;
    max-width: 200px;
}

@media (min-width: 769px) {
    .hero-content {
        grid-template-columns: 2fr 1fr;
    }
    .hero-image-wrapper {
        align-self: start; /* Wyrównanie do góry w siatce */
    }
    .cookie-content {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        justify-content: space-between;
    }
    .cookie-text {
        flex-basis: 60%;
    }
    .cookie-buttons {
        flex-direction: column;
        justify-content: center;
        flex-grow: 0;
        gap: 0.75rem;
    }
    .cookie-buttons .btn {
        width: 100%;
    }
    .cookie-options {
        justify-content: flex-start;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-text {
        order: 2;
        text-align: center;
    }
    .hero-image-wrapper {
        order: 1;
        width: 180px; /* Zmniejszamy dla mobile */
        height: 180px; /* Zmniejszamy dla mobile */
        padding-top: 0; /* Usuwamy padding-top dla okrągłego obrazu */
        border-radius: 50%; /* Okrągły obraz na mobile */
        margin: 0 auto 1.5rem auto; /* Wyśrodkowanie */
    }
    .hero-image-wrapper img {
        position: static; /* Resetujemy pozycjonowanie absolutne */
    }
    .hero-text h1 {
        white-space: normal;
        border-right: none;
        animation: none;
    }
    .testimonial-card {
        flex: 0 0 100%;
    }
    .container {
        padding: 0 1.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-secondary {
        margin-top: 0.5rem;
    }
    .floating-whatsapp {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
    .cookie-buttons .btn {
        width: 100%;
        max-width: none;
    }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.hero-accent {
    animation: float 6s ease-in-out infinite;
}
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(12, 171, 168, 0.2);
    border-radius: 50%;
    border-top-color: var(--turquoise);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-text {
    margin-top: 1rem;
    color: var(--text-dark);
    font-family: var(--body-font);
}
.success-message {
    display: none;
    background-color: rgba(72, 187, 120, 0.1);
    color: #2F855A;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.organic-spacing-1 {
    margin-bottom: 2.1rem;
}
.organic-spacing-2 {
    margin-bottom: 1.75rem;
}
.organic-spacing-3 {
    margin-bottom: 2.3rem;
}
.organic-shadow-1 {
    box-shadow: 2px 7px 15px rgba(0, 0, 0, 0.08), -1px 2px 8px rgba(0, 0, 0, 0.05);
}
.organic-shadow-2 {
    box-shadow: 3px 9px 18px rgba(0, 0, 0, 0.06), -2px 3px 10px rgba(0, 0, 0, 0.04);
}
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.typewriter {
    overflow: hidden;
    border-right: .15em solid var(--turquoise);
    white-space: nowrap;
    letter-spacing: .05em;
    animation: 
        typing 3s steps(40, end) forwards,
        blink-caret .75s step-end infinite;
}
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--turquoise); }
}
.parallax {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}
.parallax-element {
    position: absolute;
    border-radius: 50%;
}
.parallax-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(12, 171, 168, 0.05);
    top: -100px;
    right: -100px;
}
.parallax-2 {
    width: 200px;
    height: 200px;
    background-color: rgba(29, 120, 193, 0.05);
    bottom: -50px;
    left: -50px;
}
.parallax-3 {
    width: 150px;
    height: 150px;
    background-color: rgba(233, 168, 37, 0.05);
    top: 50%;
    right: 10%;
}