/* =========================================
   0. SELF-HOSTED FONTS
   ========================================= */
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   1. ZMIENNE I RESET (DESIGN SYSTEM)
   ========================================= */
:root {
    /* Kolory */
    --bg-color: #FFFFFF;       /* Czysta biel (Modernizm) */
    --bg-gray: #F9F9F9;        /* Jasny szary (Beton/Tło) */
    --bg-dark: #1C232E;        /* Morski Granat (CTA) */
    --bg-footer: #0d1116;      /* Prawie czerń (Stopka) */
    
    --text-main: #111111;      /* Główny tekst */
    --text-muted: #666666;     /* Tekst poboczny */
    
    --accent-copper: #C6A87C;  /* Miedź (Akcent Premium) */
    --line-color: #E5E5E5;     /* Linie techniczne */
    
    /* Fonty */
    --font-head: 'Playfair Display', Georgia, serif;  /* Elegancja, Nagłówki */
    --font-body: 'Manrope', Arial, sans-serif;      /* Technika, Tekst, Menu */
    
    /* Układ */
    --container-width: 1240px;
    --gutter: 20px;
}

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

html {
    scroll-behavior: smooth;
    /* scroll-snap-type: y mandatory; - USUNIĘTO CENTROWANIE */
    scroll-padding-top: 80px; /* Offset dla nawigacji przy przewijaniu do sekcji */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden; /* Ukrywa poziomy pasek przewijania */
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
picture { display: block; }
img, video { display: block; max-width: 100%; height: auto; }

/* =========================================
   2. TYPOGRAFIA
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 400;
    color: var(--text-main);
}

.headline-large {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.headline-medium {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.label-mono {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
    font-weight: 600;
}

/* Utilities */
.pb-0 { padding-bottom: 0 !important; }
.pb-small { padding-bottom: 30px !important; }
.pt-0 { padding-top: 0 !important; }
.pt-small { padding-top: 30px !important; }

p, li, span, a, button {
    font-family: var(--font-body);
}

/* =========================================
   3. ELEMENTY UI (BUTTONY, KONTENERY)
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

/* Główny przycisk (Ciemny) */
.btn--primary {
    background-color: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}
.btn--primary:hover {
    background-color: transparent;
    color: var(--text-main);
}

/* Przycisk odwrócony (Outline) */
.btn--inverted {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}
.btn--inverted:hover {
    background-color: var(--text-main);
    color: #fff;
}

/* Przycisk tekstowy (Link z strzałką) */
.btn--text {
    background: transparent;
    color: var(--text-main);
    padding: 10px 0;
    border-bottom: 1px solid transparent;
}
.btn--text:hover {
    border-bottom: 1px solid var(--accent-copper);
    padding-left: 10px;
}

/* Przycisk w nawigacji (Outline) */
.btn--outline-nav {
    border: 1px solid rgba(0,0,0,0.1);
    padding: 10px 24px;
    font-size: 0.8rem;
}
.btn--outline-nav:hover {
    border-color: var(--text-main);
    background: var(--text-main);
    color: #fff;
}

/* Przycisk na całą szerokość (dla sekcji Klimatyczna) */
.btn--block {
    display: block;
    width: 100%;
    padding: 18px 0;
}

/* =========================================
   4. NAVBAR (NAWIGACJA)
   ========================================= */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(255,255,255,0.95); /* Szkło */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: padding 0.3s;
}
.navbar.scrolled { padding: 10px 0; }

.navbar__content {
    display: flex; justify-content: space-between; align-items: center;
}
.logo-img { 
    height: 32px; 
    width: auto;
    aspect-ratio: 397 / 70;
    filter: brightness(0) saturate(100%) invert(70%) sepia(23%) saturate(686%) hue-rotate(359deg) brightness(93%) contrast(86%);
}

/* Desktop Menu */
.nav-links { display: none; } /* Mobile first: ukryte */

@media(min-width: 900px) {
    .nav-links { display: flex; gap: 30px; align-items: center; min-height: 40px; }
    .nav-item { font-size: 0.9rem; font-weight: 500; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em;}
    .nav-item:hover { color: var(--accent-copper); }
    .hamburger { display: none !important; }
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-trigger .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 180px;
    min-height: 120px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(198, 168, 124, 0.1);
    color: var(--accent-copper);
    padding-left: 25px;
}

/* Mobile Hamburger (Wizualnie) */
.hamburger {
    width: 30px; height: 20px;
    display: flex; flex-direction: column; justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    outline: none;
    border: none;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.hamburger:focus {
    outline: none;
}
.bar { 
    width: 100%; 
    height: 2px; 
    background-color: var(--text-main); 
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Hamburger Active State */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation Active */
@media (max-width: 899px) {
    .navbar {
        border-bottom: none;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: hidden;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--line-color);
        font-size: 0.85rem;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        background: none;
        box-shadow: none;
        padding-left: 15px;
        margin-top: 5px;
    }
    
    .dropdown-item {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .btn.btn--primary {
        width: 100%;
        text-align: center;
        margin-top: 15px;
        padding: 12px 0;
    }
}

@media (min-width: 900px) {
    .hamburger { display: none !important; }
}

/* =========================================
   5. DEKORACJE TŁA (LINIE)
   ========================================= */
.background-lines {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--container-width); height: 100vh;
    z-index: -1; pointer-events: none;
    display: flex; justify-content: space-between; padding: 0 var(--gutter);
}
.line { 
    width: 1px; 
    height: 100%; 
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.05) 0%, 
        rgba(0,0,0,0.03) 30%, 
        rgba(0,0,0,0.015) 60%, 
        rgba(0,0,0,0) 100%
    );
}

/* =========================================
   6. SEKCJA HERO
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex; align-items: center;
    overflow: hidden;
    scroll-snap-align: start;
    contain-intrinsic-size: auto 100vh;
}
.hero__bg-wrapper {
    position: absolute; top: 0; right: 0;
    width: 100%;
    min-height: 100vh;
    z-index: -1;
}
.hero__bg-wrapper picture {
    width: 100%;
    height: 100%;
}
.hero__img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    will-change: transform;
    transform: translateZ(0);
}
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.3); /* Lekkie przyciemnienie */
}

.hero__content { 
    width: 100%; 
    z-index: 2; 
    padding-top: 80px;
    min-height: 500px;
}

.hero__text-block {
    background: rgba(255,255,255,0.9);
    padding: 40px;
    max-width: 650px;
    backdrop-filter: blur(5px);
}
.hero__subtitle {
    display: block; color: var(--accent-copper);
    text-transform: uppercase; letter-spacing: 0.2em;
    font-size: 0.8rem; margin-bottom: 20px; font-weight: 700;
}
.hero__title {
    font-size: 3.5rem; line-height: 1.1; margin-bottom: 40px;
}
.hero__actions {
    display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}

/* Desktop Hero tweaks */
@media(min-width: 900px) {
    .hero__bg-wrapper { 
        width: 60%; 
        aspect-ratio: 1 / 1;
    } /* Asymetria na desktopie */
    .hero__content {
        min-height: 600px;
    }
    .hero__text-block { 
        padding: 60px 60px 60px 0; 
        background: rgba(255,255,255,0.8);
        min-height: 450px;
    }
    .hero__title { font-size: 4.5rem; }
    .overlay { display: none; } /* Na desktopie czyste zdjęcie */
}

/* Mobile Hero tweaks - STACKED LAYOUT (Updated) */
@media(max-width: 600px) {
    .hero { 
        height: auto; 
        min-height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        background-image: none; /* No background image, use real img */
    }
    .hero--goralska {
        background-image: none;
    }
    .hero__bg-wrapper {
        display: block; /* Show wrapper */
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        z-index: 1;
    }
    .hero__bg-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .hero__content {
        padding-top: 0; 
        width: 100%;
        min-height: 0;
        z-index: 2;
    }
    .hero__text-block {
        padding: 30px 20px;
        max-width: 100%;
        margin: 0;
        background: #fff;
        backdrop-filter: none;
    }
    .hero__subtitle { 
        font-size: 0.7rem;
        margin-bottom: 12px; /* Zmniejszone z 20px */
    }
    .hero__title { 
        font-size: 2.5rem;
        margin-bottom: 20px; /* Zmniejszone z 40px */
    }
    .hero__desc { font-size: 0.95rem; }
    .hero__actions {
        margin-top: 20px; /* Dodany mniejszy margines */
    }
}

/* Mobile Section Top Bar - hide on mobile */
@media(max-width: 768px) {
    .section-top-bar {
        display: none !important;
    }
    
    .status-box {
        gap: 7px !important;
        margin-top: 12px !important;
        margin-bottom: 15px !important;
        font-size: 0.65rem !important;
    }
    
    .status-item {
        padding: 6px 9px !important;
        font-size: 0.65rem !important;
        word-break: break-word;
    }
    
    /* Zmniejszenie offsetu ramki na mobile */
    .copper-frame {
        width: calc(100% - 10px) !important;
        height: calc(100% - 10px) !important;
        border-color: var(--accent-copper) !important;
    }
    
    .video-wrapper {
        width: calc(100% - 10px) !important;
        height: calc(100% - 10px) !important;
    }
    
    .offer-visual {
        margin-top: 20px;
        height: 250px !important;
    }
    
    /* Zmiana kolejności - zdjęcie przed tekstem */
    .offer-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .offer-visual {
        order: 1;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .offer-text {
        order: 2;
    }
    
    .status-box {
        margin-top: 0 !important;
    }
    
    /* Zmniejszenie odstępów w sekcjach inwestycji */
    .lead-text {
        margin-bottom: 15px !important;
    }
    
    .clean-list {
        margin: 10px 0 15px !important;
    }
    
    .btn-wrapper.full-width-btn {
        margin-top: 0 !important;
    }
}

/* =========================================
   7. SEKCJE OGÓLNE
   ========================================= */
.section { 
    padding: 100px 0;
    scroll-snap-align: start;
}
.white-bg { background-color: var(--bg-color); }
.bg-gray { background-color: var(--bg-gray); }

.section-top-bar {
    display: flex; justify-content: space-between;
    border-top: 1px solid var(--line-color);
    padding-top: 20px; margin-bottom: 30px;
}

/* Pozioma linia oddzielająca sekcje */
.section-divider {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 1px;
    background-color: var(--line-color);
}
/* =========================================
   SEKCJA KLIMATYCZNA (OFFER) - FIXED OFFSET
   ========================================= */

.offer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    /* Kluczowe: rozciąga prawą kolumnę do wysokości lewej (tekstu) */
    align-items: stretch; 
    padding-bottom: 80px; /* Dodatkowy odstęp pod sekcją */
    contain: layout style;
}

/* --- LEWA STRONA (Tekst i Przycisk) --- */
.offer-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.status-box {
    display: flex; gap: 15px; margin-bottom: 25px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    flex-wrap: wrap; letter-spacing: 0.05em;
}

.status-item {
    padding: 8px 16px;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    text-decoration: none;
    display: inline-block;
}

.status-item.completed { 
    color: var(--text-main); 
    text-decoration: none;
    opacity: 0.6;
}

.status-item.active { 
    background-color: var(--text-main);
    color: #fff;
}

.lead-text {
    font-size: 1.1rem; color: #444; margin-bottom: 30px; 
    line-height: 1.7; max-width: 500px;
}

.clean-list { margin: 20px 0 40px; }
.clean-list li {
    padding: 12px 0; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between;
    font-size: 0.95rem; color: #222;
}
.clean-list span { color: #888; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.btn-wrapper.full-width-btn { margin-top: auto; width: 100%; }
.btn--block { display: block; width: 100%; text-align: center; padding: 16px 0; }
.price-hint { text-align: center; display: block; margin-top: 12px; font-size: 0.75rem; color: #888; }

/* --- PRAWA STRONA (Wideo + Ramka) --- */
.offer-visual {
    position: relative;
    width: 100%;
    /* Na mobile musimy nadać wysokość, bo grid nie działa "obok siebie" */
    min-height: 350px;
    margin-top: 30px;
}

/* WIDEO: Przyklejone do LEWEJ GÓRY */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    /* Odejmujemy 35px (ok. 1cm) na ramkę */
    width: calc(100% - 35px); 
    height: calc(100% - 35px); 
    z-index: 2; /* Wideo leży NA ramce i ją zasłania */
    box-shadow: 5px 5px 20px rgba(0,0,0,0.1);
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
}

.video-wrapper picture,
.video-wrapper video,
.video-wrapper img {
    display: block; 
    width: 100%; 
    height: 100%;
    object-fit: cover; /* Wypełnia wysokość, obcina boki */
    object-position: center; /* Wyśrodkowanie */
}

/* RAMKA: Przyklejona do PRAWEGO DOŁU */
.copper-frame {
    position: absolute;
    bottom: 0;
    right: 0;
    /* Taki sam rozmiar jak wideo */
    width: calc(100% - 35px); 
    height: calc(100% - 35px);
    border: 1px solid #000;
    z-index: 1; /* Ramka jest POD wideo */
}

/* DESKTOP MEDIA QUERIES */
@media (min-width: 900px) {
    .offer-grid {
        grid-template-columns: 4fr 6fr; 
        gap: 80px;
        margin-top: 40px;
    }
    
    .offer-visual {
        height: auto; /* Wysokość dopasowuje się do lewej kolumny */
        margin-top: 0;
        min-height: 450px; /* Minimalna wysokość estetyczna */
    }
}

/* =========================================
   SEKCJA O DEWELOPERZE (TRUST)
   ========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: flex-start;
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* LEWO: ZDJĘCIE I PODPIS */
.about-visual {
    position: relative;
    height: 100%;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Czarno-białe dla elegancji */
    transition: filter 0.8s ease;
    will-change: filter;
    transform: translateZ(0);
}
.team-photo:hover {
    filter: grayscale(0%); /* Kolor po najechaniu */
}

/* Animacja do kolorowego - kontrolowana przez JS */
.team-photo.color-reveal {
    filter: grayscale(0%);
}

.signature-wrapper {
    position: absolute;
    bottom: 0;
    right: -20px; /* Wystaje poza zdjęcie */
    background: #fff;
    padding: 20px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 3px solid var(--accent-copper);
}

.signature-font {
    font-family: var(--font-head); /* Playfair Display - szeryfowy, dostojny */
    font-style: normal; /* Usuwamy kursywę (opcjonalnie) */
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text-main);
    display: block;
}

.role-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    display: block;
    margin-top: 5px;
}

/* PRAWO: TEKST I GALERIA */
.text-body {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.quote-box {
    border-left: 2px solid var(--line-color);
    padding-left: 20px;
    font-style: italic;
    color: var(--text-main);
    margin: 30px 0;
    font-family: var(--font-head);
}

/* MINI GALERIA */
.mini-gallery {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--accent-copper);
    transition: transform 0.3s;
    cursor: pointer;
}
.gallery-thumb:hover {
    transform: scale(1.1);
    border-color: var(--accent-copper);
}
.bg-gray-thumb {
    background: #f9f9f9;
    padding: 10px;
}

.gallery-caption {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* DESKTOP MEDIA QUERIES */
@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1fr; /* 50/50 */
        gap: 100px;
    }
    
    .team-photo {
        height: 600px; /* Wyższe zdjęcie na desktopie */
    }
}


/* --- Zmiany w sekcji O DEWELOPERZE --- */

/* Zdjęcie architektury zamiast człowieka */
.team-photo.architectural-detail {
    /* Ustawiamy proporcje bardziej pionowe/artystyczne */
    aspect-ratio: 500 / 600; 
    object-position: center bottom; /* Często dół budynku jest ciekawy */
}

/* Mała ramka na zdjęciu (dekoracja) */
.visual-frame-small {
    position: absolute;
    top: 20px; right: 20px; bottom: 20px; left: 20px;
    border: 1px solid rgba(255,255,255,0.5);
    pointer-events: none;
}

/* Blok Podpisu Prezesa (Zamiast Cytatu) */
.ceo-signature-block {
    margin-top: 20px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Symulacja podpisu odręcznego (obrazek lub font) */
.signature-img {
    height: 50px; /* Wysokość podpisu */
    width: auto;
    filter: invert(0); /* Czarny podpis */
    opacity: 0.8;
    align-self: flex-start;
}
/* Jeśli nie masz pliku z podpisem, ukryj img i użyj tekstu z fontem 'Playfair Display' italic */

.ceo-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 600;
}

.ceo-role {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}




/* =========================================
   STANDARD SECTION Z HERO IMAGE
   ========================================= */

/* Klasa pomocnicza usuwająca górny padding sekcji */
.section.no-padding-top {
    padding-top: 0;
}

/* Sekcja z hero image - oddzielna, pełna wysokość ekranu */
.standard-hero-section {
    width: 100%;
    height: 100vh; /* Pełna wysokość ekranu */
    position: relative;
    overflow: hidden;
    scroll-snap-align: start; /* Zatrzymuje się na tej sekcji */
}

.standard-hero-section {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.standard-hero-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.standard-hero-image img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
}

/* Margines dla paska top-bar */
.mt-60 {
    margin-top: 30px;
}

/* Delikatny gradient na dole zdjęcia (opcjonalnie) */
.gradient-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
    opacity: 0.5;
}

/* Usuwa kreskę i padding górny w wybranym miejscu */
.section-top-bar.no-border {
    border-top: none !important;
    padding-top: 0 !important;
}


/* MOBILE */
@media (max-width: 768px) {
    .standard-hero-section {
        height: 50vh; /* Mniejsza wysokość na telefonie */
    }
}



/* =========================================
   SEKCJA STANDARD (ZAKTUALIZOWANA - SUBTELNA)
   ========================================= */

.grid-3-col {
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 50px;
}

/* 1. DUŻA ETYKIETA (Design, Komfort, EcoTech) */
/* Zmieniamy ze złotego na jasny szary - "Znak Wodny" */
.big-number {
    display: block; font-family: var(--font-head);
    font-size: 2.5rem; 
    color: var(--text-main);
    
    margin-bottom: 15px; font-weight: 300;
    border-bottom: 1px solid #eee; 
    width: fit-content;
}

/* 2. NAGŁÓWEK (Modernistyczna Bryła...) */
/* Tutaj przenosimy ZŁOTY akcent */
.feature-box h4 {
    position: relative;
    z-index: 1; /* Tekst na wierzchu */
    color: var(--accent-copper); /* MIEDŹ / ZŁOTO */
    font-family: var(--font-head); /* Playfair Display */
    font-size: 1rem;
    text-transform: none; /* Naturalna pisownia, nie drukowane */
    margin-bottom: 15px;
    font-weight: 500;
}

.feature-box p {
    color: #222;
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* DESKTOP */
@media (min-width: 900px) {
    .grid-3-col {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 60px;
    }
}

/* =========================================
   IMAGE COMPARISON SLIDER
   ========================================= */
.comparison-section {
    scroll-snap-align: start;
}

/* Layout z tekstem po lewej i sliderem po prawej */
.comparison-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: stretch; /* Zmienione z center na stretch, żeby slider mógł wypełnić wysokość */
}

.comparison-text .headline-medium {
    margin-bottom: 25px;
}

.image-comparison {
    width: 100%;
}

/* Desktop: bok do boku */
@media (min-width: 900px) {
    .comparison-layout {
        grid-template-columns: 1fr 1.2fr;
        gap: 80px;
    }
}

.comparison-container {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
}

.comparison-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Górne zdjęcie (After) - obcinane przez clip-path */
.comparison-after {
    position: absolute;
    clip-path: inset(0 0 0 50%);
    z-index: 2;
}

/* Slider (linia z przyciskiem) */
.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: transparent;
    z-index: 3;
    transform: translateX(-50%);
    cursor: ew-resize;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--accent-copper);
    transform: translateX(-50%);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 4;
    animation: slideHint 3s ease-in-out infinite;
}

.slider-button svg {
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
    width: 45px;
    height: 45px;
}

.slider-button:hover svg {
    transform: scale(1.15);
}

/* Animacja przesuwania w lewo-prawo + pulsowanie */
@keyframes slideHint {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    15% {
        transform: translate(-60%, -50%) scale(1.1);
    }
    30% {
        transform: translate(-50%, -50%) scale(1);
    }
    45% {
        transform: translate(-40%, -50%) scale(1.1);
    }
    60% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Zatrzymaj animację podczas interakcji */
.comparison-container.is-active .slider-button {
    animation: none;
}

/* Mobile */
@media (max-width: 768px) {
    .comparison-container {
        height: 400px;
    }
}

/* =========================================
   SEKCJA WYKOŃCZENIA (KOMPLETNA NAPRAWA)
   ========================================= */

.finish-section {
    background-color: #FAFAF8; /* Jasny beż/szary */
    padding: 120px 0;
}

.finish-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

/* --- LEWO: MENU --- */
.style-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px 0;
    border-left: 1px solid #ddd;
}

.style-btn {
    background: none;
    border: none;
    text-align: left;
    padding-left: 20px;
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.style-btn:hover { color: var(--text-main); }

.style-btn.active {
    color: var(--text-main);
    font-weight: 500;
}

.style-btn.active::before {
    content: ''; position: absolute; left: -1px; top: 0;
    height: 100%; width: 3px; background: var(--accent-copper);
}

/* --- PRAWO: ZDJĘCIA I OPISY --- */

.finish-visual {
    position: relative;
    width: 100%;
    height: 600px; /* Stała wysokość kontenera */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Styl dla zdjęć - KLUCZOWE DLA DZIAŁANIA */
.finish-img {
    position: absolute; /* Nakładamy zdjęcia na siebie */
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Domyślnie niewidoczne */
    transition: opacity 0.6s ease-in-out, transform 0.6s ease;
    transform: scale(1.05);
    z-index: 0;
}

/* Aktywne zdjęcie */
.finish-img.active {
    opacity: 1; /* Pokaż */
    transform: scale(1);
    z-index: 1;
}

/* Kontener na opisy (Na dole zdjęcia) */
.finish-captions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 30px;
    z-index: 10; /* Zawsze na wierzchu */
    border-top: 3px solid var(--accent-copper);
}

/* Tekst opisu */
.caption-text {
    display: none;
    font-size: 0.95rem;
    color: #444;
    margin: 0;
    line-height: 1.6;
    animation: fadeInUp 0.5s ease;
}

.caption-text.active {
    display: block;
}

.caption-text strong {
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 5px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ramka ozdobna */
.visual-frame {
    position: absolute;
    top: 20px; left: 20px; right: 20px; 
    bottom: 120px; /* Podniesiona, żeby nie wchodziła na tekst */
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 2;
    pointer-events: none;
}

/* DESKTOP MEDIA QUERY */
@media (min-width: 900px) {
    .finish-layout {
        grid-template-columns: 4fr 6fr;
        gap: 100px;
    }
}






/* =========================================
   SEKCJA INWESTYCJA (EDITORIAL RIGHT ALIGN)
   ========================================= */

.investment-section {
    background-color: #0F141A;
    color: #fff;
    padding: 120px 0;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Header sekcji */
.invest-header {
    margin-bottom: 60px;
}

.headline-medium.text-white { color: #fff; }

.text-light-gray { 
    color: #d0d0d0; 
    font-size: 1.1rem; 
    line-height: 1.8; 
    margin-top: 20px;
}

/* GRID KAFELKÓW */
.invest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Wygląd Karty */
.invest-card {
    background: transparent;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s ease;
    /* Domyślnie (Mobile) - do lewej */
    text-align: left;
}
.invest-card:hover { border-color: var(--accent-copper); }

/* Typografia Karty */
.invest-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--accent-copper);
    margin-bottom: 20px;
    line-height: 1;
}

.invest-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.invest-desc {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
}

/* Pasek górny (05 / Biznes) */
.right-align-bar {
    display: flex;
    justify-content: flex-start; /* Mobile: Lewa */
}


/* --- DESKTOP: WYRÓWNANIE DO LEWEJ --- */
@media (min-width: 900px) {
    
    /* 1. Cały tekst w sekcji do lewej */
    .investment-section { text-align: left; }

    /* 2. Układ Grid */
    .invest-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 60px;
    }

    /* 3. Nagłówek i Opis */
    .invest-header {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 80px;
    }
    
    .invest-header h2 {
        flex-shrink: 0;
        min-width: 350px;
        text-align: left;
    }
    
    .invest-header .text-light-gray {
        margin-left: auto;
        max-width: 450px;
        text-align: left;
    }

    /* 4. Pasek górny (05 / Biznes) */
    .right-align-bar {
        justify-content: flex-start; /* Desktop: Lewa */
    }

    /* 5. Karty */
    .invest-card {
        text-align: left; /* Tekst w kartach do lewej */
    }
    
    .invest-desc {
        margin-left: 0;
        margin-right: 0;
    }
}


















/* =========================================
   SEKCJA REALIZACJE (MASSIVE)
   ========================================= */

/* 1. Większe oddechy góra/dół dla całej sekcji */
.portfolio-section {
    padding: 140px 0; /* Było 100px */
}

/* 2. Grid - układ bez zmian */
.portfolio-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

/* 3. Wymuszenie wysokości zdjęcia (Klucz do "Wysokiej" sekcji) */
.portfolio-img {
    width: 100%;
    /* To sprawia, że sekcja nie jest "płaska". Zdjęcie jest duże i pionowe/kwadratowe. */
    height: 550px; 
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); /* Delikatny cień */
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Wypełnia kadr */
    transition: transform 0.8s ease, filter 0.5s ease;
}

/* Efekt najechania */
.grayscale-hover { 
    filter: grayscale(100%); 
    will-change: filter;
    transform: translateZ(0);
}
.portfolio-img:hover .grayscale-hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* 4. Metryczka (Project Specs) - ładne wypełnienie tekstu */
.project-specs {
    display: flex;
    gap: 40px;
    margin: 40px 0; /* Odstęp od tekstu i przycisku */
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.spec-value {
    font-family: var(--font-head); /* Playfair Display */
    font-size: 1.2rem;
    color: var(--text-main);
}

/* DESKTOP TWEAK */
@media (min-width: 900px) {
    .portfolio-wrapper {
        grid-template-columns: 4fr 6fr; /* 40% Tekst, 60% Zdjęcie */
        gap: 100px;
    }
}

/* =========================================
   11. SEKCJA CTA (DARK)
   ========================================= */
.dark-bg {
    background-color: var(--bg-dark); color: #fff;
    text-align: center; padding: 120px 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.cta-content { max-width: 700px; margin: 0 auto; }

.cta-subtitle {
    color: var(--accent-copper); text-transform: uppercase; letter-spacing: 0.2em;
    font-size: 0.8rem; display: block; margin-bottom: 20px;
}
.cta-title { font-size: 3rem; margin-bottom: 30px; color: #fff; }
.cta-text { font-size: 1.1rem; color: #ccc; margin-bottom: 50px; }

.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn--white {
    background: #fff; color: var(--bg-dark); border: 1px solid #fff;
}
.btn--white:hover {
    background: var(--accent-copper); border-color: var(--accent-copper); color: #fff;
}
.btn--outline-white {
    border: 1px solid rgba(255,255,255,0.3); color: #fff;
}
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

/* =========================================
   FOOTER (ZAKTUALIZOWANY)
   ========================================= */
.footer {
    background-color: #0d1116; /* Głęboka czerń/granat */
    color: #fff;
    padding: 80px 0 30px;
    font-size: 0.95rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Logo */
.footer-logo {
    filter: brightness(0) saturate(100%) invert(70%) sepia(23%) saturate(686%) hue-rotate(359deg) brightness(93%) contrast(86%);
    width: 160px;
    aspect-ratio: 397 / 70;
    margin-bottom: 25px;
}

/* Nagłówki sekcji (Biuro Sprzedaży, Informacje) */
.footer-heading {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #666; /* Szary nagłówek */
    margin-bottom: 15px;
    font-weight: 600;
}

/* Dane firmy */
.company-address {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #e0e0e0;
}
.company-legal p {
    font-size: 0.8rem;
    color: #777; /* Dyskretne dane NIP/KRS */
    line-height: 1.4;
    font-family: monospace; /* Techniczny font dla cyfr */
}

/* Biuro Sprzedaży - Wyróżnienie */
.person-name {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
}
.phone-highlight {
    display: block;
    font-family: var(--font-head); /* Playfair Display */
    font-size: 1.8rem;
    color: var(--accent-copper); /* Miedź */
    margin: 5px 0 10px;
    transition: 0.3s;
}
.phone-highlight:hover {
    color: #fff;
}

/* Linki (Email, Polityka) */
.link-hover {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}
.link-hover:hover {
    color: var(--accent-copper);
    transform: translateX(5px);
}

/* Lista linków */
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }

/* Odstępy */
.mb-40 { margin-bottom: 40px; }

/* Bottom Bar */
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 15px;
    font-size: 0.8rem;
    color: #555;
    text-align: center;
}

/* DESKTOP */
@media (min-width: 900px) {
    .footer__content {
        grid-template-columns: 1.2fr 1fr 1fr; /* 3 Kolumny */
        gap: 60px;
    }
    .footer__bottom {
        flex-direction: row;
        text-align: left;
    }
}

/* =========================================
   MODAL KONTAKTOWY (SLIDE-IN)
   ========================================= */

.contact-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1000;
    visibility: hidden; /* Ukryte na start */
}

/* Tło przyciemniające */
.modal-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(28, 35, 46, 0.6); /* Morski granat, półprzezroczysty */
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.5s;
}

/* Panel boczny */
.modal-panel {
    position: absolute; top: 0; right: 0;
    width: 100%; max-width: 550px; /* Szerokość panelu */
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%); /* Schowany w prawo */
    overflow-y: auto; /* Scrollowanie wewnątrz panelu */
    padding: 60px 40px;
}

.modal-close-btn {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none;
    font-size: 2rem; cursor: pointer; color: #111;
    transition: 0.3s;
}
.modal-close-btn:hover { color: var(--accent-copper); transform: rotate(90deg); }

/* Treść */
.modal-title { font-size: 2rem; margin-bottom: 10px; }
.modal-subtitle { color: #666; font-size: 0.95rem; margin-bottom: 40px; }

/* Pola Formularza */
.form-group { margin-bottom: 25px; }
.form-group label {
    display: block; font-size: 0.75rem; text-transform: uppercase;
    color: #999; margin-bottom: 8px; letter-spacing: 0.05em;
}

.futuro-form input,
.futuro-form textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ddd; /* Tylko dolna linia */
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background: transparent;
    transition: 0.3s;
    border-radius: 0;
}

.futuro-form input:focus,
.futuro-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-copper); /* Miedziana linia przy pisaniu */
}

/* Checkboxy i Zgody */
.legal-section {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.rodo-info p {
    font-size: 0.7rem; color: #777; line-height: 1.5; margin-bottom: 20px;
    text-align: justify;
}

.checkbox-container {
    display: flex; gap: 10px; margin-bottom: 15px;
    cursor: pointer; position: relative;
    align-items: flex-start;
}

.checkbox-container input {
    position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0;
}

/* Własny wygląd checkboxa */
.checkmark {
    height: 16px; width: 16px; min-width: 16px;
    background-color: #fff; border: 1px solid #ccc;
    margin-top: 2px; transition: 0.3s;
    position: relative;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-copper);
    border-color: var(--accent-copper);
}

/* Ptaszek w checkboxie */
.checkbox-container .checkmark:after {
    content: ""; position: absolute; display: none;
    left: 5px; top: 1px; width: 4px; height: 8px;
    border: solid white; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-container input:checked ~ .checkmark:after { display: block; }

.legal-text {
    font-size: 0.7rem; color: #666; line-height: 1.4;
}

/* Otwarty Modal (Klasa dodawana przez JS) */
.contact-modal.open { visibility: visible; }
.contact-modal.open .modal-backdrop { opacity: 1; }


/* =========================================
   DEKORACYJNA BIAŁA RAMKA (NA ZDJĘCIACH)
   ========================================= */

.white-frame-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6); /* Biały, lekko przezroczysty */
    z-index: 5; /* Zawsze na wierzchu */
    pointer-events: none; /* Nie blokuje kliknięć myszką */
    transition: border-color 0.3s ease;
}

/* Opcjonalnie: Na mobile ramka bliżej krawędzi */
@media (max-width: 768px) {
    .white-frame-overlay {
        top: 15px; left: 15px; right: 15px; bottom: 15px;
    }
}




/* =========================================
   13. MEDIA QUERIES (DESKTOP)
   ========================================= */
@media (min-width: 900px) {
    /* Klimatyczna */
    .offer-grid {
        grid-template-columns: 4fr 6fr; /* 40% Tekst, 60% Wideo */
        gap: 80px;
    }
    .headline-large { font-size: 3.5rem; }
    
    /* Standard */
    .grid-3-col {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 60px;
    }
    
    /* Realizacje */
    .portfolio-wrapper {
        grid-template-columns: 1fr 1.5fr;
        gap: 80px;
    }
    
    /* Footer */
    .footer__content { flex-direction: row; justify-content: space-between; }
    .footer__details { flex-direction: row; gap: 80px; }
    .footer__bottom { flex-direction: row; text-align: left; }
}














/* =========================================
   STYLE DLA PODSTRONY /KLIMATYCZNA
   ========================================= */

/* Hero Produktowe */
.product-hero .hero__text-block {
    background: rgba(255,255,255,0.95);
    padding: 60px;
}
.hero__desc {
    font-size: 1.1rem; color: #555; margin-bottom: 40px; max-width: 500px;
}
.hero__specs {
    display: flex; gap: 40px; border-top: 1px solid #ddd; padding-top: 20px;
}
.hero__specs .spec { display: flex; flex-direction: column; }
.hero__specs .val { font-family: var(--font-head); font-size: 1.5rem; color: var(--accent-copper); }
.hero__specs .lbl { font-size: 0.75rem; text-transform: uppercase; color: #888; letter-spacing: 0.05em; }

/* Sekcja Lokalizacji (Podobna do 'Offer' ale na odwrót) */
.location-grid {
    display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center;
}
.loc-image { position: relative; height: 500px; }
.loc-image img { width: 100%; height: 100%; object-fit: cover; }

@media(min-width: 900px) {
    .location-grid { grid-template-columns: 1fr 1fr; }
}

/* --- TABELA LOKALI (Premium List) --- */
.apartments-table {
    margin-top: 50px;
    border-top: 2px solid #111;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr 1fr 0.5fr; /* Kolumny */
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: background 0.2s;
}

.table-row:not(.header):hover {
    background: #fdfdfd;
}

.table-row.header {
    font-size: 0.75rem; text-transform: uppercase; color: #999; letter-spacing: 0.05em;
    padding-bottom: 15px; border-bottom: 1px solid #ddd;
}

.table-row .col { font-size: 0.95rem; color: #333; }
.table-row .num { font-family: var(--font-head); font-weight: 600; color: #111; }

/* Statusy */
.status-badge {
    display: inline-block; padding: 5px 12px; border-radius: 50px;
    font-size: 0.7rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em;
}
.status-badge.available { background: #e6f4ea; color: #1e8e3e; } /* Zielony */
.status-badge.reserved { background: #fef7e0; color: #b06000; } /* Pomarańcz */
.status-badge.sold { background: #f1f3f4; color: #999; text-decoration: line-through; } /* Szary */

/* Przycisk akcji (Strzałka) */
.btn-icon {
    width: 35px; height: 35px; border-radius: 50%;
    border: 1px solid #ddd; background: transparent;
    cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.btn-icon:hover { border-color: var(--accent-copper); color: var(--accent-copper); }
.btn-icon.disabled { opacity: 0.3; cursor: default; }

/* Responsywność Tabeli (Scroll na mobile) */
@media (max-width: 900px) {
    .apartments-table { overflow-x: auto; min-width: 100%; }
    .table-row { min-width: 800px; } /* Wymusza szerokość, żeby się nie zgniatało */
}

/* --- GALERIA GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 20px;
}
.gal-item { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: 0.5s; }
.gal-item:hover { filter: grayscale(0%); }
.gal-item.big { 
    grid-column: 1 / span 2; /* Pierwsze zdjęcie na całą szerokość */
    grid-row: 1; 
}
@media (min-width: 900px) {
    .gallery-grid { grid-template-rows: 500px 400px; }
}

/* =========================================
   NOWE SEKCJE (PORTFOLIO UPDATE)
   ========================================= */

/* --- HERO UPDATE --- */
.hero__desc {
    font-size: 1.1rem;
    color: #444;
    margin-top: 20px;
    max-width: 600px;
    line-height: 1.6;
}

/* =========================================
   NOWE BLOKI INWESTYCJI (V2)
   ========================================= */

/* --- BLOK 1: W SPRZEDAŻY --- */
.invest-block-sale {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
    /* Tło białe (domyślne), tekst ciemny */
}

@media (min-width: 900px) {
    .invest-block-sale {
        grid-template-columns: 0.9fr 1.1fr; /* Wideo węższe, tekst szerszy */
    }
}

.sale-visual {
    position: relative;
    height: 400px;
    overflow: hidden;
}
.sale-img {
    width: 100%; height: 100%; object-fit: cover;
    /* Usunięto zoom na hover */
}

.sale-content {
    padding: 20px;
}

/* Status "W Sprzedaży" - Ciemne tło (jak Smart Home) */
.status-badge.active {
    background: var(--bg-dark);
    color: #fff;
    border-radius: 0; /* Brak zaokrągleń - styl przycisku */
    padding: 8px 16px; /* Nieco większy padding */
}

.subheadline {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--accent-copper);
    margin-bottom: 20px;
}

/* --- UNIFIED CARD STYLE (Planned & Completed) --- */
.invest-card-unified {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
}

.invest-card-unified .card-img {
    width: 100%; 
    height: 300px; 
    object-fit: cover;
    transition: transform 0.5s ease;
}
.invest-card-unified:hover .card-img { transform: scale(1.05); }

/* Grayscale for Completed items - REMOVED (All colorful) */
.invest-card-unified.completed .card-img {
    filter: none;
}
.invest-card-unified.completed:hover .card-img {
    filter: none;
}

.invest-card-unified .overlay-dark {
    display: none;
}

/* Badge Top-Left */
.invest-card-unified .status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    background: #fff;
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 0; /* Square corners */
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Content Bottom - White Box Style */
.invest-card-unified .card-content {
    position: relative;
    width: 100%;
    padding: 30px 0;
    z-index: 3;
    background: transparent;
}

.invest-card-unified .card-title {
    font-family: var(--font-head);
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
    text-shadow: none;
}

.invest-card-unified .card-desc {
    font-size: 0.95rem;
    color: #555;
    max-width: 95%;
    line-height: 1.5;
    text-shadow: none;
}

/* --- BLOK 2: W PRZYGOTOWANIU --- */
.invest-block-planned {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

@media (min-width: 900px) {
    .invest-block-planned {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- BLOK 3: ZREALIZOWANE --- */
.invest-block-completed {
    margin-bottom: 0; /* Usunięto dolny margines */
}

.completed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 900px) {
    .completed-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.completed-img-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 15px;
}
.completed-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%);
}
.completed-item:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.completed-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    opacity: 0; transition: opacity 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.completed-item:hover .completed-overlay { opacity: 1; }

.completed-info {
    border-left: 1px solid #eee;
    padding-left: 15px;
}
.completed-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 5px;
}
.completed-status {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.05em;
}

/* Fix for Biznes section cards to ensure they are transparent */
#inwestycja .invest-card {
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    color: #fff;
}
#inwestycja .invest-card:hover {
    border-color: var(--accent-copper);
}

/* --- SMART HOME SECTION --- */
.smart-home-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: #0b0b0b;
    /* Subtelny gradient imitujący światło w centrum */
    background: radial-gradient(circle at center, #1a1a1a 0%, #0b0b0b 70%);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.smart-home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
}

/* Nadpisujemy media query - chcemy center layout zawsze */
@media (min-width: 900px) {
    .smart-home-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .smart-text {
        padding: 0;
    }
}

.smart-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px solid rgba(198, 168, 124, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(198, 168, 124, 0.03);
    box-shadow: 0 0 40px rgba(198, 168, 124, 0.05);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.smart-home-section:hover .smart-icon {
    border-color: rgba(198, 168, 124, 0.5);
    box-shadow: 0 0 50px rgba(198, 168, 124, 0.15);
    transform: translateY(-5px);
}

.smart-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent-copper);
}

.headline-small {
    font-family: var(--font-head);
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: -0.02em;
}

.text-light-gray {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #999;
}

/* --- LIGHTBOX --- */
.lightbox-modal {
    display: none; 
    position: fixed; 
    z-index: 3000; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* =========================================
   SKETCH REVEAL ANIMATION
   ========================================= */
.sketch-reveal-wrapper {
    overflow: hidden;
}

.sketch-reveal-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sketch-reveal-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.img-sketch {
    z-index: 1;
}

.img-real, .video-real {
    z-index: 2;
    /* Initial state: Hidden via Mask */
    opacity: 1;
    --mask-progress: -40%; /* Start outside */
    -webkit-mask-image: linear-gradient(135deg, black var(--mask-progress), transparent calc(var(--mask-progress) + 20%)); 
    mask-image: linear-gradient(135deg, black var(--mask-progress), transparent calc(var(--mask-progress) + 20%));
}

/* Base state for video: B&W initially */
.video-real {
    filter: grayscale(100%);
    transition: filter 2s ease; /* Płynne wejście koloru */
}


/* =========================================
   AWARD BADGE OVERLAY (na zdjęciu)
   ========================================= */
.award-badge-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(28, 35, 46, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px 25px;
    border-radius: 4px;
    max-width: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    z-index: 10;
}

.award-badge-overlay .award-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.award-badge-overlay .award-content {
    flex: 1;
}

.award-badge-overlay .award-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-copper);
    margin-bottom: 5px;
    font-weight: 600;
    font-family: var(--font-body);
}

.award-badge-overlay .award-title-small {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 5px;
    color: white;
}

.award-badge-overlay .award-desc-small {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
    margin: 0;
}

/* Responsywność badge'a */
@media (max-width: 768px) {
    .award-badge-overlay {
        top: 15px;
        right: 15px;
        padding: 15px 20px;
        max-width: 240px;
        gap: 12px;
    }
    
    .award-badge-overlay .award-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .award-badge-overlay .award-title-small {
        font-size: 0.9rem;
    }
    
    .award-badge-overlay .award-desc-small {
        font-size: 0.8rem;
    }
}

/* =========================================
   XY SLIDER (Eksplorator Stylów 2D)
   ========================================= */
.xy-slider-container {
    position: relative;
    width: 100%;
    /* max-width: 800px; - Removed to fill the parent container in the grid layout */
    height: 100%; /* Stretch to fill parent */
    min-height: 550px; /* Ensure a decent visual height similar to previous slider */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    cursor: crosshair;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    /* Zabezpieczenie przed zaznaczaniem przy przeciąganiu */
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.xy-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    /* Domyślnie ukryte lub przycięte, JS to ustawi */
}

.xy-handle {
    position: absolute;
    top: 88%; left: 50%;
    width: 44px; height: 44px; /* Większy uchwyt */
    background: var(--bg-dark); /* Kolor tła z sekcji Inwestuj Bezpiecznie */
    border: 2px solid #fff; /* Biały kontrast jak przyciski outline */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 100;
    cursor: move;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.xy-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.xy-handle::after {
    /* Ikona przesunięcia (strzałki) */
    content: '';
    width: 36px; height: 36px; /* IKONA POWIĘKSZONA */
    /* Zmieniona ikona na 4 oddzielne strzałki (bez środkowego krzyża) - eliminuje efekt "celownika" */
    /* Zaktualizowana wersja: Maksymalne wypełnienie (3-21) dla lepszej widoczności, cieńsza linia (slim) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 12h6M21 12h-6M12 3v6M12 21v-6M3 12l4-4M3 12l4 4M21 12l-4-4M21 12l-4 4M12 3l-4 4M12 3l4 4M12 21l-4-4M12 21l4-4' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 0; /* Override default dot */
    background-color: transparent; /* Override white dot */
    transform: none; /* Override translate */
    position: static; /* Center via flexbox */
}

.xy-label {
    position: absolute;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 1px 2px black;
    pointer-events: none; /* Żeby nie przeszkadzały w klikaniu */
}

/* Responsive text columns for Section 5 (Wykonczenia) */
.text-columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.text-columns-2 .col-2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Full width slider adjustments */
.xy-slider-full-width {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9; /* Proporcje kinowe, zapobiega "rozciąganiu" (cropowaniu) */
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.xy-slider-full-width .xy-slider-container {
    min-height: 0 !important; /* Nadpisuje domyślne 550px */
    height: 100%;
    width: 100%;
}

@media (max-width: 900px) {
    .text-columns-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .col-1, .col-2 {
        width: 100%;
    }
    
    .xy-slider-full-width {
        aspect-ratio: 1/1; /* Na mobile kwadrat jest wygodniejszy */
        min-height: auto;
        height: auto;
    }
    
    /* Ukryj tekst w oryginalnym miejscu, pokaż przed sliderem */
    .slider-hint-desktop {
        display: none !important;
    }
    
    .slider-hint-mobile {
        display: block !important;
    }
}

/* Na desktop: odwrotnie */
.slider-hint-mobile {
    display: none;
}

.slider-hint-desktop {
    display: block;
}

/* Animacja zachęcająca (Attract Loop) dla slidera */
@keyframes xy-pulse-move {
    0% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-40%, -60%) scale(1.15); } /* Lekko w prawo-góra + EFEKT BALONA */
    50% { transform: translate(-60%, -40%) scale(1.15); } /* Lekko w lewo-dół + EFEKT BALONA */
    75% { transform: translate(-40%, -40%) scale(1.15); } /* Lekko w prawo-dół + EFEKT BALONA */
    100% { transform: translate(-50%, -50%) scale(1); }
}

.xy-handle.xy-animating {
    animation: xy-pulse-move 3s infinite ease-in-out;
}

/* Lightbox Navigation */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 3001;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* =========================================
   MOBILE STICKY BAR (tylko mobile)
   ========================================= */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    gap: 10px;
    z-index: 999;
    min-height: 64px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-sticky-bar.visible {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
    }
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sticky-btn-phone {
    background: var(--bg-dark);
    color: white;
}

.sticky-btn-phone:hover {
    background: #2a3240;
}

.sticky-btn-form {
    background: var(--accent-copper);
    color: white;
}

.sticky-btn-form:hover {
    background: #b89768;
}

.sticky-btn svg {
    flex-shrink: 0;
}

/* =========================================
   LIGHT THEME OVERRIDES (Legal Pages)
   ========================================= */
body.light-theme .headline-small {
    color: var(--text-main);
}

body.light-theme {
    /* Upewnienie się, że tło jest białe */
    background-color: #fff;
    color: #111;
}
