/* =============== DESIGN TOKENS =============== */
:root {
    --primary-red: #C0101A;
    --primary-dark-red: #9a0c14;
    --primary-yellow: #FFC423;
    --primary-light-yellow: #fdf2c2;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --text-dark: #212529;
    --text-light: #ffffff;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Pally', sans-serif;
    --font-accent: 'Indie Flower', cursive;
    /* Może być uzyty do "Mango mówi" itp. */

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(194, 30, 37, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-pill: 50px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =============== RESET & BASE =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for sticky nav */
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}


h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
    font-family: var(--font-heading);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* =============== UTILITIES =============== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
}


.text-center {
    text-align: center;
}

.text-white {
    color: var(--text-light);
}

.mt-5 {
    margin-top: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.highlight-yellow {
    color: var(--primary-yellow);
}

/* =============== BUTTONS =============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(194, 30, 37, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark-red);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(194, 30, 37, 0.4);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    box-shadow: 0 8px 20px rgba(252, 209, 22, 0.4);
}

.btn-secondary:hover {
    background-color: #f7c100;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(252, 209, 22, 0.5);
    color: var(--text-dark);
}

.btn-nav {
    background-color: var(--primary-red);
    color: var(--bg-white);
    padding: 10px 20px;
}

.btn-nav:hover {
    background-color: var(--primary-dark-red);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.15rem;
}

/* =============== NAVBAR =============== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-red);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-base);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

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

.navbar.scrolled .navbar-container {
    padding: 5px 24px;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-yellow);
    transition: var(--transition-fast);
    border-radius: 2px;
}

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

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
}

/* =============== HERO SECTION =============== */
.hero {
    padding: 200px 100px 0px 0;
    background: linear-gradient(135deg, #fffcf5 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-red);
}


.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 40px;
}

.btn-hero {
    font-family: var(--font-heading);
    color: var(--primary-yellow) !important;
}

.hero-bubble {
    display: block;
    margin-top: 35px;
    margin-bottom: 100px;
    width: 100%;
    max-width: 300px;
    height: auto;
}

.hero-image {
    flex: 1.3;
    /* Jeszcze powiększamy pole pod zdjęcie ustawiając 1.3 */
    display: flex;
    justify-content: flex-end;
    /* Wyrównanie do prawej strony zamiast centrowania */
    position: relative;
}

.hero-main-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    object-position: right bottom;
    transform: scale(1.45) translate(35%, 4%);
    transform-origin: right bottom;
    display: block;
    transition: transform 0.5s ease;
    will-change: transform;
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

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

/* =============== POZNAJMY SIĘ (ABOUT ME) =============== */
.about-me {
    background: linear-gradient(to right, var(--primary-yellow) 50%, var(--primary-red) 50%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 992px) {
    .about-me {
        background: var(--primary-red);
    }
}

.about-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.about-image {
    flex: 1;
    background-color: var(--primary-yellow);
    padding: 0px 50px 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.about-image img {
    border-radius: var(--radius-md);
    transform: scale(1.35) translateX(-20px);
    transform-origin: bottom center;
    /* transform: rotate(-2deg) scale(1.15); */
    transition: var(--transition-base);
    max-width: 100%;
}

/* .about-image img:hover {
    transform: scale(1.4);
} */

.about-content {
    flex: 1;
    background-color: var(--primary-red);
    padding: 80px 60px;
    color: var(--text-light);
}


.about-content .section-title {
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.decor {
    position: absolute;
    width: 150px;
    z-index: 10;
    pointer-events: none;
}

.decor-1 {
    bottom: -30px;
    right: 10%;
    transform: rotate(15deg);
}

/* =============== OPINIE (REVIEWS) =============== */
.reviews {
    padding: 100px 0;
    background-color: var(--bg-white);
    position: relative;
}

/* =============== OPINIE (REVIEWS) SLIDER =============== */
.reviews-slider-container {
    position: relative;
    max-width: 100%;
    margin: 40px 0;
    padding: 0 60px;
}

.reviews-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.reviews-wrapper::-webkit-scrollbar {
    display: none;
}

.reviews-nav-mobile {
    display: none;
}

.review-card {
    flex: 0 0 350px;
    scroll-snap-align: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    background: #fff;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-red);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(119, 13, 19, 0.4);
    transition: var(--transition-base);
}

.slider-btn:hover {
    background-color: var(--primary-dark-red);
    transform: translateY(-50%) scale(1.1);
}

#prev-review {
    left: 0;
}

#next-review {
    right: 0;
}

@media (max-width: 992px) {
    .reviews-slider-container {
        padding: 0;
    }

    .slider-btn {
        position: static;
        transform: none;
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }

    .slider-btn:hover {
        transform: scale(1.1);
    }

    .reviews-slider-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .reviews-wrapper {
        width: 100%;
        order: 1;
    }

    .reviews-nav-mobile {
        order: 2;
        display: flex;
        gap: 20px;
        justify-content: center;
        margin-top: 16px;
    }

    #prev-review,
    #next-review {
        position: static;
        transform: none;
    }

    .review-card {
        flex: 0 0 260px;
    }

}

.review-card img {
    width: 100%;
    height: auto;
}

/* =============== KORZYŚCI (BENEFITS) =============== */
.benefits {
    padding: 100px 0;
    background-color: var(--primary-light-yellow);
    /* Jasnożółte tło */
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.benefit-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-base);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon-area {
    background-color: var(--primary-yellow);
    padding: 0;
    font-size: 3rem;
    overflow: hidden;
    line-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 220px;
}

.benefit-img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    object-position: bottom;
    display: block;
    transition: transform 0.4s ease;
}

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

.benefit-text-area {
    padding: 30px;
    background-color: var(--primary-red);
    color: var(--text-light);
    flex-grow: 1;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-yellow);
}

/* =============== KROKI ZAPISU (STEPS) =============== */
.steps {
    padding: 100px 0;
    position: relative;
}

.steps-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.steps-content {
    flex: 1;
}

.steps-intro {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: #555;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.steps-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    background-color: var(--primary-red);
    color: var(--bg-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(194, 30, 37, 0.3);
}

.step-text {
    font-size: 1.1rem;
    padding-top: 5px;
}

.steps-image {
    flex: 0 0 40%;
}

.steps-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}

/* =============== EBOOK =============== */
.ebook {
    background-color: var(--primary-red);
    padding: 100px 0 0px;
    color: var(--text-light);
    position: relative;
}

.ebook-container {
    display: flex;
    align-items: flex-end;
    gap: 60px;
}

.ebook-image {
    flex: 0 0 40%;
}

.ebook-image img {
    transform: rotate(0deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    max-height: 500px;
}

.ebook-content {
    flex: 1;
}

.ebook-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.ebook .section-title {
    color: var(--primary-yellow);
}

/* Fala na dole ebooka */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 70px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #222222;
    /* Przejście do footer'a (zmienimy na podpasowanie pod footer) */
}

/* =============== FINAL CTA & FOOTER =============== */
.final-cta {
    background-color: var(--bg-white);
    padding: 100px 0;
    margin-top: 0;
}

.final-cta-container {
    display: flex;
    align-items: flex-end;
    gap: 60px;
}

.final-cta-content {
    flex: 1;
}

.final-cta-image {
    flex: 0 0 40%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.final-cta-image img {
    max-width: 100%;
    height: auto;
}

.final-cta h2 {
    color: var(--text-dark);
}

.final-cta-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.final-cta-text {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 10px;
    max-width: 560px;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(252, 209, 22, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(252, 209, 22, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(252, 209, 22, 0);
    }
}

.footer {
    background-color: var(--primary-red);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info h3 {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: var(--primary-yellow);
    font-size: 0.9rem;
}

/* =============== RESPONSIVENESS =============== */
@media (max-width: 992px) {

    .hero-container,
    .steps-wrapper,
    .final-cta-container {
        flex-direction: column;
        text-align: center;
    }

    .ebook-container {
        flex-direction: column;
        text-align: center;
    }

    .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .final-cta-content {
        order: 1;
    }

    .final-cta-image {
        order: 2;
        justify-content: center;
        width: 80%;
        margin: 0 auto;
    }

    .final-cta-text {
        max-width: 100%;
    }

    .hero {
        padding: 130px 0 0 0 !important;
    }


    .hero-content {
        max-width: 100%;
        margin-bottom: 25px;
        padding-top: 5px;
    }



    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-bubble {
        margin: 15px auto 0 !important;
        max-width: 220px;
    }

    .hero-image {
        width: 100%;
        justify-content: center;
    }

    .hero-main-img {
        width: 100%;
        max-width: clamp(220px, 72vw, 320px);
        transform: none !important;
        margin: 0 auto;
    }


    .hero h1 {
        font-size: 1.7rem !important;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 1.45rem !important;
        margin-bottom: 1.2rem;
    }

    body,
    p,
    .about-text p,
    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-bottom: 25px;
    }

    .about-image {
        margin-top: 20px;
        background-color: var(--primary-yellow);
        padding: 20px 10px 0;
        display: flex;
        justify-content: center;
        overflow: hidden;
    }

    .about-image img {
        max-width: 100% !important;
        width: 100%;
        height: auto;
        margin: 0 auto;
        transform: none !important;
        transform-origin: bottom center;
    }

    .about-content {
        padding: 50px 20px;
    }

    .about-text p {
        text-align: left;
    }

    .steps-list li {
        text-align: left;
    }

    .steps-image {
        margin-top: 30px;
    }

    .review-card {
        flex: 0 0 240px;
        margin: 0 5px;
    }


    .reviews-slider-container {
        padding: 0 30px;
    }

    .slider-btn {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    #prev-review {
        left: 5px;
    }

    #next-review {
        right: 5px;
    }

    .reviews-nav-mobile {
        display: none;
    }

    .ebook-image {
        margin-bottom: 0px;
        width: 80%;
    }

    .decor-1 {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #C0101A !important;
        /* Force Brand Red */
        flex-direction: column;
        padding: 40px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999 !important;
        display: flex !important;
    }

    .nav-links.active {
        transform: translateY(0) !important;
    }

    .nav-links a {
        color: white !important;
        font-size: 1.3rem;
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
        margin-top: 20px;
    }

    .menu-toggle {
        display: block !important;
        font-size: 2.22rem !important;
        color: var(--primary-yellow) !important;
        background: transparent;
        border: none;
        cursor: pointer;
    }



    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* =============== JAMNIK BUBBLES =============== */
.jamnik-bubble {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    animation: floatingBubble 6s ease-in-out infinite;
    max-width: 280px;
}

@keyframes floatingBubble {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(2deg);
    }

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

.jamnik-bubble.pos-1 {
    top: -80px;
    right: 5%;
    width: 250px;
}

.jamnik-bubble.pos-2 {
    top: -120px;
    left: 2%;
    width: 280px;
}

.jamnik-bubble.pos-3 {
    bottom: -60px;
    left: 5%;
    width: 220px;
    z-index: 20;
}

.jamnik-bubble.pos-4 {
    top: 15%;
    right: 2%;
    width: 240px;
}

.jamnik-bubble.pos-5 {
    bottom: -40px;
    right: 5%;
    width: 260px;
    z-index: 20;
}

@media (max-width: 992px) {
    .jamnik-bubble {
        display: none;
        /* Ukrywamy dymki na mniejszych ekranach dla czytelności */
    }
}