/* --- RESET & PODSTAWOWE USTAWIENIA --- */
:root {
    --kolor-ceglany: #AC3335;
    --kolor-tla: #FDFCFB;
    --kolor-tekstu: #1a1a1a;
    --kolor-bialy: #FFFFFF;
    --kolor-czarny: #1a1a1a;
    --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: "Neue Haas Grotesk Text Pro", "Helvetica Neue", Arial, sans-serif;
    --border-color: rgba(0,0,0,0.08);
}
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 100%;
}
body {
    background-color: var(--kolor-tla);
    color: var(--kolor-tekstu);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* --- LINIE POMOCNICZE (BACKGROUND) --- */
.bg-lines {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: -1;
    padding: 0 2rem;
}
.line {
    width: 1px;
    height: 100%;
    background-color: rgba(0,0,0,0.03);
}

/* --- STYLOWANIE OGÓLNE --- */
.kontener {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--kolor-czarny);
}
h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
    color: var(--kolor-czarny);
}
h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
p {
    margin-bottom: 0.75rem;
    max-width: 65ch;
    color: #444;
}
a {
    color: var(--kolor-tekstu);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Sekcje */
section {
    padding: 6rem 0;
    position: relative;
}

/* --- NAGŁÓWEK I NAWIGACJA (TOP DESIGN - FIXED - UNIFIED) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 0; /* Unified height */
    z-index: 2000;
    transition: background-color 0.4s ease, padding 0.4s ease;
    background-color: transparent;
}

.header-with-bg, .header-light, .header-scrolled {
    background-color: #fff !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.4rem 0;
    z-index: 2000;
}

/* Wide Container for Header */
.header .kontener {
    max-width: 100%;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Ensure container fills header height */
}

.logo {
    display: flex;
    align-items: center;
}

/* ENFORCED LOGO SIZE - ALL PAGES - CONSISTENT FOR BOTH COLORS */
.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 54px !important;
    max-height: 54px !important;
    width: auto !important;
    display: block;
    image-rendering: -webkit-optimize-contrast; /* Sharper logos */
}

/* ENFORCED LOGO SIZE - SCROLLED / LIGHT VARIANTS */
.header-scrolled .logo img,
.header-with-bg .logo img, 
.header-light .logo img {
    height: 54px !important;
    max-height: 54px !important;
    width: auto !important;
}

/* If you want logo on subpages (header-light) to be BIG initially (54px) and only shrink on scroll, remove .header-light from the rule above. 
   Assuming 'like index page' means: Transparent/Big -> Scroll -> White/Small.
   BUT static pages often start White/Small or White/Big. 
   Let's standardise: 
   - Initial state (any variant): 54px
   - Scrolled state: 48px
*/

.header-scrolled .logo img {
    height: 48px !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle-icon { fill: var(--kolor-bialy); transition: fill 0.4s ease; }
.header-with-bg .nav-toggle-icon, .header-light .nav-toggle-icon, .header-scrolled .nav-toggle-icon {
    fill: var(--kolor-czarny);
}

/* Navigation Menu */
.nawigacja {
    margin-left: auto; 
}

.nawigacja > ul {
    list-style: none;
    display: flex;
    gap: 2.5rem; 
    align-items: center;
    margin: 0;
    padding: 0;
}

.nawigacja > ul > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nawigacja a {
    color: var(--kolor-bialy);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 0;
    transition: color 0.3s ease;
}

/* Link colors for light backgrounds */
.header-with-bg .nawigacja a, .header-light .nawigacja a, .header-scrolled .nawigacja a {
    color: var(--kolor-czarny);
}

/* Hover Underline */
.nawigacja > ul > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--kolor-ceglany);
    transition: width 0.3s ease;
}
.nawigacja > ul > li > a:hover::after {
    width: 100%;
}

/* --- PREMIUM DROPDOWN MENU (TRUE SLIDE DOWN - VERTICAL) --- */
.dropdown-menu {
    display: flex !important; 
    flex-direction: column !important; 
    
    visibility: hidden;
    opacity: 0;
    max-height: 0; 
    overflow: hidden;
    
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    width: 320px;
    padding: 0; 
    
    border-radius: 0 0 12px 12px;
    border-top: 2px solid var(--kolor-ceglany);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    
    z-index: 1000;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease, 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
}

.nawigacja ul li:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    max-height: 600px; 
    transform: translateX(-50%) translateY(0);
    padding: 1.2rem 0;
}

.dropdown-menu li {
    width: 100%;
    margin: 0;
    display: block;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.8rem 2.5rem;
    color: #222 !important;
    font-size: 0.95rem;
    text-transform: none;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-left: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(172, 51, 53, 0.04);
    color: var(--kolor-ceglany) !important;
    border-left-color: var(--kolor-ceglany);
    transform: translateX(5px); 
}

.dropdown-menu a::after {
    display: none;
}

/* --- SEKCJA HERO ZE SLIDEREM --- */
.hero {
    position: relative;
    height: 100vh;
    color: var(--kolor-bialy);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0;
}
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide.aktywny { opacity: 1; }
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding-bottom: 5rem;
}
.hero-content h1 {
    font-size: clamp(2rem, 4.8vw, 3.6rem);
    color: var(--kolor-bialy);
}
.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--kolor-bialy);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
    max-width: 600px;
}
.hero-content .przycisk-cta {
    background-color: var(--kolor-ceglany);
    color: var(--kolor-bialy);
    border: 2px solid var(--kolor-ceglany);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hero-content .przycisk-cta:hover {
    background-color: #c5484a;
    border-color: #c5484a;
    transform: translateY(-2px);
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3; 
    background-color: transparent;
    color: rgba(255,255,255,0.7);
    border: none;
    padding: 1rem;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.slider-arrow:hover { color: var(--kolor-bialy); }
.slider-arrow-prev { left: 1rem; }
.slider-arrow-next { right: 1rem; }

/* --- OFERTA - Grid & Cards --- */
#oferta {
    background-color: var(--kolor-tla);
    padding: 0 0 8rem;
}
.oferta-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.oferta-karta.premium {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(172, 51, 53, 0.2);
    background: linear-gradient(to bottom, #fff 0%, #fcfcfc 100%);
    padding: 2.5rem 2rem;
}
.oferta-karta.premium h3 { font-size: 2rem; margin-bottom: 0.75rem; }
.oferta-karta.premium p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 2rem auto; }
.premium-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 0;
}
.premium-list li { display: flex; align-items: center; font-weight: 500; color: #333; }
.premium-list .checkmark-icon { margin-right: 0.5rem; color: var(--kolor-ceglany); width: 24px; height: 24px; }
.oferta-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 4rem 0 3rem;
    text-align: center;
}
.oferta-separator h2 {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}
.oferta-separator::before, .oferta-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd;
    max-width: 150px;
}
.oferta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.oferta-karta {
    background-color: var(--kolor-bialy);
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.oferta-karta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--kolor-ceglany);
}
.oferta-karta .ikona-kontener {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: #fcfcfc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}
.oferta-karta .ikona { width: 36px; height: 36px; color: var(--kolor-ceglany); stroke-width: 1.5; }
.oferta-karta h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--kolor-czarny); }
.oferta-karta p { font-size: 0.95rem; color: #666; margin-bottom: 0; line-height: 1.6; }

/* --- O MNIE (Broken Grid) --- */
.o-mnie-section {
    padding: 8rem 0;
    background-color: var(--kolor-tla);
    overflow: hidden;
}
.o-mnie-grid-broken {
    display: flex;
    align-items: center;
    position: relative;
}
.o-mnie-img-container { width: 45%; flex-shrink: 0; z-index: 1; }
.o-mnie-img { width: 100%; height: auto; display: block; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.o-mnie-text-content {
    width: 60%;
    margin-left: -5%;
    background-color: var(--kolor-bialy);
    padding: 4rem;
    z-index: 2;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.05);
    position: relative;
}
.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--kolor-ceglany);
    margin-bottom: 1rem;
    display: block;
}
.o-mnie-staty {
    display: flex;
    gap: 3rem;
    margin: 2.5rem 0;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}
.stat-liczba {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--kolor-ceglany);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-opis { font-size: 0.9rem; margin: 0; text-transform: uppercase; letter-spacing: 0.05em; }

/* --- GLOBAL CTA BUTTON --- */
.przycisk-cta {
    display: inline-block;
    background-color: var(--kolor-ceglany);
    color: var(--kolor-bialy);
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--kolor-ceglany);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
}
.przycisk-cta:hover {
    background-color: #c5484a;
    border-color: #c5484a;
    color: var(--kolor-bialy);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
a.przycisk-cta::after { display: none; }

/* --- PROCES (Timeline) FIXED --- */
.proces-timeline-section {
    background-color: #111;
    color: var(--kolor-bialy);
    padding: 6rem 0;
}

/* Force centering for the heading */
.proces-timeline-section h2, 
.proces-timeline-section .section-heading-center {
    color: var(--kolor-bialy);
    text-align: center !important;
    width: 100%;
    display: block;
    margin-bottom: 4rem;
}

.timeline-container {
    display: grid;
    grid-template-columns: 1fr 80px 1fr 80px 1fr; /* Fixed width for arrows */
    align-items: start;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    width: 100%;
}

.timeline-step {
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--kolor-ceglany);
    opacity: 1 !important; /* Force visible */
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.timeline-step h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--kolor-bialy);
}

.timeline-step p {
    font-size: 0.95rem;
    color: #888;
    margin: 0 auto;
}

/* Arrow Styling - ANIMATED */
.grid-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 1.5rem;
    opacity: 0; /* Hidden initially for animation */
    transition: opacity 0.5s ease;
}

.grid-arrow.visible {
    opacity: 1 !important; /* JS adds this class */
}

.grid-arrow svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.grid-arrow path {
    stroke: #ffffff !important; /* Force white color */
    stroke-width: 3px;
}

@media (max-width: 900px) {
    .timeline-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    .grid-arrow {
        display: none; /* Hide arrows on mobile/tablet vertical layout */
    }
}

/* --- LIGHTBOX ARROWS (Smaller) --- */
.gallery-prev, .gallery-next {
    cursor: pointer;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 10px; /* Reduced padding */
    color: white;
    font-weight: 100;
    font-size: 30px; /* Reduced size by 50% (was 60px) */
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    z-index: 10002;
    background-color: transparent;
    opacity: 0.6;
    line-height: 1;
}

/* Kontakt Grid - Ensure 2 columns */
#kontakt {
    background-color: var(--kolor-bialy);
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.kontakt-grid-lewa {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.dane-kontaktowe p {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.dane-kontaktowe .ikona-kontakt {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--kolor-ceglany);
    margin-right: 1.2rem;
    flex-shrink: 0;
}

/* Newsletter & Socials */
.newsletter-full-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid #eee;
}

.newsletter-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.newsletter-text-col h4 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--kolor-czarny); }
.newsletter-desc-main { font-size: 1.05rem; line-height: 1.8; color: #555; margin-bottom: 0; }

.formularz-newsletter-center {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
}

.formularz-newsletter-center input {
    padding: 1rem;
    border: 1px solid #ddd;
    border-right: none;
    flex-grow: 1;
    font-size: 1rem;
    border-radius: 4px 0 0 4px;
}

.formularz-newsletter-center button {
    border-radius: 0 4px 4px 0;
    margin: 0;
}

/* Social Icons in Contact */
.social-links-contact {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.social-links-contact a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: transparent;
}

.social-links-contact a:hover {
    background-color: var(--kolor-ceglany);
    border-color: var(--kolor-ceglany);
}

.social-links-contact .social-icon {
    width: 22px;
    height: 22px;
    fill: #555;
    transition: fill 0.3s ease;
}

.social-links-contact a:hover .social-icon {
    fill: #fff;
}

/* Formularz Kontaktowy */
.formularz-kontaktowy input, 
.formularz-kontaktowy textarea, 
.formularz-kontaktowy select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: var(--kolor-tekstu);
    font-family: var(--font-body);
    font-size: 1rem;
}

.formularz-kontaktowy input:focus, 
.formularz-kontaktowy textarea:focus, 
.formularz-kontaktowy select:focus {
    outline: 2px solid var(--kolor-ceglany);
    border-color: var(--kolor-ceglany);
    background-color: #fff;
}

.przycisk-wyslij {
    width: 100%;
    background-color: var(--kolor-ceglany);
    color: var(--kolor-bialy);
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- TILE SELECTOR FORM (Option 3) --- */
.form-tiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-tile {
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-tile:hover {
    border-color: #aaa;
    background: #fff;
}

.form-tile.selected {
    border-color: var(--kolor-ceglany);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(172, 51, 53, 0.1);
}

.form-tile-icon {
    width: 24px;
    height: 24px;
    stroke: #666;
    stroke-width: 1.5;
    fill: none;
    transition: stroke 0.3s ease;
}

.form-tile.selected .form-tile-icon {
    stroke: var(--kolor-ceglany);
    stroke-width: 2;
}

.form-tile-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

.form-tile.selected .form-tile-label {
    color: var(--kolor-ceglany);
}

/* Hidden input for the logic */
#selected-topic {
    display: none;
}

/* --- INTERACTIVE CROSS-FADE GALLERY (Section 04) --- */
.cine-section.interactive-section {
    min-height: 130vh; 
    align-items: flex-start;
}

.cine-visual.sticky-visual {
    width: 50%;
    height: 100vh;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: #111;
    overflow: hidden;
    z-index: 1;
}

/* All layers pre-loaded and ready */
.offer-img-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out, transform 0.7s ease-out;
}

.offer-img-layer.active {
    opacity: 1;
    z-index: 2;
}

/* Zoom on hover - same as other sections */
.cine-section:hover .offer-img-layer {
    transform: scale(1.03);
}

.offer-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem; /* Większy odstęp pionowy */
    margin-top: 2.5rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.offer-item {
    position: relative;
    transition: transform 0.3s ease;
}

.offer-item:hover {
    transform: translateX(5px); /* Delikatne przesunięcie w prawo */
}

/* Nowy styl linku - spójny z feature-list */
.offer-link-int {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--kolor-czarny);
    font-size: 1.05rem; /* Troszkę większe */
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
    gap: 0.8rem;
}

.offer-link-int .list-icon {
    /* Dziedziczy styl z .list-icon ale może wymagać dopasowania */
    width: 20px; 
    height: 20px;
    color: #ddd; /* Domyślnie szary, aktywny na hover */
    transition: color 0.3s ease, transform 0.3s ease;
}

.offer-item:hover .offer-link-int {
    color: var(--kolor-ceglany);
}

.offer-item:hover .offer-link-int .list-icon {
    color: var(--kolor-ceglany);
    transform: translateX(3px);
}

/* Usuwamy stare style */
.offer-link-int::before { display: none; }
.offer-category-tag { display: none; }

@media (max-width: 992px) {
    .cine-visual.sticky-visual {
        width: 100%;
        height: 50vh;
        position: relative;
        top: auto;
    }
    .offer-grid-compact {
        grid-template-columns: 1fr;
    }
}

/* --- FOOTER & REST --- */
.footer {

    background-color: #0a0a0a;
    color: #666;
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr; /* 4 Columns */
    gap: 3rem;
    margin-bottom: 1rem;
}

.footer-logo img { height: 50px; filter: none; }
.footer h4 { color: var(--kolor-bialy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.8rem; }
.footer a { color: #666; transition: color 0.3s; }
.footer a:hover { color: var(--kolor-bialy); }

.social-links {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #555;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover { background-color: var(--kolor-ceglany); border-color: var(--kolor-ceglany); }
.social-links .social-icon { width: 22px; height: 22px; fill: #aaa; transition: fill 0.3s; }
.social-links a:hover .social-icon { fill: var(--kolor-bialy); }

.footer-bottom { border-top: 1px solid #222; padding-top: 2rem; text-align: center; font-size: 0.8rem; }

/* Responsive Adjustments for Contact/Footer */
@media (max-width: 1024px) {
    .kontakt-grid { grid-template-columns: 1fr; gap: 3rem; }
    .newsletter-grid-split { grid-template-columns: 1fr; text-align: center; }
    .newsletter-text-col { text-align: center; }
    .formularz-newsletter-center { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .branding-col { grid-column: 1 / -1; text-align: center; }
    .social-links { justify-content: center; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .formularz-newsletter-center { flex-direction: column; gap: 1rem; }
    .formularz-newsletter-center input, .formularz-newsletter-center button { width: 100%; border-radius: 4px; }
}

/* --- OTHER SECTIONS (Cinematic, Oferta Szachownica, etc) preserved by user request or default styles --- */
.cinematic-wrapper { width: 100%; }
.cine-section { display: flex; min-height: 100vh; position: relative; background-color: #fff; border-bottom: 1px solid #eaeaea; }
.cine-visual { width: 50%; height: 100vh; position: -webkit-sticky; position: sticky; top: 0; z-index: 1; overflow: hidden; background-color: #f4f4f4; }
.cine-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease-out; }
.cine-section:hover .cine-img { transform: scale(1.03); }
.cine-content { width: 50%; display: flex; flex-direction: column; justify-content: center; padding: 6rem 5rem; z-index: 2; background: #fff; }
        /* Unified Eyebrow Style (replaces .cine-num) */
        .section-eyebrow, .cine-num {
            font-family: monospace;
            font-size: 0.9rem;
            color: var(--kolor-ceglany);
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }
        .section-eyebrow::after, .cine-num::after {
            content: '';
            height: 1px;
            width: 50px;
            background-color: var(--kolor-ceglany);
            display: block;
        }

.cine-content h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 2rem; color: #111; letter-spacing: -1px; }
        /* Unified Feature List */
        .cine-list, .feature-list {
            list-style: none;
            padding: 0;
            margin: 2rem 0 3rem;
            border-top: 1px solid #eee;
        }

        .cine-list li, .feature-list li {
            padding: 1rem 0;
            border-bottom: 1px solid #eee;
            font-size: 1rem;
            display: flex;
            align-items: flex-start; /* Align to top for multi-line text */
            gap: 1rem;
        }
        
        /* Unified Icon Style */
        .cine-icon, .list-icon {
            color: var(--kolor-ceglany);
            font-size: 1.2rem; /* Fallback for font icons */
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

.cine-btn-link { display: inline-flex; align-items: center; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #111; border-bottom: 2px solid var(--kolor-ceglany); padding-bottom: 5px; }

@media (max-width: 992px) {
    .cine-section { flex-direction: column; min-height: auto; }
    .cine-visual { width: 100%; height: 50vh; position: relative; top: auto; }
    .cine-content { width: 100%; padding: 3rem 2rem; }
}

/* Oferta Szachownica */
.oferta-szachownica { padding: 6rem 0; background-color: var(--kolor-tla); }
.szachownica-rzad { display: flex; flex-direction: column; gap: 3rem; margin-bottom: 0.75rem; align-items: center; }
@media (min-width: 992px) { .szachownica-rzad { flex-direction: row; gap: 5rem; } }
.szachownica-img { flex: 1; width: 100%; }
.szachownica-img img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.szachownica-text { flex: 1; }
.szachownica-text h2 { font-size: 2rem; margin-bottom: 0.75rem; color: var(--kolor-czarny); }
.szachownica-przyciski { display: flex; gap: 1rem; flex-wrap: wrap; }
.przycisk-drugi { padding: 0.8rem 2rem; border: 1px solid #ddd; color: var(--kolor-tekstu); text-transform: uppercase; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; display: inline-block; }
.przycisk-drugi:hover { border-color: var(--kolor-ceglany); color: var(--kolor-ceglany); }

/* Portfolio Full Grid */
.portfolio-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 100%; }
.portfolio-tile-full { position: relative; display: block; width: 100%; overflow: hidden; }
.portfolio-tile-full img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.portfolio-tile-full:hover img { transform: scale(1.05); }
.portfolio-tile-full .portfolio-tile-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%); opacity: 0.8; transition: opacity 0.3s ease; display: flex; align-items: flex-end; padding: 2rem; }
.portfolio-tile-full:hover .portfolio-tile-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%); }
.portfolio-tile-full h3 { color: #fff; font-size: 1.5rem; margin: 0; text-shadow: 0 2px 5px rgba(0,0,0,0.5); transform: translateY(0); transition: transform 0.3s ease; }
.portfolio-tile-full:hover h3 { transform: translateY(-5px); }

/* --- CASE STUDY V2 (New) --- */
.case-study-modern-intro {
    padding: 10rem 0 6rem;
    text-align: center;
}

.cs-section {
    padding: 6rem 0;
}

.cs-portrait-single-image-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cs-image-container-single img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.cs-checkerboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background-color: #eee;
    border: 1px solid #eee;
}

.cs-checkerboard-cell {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-text-cell {
    background-color: #fff;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cs-challenge-solution { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin: 4rem 0; background-color: #f9f9f9; padding: 3rem; border-radius: 4px; }
.cs-box h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.8rem; font-weight: 700; }
.cs-icon-svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.5; fill: none; flex-shrink: 0; }
.cs-box.problem h3 { color: #666; }
.cs-box.solution h3 { color: var(--kolor-ceglany); }
.cs-results-section { padding: 4rem 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 4rem 0; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; text-align: center; }
.result-item h4 { font-size: 1.2rem; margin-bottom: 0.8rem; color: var(--kolor-czarny); font-weight: 700; }
.result-icon-container { display: inline-flex; justify-content: center; align-items: center; width: 60px; height: 60px; background-color: #fcfcfc; border: 1px solid #eee; border-radius: 50%; margin-bottom: 1.5rem; color: var(--kolor-ceglany); }
.result-icon-svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.cs-testimonial { max-width: 900px; margin: 6rem auto; text-align: center; padding: 0 2rem; }
.cs-quote { font-size: 1.8rem; font-style: italic; color: #333; line-height: 1.4; margin-bottom: 2rem; font-family: var(--font-heading); position: relative; }
.cs-quote::before { content: "“"; display: block; font-size: 4rem; color: #eee; margin-bottom: -2rem; }
.cs-author { font-size: 0.9rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; border-top: 1px solid #eee; display: inline-block; padding-top: 1rem; }
.cs-cta-block { background-color: #1a1a1a; color: #fff; padding: 5rem 2rem; text-align: center; border-radius: 4px; margin: 4rem 0; }
.cs-cta-block h2 { color: #fff; margin-bottom: 1rem; font-size: 2.2rem; }
.cs-cta-block p { color: #aaa; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }

/* Case Study Navigation */
.project-navigation-small { padding: 4rem 0; border-top: 1px solid #eee; margin-top: 4rem; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.nav-link-small { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #888; transition: color 0.3s; }
.nav-link-small:hover { color: var(--kolor-ceglany); }

@media (max-width: 992px) {
    .cs-portrait-single-image-layout, .cs-checkerboard-grid, .cs-challenge-solution, .results-grid { grid-template-columns: 1fr; }
    .cs-text-cell { padding: 3rem 2rem; order: -1; }
}

/* --- SUBPAGE & PORTFOLIO DETAILS --- */
.subpage-header-container { background-color: #fcfcfc; padding: 8rem 0 4rem; border-bottom: 1px solid #eee; margin-bottom: 3rem; text-align: center; }
.subpage-title { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--kolor-czarny); margin-bottom: 0.5rem; font-weight: 700; }
/* --- GALLERY NAVIGATION BAR (Responsive Single Line) --- */
.gallery-nav {
    display: flex;
    justify-content: flex-start; /* Default for mobile scrolling */
    flex-wrap: nowrap;
    gap: 0.5rem; /* Tighter gap */
    padding: 0 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem; /* Smaller font base */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-nav::-webkit-scrollbar {
    display: none;
}

.gallery-nav a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.8rem; /* Smaller padding */
    border-radius: 4px;
    border: 1px solid transparent;
}

.gallery-nav a:hover,
.gallery-nav a.active {
    color: var(--kolor-ceglany);
    font-weight: 600;
    background-color: rgba(172, 51, 53, 0.05);
    border-color: rgba(172, 51, 53, 0.1);
}

/* Desktop: Fit 10 items on one line strictly within container */
@media (min-width: 1200px) {
    .gallery-nav {
        justify-content: space-between; /* Distribute evenly */
        overflow-x: visible;
        flex-wrap: nowrap;
        gap: 0; /* Remove gap, rely on padding */
        font-size: 0.7rem; /* Small, compact font (approx 11-12px) */
        padding: 0 0 1.5rem; /* Remove side padding to use full width */
        max-width: 1200px; /* Match standard container width */
        width: 100%;
    }
    
    .gallery-nav a {
        padding: 0.4rem 0.5rem; /* Minimal padding */
        letter-spacing: 0.02em; /* Tighter tracking */
    }
}

/* Wide Desktop: Slightly more breathing room if space allows */
@media (min-width: 1600px) {
    .gallery-nav {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
}
.portfolio-gallery { padding: 0 0 6rem; }
.gallery-masonry-full { column-count: 3; column-gap: 0.75rem; padding: 0 2rem; }
.gallery-masonry-full img { width: 100%; margin-bottom: 0.75rem; border-radius: 0; display: block; cursor: zoom-in; transition: transform 0.3s ease, filter 0.3s ease; }
.gallery-masonry-full img:hover { transform: scale(1.02); filter: brightness(1.05); }
@media (max-width: 992px) { .gallery-masonry-full { column-count: 2; } }
@media (max-width: 600px) { .gallery-masonry-full { column-count: 1; } }
.bottom-nav-link { text-align: center; padding: 4rem 0; border-top: 1px solid #eee; }
.bottom-nav-link a { font-size: 1.1rem; font-weight: 600; color: var(--kolor-ceglany); text-transform: uppercase; letter-spacing: 0.05em; }

/* --- LIGHTBOX MODAL (Discreet & Clean) --- */
.gallery-modal { display: none; position: fixed; z-index: 10000; padding-top: 0; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background-color: rgba(0,0,0,0.95); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.gallery-modal.active { display: flex; }
.gallery-content { position: relative; margin: auto; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }
#gallery-image { max-width: 90vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: 0; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
/* Close Button */
.gallery-close-button { position: absolute; top: 20px; right: 30px; color: #f1f1f1; font-size: 40px; font-weight: 300; cursor: pointer; transition: color 0.3s; z-index: 10002; line-height: 1; opacity: 0.7; }
.gallery-close-button:hover { color: var(--kolor-ceglany); opacity: 1; }
/* Arrows */
.gallery-prev, .gallery-next { cursor: pointer; position: fixed; top: 50%; transform: translateY(-50%); width: auto; padding: 10px; color: white; font-weight: 100; font-size: 30px; transition: all 0.3s ease; user-select: none; -webkit-user-select: none; z-index: 10002; background-color: transparent; opacity: 0.6; line-height: 1; }
.gallery-next { right: 10px; }
.gallery-prev { left: 10px; }
.gallery-prev:hover, .gallery-next:hover { background-color: transparent; color: var(--kolor-ceglany); opacity: 1; transform: translateY(-50%) scale(1.1); }
/* Hide Caption */
.gallery-info { display: none !important; }

/* --- COOKIE BANNER --- */
.cookie-banner { position: fixed; bottom: 20px; right: 20px; width: 90%; max-width: 400px; background-color: #ffffff; color: #333; padding: 2rem; z-index: 9999; display: none; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.05); animation: slideInBanner 0.5s ease-out; }
@keyframes slideInBanner { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner p { margin-bottom: 0.75rem; font-size: 0.9rem; line-height: 1.6; color: #555; }
.cookie-banner a { color: var(--kolor-ceglany); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.cookie-banner a:hover { border-bottom-color: var(--kolor-ceglany); }
.cookie-banner-buttons { display: flex; gap: 1rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-banner .przycisk-cta { padding: 0.6rem 1.2rem; font-size: 0.85rem; border-radius: 4px; cursor: pointer; border: 1px solid var(--kolor-ceglany); background-color: var(--kolor-ceglany); color: #ffffff; text-align: center; flex: 1; min-width: auto; transition: all 0.3s ease; box-shadow: none; }
.cookie-banner .przycisk-cta:hover { background-color: #c5484a; transform: translateY(-2px); }
#cookie-reject, #cookie-settings { background-color: transparent; color: #555; border-color: #ddd; }
#cookie-reject:hover, #cookie-settings:hover { border-color: #999; color: #333; background-color: #f9f9f9; }

/* --- COOKIE SETTINGS MODAL --- */
.cookie-settings-modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(3px); }
.cookie-settings-modal-content { background-color: #ffffff; color: #333; margin: 10% auto; padding: 2.5rem; border-radius: 8px; width: 90%; max-width: 600px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); position: relative; animation: fadeInModal 0.3s ease-out; }
@keyframes fadeInModal { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.cookie-settings-modal-content h3 { margin-bottom: 0.75rem; font-size: 1.5rem; color: #1a1a1a; }
.cookie-settings-modal-content p { margin-bottom: 1rem; color: #666; }
.cookie-category { margin-bottom: 0.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; display: flex; flex-direction: column; }
.cookie-category:last-of-type { border-bottom: none; }
.cookie-category label { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.cookie-category input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--kolor-ceglany); cursor: pointer; }
.cookie-category-description { font-size: 0.9rem; color: #777; margin-left: 0; line-height: 1.5; }
.cookie-settings-modal-buttons { margin-top: 2rem; text-align: right; border-top: 1px solid #eee; padding-top: 1.5rem; }
#cookie-save-settings { background-color: var(--kolor-ceglany); color: #ffffff; padding: 0.8rem 2rem; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease; }
#cookie-save-settings:hover { background-color: #c5484a; }
@media (max-width: 600px) { .cookie-banner { left: 50%; transform: translateX(-50%); bottom: 10px; width: 95%; padding: 1.5rem; } .cookie-banner-buttons { flex-direction: column; gap: 0.8rem; } .cookie-banner .przycisk-cta { width: 100%; } .cookie-settings-modal-content { margin: 10% auto; padding: 1.5rem; } }
/* --- TESTOWE WARIANTY NAGŁÓWKÓW --- */

/* WARIANT 1: EDITORIAL (Magazynowy) */
.header-variant-editorial {
    padding: 8rem 2rem 4rem;
    background-color: transparent;
    text-align: left;
    position: relative;
    border-bottom: none;
}

.header-variant-editorial .portfolio-tag {
    display: block;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--kolor-ceglany);
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.header-variant-editorial h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 4.8vw, 3.6rem); /* Reduced by additional 20% */
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--kolor-czarny);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.header-variant-editorial .title-separator {
    width: 100px;
    height: 4px;
    background-color: var(--kolor-czarny);
    margin-top: 1rem;
}


/* WARIANT 2: SIDE ACCENT (Pionowa linia) */
.header-variant-accent {
    padding: 8rem 2rem 4rem;
    background-color: #f9f9f9; /* Lekkie tło dla kontrastu */
    text-align: left;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.header-variant-accent .title-content {
    border-left: 8px solid var(--kolor-ceglany);
    padding-left: 2rem;
}

.header-variant-accent h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--kolor-czarny);
    text-transform: uppercase;
}

.header-variant-accent p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-family: monospace;
    letter-spacing: 0.05em;
}


/* WARIANT 3: OVERLAY (Z tłem geometrycznym) */
.header-variant-overlay {
    padding: 10rem 2rem 6rem;
    position: relative;
    overflow: hidden;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* Dekoracyjny kwadrat w tle */
.header-variant-overlay::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 150%;
    background-color: #f2f2f2;
    transform: rotate(-10deg);
    z-index: -1;
}

.header-variant-overlay h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--kolor-czarny);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    text-shadow: 20px 20px 0px rgba(255,255,255,0.8); /* Odsunięcie od tła */
}

.header-variant-overlay .overlay-subtitle {
    display: inline-block;
    background-color: var(--kolor-ceglany);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- 3D FLIP ANIMATION (Trend 6) --- */
.hero-3d-container {
    perspective: 1000px;
    display: inline-block;
    height: 1.2em;
    overflow: hidden;
    vertical-align: bottom;
    text-align: left; /* Ensure text aligns correctly */
}

.hero-3d-wrapper {
    display: block; /* Critical for transform */
    animation: flip-3d 6s cubic-bezier(0.23, 1, 0.32, 1) infinite;
    transform-style: preserve-3d;
}

.hero-3d-item {
    display: block;
    height: 1.2em;
    line-height: 1.2em; /* Strict line-height */
    color: var(--kolor-bialy);
    font-family: var(--font-heading);
    font-weight: 600; /* Match H1 weight */
    white-space: nowrap;
}

@keyframes flip-3d {
    0%, 25% { transform: translateY(0); }
    33%, 58% { transform: translateY(-1.2em); }
    66%, 91% { transform: translateY(-2.4em); }
    100% { transform: translateY(0); }
}

/* --- NEWSLETTER MINIMALIST (Variant 1) --- */
.arch-form {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.arch-input-group {
    position: relative;
    flex-grow: 1;
}

.arch-input {
    width: 100%;
    border: none !important;
    border-bottom: 2px solid #ddd !important;
    padding: 1rem 0 !important;
    font-size: 1.2rem !important;
    background: transparent !important;
    transition: border-color 0.4s ease !important;
    border-radius: 0 !important;
    outline: none !important;
    color: var(--kolor-czarny) !important;
}

.arch-input:focus {
    border-bottom-color: var(--kolor-ceglany) !important;
}

.arch-label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: #999;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    pointer-events: none;
}

.arch-input:focus ~ .arch-label,
.arch-input:not(:placeholder-shown) ~ .arch-label {
    top: -1.2rem;
    font-size: 0.85rem;
    color: var(--kolor-ceglany);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.arch-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 0 10px 20px !important;
    font-size: 2rem !important;
    color: var(--kolor-ceglany) !important;
    transition: transform 0.3s ease !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.arch-btn:hover {
    transform: translateX(10px) !important;
}

/* --- CUSTOM ARCHITECTURAL CHECKBOX --- */
.consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

.custom-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 1px solid #ccc !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 3px 0 0 0 !important; /* Minimalny margines górny dla wyrównania do linii tekstu */
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block !important;
    border-radius: 0 !important;
}

.custom-checkbox:checked {
    background-color: var(--kolor-ceglany) !important;
    border-color: var(--kolor-ceglany) !important;
}

.custom-checkbox:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 6px !important;
    top: 2px !important;
    width: 4px !important;
    height: 9px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    display: block !important;
}

.custom-checkbox:hover {
    border-color: var(--kolor-ceglany);
}

.consent-label {
    cursor: pointer;
    user-select: none;
}

.newsletter-form-col .consent-wrapper {
    margin-top: 1rem;
}

.formularz-kontaktowy .consent-wrapper {
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

/* --- SIDEBAR CLEAN (Restored) --- */
.kontakt-grid-lewa.sidebar-clean {
    background: #fff;
    color: #111;
    padding: 0 2rem 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from space-between to match gap */
    gap: 4rem; /* Match HTML inline style or enforce it here */
    border-radius: 0;
    height: auto; /* Allow auto height */
}

.sidebar-clean h2 {
    display: block;
}

/* --- FORMULARZ SIATKA (2x2) --- */
.form-inputs-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important; /* Reduced gap to match service tiles */
    margin-bottom: 0.5rem !important;
}

.form-inputs-grid input {
    margin-bottom: 0 !important; /* Remove margin as grid gap handles it */
}

@media (max-width: 768px) {
    .form-inputs-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- SIDEBAR INFO FIX --- */
.sidebar-info p { 
    margin-bottom: 1.2rem; 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    color: #555; 
    font-size: 1rem;
    line-height: 1.4;
}

.sidebar-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-info a:hover { 
    color: var(--kolor-ceglany); 
}

.sidebar-icon { 
    color: var(--kolor-ceglany); 
    width: 20px; 
    height: 20px; 
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* --- STYLE DLA MINI-BOXA OPINII --- */

.testi-mini-box {
    margin-top: 3rem;
    padding: 2rem;
    background: #fcfcfc;
    border: 1px solid #eee;
    position: relative;
    max-width: 500px;
}

.testi-mini-slider {
    position: relative;
    overflow: hidden;
}

.testi-item {
    display: none; /* Ukryte domy9: lnie, sterowane przez JS/Klas�"! */
    animation: fadeIn 0.5s ease;
}

.testi-item.active {
    display: block;
}

.testi-text-mini {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testi-text-mini::before {
    content: "�� [";
    color: var(--kolor-ceglany);
    font-size: 2rem;
    font-family: serif;
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 0.3rem;
}

.testi-meta-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testi-author-info strong {
    display: block;
    font-size: 0.85rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testi-author-info span {
    font-size: 0.75rem;
    color: #999;
}

/* Nawigacja (Przewijanie) */
.testi-nav {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testi-dot {
    width: 30px;
    height: 2px;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testi-dot.active {
    background: var(--kolor-ceglany);
    width: 50px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- STYLE DLA MINI-BOXA OPINII (DELICATE V4 - TOP POSITION) --- */

.testi-mini-box {
    margin-top: 2rem;
    margin-bottom: 3rem; /* Odstęp od listy poniżej */
    padding: 3rem;
    background: #f9f9f9; /* Wyodrębnione tło */
    border-left: 2px solid var(--kolor-ceglany);
    position: relative;
    max-width: 550px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
}

.testi-mini-slider {
    position: relative;
    overflow: hidden;
}

.testi-item {
    display: none;
    animation: fadeIn 0.8s ease;
}

.testi-item.active {
    display: block;
}

.testi-text-mini {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    margin-bottom: 2.5rem;
    font-family: var(--font-heading, serif);
}

.testi-text-mini::before {
    content: "“";
    color: var(--kolor-ceglany);
    font-size: 3.5rem;
    font-family: serif;
    line-height: 0;
    vertical-align: -0.45em;
    margin-right: 0.5rem;
    opacity: 0.3;
}

.testi-meta-mini {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    text-align: right;
}

.testi-author-info strong {
    display: block;
    font-size: 0.85rem;
    color: #111;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.2rem;
}

.testi-author-info span {
    font-size: 0.75rem;
    color: #999;
}

.testi-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testi-dot {
    width: 25px;
    height: 3px; /* Grubsze linie nawigacji */
    background: #eee;
    cursor: pointer;
    transition: all 0.4s ease;
}

.testi-dot.active {
    background: var(--kolor-ceglany);
    width: 40px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- NOWA STOPKA (THE WATERMARK FOOTER V3 - COMPACT) --- */
.footer-clean {
    background-color: #0a0a0a;
    color: #888;
    padding: 4rem 2rem 2rem; /* Zredukowane o 50% */
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

/* Znak wodny - SVG Stretch (No Overlap) */
.footer-clean::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Kończymy napis NAD paskiem copyright (ok. 3.5rem od dołu) */
    bottom: 3.5rem; 
    /* preserveAspectRatio="none" rozciągnie go w dostępnym obszarze */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 15' preserveAspectRatio='none'%3E%3Ctext x='50' y='13' font-family='Arial, sans-serif' font-weight='600' font-size='16' text-anchor='middle' fill='%23ffffff' opacity='0.04'%3Etarantoga.pl%3C/text%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    height: auto; /* Ważne: resetujemy height: 100% */
}

.footer-clean .kontener {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.clean-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 3rem;
}

.footer-col-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-logo-neg {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.footer-manifest {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #999;
    max-width: 350px;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    fill: #555;
    transition: fill 0.3s ease;
}

.footer-social-link:hover svg {
    fill: var(--kolor-ceglany);
}

.clean-col h4 {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--kolor-ceglany); /* Akcent koloru */
    display: inline-block;
    font-weight: 700;
}

.clean-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-col li {
    margin-bottom: 0.4rem;
}

.clean-col a {
    text-decoration: none;
    color: #777;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.clean-col a:hover {
    color: var(--kolor-ceglany); /* Hover w kolorze marki */
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    color: #777;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}
    white-space: nowrap;
}

.footer-contact-item:hover {
    color: var(--kolor-ceglany);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--kolor-ceglany);
}

.footer-bottom-strip {
    background-color: #0a0a0a;
    width: 100%;
    padding: 0.5rem 0; /* Minimalny odstęp */
    border-top: 1px solid #1a1a1a;
}

.clean-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #444; /* Jaśniejszy tekst na czarnym tle */
}

.clean-bottom p { margin: 0; }

/* --- LEGAL PAGES STYLING --- */
.legal-content-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.8;
    color: #444;
}

.legal-content-container p {
    max-width: none;
    margin-bottom: 1.5rem;
}

.legal-content-container h3 {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: #111;
}

.legal-content-container ul {
    margin-bottom: 2rem;
    list-style-position: outside;
    padding-left: 1.5rem;
}

.legal-content-container li {
    margin-bottom: 0.8rem;
}

@media (max-width: 992px) {
    .clean-grid { gap: 3rem; }
}

@media (max-width: 768px) {
    .clean-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    .clean-col h4 { display: block; width: fit-content; margin: 0 auto 2rem; }
    .clean-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-clean::after { font-size: 20rem; right: -10%; }
}



/* --- Morfeusz Advanced Layouts (Restored) --- */

/* 4-Column Gallery for Portraits */
.cs-gallery-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.cs-gallery-4col img {
    width: 100%;
    height: 500px; /* Tall portraits */
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.cs-gallery-4col img:hover {
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .cs-gallery-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-gallery-4col img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .cs-gallery-4col {
        grid-template-columns: 1fr;
    }
}

/* Utility for full-width text within a section */
.section-text-fullwidth h2 {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.section-text-fullwidth p {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}


/* --- Back to Top Button --- */
.back-to-top-container {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #eee;
}

.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--kolor-bialy);
    color: var(--kolor-ceglany);
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(172, 51, 53, 0.15);
    border-color: var(--kolor-ceglany);
}

.back-to-top-btn svg {
    width: 24px;
    height: 24px;
}

/* --- NEXT PROJECT CTA (Top Design) --- */
.next-project-cta {
    padding: 10rem 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    text-align: center;
}
.next-label {
    display: block;
    font-family: monospace;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
}
.next-link {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--kolor-czarny);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    display: inline-block;
}
.next-link:hover {
    color: var(--kolor-ceglany);
}
.next-link .arrow {
    margin-left: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}
.next-link:hover .arrow {
    transform: translateX(15px);
}
