/*
Theme Name: Optymalizacja WP
Author: Łukasz Turczyn
Description: Dedykowany motyw dla strony optymalizacjakredytowa.pl, dopasowany do głównego layoutu.
Version: 1.3
*/

/**
 * Main stylesheet for the application.
 *
 * This file contains all the styles for the project, including:
 * - Global resets and variable definitions
 * - Base typography and layout rules
 * - Component styles (header, buttons, forms, etc.)
 * - Section-specific styles
 * - Responsive media queries
 *
 * Author: luketurczyn
 * Version: 1.3
 * Last Updated: 15.06.2025
 */


/* ==========================================================================
   1. GLOBAL RESETS & VARIABLES
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --primary-color: #004A99;
    --secondary-color: #343a40;
    --accent-color: #F37021;
    --accent-darker-color: #D95B0E;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-light: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;

    /* Sizing & Misc */
    --container-width: 1140px;
    --header-height: 70px;
    --border-radius: 4px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    font-weight: 400;
    overflow-x: hidden;
}


/* ==========================================================================
   2. BASE TYPOGRAPHY & UTILITIES
   ========================================================================== */

p,
li,
a,
span,
div,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
    font-weight: 400;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--accent-darker-color);
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

strong,
b {
    font-weight: 600;
}

/* Upewnienie się, że pogrubienie działa */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Utility classes for handling multiline text from JS */
span[data-translate-key="contactAddressDetail"],
span[data-translate-key="contactHoursDetails"],
p[data-translate-key="heroSubtitle"],
p[data-translate-key="heroSubtitle2"] {
    white-space: pre-line;
}


.bg-light {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.bg-dark h2 {
    color: #fff;
}

.bg-dark .container>p.section-intro {
    color: #ccc;
}

.bg-dark p {
    color: inherit;
}

.bg-dark a {
    color: var(--accent-color);
}

.bg-dark a:hover {
    color: #fff;
}


/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

.sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    height: var(--header-height);
    transition: background-color 0.3s ease;
}

.sticky-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: var(--header-height);
    text-decoration: none;
}

.logo svg {
    display: block;
    height: 50px;
    width: auto;
    max-height: calc(var(--header-height) - 20px);
    max-width: 280px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 0.8rem;
    font-family: var(--font-primary);
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 5px 0;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
    font-family: var(--font-primary);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.current-menu-item>.nav-link::after {
    width: 100%;
}

#mobile-menu-toggle {
    display: none;
}


/* ==========================================================================
   4. BUTTONS & CTA
   ========================================================================== */

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light) !important;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: var(--accent-darker-color);
    color: var(--text-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.cta-button-secondary:hover {
    background-color: rgba(0, 74, 153, 0.05);
    color: var(--primary-color) !important;
    transform: none;
    box-shadow: none;
}


/* ==========================================================================
   5. LANGUAGE DROPDOWN
   ========================================================================== */

.language-dropdown {
    position: relative;
}

.current-language {
    background-color: transparent;
    border: none;
    border-radius: var(--border-radius);
    padding: 5px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.current-language:hover {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.current-flag {
    line-height: 0;
    display: inline-flex;
    align-items: center;
    width: 1.6em;
    height: 1.1em;
}

.current-flag>* {
    width: 100%;
    height: 100%;
    object-fit: contain;
    vertical-align: middle;
    display: block;
}

.dropdown-arrow {
    font-size: 0.6rem;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.current-language[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.language-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 5px 0;
    margin: 5px 0 0 0;
    z-index: 1100;
    min-width: 130px;
}

.language-options.open {
    display: block;
}

.language-options li {
    margin: 0;
    padding: 0;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.language-option:hover {
    background-color: var(--light-bg);
}

.language-option img {
    width: 1.6em;
    height: 1.1em;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

.language-option span {
    flex-grow: 1;
    display: inline;
}


/* ==========================================================================
   6. PAGE SECTIONS
   ========================================================================== */
/* Domyślnie (na stronie głównej) pokazuj główną treść, a ukrywaj politykę */
#main-content {
    display: block;
}
#privacy-content {
    display: none;
}

/* Kiedy <body> ma klasę .privacy-page-active, odwróć widoczność */
body.privacy-page-active #main-content {
    display: none;
}
body.privacy-page-active #privacy-content {
    display: block;
}
/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
    background-size: cover;
    color: var(--text-dark);
    padding: 100px 0 120px 0;
    text-align: center;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content h1 {
    color: var(--primary-color);
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    color: var(--secondary-color);
}

.hero-section .cta-button {
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
}

/* Generic Content Section */
.content-section {
    padding: 80px 0;
}

.content-section h2 {
    text-align: center;
}

.content-section>.container>p.section-intro {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #fff;
}

.services-section h2 {
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-item {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0, 74, 153, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    color: var(--primary-color);
    margin: 0 auto 1.8rem auto;
    line-height: 1;
    display: block;
    width: 40px;
    height: 40px;
}

.service-item h3 {
    text-align: center;
    font-size: 1.3rem;
    min-height: auto;
    display: block;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-item p {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0;
    padding-top: 0;
    font-weight: 400;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.learn-more-link {
    display: inline-block;
    margin-top: auto;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: background-color 0.3s, color 0.3s;
}

.learn-more-link:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
}

/* "Why Optimize" Section */
#why-optimize {
    background-color: var(--light-bg);
}

#why-optimize h2 {
    margin-bottom: 2.5rem;
}

#why-optimize .container>p.section-intro {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 400;
}

#why-optimize p {
    color: var(--text-muted);
}

#why-optimize h3 {
    color: var(--primary-color);
}

.feature-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.feature-column {
    text-align: left;
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.feature-column h3 {
    text-align: left;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-column p {
    text-align: left;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
}

.feature-column p:last-child {
    margin-bottom: 0;
}

#why-optimize .cta-button-container {
    text-align: center;
    margin-top: 3rem;
}

/* Process Steps Section */
#process {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
}

#process p {
    color: var(--text-muted);
}

#process h3 {
    color: var(--primary-color);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    text-align: center;
    align-items: stretch;
}

.process-step {
    flex: none;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    text-align: center;
    min-height: auto;
    display: block;
    width: 100%;
    font-weight: 600;
}

.process-step p {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.8rem;
    flex-grow: 1;
    font-weight: 400;
    line-height: 1.6;
}

.step-number {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 auto 1.5rem auto;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 74, 153, 0.3);
}

/* =========================================
   SEKCJA "WHY US" (DLACZEGO MY)
   ========================================= */

#why-us {
    background-color: var(--light-bg);
}

#why-us .section-intro {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Lista korzyści */
.features-list {
    list-style: none;
    padding: 0;
    max-width: 900px; /* Zapewnia optymalną szerokość w dwóch kolumnach */
    margin: 3rem auto 0 auto;

    /* 1. Użycie CSS Grid dla stabilnego układu kolumnowego */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Zawsze dwie równe kolumny na większych ekranach */
    gap: 1.5rem 3rem; /* Odstęp między wierszami (1.5rem) i kolumnami (3rem) */
}

.features-list li {
    font-size: 1rem;
    line-height: 1.5; /* Lepsza czytelność dla tekstu wieloliniowego */
    color: var(--text-dark);
    font-weight: 500;

    /* 2. Użycie Flexbox do precyzyjnego wyrównania ikony z tekstem */
    display: flex;
    align-items: flex-start; /* Wyrównuje ikonę do góry bloku tekstowego */
    gap: 0.8rem; /* Odstęp między ikoną a tekstem */
}

.features-list li .fas { /* Stylowanie bezpośrednio ikony */
    flex-shrink: 0; /* Zapobiega kurczeniu się ikony */
    color: var(--accent-color); /* Kolor zgodny z motywem */
    font-size: 1.1em; /* Ikona nieco większa od tekstu dla lepszego efektu */

    /* 3. Sprytne wyrównanie pionowe ikony względem tekstu */
    position: relative;
    top: 0.2em; /* Delikatne przesunięcie w dół, aby optycznie wycentrować z pierwszą linią tekstu */
}

#why-us p[data-translate-key="whyUsDisclaimer"] {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
    max-width: 850px;
    margin: 2rem auto 0 auto; /* Poprawiony margines */
}

/* Responsywność: przełączenie na jedną kolumnę na mniejszych ekranach */
@media (max-width: 992px) {
    .features-list {
        grid-template-columns: 1fr;
    }
}

/*
 * LAYOUT & STYLE FIX:
 * - Replaced CSS `columns` with CSS `Grid` for a robust, stable two-column layout.
 *   This prevents uneven columns when list items have different text lengths.
 * - Changed the icon color selector to apply the accent color directly.
 */
.features-list {
    list-style: none;
    padding-left: 0;
    max-width: 900px;
    /* Increased max-width for better spacing */
    margin: 3rem auto 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 3rem;
    /* row-gap column-gap */
}

.features-list li {
    font-size: 1.0rem;
    display: flex;
    align-items: flex-start;
    /* Correctly aligns with the top of multi-line text */
    gap: 0.8rem;
}

.features-list li>span:first-child {
    /* The icon container */
    flex-shrink: 0;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.2em;
    /*
     * ALIGNMENT FIX:
     * Add a small top padding to nudge the checkmark down.
     * This vertically centers the icon glyph with the first line of text.
     * The 'em' unit scales with the font size.
     */
    padding-top: 0.15em;
    line-height: 1;
    /* Ensures consistent vertical spacing for the icon */
}

.features-list li>span:last-child {
    /* The text container */
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    /* Improves readability for multi-line text */
}

/*
 * =========================================
 * END OF "WHY US" SECTION FIX
 * =========================================
 */

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 3.5rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: #ccc;
    font-size: 0.9rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #555;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.recaptcha-widget {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

#recaptcha-container {
    min-height: 78px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: opacity 0.3s ease;
    opacity: 1;
    border-radius: var(--border-radius);
}

#recaptcha-container.hidden {
    display: none;
}

.privacy-policy {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.privacy-policy input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    margin-top: 0.2em;
    accent-color: var(--accent-color);
}

.privacy-policy label {
    margin-bottom: 0;
    color: #bbb;
    line-height: 1.5;
    font-weight: 400;
}

.privacy-policy label a {
    color: var(--accent-color);
    text-decoration: underline;
}

.privacy-policy label a:hover {
    color: #fff;
}

#form-status {
    margin-top: 1rem;
    font-weight: 500;
    min-height: 1.2em;
    text-align: center;
}

#form-status.form-error {
    color: var(--error-color);
}

/* Contact Info Box */
.contact-info {
    text-align: left;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.contact-info h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ICON ALIGNMENT FIX: Use align-items: center to vertically center the icon with text */
.contact-info p {
    margin-bottom: 1rem;
    color: #eee;
    text-align: left;
    font-weight: 400;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

/* ICON ALIGNMENT FIX: Removed padding-top as it's no longer needed */
.contact-info p i.fa-fw {
    width: 1.2em;
    text-align: center;
    font-size: 1em;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-info a {
    color: #eee;
    overflow-wrap: break-word;
    /* Lepsza kontrola łamania linii */
    word-wrap: break-word;
    /* Starszy odpowiednik dla kompatybilności */
    /* Nie ma potrzeby ustawiania word-break, ale można dla pewności zresetować */
    word-break: normal;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.map-container {
    margin-top: 2rem;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    line-height: 0;
}

.map-container iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: none;
}


/* ==========================================================================
   7. FOOTER
   ========================================================================== */

.footer {
    background-color: #212529;
    color: #ffffff;
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #444;
}

.footer p {
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #ffffff;
}

.footer a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-link-button {
    background: none;
    border: none;
    color: var(--accent-color);
    text-decoration: underline;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

.footer-link-button:hover {
    color: #ffffff;
    text-decoration: none;
}


/* ==========================================================================
   8. UI COMPONENTS (FAB, Modals, Banners)
   ========================================================================== */

/* Floating Action Button (FAB) */
#fab-cta {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background-color: var(--accent-color);
    color: var(--text-light) !important;
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out, transform 0.3s ease-out, background-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

#fab-cta.fab-initially-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

#fab-cta.fab-shown {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

#fab-cta.fab-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

#fab-cta i {
    font-size: 18px;
}

#fab-cta:hover {
    background-color: var(--accent-darker-color);
    transform: scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 37, 41, 0.97);
    color: #ffffff;
    padding: 15px 25px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2147483647 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    color: #eee;
    font-weight: 400;
}

.cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: #fff;
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-banner button {
    padding: 9px 20px;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-align: center;
}

.cookie-banner #accept-cookies,
.cookie-banner #manage-cookies {
    background-color: var(--accent-color);
    color: #ffffff !important;
    border-color: var(--accent-color);
}

.cookie-banner #accept-cookies:hover,
.cookie-banner #manage-cookies:hover {
    background-color: var(--accent-darker-color);
    border-color: var(--accent-darker-color);
}

.cookie-banner #reject-cookies.btn-secondary {
    background-color: transparent;
    border: 1px solid #888;
    color: #ddd !important;
}

.cookie-banner #reject-cookies.btn-secondary:hover {
    background-color: #444;
    border-color: #aaa;
    color: #fff !important;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.cookie-settings-modal.visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    z-index: 2147483647 !important;
}

.modal-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.modal-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-category {
    border-top: 1px solid var(--border-color);
    padding: 15px 0;
}

.cookie-category .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.cookie-category .category-header strong {
    margin: 0;
    font-size: 1.1rem;
}

.cookie-category-description {
    font-size: 0.85rem;
    line-height: 1.5;
}

#save-cookie-settings {
    padding: 10px 22px;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    text-align: center;
    flex-shrink: 0;
    background-color: var(--accent-color);
    color: #ffffff !important;
    border-color: var(--accent-color);
    margin-top: 20px;
    width: 100%;
}

#save-cookie-settings:hover {
    background-color: var(--accent-darker-color);
    border-color: var(--accent-darker-color);
}

/* Form Submission Status Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.modal-content-wrapper {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    max-width: 90%;
    width: 450px;
    text-align: center;
    position: relative;
    transform: scale(0.95) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.visible .modal-content-wrapper {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: #ccc;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--text-dark);
}

#modal-status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

#modal-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 600;
}

#modal-message {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

#modal-ok-button {
    display: inline-block;
    min-width: 120px;
    padding: 0.7rem 2rem;
}

.icon-sending {
    color: var(--primary-color);
}

.icon-success {
    color: var(--success-color);
}

.icon-error {
    color: var(--error-color);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}


/* ==========================================================================
   9. PRIVACY POLICY PAGE
   ========================================================================== */
.privacy-main {
    background-color: #fff;
}

.privacy-hero {
    background-color: var(--light-bg);
    padding: 50px 0 30px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.privacy-hero h1 {
    font-size: 2.5rem;
    margin: 0;
    padding: 0;
    border: none;
}

.privacy-hero .date-effective {
    margin-top: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

.privacy-layout {
    display: flex;
    gap: 4rem;
    padding-top: 50px;
    padding-bottom: 80px;
    align-items: flex-start;
}

.privacy-nav {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 30px);
    height: calc(100vh - var(--header-height) - 60px);
    overflow-y: auto;
}

.privacy-nav nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    margin-bottom: 5px;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.privacy-nav-link:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

.privacy-nav-link.active {
    background-color: rgba(0, 74, 153, 0.05);
    color: var(--primary-color);
    font-weight: 600;
    border-left-color: var(--accent-color);
}

.privacy-nav-link .fas {
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.privacy-content {
    flex-grow: 1;
    min-width: 0;
}

.privacy-content section {
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.privacy-content h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.privacy-content h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content p,
.privacy-content li {
    text-align: justify;
    line-height: 1.8;
    color: var(--secondary-color);
}

.privacy-content ul {
    padding-left: 25px;
    list-style: disc !important;
}

.privacy-content li {
    margin-bottom: 0.8rem;
    padding-left: 5px;
}

.privacy-content ul ul {
    list-style-type: circle !important;
    margin-top: 0.5rem;
}


/* ==========================================================================
   10. RESPONSIVE STYLES (MEDIA QUERIES)
   ========================================================================== */

/* Accessibility: Reduce motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1200px) and (min-width: 769px) {
    .language-dropdown .lang-label {
        display: none;
    }

    .current-language {
        gap: 0.3rem;
    }

    .logo svg {
        height: 48px;
        max-width: 260px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 992px) {
    :root {
        --container-width: 960px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-top: 2rem;
        text-align: center;
        padding-left: 0;
        border-left: none;
    }

    .contact-info h3,
    .contact-info p {
        text-align: center;
        justify-content: center;
    }

    .map-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }

    .feature-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    /* Switch features list to single column */

    .privacy-layout {
        flex-direction: column;
        gap: 0;
    }

    .privacy-nav {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
        overflow-y: visible;
    }

    .privacy-nav nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .privacy-nav-link {
        background-color: #f1f3f5;
        border-left: none;
        border-bottom: 3px solid transparent;
        flex-grow: 1;
        justify-content: center;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 65px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: 80px 0 100px 0;
    }

    .sticky-header nav {
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
        margin-bottom: 0;
    }

    .logo svg {
        height: 52px;
        max-width: 304px;
    }

    /* Mobile Menu Toggle */
    #mobile-menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
        align-self: center;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 5px;
        color: var(--primary-color);
        line-height: 1;
    }

    .header-right {
        order: 3;
        width: 100%;
        background-color: white;
        margin-top: 10px;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .header-right.mobile-menu-active {
        display: flex;
    }

    .header-right .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
        margin-top: 0;
        border-top: none;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        padding: 1rem 1rem;
        width: 100%;
        display: block;
        font-weight: 500;
        box-sizing: border-box;
        font-size: 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background-color: var(--light-bg);
        color: var(--primary-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .header-right .language-dropdown {
        display: block;
        width: 100%;
        position: relative;
        border-bottom: 1px solid var(--border-color);
        border-top: 1px solid var(--border-color);
    }

    .header-right .language-dropdown .current-language {
        display: flex;
        width: 100%;
        padding: 1rem 1rem;
        justify-content: center;
        text-align: center;
        color: var(--secondary-color);
        font-weight: 500;
        box-sizing: border-box;
    }

    .header-right .language-dropdown .current-language:hover {
        background-color: var(--light-bg);
        color: var(--primary-color);
    }

    .header-right .language-dropdown .language-options {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px dashed var(--border-color);
        margin-top: 0;
        z-index: 1101;
    }

    .header-right .language-dropdown .language-options.open {
        display: block;
    }

    .header-right .language-dropdown .language-options li button {
        justify-content: center;
        padding: 0.8rem 1rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-list {
        max-width: 100%;
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #fab-cta {
        padding: 10px 15px;
        font-size: 0.9rem;
        bottom: 20px;
        right: 20px;
    }

    .feature-columns {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-column {
        padding: 1.5rem;
    }

    .feature-column p {
        font-size: 0.9rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .cookie-banner .cookie-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .cookie-banner button {
        width: 100%;
        max-width: 280px;
    }

    .privacy-hero h1 {
        font-size: 2rem;
    }

    .privacy-nav nav ul {
        flex-direction: column;
        gap: 5px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 80px 0;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .content-section,
    .services-section,
    .contact-section {
        padding: 50px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 2rem 1.5rem;
    }

    .service-item h3 {
        font-size: 1.2rem;
    }

    .contact-wrapper {
        gap: 2rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form select,
    .contact-form textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }

    .contact-form .cta-button {
        padding: 0.9rem;
        font-size: 1rem;
    }

    .privacy-policy {
        font-size: 0.8rem;
    }

    .map-container {
        max-width: 100%;
    }

    .cta-button {
        white-space: normal;
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 0.9rem;
        max-width: 95%;
    }

    .hero-section .cta-button {
        font-size: 0.95rem;
        padding: 0.8rem 1.2rem;
    }

    #fab-cta {
        padding: 12px;
        border-radius: 50%;
        gap: 0;
        bottom: 15px;
        right: 15px;
    }

    #fab-cta span {
        display: none;
    }

    #fab-cta i {
        margin-right: 0;
    }

    .modal-content-wrapper {
        padding: 2rem 1.5rem;
    }

    #modal-title {
        font-size: 1.4rem;
    }

    #modal-message {
        font-size: 0.95rem;
    }
}

body[dir="rtl"] .logo svg {
    direction: ltr;
}

body:has(#hubspot-conversations-iframe) #fab-cta,
body:has(.hs-messages-widget-launcher) #fab-cta {
    /* Używamy tych samych stylów co dla klasy .fab-hidden */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

/* ==========================================================================
   11. CUSTOM STYLES & OVERRIDES (DODANE NOWE STYLE)
   ========================================================================== */

/* Sekcja "O Mnie" - poprawki czytelności */
#about .text-container {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

#about .text-container h2 {
    text-align: left;
    /* Nagłówek wyrównany do lewej, jak tekst */
}

#about .text-container p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5em;
    /* Lepszy odstęp między akapitami */
    text-align: left;
}

#about .text-container p:last-of-type {
    margin-bottom: 0;
}

#about .intro-greeting {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1em;
}

/* Sekcja "Gdzie Działam" */
#locations {
    background-color: var(--light-bg);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.location-item {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.location-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.location-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/*=============================================
=        Style dla Błędów Formularza            =
=============================================*/

/* Podstawowy styl dla niepoprawnych pól input i textarea */
.contact-form .form-group .is-invalid,
.contact-form .form-group .is-invalid:focus {
    border-color: #dc3545 !important;
    /* Jaskrawy czerwony, !important dla pewności */
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    /* Czerwona poświata */
}

/* Podstawowy styl dla niepoprawnego selecta */
.contact-form .form-group select.is-invalid,
.contact-form .form-group select.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}


/* Styl dla wymaganego, a niezaznaczonego checkboxa */
.contact-form .form-group input[type="checkbox"].is-invalid+label::before {
    border-color: #dc3545 !important;
}

/* Opcjonalnie: Styl dla kontenera reCAPTCHA, jeśli walidacja nie powiedzie się */
#recaptcha-container.is-invalid {
    padding: 3px;
    border: 2px solid #dc3545;
    border-radius: 4px;
}

/* ==========================================================================
   Footer Social Icons Styles
   ========================================================================== */

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    /* Odstęp między ikonami */
    margin-top: 2rem;
    /* Odstęp od tekstu powyżej */
    padding-bottom: 1rem;
}

.footer-socials a {
    color: var(--text-muted, #6c757d);
    /* Domyślny, stonowany kolor ikony */
    font-size: 1.5rem;
    /* Wielkość ikony */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    /* Płynne przejście koloru i lekkie powiększenie */
}

.footer-socials a:hover {
    color: var(--accent-color, #F37021);
    /* Kolor po najechaniu myszką (pomarańczowy) */
    transform: translateY(-3px);
    /* Lekkie uniesienie ikony po najechaniu */
}

/*
============================================================
   OSTATECZNE STYLE DLA BANERA I MENEDŻERA COOKIES
============================================================
*/

/* --- Baner zgody na cookies --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-bg, #212529);
    color: var(--text-light, #f8f9fa);
    padding: 20px;
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner:not(.hidden) {
    transform: translateY(0);
}

.cookie-banner .cookie-content p {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    color: #eee;
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner button {
    padding: 9px 20px;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}

.cookie-banner #accept-cookies {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-light) !important;
}

.cookie-banner #accept-cookies:hover {
    background-color: var(--accent-darker-color);
    border-color: var(--accent-darker-color);
}

.cookie-banner #manage-cookies {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff !important;
}

.cookie-banner #manage-cookies:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-banner #reject-cookies.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light) !important;
}

.cookie-banner #reject-cookies.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* --- Modal (okno) ustawień cookies --- */
.cookie-settings-modal {
    position: fixed;
    z-index: 1060;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.cookie-settings-modal.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.cookie-settings-modal .modal-content {
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cookie-settings-modal h2 {
    margin-top: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
}

.cookie-settings-modal>.modal-content>p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.cookie-category {
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.cookie-category:last-of-type {
    border-bottom: 1px solid #e9ecef;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-header strong {
    font-size: 1.15rem;
    color: #343a40;
}

.category-header label[for="consent-analytics"] {
    cursor: pointer;
}

.cookie-category-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.always-active {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--success-color);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 28px;
}

.slider.round:before {
    border-radius: 50%;
}

#save-cookie-settings.btn.btn-primary,
#save-cookie-settings {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 25px;
    background-color: var(--accent-color);
    border: none;
    color: white !important;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#save-cookie-settings.btn.btn-primary:hover,
#save-cookie-settings:hover {
    background-color: var(--accent-darker-color);
}

@media (max-width: 768px) {
    .cookie-banner .cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 10px;
        justify-items: center;
        /* << DODAJ TĘ LINIĘ */
    }
}

/* ============================================================
   POPRAWKA DLA BANERA COOKIES (FIX FOR COOKIE BANNER)
   ============================================================ */

/*
 * Rozwiązuje problem ucinania tekstu na urządzeniach mobilnych,
 * poprzez nadanie elastyczności kontenerowi z tekstem wewnątrz banera.
 */
.cookie-banner .cookie-content {
    flex: 1 1 auto;
    /* Pozwala kontenerowi na elastyczne rośnięcie i kurczenie się */
    min-width: 250px;
    /* Zapobiega zbytnim ściskaniu tekstu, zanim przyciski się zawiną */
}

/* ==========================================================================
   12. BLOG STYLES
   ========================================================================== */

/* --- Ogólny kontener dla treści bloga --- */
.blog-page-container {
    padding: 80px 0;
    /* Taki sam padding jak w innych sekcjach */
    background-color: #fff;
}

/* --- Nagłówki na głównej stronie bloga --- */
.blog-page-container .blog-header h1,
.blog-page-container .blog-header h2 {
    text-align: center;
    color: var(--primary-color);
}

.blog-page-container .blog-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.blog-page-container .blog-header h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 4rem;
    /* Większy odstęp od listy postów */
}

/* --- Styl dla pojedynczego "kafelka" z postem na liście (index.php) --- */
.blog-post-summary {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    /* Odstęp między postami */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-post-summary:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 74, 153, 0.1);
}

/* --- Styl dla pojedynczego, pełnego artykułu (single.php) --- */
.blog-post-full {
    max-width: 800px;
    /* Ograniczenie szerokości dla lepszej czytelności */
    margin: 0 auto;
}

/* --- Nagłówek w poście (wspólny dla listy i pełnego widoku) --- */
.blog-post-summary .entry-header h2,
.blog-post-full .entry-header h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-post-summary .entry-header h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-post-summary .entry-header h2 a:hover {
    color: var(--accent-color);
}

/* --- Meta-dane posta (data, czas) --- */
.post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.post-meta .post-date::after {
    content: '•';
    margin: 0 0.5em;
}

/* --- Zajawka posta (excerpt) --- */
.entry-summary p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Link "Czytaj dalej" --- */
.read-more-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--accent-darker-color);
    text-decoration: underline;
}

/* --- Główna treść artykułu (single.php) --- */
.entry-content {
    margin-top: 2.5rem;
}

.entry-content p,
.entry-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    text-align: justify;
    /* Lepsza czytelność długich tekstów */
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    text-align: left;
    /* Wyrównanie śródtytułów do lewej */
}

.entry-content ul {
    list-style: disc !important;
    padding-left: 25px;
}

.entry-content li {
    margin-bottom: 1rem;
}

/* Poprawka dla obrazków dodawanych w edytorze WordPress */
.entry-content .aligncenter,
.entry-content figure.wp-block-image {
    margin: 2.5rem auto;
    text-align: center;
}

.entry-content figure.wp-block-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   12.1 BLOG STYLES - ULEPSZENIA WIZUALNE (NOWE)
   ========================================================================== */

/* --- Kontener dla listy postów --- */
.blog-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Kolumny dla postów */
    gap: 2.5rem;
    /* Odstęp między postami */
    margin-top: 4rem;
}

/* --- Ulepszony wygląd "kafelka" z postem (blog-post-summary) --- */
.blog-post-summary {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Bardziej zaokrąglone rogi */
    overflow: hidden;
    /* Ukrywa wystające elementy obrazka */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 74, 153, 0.12);
}

/* --- Obrazek wyróżniający (miniaturka) --- */
.post-thumbnail-container {
    width: 100%;
    height: 200px;
    /* Stała wysokość dla spójnego wyglądu */
    overflow: hidden;
    background-color: var(--light-bg);
}

.post-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Obrazek wypełnia kontener bez zniekształceń */
    transition: transform 0.4s ease;
}

.blog-post-summary:hover .post-thumbnail-container img {
    transform: scale(1.05);
    /* Lekkie powiększenie obrazka po najechaniu */
}

/* --- Kontener na treść pod obrazkiem --- */
.post-content-wrapper {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Rozciąga kontener, aby stopka była zawsze na dole */
}

.blog-post-summary .entry-header h2 {
    font-size: 1.3rem;
    /* Nieco większy tytuł */
    line-height: 1.4;
    margin-bottom: 1rem;
}

.blog-post-summary .entry-summary {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1;
    /* Wypycha przycisk na dół */
    margin-bottom: 1.5rem;
}

.blog-post-summary .entry-summary p {
    margin-bottom: 0;
}

.blog-post-summary .read-more-link {
    margin-top: auto;
    /* Trzyma przycisk na dole "kafelka" */
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-summary .read-more-link:hover {
    color: var(--accent-darker-color);
}


/* --- Style dla pełnego artykułu (single.php) --- */
.blog-post-full .post-thumbnail-container {
    width: 100%;
    max-height: 400px;
    /* Maksymalna wysokość obrazka w artykule */
    border-radius: 8px;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   12.2 BLOG STYLES - SEKCJA KOMENTARZY (NOWE)
   ========================================================================== */

/* --- Główny kontener całej sekcji komentarzy --- */
.comments-area {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

#comments-title,
#reply-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    text-align: left;
}

/* --- Lista komentarzy (usuwa numerowanie) --- */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Pojedynczy komentarz --- */
.comment {
    margin-bottom: 2rem;
}

.comment-body {
    padding: 1.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    position: relative;
    background-color: #fff;
}

/* --- Informacje o autorze komentarza --- */
.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.comment-author .fn {
    font-weight: 600;
    font-style: normal;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.comment-author .says {
    display: none;
    /* Ukrywa niepotrzebny dopisek "pisze:" */
}

/* --- Data i godzina komentarza --- */
.comment-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.comment-meta a {
    color: inherit;
    text-decoration: none;
}

.comment-meta a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- Treść komentarza --- */
.comment-body p {
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-body p:last-child {
    margin-bottom: 0;
}

/* --- Przycisk "Odpowiedz" --- */
.reply a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reply a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* --- Wątkowanie/zagnieżdżanie komentarzy --- */
.children {
    list-style: none;
    padding-left: 2.5rem;
    /* Wcięcie dla odpowiedzi */
    margin-top: 2rem;
    border-left: 2px solid var(--accent-color);
}

/* --- Specjalny styl dla komentarzy autora wpisu --- */
.bypostauthor>.comment-body {
    background-color: rgba(0, 74, 153, 0.03);
    /* Lekki niebieski tło */
    border-color: var(--primary-color);
}


/* --- Formularz dodawania komentarza --- */
.comment-respond {
    margin-top: 3rem;
}

#commentform {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

#commentform label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#commentform textarea {
    width: 100% !important;
    /* !important jest kluczowe, by nadpisać style inline */
    max-width: 100%;
    /* Dobra praktyka dla responsywności */
    resize: vertical;
    /* POZWALA TYLKO NA ZMIANĘ WYSOKOŚCI */
    min-height: 150px;
    /* Minimalna wysokość, żeby pole nie było za małe */
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#commentform .form-submit #submit {
    /* Użycie stylu głównego przycisku CTA */
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light) !important;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

#commentform .form-submit #submit:hover {
    background-color: var(--accent-darker-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   12.3 BLOG STYLES - WIDOK POJEDYNCZEGO ARTYKUŁU (NOWE)
   ========================================================================== */

/* --- Główny kontener artykułu - ograniczenie szerokości dla czytelności --- */
.blog-post-full {
    max-width: 820px;
    /* Optymalna szerokość dla tekstu */
    margin-left: auto;
    margin-right: auto;
}

/* --- Nagłówek artykułu (tytuł i meta-dane) --- */
.blog-post-full .entry-header {
    text-align: center;
    /* Wyśrodkowanie tytułu */
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-post-full .entry-header h1 {
    font-size: 2.6rem;
    /* Większy, bardziej wyrazisty tytuł */
    line-height: 1.3;
    color: var(--primary-color);
}

/* --- Główna treść artykułu --- */
.entry-content {
    font-size: 1.1rem;
    /* Nieco większa czcionka dla wygody czytania */
    line-height: 1.8;
    /* KLUCZOWE: Większa interlinia to lepsza czytelność */
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 1.5em;
    /* Spójny odstęp między akapitami */
}

/* --- Śródtytuły wewnątrz artykułu --- */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--primary-color);
    margin-top: 2.5em;
    /* Więcej przestrzeni przed nagłówkiem */
    margin-bottom: 1em;
    /* Mniej przestrzeni po, by połączyć z tekstem poniżej */
    line-height: 1.4;
    text-align: left;
    /* Wyrównane do lewej */
}

.entry-content h2 {
    font-size: 1.8rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.2rem;
}

/* --- Listy (numerowane i punktowane) --- */
.entry-content ul,
.entry-content ol {
    padding-left: 2em;
    margin-bottom: 1.5em;
}

.entry-content li {
    margin-bottom: 0.8em;
    padding-left: 0.5em;
}

/* --- Obrazki wstawione w treść --- */
.entry-content figure.wp-block-image {
    margin-top: 2.5em;
    margin-bottom: 2.5em;
}

.entry-content figure.wp-block-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.entry-content figure.wp-block-image figcaption {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

/* --- Cytaty (blockquote) --- */
.entry-content blockquote {
    margin: 2.5em 0;
    padding: 1.5em 2em;
    background-color: var(--light-bg);
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.entry-content blockquote p {
    margin-bottom: 0;
}

/* --- Ostatni akapit z hashtagami i linkiem do social media --- */
.entry-content p:has(a[href*="facebook.com"]) {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-color);
}