body {
    background-size: cover;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-gradient {
    position: relative;
    overflow: hidden;
}


.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
}

.car-card {
    background: white;
    border-radius: 32px;
    border: 1px solid #e0f2fe;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.car-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.25);
}

.btn-premium-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 1rem; /* 2xl */
    transition: all 0.3s ease;
}

.btn-premium-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4);
}

.search-input {
    background: white;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-input:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: url('../images/tlo.png') no-repeat center top;
    background-size: cover;
    z-index: -1;
    will-change: transform;
}

@media (max-width: 768px) {
    .parallax-bg {
        position: absolute;
        width: 100%;
        height: 100vh;
        background-attachment: scroll;
        background-size: cover;
        will-change: auto;
        pointer-events: none;
    }
}

.content-layer {
    position: relative;
    z-index: 1;
}

/* ===== Odświeżenie wyglądu strony głównej (hero/nav/reveal) ===== */

/* Overlay kontrastu na zdjęciu tła (lepsza czytelność tekstu hero) */
.parallax-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2,20,40,0.45) 0%, rgba(2,20,40,0.18) 35%, rgba(2,20,40,0.0) 70%);
    pointer-events: none;
}

/* Gradientowy nagłówek hero (amber -> biel -> sky) */
.hero-headline {
    background: linear-gradient(100deg, #fbbf24 0%, #ffffff 45%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Animacja wejścia (staggered fade-up) */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}
.animate-in { opacity: 0; animation: heroFadeUp .7s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .38s; }
.delay-4 { animation-delay: .54s; }

/* Scroll-reveal (IntersectionObserver dodaje .is-visible) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Sticky nav po przewinięciu (ciemny glass, biały tekst pozostaje czytelny) */
nav.nav-scrolled {
    position: fixed;
    padding-top: .6rem;
    padding-bottom: .6rem;
    background: rgba(8, 22, 40, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.18);
    transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}

/* Badge dostępności na karcie auta */
.car-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .25rem .6rem;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
}
.car-badge--ok { background: rgba(16,185,129,0.92); color: #fff; }
.car-badge--no { background: rgba(100,116,139,0.92); color: #fff; }

/* Badge oszczędności na karcie auta – gradient + przesuwający się blask */
.savings-badge {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: linear-gradient(90deg, #10b981, #22c55e, #14b8a6);
    box-shadow: inset 0 0 0 1px rgba(167, 243, 208, 0.45),
                0 8px 18px -8px rgba(16, 185, 129, 0.55);
    animation: savingsGlow 3s ease-in-out infinite;
}
/* tekst i ikona ponad blaskiem – pełna czytelność */
.savings-badge > * {
    position: relative;
    z-index: 2;
}
.savings-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    transform: translateX(-160%) skewX(-20deg);
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
    animation: savingsShine 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}
@keyframes savingsShine {
    0%   { transform: translateX(-160%) skewX(-20deg); }
    55%  { transform: translateX(260%)  skewX(-20deg); }
    100% { transform: translateX(260%)  skewX(-20deg); }
}
@keyframes savingsGlow {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(167, 243, 208, 0.45), 0 8px 18px -8px rgba(16, 185, 129, 0.50); }
    50%      { box-shadow: inset 0 0 0 1px rgba(167, 243, 208, 0.70), 0 8px 28px -6px rgba(16, 185, 129, 0.80); }
}

/* === Treść regulaminu (publiczny modal) ===
   Przywraca semantykę HTML skasowaną przez Tailwind Preflight i ujednolica
   wygląd ze stylem edytora TinyMCE (notifications-templates.js content_style). */
.regulations-content {
    color: #374151;
    line-height: 1.625;
    font-size: 0.95rem;
    word-break: break-word;
}
.regulations-content p {
    margin-bottom: 1rem;
    line-height: 1.625;
}
.regulations-content ul {
    list-style-type: disc;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}
.regulations-content ol {
    list-style-type: decimal;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}
.regulations-content li {
    margin: 0.5rem 0;
    padding-left: 0.5rem;
}
.regulations-content ul ul,
.regulations-content ol ol,
.regulations-content ul ol,
.regulations-content ol ul {
    margin: 0.5rem 0;
}
.regulations-content h1,
.regulations-content h2,
.regulations-content h3,
.regulations-content h4,
.regulations-content h5,
.regulations-content h6 {
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.regulations-content h1 { font-size: 1.75rem; }
.regulations-content h2 { font-size: 1.5rem; }
.regulations-content h3 { font-size: 1.25rem; }
.regulations-content h4 { font-size: 1.125rem; }
.regulations-content h5 { font-size: 1rem; }
.regulations-content h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: .03em; }
.regulations-content :first-child { margin-top: 0; }
.regulations-content strong,
.regulations-content b { font-weight: 700; }
.regulations-content em,
.regulations-content i { font-style: italic; }
.regulations-content u { text-decoration: underline; }
.regulations-content a {
    color: #0ea5e9;
    text-decoration: underline;
    font-weight: 600;
}
.regulations-content a:hover { color: #0284c7; }
.regulations-content blockquote {
    border-left: 4px solid #bae6fd;
    background: #f0f9ff;
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;
    color: #475569;
    border-radius: 0 .5rem .5rem 0;
}
.regulations-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}
.regulations-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.regulations-content th,
.regulations-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}
.regulations-content th {
    background: #f8fafc;
    font-weight: 700;
    color: #111827;
}

/* Stopka */
.site-footer { background: rgba(8, 22, 40, 0.85); backdrop-filter: blur(10px); }

/* Szacunek dla preferencji ograniczenia ruchu (a11y) */
@media (prefers-reduced-motion: reduce) {
    .animate-in, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
    .savings-badge { animation: none !important; }
    .savings-badge::before { animation: none !important; display: none !important; }
}
