/* Kolory marki z PDF [cite: 95-100] */
:root {
    --c-red: #F08482;
    --c-orange: #F7AC6F;
    --c-yellow: #FEE17E;
    --c-green: #AAD29A;
    --c-blue: #63C3D1;
    --c-gray: #485156;
    --c-text: #485156;
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--c-text);
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 0;
    position: relative;
    overflow-x: hidden;
    /* Ukrywa elementy wychodzące poza ekran */
}

/* Tło - latające kształty  */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 15%;
    /* Proporcjonalne zaokrąglenie - mniejsze kwadraty = mniejszy radius */
    opacity: 0.6;
    /* Lekka przezroczystość, żeby nie dominowały */
}

/* Animacja pływania */
@keyframes float {

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

    50% {
        transform: translateY(-25px) rotate(5deg);
    }
}

/* --- DEFINICJA 8 KWADRATÓW --- */
/* Stare (s1-s4) */
.s1 {
    width: 80px;
    height: 80px;
    background: var(--c-red);
    top: 10%;
    left: 5%;
    animation: float 6s infinite ease-in-out;
}

.s2 {
    width: 120px;
    height: 120px;
    background: var(--c-blue);
    bottom: 15%;
    right: 5%;
    animation: float 8s infinite ease-in-out;
    animation-delay: 1s;
}

.s3 {
    width: 50px;
    height: 50px;
    background: var(--c-yellow);
    top: 20%;
    right: 15%;
    animation: float 5s infinite ease-in-out;
}

.s4 {
    width: 90px;
    height: 90px;
    background: var(--c-green);
    bottom: 10%;
    left: 20%;
    animation: float 7s infinite ease-in-out;
    animation-delay: 0.5s;
}

/* Nowe (s5-s8) - dodane dla większej dynamiki */
.s5 {
    width: 60px;
    height: 60px;
    background: var(--c-orange);
    top: 45%;
    left: 8%;
    animation: float 9s infinite ease-in-out;
    animation-delay: 2s;
}

.s6 {
    width: 110px;
    height: 110px;
    background: var(--c-green);
    top: 8%;
    right: 8%;
    animation: float 7.5s infinite ease-in-out;
    animation-delay: 1.5s;
    opacity: 0.4;
}

.s7 {
    width: 45px;
    height: 45px;
    background: var(--c-red);
    bottom: 35%;
    right: 12%;
    animation: float 6.5s infinite ease-in-out;
    animation-delay: 3s;
}

.s8 {
    width: 75px;
    height: 75px;
    background: var(--c-blue);
    top: 60%;
    right: 35%;
    animation: float 8.5s infinite ease-in-out;
    animation-delay: 0.2s;
    opacity: 0.3;
}

.s9 {
    width: 55px;
    height: 55px;
    background: var(--c-yellow);
    top: 75%;
    left: 5%;
    animation: float 7s infinite ease-in-out;
    animation-delay: 1.2s;
    opacity: 0.5;
}

.s10 {
    width: 95px;
    height: 95px;
    background: var(--c-red);
    top: 5%;
    right: 25%;
    animation: float 8s infinite ease-in-out;
    animation-delay: 2.5s;
    opacity: 0.35;
}

.s11 {
    width: 40px;
    height: 40px;
    background: var(--c-orange);
    bottom: 25%;
    left: 12%;
    animation: float 5.5s infinite ease-in-out;
    animation-delay: 0.8s;
}

.s12 {
    width: 70px;
    height: 70px;
    background: var(--c-green);
    top: 35%;
    right: 6%;
    animation: float 6s infinite ease-in-out;
    animation-delay: 3.2s;
    opacity: 0.5;
}


/* Kontener główny */
.card {
    background: white;
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 550px;
    width: 100%;
    border-bottom: 6px solid var(--c-yellow);
    z-index: 10;
    /* Zawsze nad kwadratami */
}

/* STYL LOGO SVG */
.logo-wrapper {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.logo-wrapper img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

h1 {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--c-gray);
}

.slogan {
    color: var(--c-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.desc {
    font-size: 1.05rem;
    line-height: 1.5;
}

.consent-text {
    width: 100%;
    font-size: 0.75rem;
    color: #999;
    margin-top: 10px;
    line-height: 1.4;
}

.consent-text a {
    color: var(--c-blue);
    text-decoration: none;
}

.consent-text a:hover {
    text-decoration: underline;
}

/* Marki */
.brands {
    margin-top: 30px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.brands p {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
}

.brands-list {
    font-weight: 700;
    color: var(--c-gray);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Link FB */
.fb-link {
    display: block;
    margin-top: 20px;
    color: var(--c-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.fb-link:hover {
    text-decoration: underline;
}

/* Polityka prywatności */
.policy-card {
    max-width: 700px;
    text-align: left;
}

.policy-card h1 {
    text-align: center;
    margin-bottom: 25px;
}

.policy-content section {
    margin-bottom: 20px;
}

.policy-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-gray);
    margin-bottom: 8px;
}

.policy-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.policy-content ul {
    margin: 10px 0;
    padding-left: 25px;
}

.policy-content li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: var(--c-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    /* Full-screen feel na mobile */
    body {
        padding: 0;
        background-color: white;
    }

    /* Kwadraciki na mobile - subtelne, przy krawędziach, NAD contentem */
    .bg-shapes {
        display: block;
        z-index: 100;
        pointer-events: none;
        /* Przepuszcza kliknięcia */
    }

    /* Ukryj większość kwadratów, zostaw tylko wybrane */
    .shape {
        display: none;
    }

    /* Mały czerwony - lewy górny róg, wystaje zza krawędzi */
    .s1 {
        display: block;
        width: 45px;
        height: 45px;
        top: 12px;
        left: -15px;
        opacity: 0.5;
        animation-duration: 5s;
    }

    /* Niebieski - prawy górny róg */
    .s3 {
        display: block;
        width: 35px;
        height: 35px;
        top: 25px;
        right: -10px;
        left: auto;
        background: var(--c-blue);
        opacity: 0.4;
        animation-duration: 6s;
    }

    /* Zielony - lewy dolny */
    .s4 {
        display: block;
        width: 50px;
        height: 50px;
        bottom: 60px;
        left: -18px;
        opacity: 0.45;
        animation-duration: 7s;
    }

    /* Pomarańczowy - prawy dolny */
    .s5 {
        display: block;
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 100px;
        left: auto;
        right: -12px;
        opacity: 0.5;
        animation-duration: 5.5s;
    }

    /* Żółty mały - gdzieś na dole po środku, ledwo widoczny */
    .s9 {
        display: block;
        width: 25px;
        height: 25px;
        top: auto;
        bottom: 20px;
        left: 30%;
        opacity: 0.35;
        animation-duration: 4s;
    }

    .card {
        padding: 40px 24px;
        padding-top: max(40px, env(safe-area-inset-top) + 20px);
        padding-bottom: max(40px, env(safe-area-inset-bottom) + 20px);
        border-radius: 0;
        box-shadow: none;
        border-bottom: none;
        min-height: 100vh;
        min-height: 100dvh;
        /* dynamic viewport height - lepsze na mobile */
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        z-index: 2;
        /* Content nad kwadracikami */
    }

    /* Żółty akcent na górze zamiast na dole */
    .card::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--c-yellow);
        z-index: 10;
    }

    h1 {
        font-size: 1.8rem;
    }

    .slogan {
        margin-bottom: 20px;
    }

    .desc {
        font-size: 1rem;
    }

    button {
        width: 100%;
    }

    .brands {
        margin-top: 25px;
    }

    .brands-list {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    /* Polityka prywatności - też full-screen */
    .policy-card {
        justify-content: flex-start;
        padding-top: max(30px, env(safe-area-inset-top) + 15px);
    }

    .policy-card h1 {
        font-size: 1.5rem;
    }

    .policy-content h2 {
        font-size: 1rem;
    }

    .site-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 15px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        background: white;
        z-index: 200;
        border-top: 1px solid #f0f0f0;
    }

    .card {
        padding-bottom: max(70px, env(safe-area-inset-bottom) + 50px);
    }
}

/* ==================== OPINIE CAROUSEL ==================== */
.reviews-section {
    margin-top: 30px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.reviews-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-gray);
    margin-bottom: 15px;
}

.google-icon {
    flex-shrink: 0;
}

.reviews-carousel {
    overflow: hidden;
    position: relative;
}

.reviews-track {
    display: flex;
    transition: transform 0.4s ease;
}

.review-card {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.review-stars {
    color: #FBBC05;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--c-text);
    margin-bottom: 12px;
    font-style: italic;
}

.review-text::before {
    content: '„';
    color: var(--c-yellow);
    font-style: normal;
    font-weight: 700;
}

.review-text::after {
    content: '"';
    color: var(--c-yellow);
    font-style: normal;
    font-weight: 700;
}

.review-author {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-blue);
    text-decoration: none;
}

.review-author:hover {
    text-decoration: underline;
}

/* Nawigacja karuzeli */
.reviews-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.reviews-nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--c-yellow);
    color: var(--c-gray);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.reviews-nav-btn:hover {
    background: var(--c-orange);
    transform: scale(1.1);
}

.reviews-dots {
    display: flex;
    gap: 6px;
}

.reviews-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reviews-dots .dot.active {
    background: var(--c-orange);
    transform: scale(1.2);
}

.reviews-dots .dot:hover:not(.active) {
    background: #bbb;
}

/* Mobile adjustments dla karuzeli */
@media (max-width: 480px) {
    .reviews-section {
        margin-top: 25px;
        padding-top: 15px;
    }

    .review-text {
        font-size: 0.85rem;
    }

    .reviews-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .reviews-dots .dot {
        width: 6px;
        height: 6px;
    }
}

/* Stopka */
.site-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    padding: 20px;
    margin-top: 20px;
}
