/* ZałapTo landing - style strony glownej (1:1 z dawnego public/index.php) */
:root {
    --primary-color: #2563EB;
    --secondary-color: #F59E0B;
    --dark-bg: #111827;
    --text-color: #374151;
}

html, body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    max-width: 100%;
    overflow-x: hidden !important;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Poppins', sans-serif;
}

section {
    scroll-margin-top: 88px;
}

strong {
    font-weight: 700;
}

.navbar {
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-toggler {
    border: none;
    padding: 0;
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler:active {
    transform: scale(0.9);
}

.navbar-brand-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.navbar-brand-link:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 10px rgba(37, 99, 235, 0.3));
}
.navbar-brand {
    height: 3.5rem;
}
.nav-link { font-weight: 600; margin-left: 15px; color: #4B5563 !important; transition: 0.3s; }
.nav-link:hover { color: var(--primary-color) !important; }

.baza-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--secondary-color);
    background-color: transparent;
    background-image: none;
    border-color: var(--secondary-color);
    transition: 0.3s;
}

.baza-link:hover {
    color: white !important;
    background-color: var(--secondary-color);
    border-color: #b28536 !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        margin: 10px 15px;
        padding: 25px;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0,0,0,0.05);
        
        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: block !important;
    }

    .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    .navbar-nav .nav-item {
        text-align: center;
        margin-bottom: 12px;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
        color: var(--dark-bg);
        font-weight: 600;
        border-bottom: 1px solid #f8f9fa;
    }

    .navbar-nav .baza-link {
        font-size: 1.1rem;
        padding: 10px 0;
        font-weight: 600;
    }
    
    .navbar-nav .nav-link:hover {
        color: var(--primary-color);
        background-color: #f8f9fa;
        border-radius: 8px;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-top: 10px;
        display: block;
        padding: 12px;
    }
    
    .nav-buttons-mobile {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Przyciski */
.btn-main {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    transition: all 0.3s;
}
.btn-main:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}
.hero-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    transform: rotate(-2deg);
}
.hero-img:hover { transform: scale(1.02) rotate(-2deg); z-index: 0; }

.btn-sign {
    background-color: #ffffff;
    color: #1b1e21;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-sign:hover {
    background-color: #e1e1e1;
    color: #1b1e21;
}

.payment-icons-row img {
    height: 24px;
    width: auto;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.payment-icons-row img:hover {
    opacity: 1;
}

/* Tech Stack */
.tech-logo {
    height: 45px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.tech-box {
    padding: 25px 15px;
    border-radius: 12px;
    transition: 0.3s;
    background: #fff;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tech-box:hover {
    background: #f9fafb;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

/* Pricing Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card-header-custom {
    background: white;
    padding-bottom: 0;
    border: none;
}
.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-bg);
}
.price-tag span {
    font-size: 1rem;
    color: #6B7280;
    font-weight: 400;
}
.feature-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.bestseller-badge {
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

/* Formularz Zapisów */
.form-section {
    background-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.form-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: var(--text-color);
}
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    border: 1px solid #e5e7eb;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
}

/* Style komunikatów formularza */
.form-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}
.form-alert.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}
.form-alert.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Footer */
.footer-custom {
    background-color: #111827;
    color: #d1d5db;
    font-size: 0.9rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
    margin-top: 0; 
    border-top: none;
}

.footer-logo-link{
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-link:hover{
    transform: scale(1.05);
}

.footer-logo{
    height: 2.5rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: 0.3s;
}
.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-phone {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    display: block;
    margin-bottom: 0.2rem;
    text-decoration: none;
    transition: 0.3s;
}
.footer-phone:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-header {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
}

.social-icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}
.social-icon-circle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.company-details p { margin-bottom: 0.3rem; }

.zal-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 15px 20px;
    display: none; /* Domyślnie ukryty, pokazywany przez JS */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #e5e7eb;
    animation: slideUp 0.5s ease-out;
}
.zal-banner[hidden] { display: none !important; }
.zal-title { font-weight: 700; color: #111827; margin-bottom: 4px; }
.zal-content a { color: var(--primary-color); font-weight: 600; text-decoration: none; }

.zal-content {
    flex: 1;
    max-width: 800px;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
}

.zal-buttons {
    display: flex;
    gap: 10px;
}

.zal-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.zal-btn.accept {
    background-color: var(--primary-color);
    color: white;
}
.zal-btn.accept:hover {
    background-color: #1d4ed8;
}

.zal-btn.reject {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.zal-btn.reject:hover {
    background-color: #e5e7eb;
}
.zal-btn.settings {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.zal-btn.settings:hover {
    background-color: #eff6ff;
}
.zal-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 2px; }
/* Równorzędne wybory: te same wymiary dla "Tylko niezbędne" i "Akceptuję wszystkie" */
.zal-btn.accept, .zal-btn.reject { min-width: 160px; }

/* --- Okno ustawień cookies --- */
.zt-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(17, 24, 39, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.zt-consent-modal[hidden] { display: none !important; }
body.zt-consent-open { overflow: hidden; }
.zt-consent-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.zt-consent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.zt-consent-close {
    border: none; background: transparent; font-size: 1.75rem; line-height: 1; color: #6b7280; cursor: pointer; padding: 0 4px;
}
.zt-consent-close:hover { color: #111827; }
.zt-consent-row {
    display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
    padding: 14px 0; border-top: 1px solid #e5e7eb;
}
.zt-consent-name { font-weight: 700; color: #111827; margin-bottom: 2px; }
.zt-consent-name label { cursor: pointer; }
.zt-consent-desc { font-size: 0.85rem; color: #4b5563; line-height: 1.45; }
.zt-consent-desc code { font-size: 0.8em; color: #374151; background: #f3f4f6; padding: 1px 4px; border-radius: 4px; }
.zt-consent-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 600; color: #065f46; background: #d1fae5;
    border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle;
}
.zt-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid #e5e7eb; }

/* Przełącznik */
.zt-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; margin: 2px 0 0; }
.zt-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.zt-slider {
    position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; cursor: pointer; transition: background 0.2s;
}
.zt-slider::before {
    content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #ffffff; border-radius: 50%;
    transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.zt-switch input:checked + .zt-slider { background: var(--primary-color); }
.zt-switch input:checked + .zt-slider::before { transform: translateX(20px); }
.zt-switch input:focus-visible + .zt-slider { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 2px; }
.zt-switch.is-locked .zt-slider { background: #10b981; cursor: not-allowed; opacity: 0.85; }

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.shadow-primary-sm {
    box-shadow: 0 .5rem 1rem rgba(13, 110, 253, 0.15) !important;
}
.transition-hover {
    transition: all 0.3s ease;
}
.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}
.hover-border-primary:hover {
    border-color: var(--bs-primary) !important;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .hero-section { text-align: center; padding-top: 50px; }
    .hero-img { margin-top: 40px; width: 100%; }
    .nav-link { margin-left: 0; padding: 10px 0; }
    .zal-banner { flex-direction: column; text-align: center; padding: 20px; }
    .zal-buttons { width: 100%; justify-content: center; flex-wrap: wrap; }
    .zal-btn { flex: 1 1 45%; text-align: center; }
    .zal-btn.settings { flex-basis: 100%; order: 3; }
    .zt-consent-row { flex-direction: column; gap: 8px; }
    .zt-consent-actions .zal-btn { flex: 1 1 100%; }
}

[data-aos] {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.grecaptcha-badge { visibility: hidden !important; }

/* --- Podstrony prawne (regulamin, polityka, standardy) --- */
/* --- SPECYFICZNE STYLE DLA PODSTRON PRAWNYCH --- */
.legal-header {
    background-color: var(--dark-bg);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    background-image: linear-gradient(135deg, #111827 0%, #1e3a8a 100%);
}

.legal-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
}

.legal-content h2 {
    color: var(--dark-bg);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.legal-content h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content p+ul {
    margin-top: 0.3rem;
}

.legal-content p:has(+ ul) {
    margin-bottom: 0;
}

.legal-content p+ol {
    margin-top: 0.3rem;
}

.legal-content p:has(+ ol) {
    margin-bottom: 0;
}
