/* DESIGN SYSTEM APPLIED */
/*
    Theme Name: Zosiatka
    Theme URI: https://zosiatka.pl
    Author: Zosiatka
    Author URI: https://zosiatka.pl
    Description: Theme for Zosiatka.pl
    Version: 1.0
*/

/*------------------------------------------------------------------
[Table of contents]

1. Global
2. Header
3. Navigation
4. Hamburger Menu
5. Hero Section
6. Section
7. Features Section
8. Gallery Section
9. Lightbox Styles
10. Testimonials Section
11. Offer Section
12. Pricing Section
13. FAQ Section
14. Pricing Guide Section
15. Process Section
16. Contact Section
17. About Section
18. Footer
19. Partners Section
20. Cookie Banner
21. Cookie Modal
22. Testimonials Carousel
23. Media Queries
24. Success Message
25. Article Page
26. Knowledge Base Section
27. Masonry Gallery

-------------------------------------------------------------------*/

/* 1. Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

:root {
    /* Kolory */
    --primary: #efb056;
    --primary-dark: #d89d45;
    --secondary: #d4a59a;
    --text-dark: #2c3e50;
    --text-light: #5d6d7e;
    --bg-light: #f8f4ed;
    --bg-dark: #e8dcc8;
    --white: #ffffff;
    --white-rgb: 255, 255, 255;
    --black: #000000;
    --black-rgb: 0, 0, 0;
    --success-text: #155724;
    --success-bg: #d4edda;
    --border-color: #e8dcc8;
 
    /* Typografia */
    --font-main: 'DM Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
 
    --font-size-h1: 3rem;
    --font-size-h2: 2.25rem;
    --font-size-h3: 1.75rem;
    --font-size-h4: 1.5rem;
    --font-size-p: 1rem;
    --font-size-small: 0.875rem;

    --line-height-heading: 1.2;
    --line-height-paragraph: 1.6;

    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
 
    /* Spacing */
    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-xxxl: 64px;
    --space-xxxxl: 96px;
 
    /* Borders */
    --radius: 8px;
    --radius-button: 12px;
    --radius-card: 16px;
    --radius-input: 10px;
    --radius-modal: 20px;
    --radius-gallery: 14px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: var(--font-main);
    font-weight: var(--font-weight-regular);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: var(--line-height-paragraph);
    overflow-x: hidden;
}

/* 2. Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(var(--white-rgb), 0.94);
    backdrop-filter: blur(12px);
    padding: var(--space-md) 5.3%;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    padding: var(--space-sm) 5.3%;
    box-shadow: var(--shadow);
}

/* 3. Navigation */
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .logo-pl {
        color: var(--primary-dark);
    }

.logo-img {
    height: 40px;
    margin-right: var(--space-xs);
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-regular);
    transition: color 0.35s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-links a:hover::after {
    width: 100%;
}

    .nav-cta-button {
        background-color: var(--primary);
        color: var(--text-dark) !important;
        padding: var(--space-sm) var(--space-lg);
        border-radius: var(--radius-button);
        transition: all 0.3s ease;
    }
.nav-cta-button:hover {
    background-color: var(--primary-dark);
}

.nav-cta-button:hover::after {
    width: 0;
}

.nav-phone-icon {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* 4. Hamburger Menu */
.hamburger {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
    /* Above header */
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* 5. Hero Section */
.hero {
    margin-top: 85px;
    min-height: 87vh;
    display: flex;
    align-items: center;
    padding: var(--space-xxxl) 5.3% var(--space-xxxl);
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(239, 176, 86, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-xxxxl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-heading);
    margin-bottom: var(--space-xl);
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.hero-text h1 span {
    color: var(--primary);
    display: block;
    margin-top: var(--space-xs);
}

.hero-text p {
    font-size: var(--font-size-p);
    color: var(--text-soft);
    margin-bottom: var(--space-xxl);
    line-height: var(--line-height-paragraph);
    max-width: 520px;
}

    .cta-primary {
        display: inline-block;
        background: var(--primary);
        color: var(--text-dark);
        padding: var(--space-md) var(--space-xl);
        border-radius: var(--radius-button);
        text-decoration: none;
        font-weight: var(--font-weight-semibold);
        font-size: var(--font-size-p);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow);
        border: none;
        cursor: pointer;
        min-height: 44px;
    }
.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: var(--primary-dark);
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);
}

    .cta-secondary {
        display: inline-block;
        background: var(--white);
        color: var(--text-dark);
        padding: var(--space-md) var(--space-xl);
        border-radius: var(--radius-button);
        text-decoration: none;
        font-weight: var(--font-weight-semibold);
        font-size: var(--font-size-p);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow);
        border: 1px solid var(--text-dark);
        cursor: pointer;
        min-height: 44px;
    }
.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: var(--bg-light);
}

.hero-image {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(-1.2deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

/* 6. Section */
.section {
    padding: var(--space-xxxxl) 5.3% var(--space-xxxl);
    max-width: 1320px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--space-xxl);
    font-size: var(--font-size-p);
    line-height: var(--line-height-paragraph);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* 7. Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-xl);
    margin-top: var(--space-xxxl);
}

padding: var(--space-xl) var(--space-lg) var(--space-xl);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 62px;
    height: 62px;
    background: var(--primary);
    border-radius: var(--radius-gallery);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-h3);
    color: var(--white);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h4);
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
}

.feature-card p {
    color: var(--text-light);
    font-size: var(--font-size-p);
    line-height: var(--line-height-paragraph);
}

/* 8. Gallery Section */
.gallery {
    background: var(--white);
    padding: var(--space-xxxxl) 5.3% var(--space-xxxl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: var(--space-md);
    max-width: 1320px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-gallery);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, .1);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* 9. Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--black-rgb), 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    color: var(--white);
    font-size: var(--font-size-h2);
    cursor: pointer;
    z-index: 10000;
}

/* 10. Testimonials Section */
.testimonial-card {
    background: var(--white);
    padding: var(--space-xl) var(--space-lg) var(--space-xl);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.testimonial-text {
    color: var(--text-light);
    font-size: var(--font-size-p);
    line-height: var(--line-height-paragraph);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-author {
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
    text-align: right;
}

/* 11. Offer Section */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xxl);
    margin-top: var(--space-xxl);
}

.offer-card {
    background: var(--white);
    padding: 0 var(--space-lg) var(--space-xl);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
}

.offer-card h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h4);
    margin-bottom: var(--space-md);
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
}

.offer-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-button);
    margin: var(--space-md) auto;
    display: block;
}


.offer-card p {
    color: var(--text-light);
    font-size: var(--font-size-p);
    line-height: var(--line-height-paragraph);
    margin-bottom: var(--space-md);
}

.offer-card ul {
    list-style: none;
    padding: 0;
}

.offer-card ul li {
    color: var(--text-light);
    font-size: var(--font-size-p);
    line-height: var(--line-height-paragraph);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: var(--space-md);
}

.offer-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

/* 12. Pricing Section */

/* 13. FAQ Section */
.faq-container {
    max-width: 800px;
    margin: var(--space-xxl) auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-input);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow);
}

.faq-item summary {
    font-family: var(--font-heading);
    font-size: var(--font-size-p);
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    padding: var(--space-md);
    cursor: pointer;
    position: relative;
    outline: none;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--text-light);
    line-height: var(--line-height-paragraph);
}

/* 14. Pricing Guide Section */
.pricing-guide .section-intro {
    max-width: 800px;
}

.pricing-steps-container {
    max-width: 800px;
    margin: var(--space-xxl) auto 0;
    position: relative;
}

.pricing-steps-container::before {
    content: '';
    position: absolute;
    left: var(--space-xl);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary);
    z-index: 0;
}

.pricing-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    position: relative;
}

.pricing-step-icon {
    width: 90px;
    height: 90px;
    background: var(--white);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.pricing-step-icon svg {
    color: var(--primary);
}

.pricing-step-content {
    margin-left: var(--space-xl);
}

.pricing-step-content h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.pricing-step-content p {
    color: var(--text-light);
    line-height: var(--line-height-paragraph);
}

.pricing-cta {
    text-align: center;
    margin-top: var(--space-xxl);
}

/* 15. Process Section */
.process {
    background: var(--bg-light);
    padding: var(--space-xxxl) 5.3% var(--space-xxxl);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xxl);
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: var(--space-xl);
    left: 16.5%;
    right: 16.5%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 85px;
    height: 85px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h4);
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
}

.process-step p {
    color: var(--text-light);
    font-size: var(--font-size-p);
    line-height: var(--line-height-paragraph);
    max-width: 320px;
    margin: 0 auto;
}

/* 16. Contact Section */
.contact-section {
    background: var(--bg-light);
    padding: var(--space-xxxxl) 5.3% var(--space-xxxxl);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(239, 176, 86, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-container {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    padding: var(--space-xxl) var(--space-xl) var(--space-xl);
    border-radius: var(--radius-modal);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.contact-container h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    margin-bottom: var(--space-lg);
    color: var(--text-dark);
    text-align: center;
    font-weight: var(--font-weight-semibold);
}

.contact-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--space-xxl);
    font-size: var(--font-size-p);
    line-height: var(--line-height-paragraph);
}

.form-group {
    margin-bottom: var(--space-xl);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
    font-weight: var(--font-weight-regular);
    font-size: var(--font-size-small);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-input);
    font-family: var(--font-main);
    font-size: var(--font-size-p);
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: var(--shadow);
}

.form-group select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-input);
    font-family: var(--font-main);
    font-size: var(--font-size-p);
    transition: all 0.3s ease;
    background: var(--bg-light);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23efb056%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 1.3rem top 50%;
    background-size: .65em auto;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: var(--shadow);
}

.form-group textarea {
    min-height: 135px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.file-upload {
    position: relative;
    margin-bottom: var(--space-xl);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    border: 2px dashed var(--secondary);
    border-radius: var(--radius-input);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
    gap: var(--space-xs);
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: var(--white);
}

.file-upload-label svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-lg);
    border: none;
    border-radius: var(--radius-button);
    font-family: var(--font-heading);
    font-size: var(--font-size-p);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    min-height: 44px;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 17. About Section */
.about-section {
    background: transparent;
    padding: var(--space-xxxxl) 5.3% var(--space-xxxl);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-container .section-intro {
    text-align: justify;
    margin-bottom: var(--space-xxl);
}

.about-section .contact-icons-container {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    background: none;
    box-shadow: none;
    padding: 0;
}

.about-section .contact-icons-container .feature-icon {
    width: 62px;
    height: 62px;
    background: var(--primary);
    border-radius: var(--radius-gallery);
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.about-section .contact-icons-container .feature-icon:hover {
    transform: translateY(-5px);
}

.about-section .contact-icons-container .feature-icon svg {
    stroke: var(--white);
    color: var(--white);
}

.about-section .contact-icons-container .feature-icon img {
    filter: brightness(0) invert(1);
}

/* 18. Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--space-xxxl) 5.3% var(--space-xl);
    text-align: center;
    font-size: var(--font-size-small);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 0.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

    .footer-col p,
    .footer-col a {
        color: var(--text-dark);
        text-decoration: none;
        transition: color 0.3s ease;
    }
.footer-col a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: var(--space-sm);
}

.footer-img-icon {
    width: 16px;
    height: 16px;
    filter: invert(21%) sepia(21%) saturate(932%) hue-rotate(169deg) brightness(93%) contrast(89%);
    transition: filter 0.3s ease;
}

.footer-col a:hover .footer-img-icon {
    filter: invert(70%) sepia(19%) saturate(1000%) hue-rotate(359deg) brightness(100%) contrast(97%); /* Orange color on hover */
}



    .logo-text {
        font-family: var(--font-heading);
        font-size: var(--font-size-h4);
        font-weight: var(--font-weight-semibold);
        color: var(--text-dark);
        letter-spacing: -0.02em;
        text-decoration: none;
        display: flex;
        align-items: center;
    }
.footer-nav {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
}

.footer-nav li {
    margin-bottom: 0;
}

.footer-icon {
    vertical-align: middle;
    margin-right: var(--space-xs);
}

    .footer-bottom {
        border-top: 1px solid rgba(var(--white-rgb), 0.1);
        padding-top: var(--space-lg);
        padding-bottom: var(--space-sm);
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: var(--space-md);
    }

    /* Pseudo-element to balance the grid */
    .footer-bottom::before {
        content: '';
        display: block;
    }

    .footer-bottom p {
        color: var(--text-dark);
        margin: 0;
        text-align: center;
        grid-column: 2;
    }
    .footer-bottom a {
        color: var(--text-dark);
        text-decoration: none;
    }
    .footer-bottom a:hover {
        color: var(--primary);
        text-decoration: none;
    }

    .footer-author {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        font-size: 0.9rem;
        color: var(--text-dark);
        grid-column: 3;
        white-space: nowrap;
    }

    .footer-author img {
        height: 24px;
        width: auto;
        opacity: 0.8;
        transition: opacity 0.3s;
    }

    .footer-author a:hover img {
        opacity: 1;
    }

    @media (max-width: 1100px) {
        .footer-bottom {
            display: flex;
            flex-direction: column;
            text-align: center;
        }

        .footer-bottom::before {
            display: none;
        }

        .footer-author {
            justify-content: center;
        }
    }

    @media (max-width: 768px) {
        .footer-bottom {
             /* Keep flex column from the above query, just ensure padding is fine */
             padding-left: 0;
             padding-right: 0;
        }
    }

.partners-section {}

.partner-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: var(--space-xxxl);
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: var(--space-xxl);
    border-radius: var(--radius-modal);
    box-shadow: var(--shadow);
    background: var(--white);
}

.partner-logo img {
    max-width: 100%;
}

.partner-description h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.partner-description p {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-paragraph);
}

.partner-description .cta-secondary {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-small);
}


/* 20. Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
}

.cookie-banner p {
    margin: 0;
    font-size: var(--font-size-small);
    color: var(--text-light);
}

    .cookie-banner p a {
        color: var(--primary-dark);
        text-decoration: underline;
    }
.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-button);
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-small);
    transition: all 0.3s ease;
    min-height: 44px;
}

    .cookie-btn.btn-primary {
        background: var(--primary);
        color: var(--text-dark);
    }
.cookie-btn.btn-primary:hover {
    background: var(--primary-dark);
}

.cookie-btn.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-dark);
}

.cookie-btn.btn-secondary:hover {
    background: var(--bg-dark);
}

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

.cookie-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-card);
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow);
}

.cookie-modal-content h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.cookie-modal-content p {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.cookie-category {
    margin-bottom: var(--space-lg);
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-lg);
}

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

.cookie-category-header label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--font-size-p);
}

.cookie-category-header input[type="checkbox"] {
    margin-right: var(--space-sm);
    width: 20px;
    height: 20px;
}

.cookie-category-description {
    font-size: var(--font-size-small);
    margin-top: var(--space-xs);
    margin-bottom: 0;
    padding-left: var(--space-xl);
}

.cookie-modal-buttons {
    margin-top: var(--space-xl);
    text-align: right;
}

/* 22. Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    max-width: 900px;
    /* Widen for buttons */
    margin: 0 auto;
    padding: var(--space-xxxxl) 5.3% var(--space-xxxl);
}

.carousel-container {
    /* position: relative; */
    max-width: 800px;
    margin: var(--space-xxxl) auto 0;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonials-carousel .testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: var(--space-xl);
    box-sizing: border-box;
}

.carousel-button {
    position: absolute;
    top: 65%;
    /* Adjusted top position */
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: var(--primary);
    font-size: var(--font-size-h2);
    cursor: pointer;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-button:hover {
    color: var(--secondary);
}

.carousel-button.prev {
    left: var(--space-xl);
}

.carousel-button.next {
    right: var(--space-xl);
}

@media (max-width: 768px) {
    .carousel-button.prev {
        left: calc(-1 * var(--space-md));
    }

    .carousel-button.next {
        right: calc(-1 * var(--space-md));
    }
}

/* 23. Media Queries */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .partner-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .partner-logo {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Hamburger animation */
.hamburger.active .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (min-width: 769px) and (max-width: 1184px) {
    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1185px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        gap: 0;
    }

    .nav-links.active {
        max-height: 700px;
        padding: 1rem 0;
    }

    .nav-links li {
        padding: 1rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-text h1 {
        font-size: var(--font-size-h2);
    }

    .features-grid,
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .process-steps::before {
        display: none;
    }

    .feature-card:nth-child(2) {
        transform: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .offer-card-img {
        max-height: 250px;
        height: auto;
        aspect-ratio: unset;
    }
}
/* 24. Success Message */
.success-message {
    display: none;
    background: var(--success-bg);
    border: 1px solid var(--success-bg);
    color: var(--success-text);
    padding: var(--space-lg);
    border-radius: var(--radius-input);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.success-message.show {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 25. Article Page */
.article-page .section {
    padding-top: var(--space-xxxl);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-container h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-xxl);
}

.article-container h2 {
    font-size: var(--font-size-h2);
    margin-top: var(--space-xxl);
    margin-bottom: var(--space-md);
}

.article-container h3 {
    font-size: var(--font-size-h3);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.article-meta {
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.article-image-right {
    float: right;
    margin: var(--space-xs) 0 var(--space-lg) var(--space-lg);
    max-width: 350px;
    width: 40%;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
}

.article-intro {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    line-height: 1.7;
}

.key-takeaway {
    background: var(--bg-dark);
    border-left: 5px solid var(--primary);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-radius: var(--radius);
}

.key-takeaway p {
    margin: 0;
    font-weight: var(--font-weight-semibold);
}

.cta-buttons-article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xxl);
    gap: var(--space-lg);
}

.article-nav-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-p);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-nav-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .article-image-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: var(--space-lg) 0;
    }
}

/* 26. Knowledge Base Section */
#baza-wiedzy {
    background: var(--bg-light);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xxxl);
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
    /* Prevents titles of different lengths from breaking the layout */
    min-height: 5.2rem; 
}

.article-card p {
    color: var(--text-light);
    font-size: var(--font-size-p);
    line-height: var(--line-height-paragraph);
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.article-card .cta-secondary {
    align-self: flex-start;
    text-decoration: none;
}

@media (max-width: 768px) {
    .offer-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .cookie-banner-content {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* Additional styles for fast contact buttons */
.fast-contact-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    border-radius: var(--radius-button);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-p);
    transition: all 0.3s ease;
    gap: var(--space-sm);
    border: none;
}

.contact-button svg {
    width: 24px;
    height: 24px;
}

.phone-button {
    background-color: var(--text-dark);
    color: var(--white);
}

.phone-button:hover {
    background-color: #34495e;
}

.whatsapp-button {
    background-color: #25D366;
    color: var(--white);
}

.whatsapp-button:hover {
    background-color: #1EBE57;
}

@media (min-width: 500px) {
    .fast-contact-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

/* Adjusting contact-intro text */
.contact-intro {
    margin-bottom: var(--space-lg);
}

/* 27. Pulse animation for contact buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 176, 86, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 176, 86, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 176, 86, 0);
    }
}

.contact-button.phone-button {
    animation: pulse 2s infinite;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* 27. Masonry Gallery */
.masonry-gallery {
    column-count: 3;
    column-gap: 1rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--radius-gallery);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.masonry-item img.loaded {
    opacity: 1;
}

@media (max-width: 992px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-gallery {
        column-count: 1;
    }
}

/* 28. Form Messages & File Preview */
#form-messages {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-input);
    font-size: 1.1rem; /* Larger font size */
    font-weight: var(--font-weight-semibold);
    text-align: center;
    display: none; /* Hidden by default */
}

#form-messages.success {
    display: block;
    color: var(--success-text);
    background-color: var(--success-bg);
    border: 1px solid var(--success-text);
}

#form-messages.error {
    display: block;
    color: #721c24; /* Dark red for error text */
    background-color: #f8d7da; /* Light red for error background */
    border: 1px solid #f5c6cb; /* Reddish border */
}

#file-preview-container {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.file-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--bg-dark);
    border-radius: var(--radius);
    font-size: var(--font-size-small);
}

.file-preview-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: var(--space-md);
}

.remove-file-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 var(--space-xs);
    line-height: 1;
}

.remove-file-btn:hover {
    color: #c0392b; /* Red on hover */
}

/* Styles for checkbox group */
.form-group.checkbox-group {
    display: flex;
    align-items: flex-start; /* Align text to the top if it wraps */
    margin-bottom: var(--space-xl); /* Keep existing margin */
}

.form-group.checkbox-group input[type="checkbox"] {
    margin-right: var(--space-sm); /* Space between checkbox and text */
    flex-shrink: 0; /* Prevent checkbox from shrinking */
    width: 20px; /* Standard size for checkboxes */
    height: 20px;
    margin-top: 2px; /* Adjust vertical alignment if needed */
}

.form-group.checkbox-group label {
    display: inline; /* Override display: block for this specific label */
    margin-bottom: 0; /* Remove bottom margin from label */
    font-size: var(--font-size-p); /* Adjust font size if needed */
    line-height: 1.4; /* Adjust line height for better readability */
}