body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: #0f172a;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

html {
    scroll-behavior: smooth;
}

/* Animacje Fade-In */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.875rem;
    color: #64748b;
}
.breadcrumbs a { color: #047857; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: #cbd5e1; padding: 0 0.5rem; }
.breadcrumbs .current { color: #0f172a; }

/* Prose - artykuły i podstrony */
.prose h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    scroll-margin-top: 6rem;
}
.prose h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.prose p {
    color: #334155;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}
.prose ul, .prose ol {
    color: #334155;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    font-size: 1.0625rem;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul li, .prose ol li { margin-bottom: 0.5rem; }
.prose strong { color: #0f172a; font-weight: 700; }
.prose a { color: #047857; font-weight: 600; text-decoration: underline; }
.prose blockquote {
    border-left: 4px solid #047857;
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: #475569;
    font-style: italic;
    margin: 1.5rem 0;
}

/* Reset stylów .prose dla bloków oznaczonych .not-prose (np. boksy CTA z przyciskami) */
.not-prose a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}
.not-prose a:hover {
    text-decoration: none;
}
/* Przyciski w boksach CTA — kolory Tailwind muszą wygrać z .prose a / .not-prose a */
.prose a.text-white,
.not-prose a.text-white {
    color: #ffffff;
}
.prose a.text-primary:not(:hover),
.not-prose a.text-primary:not(:hover) {
    color: #047857;
}

/* ====== Linkowanie wewnętrzne (encje semantyczne) ====== */
.internal-link,
.prose a.internal-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #0a7c5c;
    text-underline-offset: 2px;
}
.prose a.internal-link:hover {
    text-decoration-color: #047857;
    color: #047857;
}

/* ====== Sekcje powiązanych treści (Powiązane artykuły / usługi) ====== */
.related-articles, .related-services {
    margin: 3rem 0;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.related-articles h2, .related-services h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}
.related-articles ul, .related-services ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.related-articles a, .related-services a {
    font-size: 0.875rem;
    color: #0a7c5c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.related-articles a:hover, .related-services a:hover {
    text-decoration: underline;
}
.related-articles a::before, .related-services a::before {
    content: "→";
    font-size: 0.8rem;
}

/* ====== Spis treści (TOC) artykułów bloga ====== */
/* selektory z prefiksem .toc — by wygrać specyficznością z regułami .prose */
.toc {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    max-width: 480px;
}
.toc .toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0a7c5c;
    margin-bottom: 0.6rem;
}
.toc .toc-list {
    list-style: decimal;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0;
}
.toc .toc-list li {
    margin-bottom: 0;
}
.toc .toc-list a {
    font-size: 0.875rem;
    color: #0a5c43;
    text-decoration: none;
    font-weight: 600;
}
.toc .toc-list a:hover {
    text-decoration: underline;
}

/* ====== Cookie banner ====== */
#cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: #0f172a;
    color: #f8fafc;
    border-top: 3px solid #047857;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.35s ease-out;
}
#cookie-banner.cookie-banner--visible { transform: translateY(0); }
.cookie-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media (min-width: 1024px) {
    .cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
    .cookie-banner__content { flex: 1; }
}
.cookie-banner__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #ffffff;
}
.cookie-banner__content p {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
}
.cookie-banner__content a {
    color: #34d399;
    text-decoration: underline;
    font-weight: 600;
}
.cookie-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .cookie-banner__actions { flex-direction: row; }
}

.cookie-btn {
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.875rem 1.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: filter 0.15s, background-color 0.15s, color 0.15s;
    line-height: 1;
    white-space: nowrap;
}
.cookie-btn--primary {
    background: #047857;
    color: #ffffff;
    border-color: #047857;
}
.cookie-btn--primary:hover { filter: brightness(1.1); }
.cookie-btn--ghost {
    background: transparent;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.3);
}
.cookie-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ====== Cookie modal (Dostosuj) ====== */
#cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#cookie-modal.cookie-modal--open { display: flex; }
.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(2px);
}
.cookie-modal__panel {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    border-top: 4px solid #047857;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    outline: none;
}
.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.cookie-modal__header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}
.cookie-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    color: #64748b;
    padding: 0.25rem 0.5rem;
}
.cookie-modal__close:hover { color: #0f172a; }
.cookie-modal__body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cookie-cat {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: border-color 0.15s;
}
.cookie-cat:hover { border-color: #047857; }
.cookie-cat input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: #047857;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}
.cookie-cat input[type="checkbox"]:disabled { opacity: 0.6; cursor: not-allowed; }
.cookie-cat strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.cookie-cat p {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}
.cookie-modal__footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}
@media (min-width: 480px) {
    .cookie-modal__footer { flex-direction: row; justify-content: flex-end; }
}
.cookie-modal__footer .cookie-btn--ghost {
    color: #64748b;
    border-color: #cbd5e1;
}
.cookie-modal__footer .cookie-btn--ghost:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Stopka — przycisk "Ustawienia cookies" */
.cookie-settings-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-decoration: underline;
}
.cookie-settings-btn:hover { color: #047857; }

/* ====== Botón flotante de WhatsApp (contacto rápido en todas las páginas) ====== */
.wa-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 8000;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: #ffffff;
    padding: 0.85rem 1.25rem 0.85rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.32);
    color: #ffffff;
}
.wa-fab svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.wa-fab__label { display: none; }
@media (min-width: 640px) {
    .wa-fab__label { display: inline; }
}
/* Deja sitio para que el banner de cookies no tape el botón */
#cookie-banner.cookie-banner--visible ~ .wa-fab { bottom: auto; top: 1.25rem; }

/* Icono de marca dentro de las tarjetas/botones de contacto */
.contact-ico { width: 1.75rem; height: 1.75rem; }
