@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Base & Reusable Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    margin-bottom: 60px;
    padding-top: 30px; 
}

.title-wrapper {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
}

.pre-title {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 5px;
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* W sekcji .guarantee-section tytuł ma pozostać na środku */
.guarantee-section .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.btn {
    display: inline-block;
    margin-top: auto;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(110%);
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    top: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 15px 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1F8D4F;
}

.nav-link .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 5px;
}

.social-media {
    display: flex;
    gap: 20px;
}

.social-media a {
    font-size: 1.2rem;
    color: #555;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #1F8D4F;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 10px 0;
    list-style: none;
    width: 200px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    top: 120%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #555;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
    color: #1F8D4F;
}

/* === NOWE STYLE DLA MENU MOBILNEGO (ukryte na desktopie) === */
.hamburger {
    display: none;
    z-index: 1002;
}
.mobile-sidebar {
    display: none;
}
.mobile-overlay {
    display: none;
}

/* --- Offer Section --- */
.offer-section {
    padding: 150px 0 100px;
    background-color: #fff;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.offer-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.offer-card.popular {
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(31, 141, 79, 0.3);
}

.offer-card.popular h3, .offer-card.popular .price, .offer-card.popular li, .offer-card.popular i {
    color: #fff;
}

.offer-card.popular .btn {
    background: #fff;
    color: #1F8D4F;
}

.offer-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.offer-card .price {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.offer-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.offer-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #555;
}

.offer-card li i {
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 5px;
}

/* --- Guarantee Section --- */
.guarantee-section {
    padding: 100px 0;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.guarantee-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.guarantee-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    height: 3rem; /* Stała wysokość dla wszystkich ikon */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style dla custom SVG ikony */
.guarantee-icon.custom-svg-icon {
    background: none; /* Usuń gradient z kontenera */
    color: transparent; /* Reset color */
}

.guarantee-icon.custom-svg-icon img {
    width: 3rem; /* Taki sam rozmiar jak font-size innych ikon */
    height: 3rem;
    object-fit: contain; /* Zachowaj proporcje ikony */
    display: block; /* Usuń domyślne marginesy obrazka */
}

.guarantee-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
    min-height: 2.6rem; /* Rezerwuje miejsce na 2 linie tekstu */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.3;
}

.guarantee-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* --- Contact/Footer Section --- */
.contact-section {
    padding: 100px 20px;
    color: #f9f9f9;
    background-color: #333;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.newsletter-side h3, .contact-info-side h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.newsletter-side p, .contact-info-side p {
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #444;
    color: #fff;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: #ccc;
}

.newsletter-form .btn {
    align-self: flex-start;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-social-media {
    display: flex;
    gap: 25px;
}

.footer-social-media a {
    font-size: 1.5rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-social-media a:hover {
    color: #1F8D4F;
}

/* === CTA Banner (niska sekcja ze zdjęciem w tle) === */
.cta-banner {
    position: relative;
    min-height: 400px;              /* Twoja nowa wysokość */
    display: flex;
    align-items: center;
    background-image: url('../photos/Nie czekaj.jpg'); /* <-- Twoje zdjęcie */
    background-size: cover;
    background-position: 60% 30%;       /* 🔥 ważne – trzyma obraz od góry */
    background-repeat: no-repeat;
    margin: 40px 0 60px;
}


.cta-banner__overlay {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.25) 50%,
        rgba(0,0,0,0.10) 100%
    ); /* subtelny overlay dla czytelności tekstu */
    pointer-events: none;
}

.cta-banner__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;  /* lewa treść + prawa z przyciskiem */
    gap: 24px;
    align-items: center;
    padding: 28px 20px;               /* niski padding */
}

.cta-banner__overtitle {
    margin: 0 0 6px 0;
    font-weight: 700;
    letter-spacing: .04em;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;               /* zielony gradient jak w reszcie */
}

.cta-banner__title {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 600;
    color: #ffffff;                   /* biały, jak prosisz */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.btn--cta {
    background: linear-gradient(135deg, #1F8D4F, #0C5D30); /* zielony */
    color: #fff;
    border-radius: 999px;
    padding: 12px 28px;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(31,141,79,.28);
}
.btn--cta:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
}

/* Drobne korekty responsywne, by była „niska” i czytelna */
@media (max-width: 992px) {
    .cta-banner__title { font-size: 1.45rem; }
}
@media (max-width: 768px) {
    .cta-banner {
        min-height: 220px;
    }
    .cta-banner__inner {
        grid-template-columns: 1fr;   /* układ pionowy na mobile */
        gap: 16px;
        padding: 22px 16px;
    }
    .cta-banner__right { 
        display: flex; 
        justify-content: flex-start; 
    }
    .btn--cta { padding: 12px 24px; }
}

/* =========================
   FOOTER - DESKTOP
   ========================= */
.footer-main {
    background-color: #2a2a2a;
    color: #e0e0e0;
    padding: 40px 50px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #444;
}

.footer-contact {
    text-align: left;
}

.footer-contact p {
    margin: 8px 0;
}

.footer-contact a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #1F8D4F;
}

.footer-social {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    justify-content: center;
}

.footer-social-link:hover {
    color: #1F8D4F;
}

.footer-social-link i {
    font-size: 1.1rem;
}

.footer-links {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1F8D4F;
}

.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding-top: 15px;
    margin-top: 30px;
    color: #999;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}