/* Reset i style bazowe */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: #f7f9fc; }
a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: 1100px; margin: auto; }

/* Header */
.header { background: #2b6cb0; color: white; padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; white-space: nowrap; }
.nav { display: flex; gap: 0.75rem; }
.nav a { color: white; font-weight: 500; padding: 0.3rem 0.6rem; border-radius: 6px; }
.nav a:hover { background: rgba(255,255,255,0.2); }
.hamburger { display: none; font-size: 2rem; cursor: pointer; }

/* Mobile menu slide-out */
.mobile-menu { position: fixed; top: 0; right: -260px; width: 260px; height: 100%; background: #2b6cb0; display: flex; flex-direction: column; padding: 3rem 1.5rem; transition: right 0.3s ease-in-out; z-index: 2000; }
.mobile-menu a { color: white; padding: 1.2rem 0; font-size: 1.3rem; border-bottom: 1px solid rgba(255,255,255,0.2); }
.mobile-menu .close-btn { position: absolute; top: 15px; right: 20px; font-size: 2.2rem; cursor: pointer; color: white; }
.mobile-menu.open { right: 0; }

/* Hero */
.hero { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1567427017947-545c5f8d16ad') no-repeat center/cover; color: white; padding: 5rem 1rem; text-align: center; }
.hero h1 { font-size: 2rem; margin-bottom: 1rem; }
.hero p { font-size: 1rem; margin-bottom: 1.5rem; }
.btn-primary { display: inline-block; background: linear-gradient(90deg, #ffb703, #fb8500); color: #111; padding: 1rem 2rem; border-radius: 30px; font-weight: bold; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); font-size: 1.1rem; }
.btn-primary:hover { transform: scale(1.05); }

/* Offers */
.offers-section { padding: 2rem 0; }
.offers-section h2 { text-align: center; margin-bottom: 2rem; font-size: 1.8rem; color: #2b6cb0; }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.offer-card { position: relative; background: rgba(255,255,255,0.98); backdrop-filter: blur(8px); border-radius: 20px; padding: 1.5rem; box-shadow: 0 8px 20px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; opacity: 0; transform: translateY(40px); }
.offer-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.offer-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 12px 28px rgba(0,0,0,0.15); }
.offer-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; flex-wrap: wrap; }
.offer-header img { width: 40px; height: 40px; object-fit: contain; }
.offer-card h3 { margin-bottom: 0.5rem; color: #2b6cb0; font-size: 1.2rem; }
.offer-card .amount, .offer-card .term { font-weight: bold; margin-bottom: 0.4rem; font-size: 0.95rem; }
.offer-card .desc { margin: 0.5rem 0 1.2rem; color: #555; font-size: 0.9rem; }
.btn-secondary { display: inline-block; background: linear-gradient(90deg, #2b6cb0, #1a4e80); color: white; padding: 0.8rem 1.4rem; border-radius: 12px; font-size: 1rem; font-weight: 500; transition: 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn-secondary:hover { transform: scale(1.05); }

.badge { position: absolute; top: -10px; right: -10px; background: #ffb703; color: #111; font-weight: bold; padding: 0.3rem 0.7rem; border-radius: 20px; font-size: 0.8rem; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }

/* About */
.about-section { background: #f4f9ff; padding: 2.5rem 1rem; text-align: center; }
.about-section h2 { color: #2b6cb0; margin-bottom: 2rem; font-size: 1.6rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.feature { background: white; padding: 1.5rem; border-radius: 14px; box-shadow: 0 3px 12px rgba(0,0,0,0.08); transition: transform 0.3s; }
.feature:hover { transform: translateY(-5px); }
.icon { font-size: 2rem; margin-bottom: 0.5rem; color: #2b6cb0; }

/* Contact */
.contact-section { padding: 2rem 1rem; text-align: center; }
.contact-section h2 { color: #2b6cb0; margin-bottom: 1rem; font-size: 1.6rem; }

/* Footer */
.footer { background: #2b6cb0; color: white; text-align: center; padding: 1.5rem; margin-top: 2rem; font-size: 0.9rem; }
.footer .socials { margin-top: 0.5rem; }
.footer .socials a { margin: 0 0.4rem; font-size: 1.3rem; transition: 0.3s; }
.footer .socials a:hover { opacity: 0.8; }

/* Mobile-first poprawki */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .hero { padding: 4rem 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .btn-primary { font-size: 1rem; padding: 0.9rem 1.4rem; }
  .offers-grid { grid-template-columns: 1fr; }
  .offer-card { padding: 1.2rem; }
  .offer-card h3 { font-size: 1.1rem; }
  .offer-card .amount, .offer-card .term { font-size: 0.9rem; }
  .offer-card .desc { font-size: 0.85rem; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 1.2rem; }
  .footer { font-size: 0.8rem; padding: 1.2rem; }
}


/* --- Poprawiony wygląd mobilny --- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .offer-card {
        width: 100%;
        padding: 25px 20px;
        text-align: center;
        border-radius: 20px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    }

    .offer-logo {
        max-width: 160px;
        margin: 0 auto 20px auto;
        display: block;
    }

    .btn {
        display: block;
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
        border-radius: 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    header {
        padding: 10px 20px;
    }

    footer {
        font-size: 0.9rem;
        padding: 20px 15px;
    }
}
