/* ==========================================================================
   1. VARIABLES & CONFIGURATION
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../assets/fonts/inter/inter-var.woff2') format('woff2'),
        url('../assets/fonts/inter/inter-var.woff') format('woff');
}

:root {
    /* Palette */
    --white: #FAFAFA;
    /* Ciut cieplejsza, niemęcząca bieli */
    --black: #0F1214;
    --grafit: #2A2F35;
    --sage-green: #6C7A65;
    --terracotta: #DC7B45;
    --serene-blue: #3A92B6;
    --light-gray: #EAEFF5;

    /* Semantic */
    --success: var(--sage-green);
    --warning: var(--terracotta);
    --error: #E03C52;
    --info: var(--serene-blue);

    /* Typography */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* UI & Effects */
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Glassmorphism */
    --glass-bg: rgba(250, 250, 250, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-blur: blur(16px);
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
    --white: #121212;
    /* Darkest background */
    --black: #FAFAFA;
    /* Text color */
    --grafit: #E0E0E0;
    /* Lighter text/headings */
    --light-gray: #1E1E1E;
    /* Elevated card background */

    /* Keep brand colors mostly the same but adjust slightly for contrast */
    --terracotta: #E28854;
    --serene-blue: #5EBFE5;
    --sage-green: #8A9273;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.5);

    /* Glassmorphism Dark Mode */
    --glass-bg: rgba(18, 18, 18, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    scroll-behavior: smooth;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--grafit);
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

h5 {
    font-size: 1.125rem;
    line-height: 1.5;
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--serene-blue);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover,
a:focus {
    color: var(--grafit);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. LAYOUT & UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--serene-blue);
    color: var(--white);
    padding: var(--space-xs);
    z-index: 1000;
    transition: top var(--transition-normal);
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   4. GLOBAL COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 123, 69, 0.3);
    /* Lighter terracotta focus ring */
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

.btn-primary:hover {
    background: #d07f4f;
    border-color: #d07f4f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.btn-outline:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-md) var(--space-lg);
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* --- Forms (Global Styles) --- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--grafit);
    font-size: 1rem;
}

.required {
    color: var(--error);
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: var(--white);
    line-height: 1.5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #c5cad1;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--serene-blue);
    box-shadow: 0 0 0 3px rgba(74, 175, 213, 0.1);
}

.form-input:invalid:not(:placeholder-shown):not(:focus),
.form-textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: var(--error);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
    opacity: 1;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233B373B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: calc(var(--space-md) * 2 + 12px);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-error {
    display: none;
    color: var(--error);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
    font-weight: 500;
}

.form-help {
    display: block;
    color: var(--grafit);
    opacity: 0.7;
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.form-checkbox-group {
    margin-top: var(--space-lg);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--serene-blue);
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--grafit);
    line-height: 1.6;
}

.checkbox-label a {
    color: var(--serene-blue);
    text-decoration: underline;
    transition: color var(--transition-normal);
}

.checkbox-label a:hover {
    color: var(--terracotta);
}

/* --- Modals (Generic) --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn var(--transition-normal);
}

.modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
    animation: scaleUp var(--transition-normal);
}

.close-modal {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--grafit);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-normal);
}

.close-modal:hover {
    background: var(--light-gray);
}

.modal-body {
    padding: var(--space-xl);
}

/* --- Loading Spinner --- */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.loading-spinner[aria-hidden="false"] {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--terracotta);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.header {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header > .container {
    max-width: 100%;
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    gap: var(--space-md);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--grafit);
    flex-shrink: 0;
}

.logo img {
    width: 17rem;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-sm);
    margin-left: auto;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    padding: 8px 14px;
    color: var(--grafit);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    white-space: nowrap;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--terracotta);
    background: var(--light-gray);
    box-shadow: 0 4px 12px rgba(58, 146, 182, 0.18);
}

.nav-link[aria-current="page"] {
    color: var(--serene-blue);
    background: var(--light-gray);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--grafit);
    position: relative;
    transition: all var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--grafit);
    left: 0;
    transition: all var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Centrowanie menu na desktopie */
@media (min-width: 769px) {
    .nav {
        margin: 0 auto;
    }
    .nav-menu {
        margin-left: 0;
    }
}

/* ==========================================================================
   6. HOMEPAGE SECTIONS
   ========================================================================== */

/* Hero section */
.hero {
    padding: var(--space-xl) 0;
    background: var(--light-gray);
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    color: var(--grafit);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    color: var(--grafit);
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--grafit);
    opacity: 0.8;
}

.hero-visual {
    position: relative;
    will-change: transform, opacity, filter;
    animation: drukReklamaReveal 2.2s cubic-bezier(0.19, 1, 0.22, 1) both;
    animation-delay: 0.4s;
}

.hero-visual img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

@keyframes drukReklamaReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(12px) brightness(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) brightness(1);
    }
}

.hero-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--terracotta);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Section Common */
.section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: 1.125rem;
    color: var(--grafit);
    opacity: 0.8;
}

/* Services section */
.services-section {
    padding: var(--space-xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.service-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    margin-bottom: var(--space-md);
    color: var(--sage-green);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--grafit);
}

.service-description {
    margin-bottom: var(--space-md);
    color: var(--black);
    opacity: 0.8;
}

.service-features {
    list-style: none;
    margin-bottom: var(--space-md);
}

.service-features li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sage-green);
    font-weight: 700;
}

.service-link {
    color: var(--serene-blue);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Projects section */
.projects-section {
    padding: var(--space-xl) 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: var(--space-md);
}

.favorite-btn {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: all var(--transition-normal);
    color: var(--grafit);
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active {
    color: var(--error);
}

.favorite-btn svg {
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.favorite-btn.active svg {
    fill: var(--error);
    stroke: var(--error);
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--grafit);
}

.project-description {
    margin-bottom: var(--space-sm);
    color: var(--black);
    opacity: 0.8;
}

.project-meta {
    display: flex;
    gap: var(--space-sm);
}

.meta-item {
    font-size: 0.875rem;
    color: var(--grafit);
    padding: var(--space-xs) var(--space-sm);
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

/* Process section */
.process-section {
    padding: var(--space-xl) 0;
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-md);
}

.step-number {
    background: var(--terracotta);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--grafit);
}

.step-description {
    color: var(--black);
    opacity: 0.8;
}

/* CTA section */
.cta-section {
    padding: var(--space-xl) 0;
    background: var(--grafit);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.cta-description {
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

/* ==========================================================================
   7. CONTACT PAGE STYLES
   ========================================================================== */

/* Contact Hero */
.contact-hero {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    text-align: center;
}

.contact-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Info Section */
.contact-info-section {
    padding: var(--space-xl) 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

/* Main Contact Card */
.contact-card-main {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-gray);
}

.contact-card-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--light-gray);
}

.contact-card-icon {
    color: var(--terracotta);
    margin-bottom: var(--space-md);
    display: inline-block;
}

.contact-card-title {
    font-size: 1.75rem;
    color: var(--grafit);
    margin: 0;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-detail-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact-detail-item svg {
    color: var(--sage-green);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-detail-item strong {
    display: block;
    color: var(--grafit);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    font-size: 1.05rem;
}

.contact-detail-item address,
.contact-detail-item p {
    font-style: normal;
    color: var(--black);
    opacity: 0.85;
    line-height: 1.6;
    margin: 0;
}

.contact-detail-item a {
    color: var(--serene-blue);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.contact-detail-item a:hover {
    color: var(--terracotta);
    text-decoration: underline;
}

/* Quick Contact Info */
.quick-contact-info {
    background: linear-gradient(135deg, var(--terracotta) 0%, #d07f4f 100%);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.quick-contact-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.quick-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.quick-contact-buttons .btn {
    width: 100%;
    justify-content: center;
    gap: var(--space-xs);
}

.quick-contact-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

.quick-contact-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--terracotta);
}

.quick-contact-buttons .btn-primary {
    background: var(--white);
    color: var(--terracotta);
    border-color: var(--white);
}

.quick-contact-buttons .btn-primary:hover {
    background: var(--light-gray);
    border-color: var(--light-gray);
}

.business-hours {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.hours-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.hours-note svg {
    flex-shrink: 0;
}

/* Contact Form Section */
.contact-form-section {
    padding: var(--space-xl) 0;
    background: var(--light-gray);
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-actions {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.form-actions .btn {
    min-width: 250px;
    gap: var(--space-xs);
}

.form-note {
    font-size: 0.875rem;
    color: var(--grafit);
    opacity: 0.8;
    margin: 0;
}

/* Form Messages */
.form-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-lg);
}

.form-message svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.form-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-success svg {
    stroke: #155724;
}

.form-message strong {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 1.05rem;
}

.form-message p {
    margin: 0;
    line-height: 1.5;
}

/* Contact FAQ Section */
.contact-faq-section {
    padding: var(--space-xl) 0;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.faq-item {
    background: var(--light-gray);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--sage-green);
}

.faq-question {
    font-size: 1.125rem;
    color: var(--grafit);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.faq-question svg {
    color: var(--terracotta);
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-answer {
    color: var(--black);
    opacity: 0.85;
    margin: 0;
    line-height: 1.7;
}

.faq-answer strong {
    color: var(--terracotta);
    font-weight: 600;
}

/* ==========================================================================
   8. GALLERY PAGE STYLES
   ========================================================================== */
/*Gallery Header*/
.gallery-header {
    animation: fadeIn 0.8s ease-out;
}

.gallery-header h1 {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.gallery-header p {
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}


/* Gallery Hero */
.gallery-hero {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    text-align: center;
}

.gallery-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-hero .hero-title {
    font-size: 2.75rem;
}

.gallery-hero .gallery-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

/* Gallery Controls */
.gallery-controls-section {
    padding: var(--space-lg) 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    z-index: 900;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    color: var(--grafit);
    opacity: 0.5;
}

.search-input {
    width: 100%;
    padding: var(--space-sm) var(--space-sm) var(--space-sm) calc(var(--space-sm) * 3);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.search-input:focus {
    outline: none;
    border-color: var(--serene-blue);
    box-shadow: 0 0 0 3px rgba(74, 175, 213, 0.1);
}

.clear-search {
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: var(--grafit);
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.clear-search:hover {
    opacity: 1;
}

/* Sort Dropdown */
.sort-wrapper {
    position: relative;
    min-width: 200px;
}

.sort-icon {
    position: absolute;
    left: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    color: var(--grafit);
    opacity: 0.5;
    pointer-events: none;
}

.sort-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md) var(--space-sm) calc(var(--space-sm) * 3);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233B373B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-color: var(--white);
    transition: all var(--transition-normal);
}

.sort-select:focus {
    outline: none;
    border-color: var(--serene-blue);
    box-shadow: 0 0 0 3px rgba(74, 175, 213, 0.1);
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 4px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border: none;
    background: transparent;
    color: var(--grafit);
    cursor: pointer;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.view-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.view-toggle-btn.active {
    background: var(--white);
    color: var(--terracotta);
    box-shadow: var(--shadow-sm);
}

.view-toggle-btn:hover:not(.active) {
    color: var(--serene-blue);
}

/* Results Counter */
.results-counter {
    margin-left: auto;
    color: var(--grafit);
    font-size: 0.95rem;
    white-space: nowrap;
}

.results-counter span {
    font-weight: 700;
    color: var(--terracotta);
}

/* Gallery Content */
.gallery-content-section {
    padding: 0;
    background: var(--light-gray);
}

.gallery-view {
    min-height: 600px;
}

.gallery-view.active {
    display: block;
}

/* Grid View */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    /* Nieco szersze karty */
    gap: 2rem;
    width: 100%;
}


#gridView {
    padding: var(--space-xl) 0;
}

.gallery-card {
    background: var(--white);
    border-radius: 12px;
    /* Większe zaokrąglenie */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sekcja zdjęcia */
.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card:hover .card-image {
    transform: scale(1.08);
}

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.card-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--grafit);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.card-action-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--white);
    color: var(--grafit);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-card:hover .card-action-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Sekcja treści */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--grafit);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sage-green);
    /* Użycie koloru firmowego */
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--grafit);
    font-weight: 500;
}

.card-meta svg {
    color: var(--terracotta);
}

.card-link {
    font-size: 0.9rem;
    color: var(--serene-blue);
    font-weight: 600;
    transition: transform 0.2s;
}

.gallery-card:hover .card-link {
    transform: translateX(4px);
    color: var(--terracotta);
}


.gallery-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
    /* Wymuś równą wysokość w rzędzie */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item-image {
    position: relative;
    width: 100%;
    height: 240px;
    /* Stała wysokość zdjęcia */
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item-image img {
    transform: scale(1.08);
}

/* Overlay - pojawia się tylko po najechaniu na zdjęcie */
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.view-details-btn {
    background: var(--white);
    color: var(--terracotta);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .view-details-btn {
    transform: translateY(0);
}

/* Info - zawsze widoczne pod zdjęciem */
.gallery-item-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 1px solid var(--light-gray);
}

.gallery-item-title {
    font-size: 1.25rem;
    color: var(--grafit);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.gallery-item-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--grafit);
    opacity: 0.7;
    flex-wrap: wrap;
}

.gallery-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: var(--grafit);
}

.no-results svg {
    margin: 0 auto var(--space-md);
    opacity: 0.3;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.no-results p {
    font-size: 1rem;
    opacity: 0.7;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
}

.gallery-modal[aria-hidden="false"] {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease-out;
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Gallery Modal Content Layout override */
.gallery-modal .modal-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    padding: var(--space-xl);
    gap: var(--space-xl);
    background: transparent;
    /* Reset because gallery modal structure is different */
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
}

/* Modal Slider */
.modal-slider {
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-images {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slider-image {
    display: none;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.slider-image.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 5;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slider-prev {
    left: var(--space-md);
}

.slider-next {
    right: var(--space-md);
}

.slider-counter {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Modal Info */
.modal-info {
    flex: 1;
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    overflow-y: auto;
    max-height: 80vh;
}

.modal-project-title {
    font-size: 2rem;
    color: var(--grafit);
    margin-bottom: var(--space-md);
}

.modal-project-description {
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.modal-project-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.modal-project-meta .meta-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    padding: var(--space-md);
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.modal-project-meta .meta-item svg {
    color: var(--terracotta);
    flex-shrink: 0;
}

.modal-project-meta .meta-item strong {
    display: block;
    color: var(--grafit);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.modal-project-meta .meta-item span {
    color: var(--black);
    opacity: 0.85;
}

.modal-actions {
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
}

/* Modal Thumbnails */
.modal-thumbnails {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.5);
}

.modal-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition-normal);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.modal-thumbnail:hover {
    opacity: 0.8;
}

.modal-thumbnail.active {
    opacity: 1;
    border-color: var(--terracotta);
}

.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   9. MAPS & PLUGINS (Leaflet)
   ========================================================================== */

/* Map Containers */
.map-section {
    padding: var(--space-xl) 0;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: var(--space-lg);
    position: relative;
}

.gallery-map {
    width: 100%;
    height: 80vh;
    /* Zmiana na wysokość relatywną do ekranu */
    min-height: 500px;
    /* Zabezpieczenie dla bardzo niskich ekranów */
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    margin-top: 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.gallery-map .leaflet-marker-icon {
    /* Filtr zmieniający niebieski (domyślny) na pomarańczowy */
    filter: hue-rotate(193deg) brightness(1) saturate(2);
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-lg);
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

;


.legend-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--grafit);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--grafit);
}

.legend-marker {
    width: 25px;
    height: auto;
}

/* Custom Marker Cluster Styles */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(229, 148, 98, 0.6);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: var(--terracotta);
    color: var(--white);
    font-weight: 700;
}

/* Leaflet Custom Styles & Resets */
.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0 !important;
    width: 100% !important;
}

.leaflet-popup-content strong {
    color: var(--grafit);
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 1.05rem;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 24px;
    padding: 8px 12px 0 0;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--terracotta);
}

/* Map Popup Card */
.map-popup-card {
    display: flex;
    flex-direction: row;
    /* Zmiana układu na poziomy (zdjęcie obok tekstu) */
    font-family: var(--font-body);
    width: 100%;
    min-width: 320px;
    /* Wymuszenie szerokości */
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-popup-header {
    position: relative;
    width: 45%;
    /* Zdjęcie zajmuje 45% szerokości */
    min-height: 220px;
    /* Zwiększona wysokość */
    overflow: hidden;
}

.map-popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.map-popup-card:hover .map-popup-img {
    transform: scale(1.05);
}

.map-popup-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    /* Przeniesiono na lewo dla lepszej czytelności w tym układzie */
    right: auto;
    background: rgba(255, 255, 255, 0.9);
    color: var(--terracotta);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.5rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.map-popup-body {
    width: 55%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}

.map-popup-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--grafit);
    line-height: 1.3;
}

.map-popup-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: var(--sage-green);
}

.map-popup-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--grafit);
    opacity: 0.8;
}

.map-popup-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-popup-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
    background: var(--grafit);
    color: var(--white);
    padding: var(--space-xl) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    margin-bottom: var(--space-sm);
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-description {
    margin-bottom: var(--space-md);
    opacity: 0.8;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
}

.footer-title {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact .contact-item {
    margin-bottom: var(--space-md);
}

.footer-contact strong {
    display: block;
    margin-bottom: 2px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright,
.footer-credits {
    opacity: 0.8;
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-credits a:hover {
    color: var(--white);
}

/* ==========================================================================
   11.About Page Styles
   ========================================================================== */
/* --- Hero Section --- */
.about-hero {
    padding: calc(var(--space-xl) * 2) 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.subtitle-decoration {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--terracotta);
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: 60px;
}

.subtitle-decoration::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--terracotta);
}

.hero-title-large {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--grafit);
    font-weight: 300;
    /* Modernist thin weight */
}

.hero-title-large .highlight {
    font-weight: 700;
    color: var(--black);
    position: relative;
    z-index: 1;
}

.hero-title-large .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(229, 148, 98, 0.2);
    /* Terracotta transparent */
    z-index: -1;
}

/* Animowany baner w sekcji hero strony O nas - ukośne dzielenie tła hero (napis po lewej, zdjęcie po prawej) */
.about-hero {
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: var(--light-gray); /* Jasnoszare tło po lewej stronie */
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero-content {
    max-width: 550px; /* Ograniczenie szerokości tekstu, aby nie wchodził na zdjęcie */
}

.about-hero-animated-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: blur(15px) brightness(0.5); /* Efekt mgły na starcie (mocne zamazanie i przyciemnienie) */
    transform: translateX(120px) scale(1.03); /* Delikatniejszy, bardziej dystyngowany ruch */
    transition: opacity 3.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 4.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 3.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-hero-animated-img.animate-in {
    opacity: 1;
    filter: blur(0) brightness(1); /* Pełne wyłonienie się z mgły do ostrego obrazu */
    transform: translateX(0) scale(1);
}

/* Desktop layout: Ukośne zdjęcie zajmuje prawą stronę tła sekcji hero */
@media (min-width: 992px) {
    .about-hero {
        min-height: 70vh; /* Większa wysokość dla spektakularnego efektu hero */
    }

    .about-hero-bg-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        /* Ukośne cięcie tła: dopasowane do zrzutu ekranu */
        -webkit-clip-path: polygon(30.5% 0, 100% 0, 100% 100%, 23.5% 100%);
        clip-path: polygon(30.5% 0, 100% 0, 100% 100%, 23.5% 100%);
    }
}

/* Mobile/Tablet layout: zdjęcie wyświetla się klasycznie pod tekstem */
@media (max-width: 991px) {
    .about-hero {
        flex-direction: column;
        padding: var(--space-xl) 0;
    }

    .about-hero-bg-image {
        width: 100%;
        max-width: 500px;
        height: 350px;
        margin: var(--space-xl) auto 0 auto;
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--shadow-lg);
    }
    
    .about-hero-animated-img {
        border-radius: var(--border-radius);
    }
}

/* Geometric Background - ukryte zgodnie z życzeniem użytkownika */
.hero-geometric-bg {
    display: none;
}

/* --- Story Section (Asymmetric) --- */
.about-story-section {
    padding: calc(var(--space-xl) * 2) 0;
    background: var(--white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.story-image-wrapper {
    position: relative;
    padding-right: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.image-frame {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.story-image-wrapper:hover .image-frame img {
    transform: scale(1.03);
}

/* Decorative backdrop for image */
.story-image-wrapper::before {
    content: '';
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    width: 100%;
    height: 100%;
    border: 2px solid var(--terracotta);
    z-index: 1;
    border-radius: var(--border-radius);
}

.exp-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--grafit);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-md);
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--terracotta);
}

.exp-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Text Content */
.text-block p {
    margin-bottom: var(--space-md);
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--grafit) !important;
    font-weight: 500;
}

.signature-block {
    margin-top: var(--space-xl);
    border-top: 1px solid var(--light-gray);
    padding-top: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.signature-img {
    height: 60px;
    width: auto;
    opacity: 0.8;
}

.owner-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.owner-info strong {
    color: var(--grafit);
}

/* --- Values Section --- */
.values-section {
    padding: var(--space-xl) 0;
    background: var(--light-gray);
}

.values-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.separator-line {
    width: 60px;
    height: 3px;
    background: var(--terracotta);
    margin: var(--space-sm) auto 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.value-card {
    background: var(--white);
    padding: var(--space-lg);
    position: relative;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-bottom-color: var(--terracotta);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-illustration {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: var(--light-gray);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
    display: block;
    overflow: hidden;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.value-card:hover .value-illustration {
    transform: scale(1.03);
}

.value-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-gray);
    opacity: 0.5;
    /* Watermark style */
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--font-heading);
}

.value-card h3 {
    margin-top: var(--space-md);
    font-size: 1.25rem;
    color: var(--grafit);
}

/* --- Stats Strip --- */
.stats-strip {
    background: var(--grafit);
    color: var(--white);
    padding: var(--space-xl) 0;
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.stat-item .counter {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--terracotta);
    font-family: var(--font-heading);
}

.stat-item .label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: -5px;
}

/* --- Responsive Adjustments for About --- */
@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-image-wrapper {
        margin-bottom: var(--space-lg);
        padding-right: 0;
    }

    .story-image-wrapper::before {
        display: none;
        /* Simplify on mobile */
    }

    .hero-geometric-bg {
        width: 100%;
        height: 30%;
        bottom: 0;
        top: auto;
        clip-path: polygon(0 100%, 100% 100%, 100% 0);
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .stats-flex {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .hero-title-large {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   12. Individual Project Page Styles
   ========================================================================== */
/* --- Hero Section: Blueprint Theme --- */
.ind-hero {
    min-height: 70vh;
    background-color: #f4f6f8;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 175, 213, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 175, 213, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 1;
}

.ind-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.ind-tag {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    /* font-body */
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sage-green);
    margin-bottom: var(--space-md);
    border: 1px solid var(--sage-green);
    padding: 6px 12px;
}

.ind-title {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--grafit);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.highlight-line {
    position: relative;
    color: var(--terracotta);
}

.ind-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
    max-width: 500px;
}

/* Tech Lines Decoration */
.tech-lines {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    z-index: 1;
    pointer-events: none;
}

.line {
    position: absolute;
    background: var(--grafit);
    opacity: 0.1;
}

.v-line {
    width: 1px;
    height: 100%;
    left: 50%;
}

.h-line {
    width: 100%;
    height: 1px;
    top: 50%;
}

.circle-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 1px solid rgba(59, 55, 59, 0.1);
    /* grafit 0.1 */
    border-radius: 50%;
}

/* --- Intro Section --- */
.ind-intro {
    padding: calc(var(--space-xl) * 2) 0;
    background: var(--white);
}

.intro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.intro-text p {
    color: #666;
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.intro-features {
    display: grid;
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feat-icon {
    font-size: 1.5rem;
}

.feature-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Timeline Section --- */
.process-timeline-section {
    padding: calc(var(--space-xl) * 2) 0;
    background: var(--white);
}

.section-header-center {
    text-align: center;
    margin-bottom: calc(var(--space-xl) * 2);
}

.pre-header {
    display: block;
    color: var(--terracotta);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--light-gray);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

/* Left side items */
.timeline-item {
    left: 0;
    text-align: right;
}

/* Right side items */
.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--terracotta);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--terracotta);
    top: 0;
}

/* Positioning marker for left items */
.timeline-item .timeline-marker {
    right: -20px;
}

/* Positioning marker for right items */
.timeline-item.right .timeline-marker {
    left: -20px;
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--grafit);
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* --- Showcase Section --- */
.ind-showcase {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: var(--space-xl) 0;
}

.showcase-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: -1;
    filter: brightness(0.6);
}

.showcase-overlay {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-xl);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border-radius: var(--border-radius);
}

.showcase-overlay h3 {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.showcase-overlay cite {
    display: block;
    margin-bottom: var(--space-md);
    color: var(--terracotta);
    font-style: normal;
    font-weight: 600;
}

/* --- FAQ Section --- */
.ind-faq {
    padding: var(--space-xl) 0;
    background: var(--light-gray);
}

.faq-wrapper {
    max-width: 800px;
    margin: var(--space-lg) auto 0;
}

.modern-details {
    background: var(--white);
    margin-bottom: var(--space-md);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-details[open] {
    box-shadow: var(--shadow-md);
}

.modern-details summary {
    padding: var(--space-md);
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 40px;
}

.modern-details summary::-webkit-details-marker {
    display: none;
}

.modern-details summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--terracotta);
}

.modern-details[open] summary::after {
    content: '-';
}

.details-content {
    padding: 0 var(--space-md) var(--space-md);
    color: #555;
    line-height: 1.6;
    border-top: 1px solid var(--light-gray);
}

/* --- Responsive for Individual Page --- */
@media (max-width: 900px) {
    .ind-title {
        font-size: 2.5rem;
    }

    .intro-layout {
        grid-template-columns: 1fr;
    }

    .tech-lines {
        display: none;
        /* Hide on smaller screens */
    }
}

@media (max-width: 768px) {

    /* Timeline goes vertical left aligned on mobile */
    .timeline-container::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 10px;
        text-align: left;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item .timeline-marker,
    .timeline-item.right .timeline-marker {
        left: 0;
        right: auto;
    }
}

/* ==========================================================================
   14. ready-projects styles
   ========================================================================== */
/* --- Hero Section --- */
.ready-hero {
    padding: calc(var(--space-xl) * 1.5) 0;
    background: var(--white);
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.ready-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.catalog-search-wrapper {
    margin-top: var(--space-lg);
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-search-input {
    width: 100%;
    padding: 16px 50px 16px 24px;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.catalog-search-input:focus {
    outline: none;
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.catalog-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--grafit);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.catalog-search-btn:hover {
    background: var(--terracotta);
}

/* --- Catalog Section --- */
.catalog-section {
    padding: var(--space-xl) 0;
    background: #f8f9fa;
    min-height: 600px;
}

/* Filters */
.catalog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--grafit);
    margin-right: 5px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.filter-btn.active {
    background: var(--grafit);
    color: var(--white);
    border-color: var(--grafit);
}

.results-count {
    color: #888;
    font-size: 0.9rem;
}

.results-count strong {
    color: var(--grafit);
}

/* Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

/* Catalog Card */
.catalog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.cc-image-wrapper {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.cc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.catalog-card:hover img {
    transform: scale(1.05);
}

.cc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--grafit);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cc-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.cc-title {
    font-size: 1.15rem;
    margin: 0;
    color: var(--grafit);
    font-weight: 600;
}

.cc-price {
    font-weight: 700;
    color: var(--terracotta);
    font-size: 1rem;
    white-space: nowrap;
    margin-left: 10px;
}

.cc-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-outline-sm {
    margin-top: auto;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    background: transparent;
    color: var(--grafit);
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-outline-sm:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    background: rgba(229, 148, 98, 0.05);
}

/* No Results */
.catalog-no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

/* --- Adaptation Section --- */
.adaptation-section {
    padding: var(--space-xl) 0;
    background: var(--white);
}

.adaptation-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Zwiększona dwukrotnie proporcja kolumny ze zdjęciem rzutu */
    gap: var(--space-xl);
    align-items: center;
}

.adaptation-image img {
    width: 100%;
    height: auto;
    max-width: 900px; /* Zwiększona szerokość maksymalna rzutu */
    display: block;
    margin: 0 auto;
}

.section-tag {
    text-transform: uppercase;
    color: var(--terracotta);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.check-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--grafit);
}

.check-list li::before {
    content: '•';
    color: var(--terracotta);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.adaptation-image {
    position: relative;
    padding: 20px;
}

.floating-card {
    position: absolute;
    bottom: 40px;
    left: 0;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--sage-green);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fc-icon {
    font-size: 1.5rem;
    color: var(--sage-green);
    font-weight: 700;
}

.fc-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--grafit);
    line-height: 1.2;
}

.btn-large-white {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-large-white:hover {
    background: var(--white);
    color: var(--grafit);
}

/* Responsive */
@media (max-width: 900px) {
    .adaptation-grid {
        grid-template-columns: 1fr;
    }

    .adaptation-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .catalog-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .filter-btn {
        flex-shrink: 0;
    }
}

/* ==========================================================================
   15. INVESTMENT SERVICE STYLES
   ========================================================================== */
/* --- Hero Section --- */
.invest-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-color: var(--grafit);
    color: var(--white);
    overflow: hidden;
}

.invest-hero-bg {
    position: absolute;
    inset: 0;
    /* Abstrakcyjne tło geometryczne */
    background-image:
        linear-gradient(45deg, rgba(59, 55, 59, 0.9), rgba(59, 55, 59, 0.7)),
        url('../images/realizations/interiors/interior-1.jpg');
    /* Fallback image */
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.invest-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.invest-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.text-terracotta {
    color: var(--terracotta);
}

.invest-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: var(--space-xl);
    font-weight: 300;
}

.hero-stats-row {
    display: flex;
    gap: var(--space-xl);
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hs-val {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1;
}

.hs-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 5px;
}

/* --- Services Grid --- */
.invest-services {
    padding: calc(var(--space-xl) * 2) 0;
    background: var(--white);
}

.section-header-left {
    margin-bottom: var(--space-xl);
    border-left: 4px solid var(--terracotta);
    padding-left: var(--space-md);
}

.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.inv-card {
    background: #f8f9fa;
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.inv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(229, 148, 98, 0.3);
    background: var(--white);
}

.inv-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.inv-card h3 {
    font-size: 1.5rem;
    color: var(--grafit);
    margin-bottom: var(--space-sm);
}

.inv-list {
    margin-top: var(--space-md);
    padding-left: 0;
    list-style: none;
}

.inv-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.inv-list li::before {
    content: '›';
    color: var(--terracotta);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* --- Interactive Process Tabs --- */
.invest-process {
    padding: calc(var(--space-xl) * 2) 0;
    background: var(--grafit);
    color: var(--white);
}

.text-white {
    color: var(--white);
}

.process-tabs-container {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: var(--space-xl);
    box-shadow: var(--shadow-lg);
    color: var(--black);
}

.process-tabs {
    display: flex;
    background: #f0f0f0;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--grafit);
    background: #e5e5e5;
}

.tab-btn.active {
    background: var(--white);
    color: var(--terracotta);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.step-num {
    background: #ddd;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.tab-btn.active .step-num {
    background: var(--terracotta);
}

.tab-content {
    display: none;
    padding: var(--space-xl);
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

.content-flex {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.text-side {
    flex: 1;
}

.graphic-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tab-img {
    max-width: 250px;
    height: auto;
}

.tab-img-small {
    max-width: 125px;
}

.tab-img-large {
    max-width: 500px;
}

/* --- ROI Section --- */
.invest-roi {
    padding: calc(var(--space-xl) * 2) 0;
    background: var(--white);
}

.roi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.roi-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--terracotta);
    margin-bottom: var(--space-lg);
}

.roi-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.roi-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 600;
}

.progress-bg {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--grafit);
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .content-flex {
        flex-direction: column-reverse;
    }

    .roi-grid {
        grid-template-columns: 1fr;
    }

    .invest-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .process-tabs {
        flex-direction: column;
    }

    .tab-btn {
        justify-content: flex-start;
        border-bottom: 1px solid #ddd;
    }
}

/* ==========================================================================
   16. PRIVACY POLICY STYLES
   ========================================================================== */
/* --- Hero Section --- */
.privacy-hero {
    padding: calc(var(--space-xl) * 1.5) 0;
    background: #f8f9fa;
    border-bottom: 1px solid var(--light-gray);
    text-align: center;
}

.ph-content {
    max-width: 800px;
    margin: 0 auto;
}

.update-badge {
    display: inline-block;
    background: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--sage-green);
    font-weight: 600;
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ph-title {
    font-size: 3rem;
    color: var(--grafit);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.ph-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Layout Grid --- */
.privacy-body {
    padding: var(--space-xl) 0;
    background: var(--white);
}

.privacy-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* Sidebar fixed width, Content fluid */
    gap: calc(var(--space-xl) * 2);
    align-items: start;
}

/* --- Sidebar (Sticky TOC) --- */
.privacy-sidebar {
    position: sticky;
    top: 100px;
    /* Offset for header */
}

.toc-nav {
    background: var(--white);
    padding: var(--space-md);
    border-left: 2px solid var(--light-gray);
}

.toc-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
}

.toc-nav li {
    margin-bottom: 10px;
}

.toc-link {
    display: block;
    color: var(--grafit);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 5px 0;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.toc-link:hover {
    opacity: 1;
    color: var(--terracotta);
}

.toc-link.active {
    opacity: 1;
    color: var(--terracotta);
    font-weight: 600;
    transform: translateX(5px);
}

/* --- Main Content --- */
.privacy-text {
    max-width: 800px;
}

.policy-section {
    margin-bottom: calc(var(--space-xl) * 1.5);
    scroll-margin-top: 100px;
    /* For smooth anchor positioning */
}

.policy-section h2 {
    font-size: 1.75rem;
    color: var(--grafit);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--light-gray);
}

.policy-section p {
    color: #555;
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.policy-list {
    list-style: none;
    margin-bottom: var(--space-md);
    padding-left: 0;
}

.policy-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #555;
}

.policy-list li::before {
    content: '•';
    color: var(--terracotta);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.policy-ordered-list {
    margin-bottom: var(--space-md);
    padding-left: 20px;
    color: #555;
}

.policy-ordered-list li {
    margin-bottom: 8px;
}

.info-box {
    background: #f9f9f9;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--sage-green);
    margin-bottom: var(--space-md);
}

.info-box h4 {
    margin-top: 0;
    color: var(--grafit);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.info-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-highlight {
    background: var(--light-gray);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    margin-top: var(--space-md);
}

.contact-highlight p {
    margin-bottom: 8px;
    color: var(--grafit);
}

.contact-highlight a {
    color: var(--terracotta);
    font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .privacy-sidebar {
        position: relative;
        top: 0;
        margin-bottom: var(--space-lg);
        border-bottom: 1px solid var(--light-gray);
    }

    .toc-nav {
        border-left: none;
        padding: 0 0 var(--space-md) 0;
    }

    .toc-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .toc-link.active {
        transform: none;
        text-decoration: underline;
    }
}

@media (max-width: 600px) {
    .ph-title {
        font-size: 2rem;
    }

    .toc-nav ul {
        flex-direction: column;
        gap: 5px;
    }
}

/* ==========================================================================
   18. TERMS OF SERVICE STYLES
   ========================================================================== */
/* --- Hero Section --- */
.terms-hero {
    padding: calc(var(--space-xl) * 1.5) 0;
    background: var(--grafit);
    color: var(--white);
    text-align: center;
}

.terms-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.th-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--terracotta);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(229, 148, 98, 0.3);
}

.th-title {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.th-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: var(--space-lg);
}

.th-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-icon:hover {
    background: var(--white);
    color: var(--grafit);
}

.update-date {
    font-size: 0.85rem;
    opacity: 0.6;
    font-style: italic;
}

/* --- Content Layout --- */
.terms-body {
    padding: var(--space-xl) 0;
    background: var(--white);
}

.terms-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: calc(var(--space-xl) * 2);
    align-items: start;
}

/* Sidebar */
.terms-sidebar {
    position: sticky;
    top: 100px;
}

.terms-nav {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.nav-header {
    display: block;
    font-weight: 700;
    color: var(--grafit);
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.terms-nav ul {
    list-style: none;
    padding: 0;
}

.terms-nav li {
    margin-bottom: 0;
}

.t-link {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.t-link:hover {
    background: rgba(0, 0, 0, 0.02);
    color: var(--grafit);
}

.t-link.active {
    border-left-color: var(--terracotta);
    background: var(--white);
    color: var(--grafit);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Content Area */
.terms-content {
    max-width: 850px;
}

.terms-intro-box {
    background: #fff8f5;
    /* Light terracotta tint */
    border: 1px solid rgba(229, 148, 98, 0.2);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xl);
    color: var(--grafit);
}

.clause-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.clause-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: var(--space-md);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.clause-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terracotta);
    font-family: var(--font-heading);
}

.clause-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--grafit);
}

.clause-text p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.def-list {
    margin-bottom: var(--space-md);
}

.def-list li {
    margin-bottom: 10px;
    color: #555;
}

.warning-box {
    display: flex;
    gap: 15px;
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.wb-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grafit);
}

.warning-box p {
    margin: 0;
    font-size: 0.95rem;
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .terms-sidebar,
    .th-actions {
        display: none;
    }

    .terms-layout {
        display: block;
    }

    .terms-hero {
        padding: 20px 0;
        background: white;
        color: black;
        border-bottom: 2px solid black;
    }

    .th-title {
        color: black;
        font-size: 24pt;
    }

    .clause-section {
        page-break-inside: avoid;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .terms-layout {
        grid-template-columns: 1fr;
    }

    .terms-sidebar {
        position: relative;
        top: 0;
        margin-bottom: var(--space-lg);
    }

    .t-link {
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .t-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--terracotta);
    }

    .terms-nav ul {
        display: flex;
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   19. ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   20. DARK MODE & THEME SWITCHER 
   ========================================================================== */
/* 1. Definicja kolorów dla trybu ciemnego */
[data-theme="dark"] {
    --white: #121212;
    /* Głęboka czerń dla tła */
    --light-gray: #1e1e1e;
    /* Ciemniejszy odcień dla sekcji */
    --black: #e0e0e0;
    /* Jasny tekst */
    --grafit: #ffffff;
    /* Białe nagłówki */

    /* Dopasowanie akcentów */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.8);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.9);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 1);

    /* Zmniejszenie kontrastu zdjęć w trybie ciemnym dla komfortu oczu */
    --image-filter: brightness(0.85);
}

/* Aplikacja filtra do zdjęć w trybie ciemnym */
[data-theme="dark"] img {
    filter: var(--image-filter);
}

/* Logo w trybie ciemnym korzysta z dedykowanego pliku archibud-logo-alt.png */
[data-theme="dark"] .logo img {
    filter: none;
}

/* Wyłączenie rozmycia i dopasowanie jasności dla banera w trybie ciemnym po załadowaniu */
[data-theme="dark"] .about-hero-animated-img.animate-in {
    filter: blur(0) var(--image-filter);
}

/* 2. Przycisk zmiany motywu (Prawy róg strony) */
.header {
    position: relative;
    /* Punkt odniesienia dla przycisku */
}

.theme-toggle-btn {
    position: absolute;
    right: 25px;
    /* Odstęp od prawej krawędzi ekranu */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    /* Powyżej menu */

    background: var(--white);
    border: 1px solid var(--light-gray);
    color: var(--grafit);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* Logika ikon */
.icon-sun {
    display: none;
}

.icon-moon {
    display: block;
}

[data-theme="dark"] .icon-sun {
    display: block;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

/* 3. Responsywność - uniknięcie kolizji z Hamburgerem */
@media (max-width: 768px) {
    .theme-toggle-btn {
        right: 70px;
        /* Przesunięcie w lewo, obok hamburgera */
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
}

[data-theme="dark"] .footer {
    background-color: #050505;
    /* Głęboka czerń, różna od tła body (#121212) */
    color: rgba(255, 255, 255, 0.8);
    /* Wymuszony jasny tekst */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Przywrócenie widoczności nagłówków w stopce */
[data-theme="dark"] .footer-title {
    color: #ffffff;
}

/* Obsługa linków w stopce */
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-contact a,
[data-theme="dark"] .footer-credits a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

[data-theme="dark"] .footer-links a:hover,
[data-theme="dark"] .footer-contact a:hover,
[data-theme="dark"] .footer-credits a:hover {
    color: var(--terracotta);
}

/* Naprawa Social Linków w stopce */
[data-theme="dark"] .footer .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .footer .social-link:hover {
    background: var(--terracotta);
}

/* Naprawa dolnej linii w stopce */
[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Logo w trybie ciemnym w stopce korzysta z dedykowanego pliku archibud-logo-alt.png */
[data-theme="dark"] .footer-logo img {
    filter: none;
    opacity: 0.9;
}

/* Naprawa pola wyboru (dropdown) w trybie ciemnym */
[data-theme="dark"] .form-select {
    background-color: var(--white);
    /* Ciemne tło (zdefiniowane w zmiennych dark mode) */
    color: var(--black);
    /* Jasny tekst */
    border-color: var(--light-gray);

    /* Podmiana strzałki na jasną (zmieniłem fill='%233B373B' na fill='%23e0e0e0') */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0e0e0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Naprawa poszczególnych opcji na liście rozwijanej */
[data-theme="dark"] .form-select option {
    background-color: #121212;
    /* Wymuszenie ciemnego tła dla listy */
    color: #e0e0e0;
    /* Wymuszenie jasnego tekstu */
}

/* Opcjonalnie: poprawa widoczności placeholderów w inputach w trybie ciemnym */
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Naprawa pola wyboru (dropdown) w trybie ciemnym */
[data-theme="dark"] .form-select {
    background-color: var(--white);
    /* Ciemne tło (zdefiniowane w zmiennych dark mode) */
    color: var(--black);
    /* Jasny tekst */
    border-color: var(--light-gray);
    /* Podmiana strzałki na jasną (zmieniłem fill='%233B373B' na fill='%23e0e0e0') */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0e0e0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Naprawa poszczególnych opcji na liście rozwijanej */
[data-theme="dark"] .form-select option {
    background-color: #121212;
    /* Wymuszenie ciemnego tła dla listy */
    color: #e0e0e0;
    /* Wymuszenie jasnego tekstu */
}

/* Opcjonalnie: poprawa widoczności placeholderów w inputach w trybie ciemnym */
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 3.1 Projekty gotowe - tryb ciemny */
[data-theme="dark"] .catalog-card {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .cc-title {
    color: #e0e0e0;
}

[data-theme="dark"] .cc-badge {
    background: rgba(30, 30, 30, 0.95);
    color: #e0e0e0;
}

[data-theme="dark"] .cc-icon,
[data-theme="dark"] .cc-value {
    color: #b0b0b0;
}

[data-theme="dark"] .filter-btn {
    color: #b0b0b0;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .filter-btn:hover {
    color: var(--terracotta);
    border-color: var(--terracotta);
}

[data-theme="dark"] .filter-btn.active {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

[data-theme="dark"] .results-count {
    color: #b0b0b0;
}

[data-theme="dark"] .results-count strong {
    color: #e0e0e0;
}

[data-theme="dark"] .catalog-no-results {
    color: #b0b0b0;
}

/* 3.2 Projekty indywidualne - tryb ciemny */
[data-theme="dark"] .feature-item {
    background: #1e1e1e;
}

[data-theme="dark"] .timeline-marker {
    background: #1e1e1e;
    border-color: var(--terracotta);
}

[data-theme="dark"] .timeline-content h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .timeline-content p {
    color: #b0b0b0;
}

[data-theme="dark"] .process-timeline-section {
    background: #121212;
}

/* 3.3 Obsługa inwestycji, katalog, polityka prywatności i regulamin - tryb ciemny */
[data-theme="dark"] .inv-card {
    background: #1e1e1e;
}

[data-theme="dark"] .inv-card:hover {
    background: #252525;
}

[data-theme="dark"] .catalog-section {
    background: #121212;
}

[data-theme="dark"] .privacy-hero {
    background: #1e1e1e;
    border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .terms-nav {
    background: #1e1e1e;
}

[data-theme="dark"] .t-link {
    color: #b0b0b0;
}

[data-theme="dark"] .t-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

[data-theme="dark"] .t-link.active {
    background: #121212;
    color: #ffffff;
}

[data-theme="dark"] .terms-intro-box {
    background: rgba(220, 123, 69, 0.1);
    border-color: rgba(220, 123, 69, 0.3);
}

[data-theme="dark"] .def-list li {
    color: #b0b0b0;
}

/* 4. Animacja przejścia motywu */

body,
.header,
.footer,
.nav-menu,
.nav-link,
.hero,
.gallery-card,
.project-card,
.service-card,
.contact-card-main,
.quick-contact-info,
.faq-item,
.modal-content,
.inv-card,
.catalog-card,
.process-tabs-container,
.tab-btn,
.form-input,
.form-select,
.form-textarea,
.btn,
.theme-toggle-btn {
    transition:
        background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Płynne przyciemnianie zdjęć */
img {
    transition: filter 0.8s ease, transform 0.5s ease;
}

/* Płynna zmiana kolorów ikon SVG */
svg,
path,
circle,
line,
polyline,
rect {
    transition: fill 0.8s ease, stroke 0.8s ease;
}

/* Specjalna obsługa tła geometrycznego w sekcjach (np. About, Investment),
   aby one również płynnie zmieniały odcień.
*/
.hero-geometric-bg,
.invest-hero-bg,
.invest-process {
    transition: background-color 0.8s ease, opacity 0.8s ease;
}

/* --- Poprawki widoczności w trybie ciemnym --- */
[data-theme="dark"] .investment-process,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .contact-info,
[data-theme="dark"] .about-mission,
[data-theme="dark"] .privacy-section,
[data-theme="dark"] .terms-sidebar,
[data-theme="dark"] .inv-hero,
[data-theme="dark"] .ind-hero,
[data-theme="dark"] .projects-section,
[data-theme="dark"] .hero,
[data-theme="dark"] .about-hero {
    background: #121212;
}

[data-theme="dark"] .showcase-overlay {
    background: rgba(18, 18, 18, 0.95);
    color: var(--black);
}

[data-theme="dark"] .showcase-overlay h3,
[data-theme="dark"] .showcase-overlay cite {
    color: var(--grafit);
}

[data-theme="dark"] .faq-question,
[data-theme="dark"] details.modern-details {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .details-content p {
    color: var(--black);
}

[data-theme="dark"] details.modern-details summary {
    color: var(--grafit);
}

[data-theme="dark"] .team-member-image {
    background: #1e1e1e;
}

[data-theme="dark"] .team-social {
    background: #2a2a2a;
}

[data-theme="dark"] .team-social a:hover {
    background: var(--terracotta);
}

[data-theme="dark"] .roi-card.highlight {
    background: #1e1e1e;
    border-color: var(--terracotta);
}

[data-theme="dark"] .blueprint-grid {
    filter: invert(1) opacity(0.2);
}

[data-theme="dark"] .tech-lines .line {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card-badge,
[data-theme="dark"] .map-popup-badge {
    background: rgba(30, 30, 30, 0.95);
    color: #e0e0e0;
}

[data-theme="dark"] .ind-title {
    color: var(--black) !important;
}

[data-theme="dark"] .ind-subtitle,
[data-theme="dark"] .intro-text p,
[data-theme="dark"] .showcase-text,
[data-theme="dark"] .cta-description {
    color: var(--grafit) !important;
}

/* ==========================================================================
   DRUK ŚCIENNY (KOMBINAT DRUKU) PAGE
   ========================================================================== */

/* Hero */
.druk-hero {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    text-align: center;
}

.druk-partner-badge {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, var(--terracotta), #e8a87c);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 12px rgba(220, 123, 69, 0.3);
}

.druk-hero .hero-title {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--grafit), var(--terracotta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.druk-hero .hero-subtitle {
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    font-size: 1.15rem;
    color: var(--grafit);
    opacity: 0.85;
    line-height: 1.7;
}

.druk-hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Grid */
.druk-services-section {
    padding: var(--space-xl) 0;
}

.druk-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.druk-service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.druk-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Placeholder Styling */
.druk-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, var(--light-gray), #e0e5ec);
    color: var(--grafit);
    opacity: 0.5;
    min-height: 220px;
    width: 100%;
}

.druk-placeholder svg {
    opacity: 0.4;
}

.druk-placeholder span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.druk-placeholder-lg {
    min-height: 400px;
    border-radius: var(--border-radius);
}

.druk-card-image {
    width: 100%;
    overflow: hidden;
}

.druk-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.druk-service-card:hover .druk-card-image img {
    transform: scale(1.05);
}

.druk-card-content {
    padding: var(--space-lg);
}

.druk-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220, 123, 69, 0.1), rgba(220, 123, 69, 0.05));
    border-radius: 14px;
    margin-bottom: var(--space-md);
    color: var(--terracotta);
}

.druk-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--grafit);
}

.druk-card-content p {
    color: var(--grafit);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.druk-features {
    list-style: none;
    padding: 0;
}

.druk-features li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    color: var(--grafit);
    opacity: 0.75;
}

.druk-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sage-green);
    font-weight: 700;
}

/* Partnership Section */
.druk-partnership-section {
    padding: var(--space-xl) 0;
    background: var(--light-gray);
}

.druk-partnership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.druk-partnership-content .section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(220, 123, 69, 0.1);
    color: var(--terracotta);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.druk-partnership-content h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    color: var(--grafit);
}

.druk-partnership-content > p {
    color: var(--grafit);
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.druk-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.druk-benefit-item {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.druk-benefit-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 122, 101, 0.1);
    border-radius: 10px;
    color: var(--sage-green);
}

.druk-benefit-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--grafit);
    margin-bottom: 2px;
}

.druk-benefit-item span {
    font-size: 0.85rem;
    color: var(--grafit);
    opacity: 0.7;
    line-height: 1.5;
}

.druk-partnership-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Mode */
[data-theme="dark"] .druk-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--white) 100%);
}

[data-theme="dark"] .druk-hero .hero-title {
    background: linear-gradient(135deg, #e0e0e0, var(--terracotta));
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="dark"] .druk-placeholder {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
}

[data-theme="dark"] .druk-card-icon {
    background: rgba(226, 136, 84, 0.15);
}

[data-theme="dark"] .druk-benefit-icon {
    background: rgba(138, 146, 115, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .druk-hero .hero-title {
        font-size: 2rem;
    }

    .druk-services-grid {
        grid-template-columns: 1fr;
    }

    .druk-partnership-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .druk-placeholder-lg {
        min-height: 250px;
    }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: var(--space-md) var(--space-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-banner.hiding {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--terracotta), #e8a87c);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(220, 123, 69, 0.3);
}

.cookie-content {
    flex: 1;
    min-width: 280px;
}

.cookie-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--grafit);
    margin-bottom: 4px;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--grafit);
    opacity: 0.8;
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--serene-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.cookie-content a:hover {
    color: var(--terracotta);
}

.cookie-actions {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--terracotta), #e8a87c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 123, 69, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 123, 69, 0.4);
}

.cookie-btn-reject {
    background: var(--light-gray);
    color: var(--grafit);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-btn-reject:hover {
    background: #dde3eb;
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--grafit);
    opacity: 0.7;
    padding: 10px 16px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-btn-settings:hover {
    opacity: 1;
    color: var(--serene-blue);
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    display: none;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
}

.cookie-settings-panel.visible {
    display: block;
    animation: fadeSlideDown 0.3s ease;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--light-gray);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: border-color var(--transition-fast);
}

.cookie-option:hover {
    border-color: rgba(0, 0, 0, 0.1);
}

.cookie-option input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--terracotta);
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-option input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--grafit);
    margin-bottom: 2px;
}

.cookie-option-info span {
    font-size: 0.78rem;
    color: var(--grafit);
    opacity: 0.65;
    line-height: 1.4;
}

.cookie-save-btn {
    padding: 10px 28px;
    background: var(--serene-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(58, 146, 182, 0.3);
}

.cookie-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 146, 182, 0.4);
}

/* Dark mode */
[data-theme="dark"] .cookie-banner {
    border-top-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cookie-option {
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .cookie-btn-reject {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cookie-settings-panel {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: var(--space-sm);
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .cookie-actions {
        justify-content: center;
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }

    .cookie-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FULLSCREEN PRELOADER
   ========================================================================== */

/* Zapobieganie przewijaniu podczas ładowania */
html.preloader-active,
body.preloader-active {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100% !important;
    position: fixed !important;
}

.site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #FC835D;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
}

/* Znak rozsuwania */
.site-preloader.slide-up {
    transform: translateY(-100%);
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
    transform: translateY(-60px);
}

/* Animacja SVG */
.preloader-svg {
    width: 320px;
    height: 320px;
    overflow: visible;
}

.preloader-svg path {
    stroke: #ffffff;
    stroke-width: 4px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Płynne przejście rysowania linii w oparciu o zmianę właściwości w JS */
    transition: stroke-dashoffset 0.9s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    transition-delay: 0.3s;
}

/* Logotyp i efekt fade-in */
.preloader-logo-wrapper {
    opacity: 0;
    animation: fadeInLogo 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    max-width: 680px;
    height: auto;
    /* Logo wyświetla się w swoich oryginalnych barwach z pliku (bez filtra) */
}

/* Efekt wejścia logotypu */
@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}