:root {
    --primary-gold: #B87333;
    --dark-navy: #1a1a1a;
    --light-gray: #f8f9fa;
    --medium-gray: #6a6a6a;
    --white: #ffffff;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --danger-red: #ef4444;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-navy);
    padding-top: 80px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 600;
    color: var(--dark-navy);
    text-decoration: none;
    white-space: nowrap;
}

.logo img {
    height: 6.5vh;
    width: auto;
    max-height: 75px;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-navy);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link:hover::after {
    width: 100%;
}

.main-nav a {
    position: relative;
    font-family: var(--font-menu);
    font-weight: 400;
    color: var(--dark-navy);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-navy);
    cursor: pointer;
}

.back-link {
    background: var(--light-gray);
    color: var(--dark-navy);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    background: var(--primary-gold);
    color: white;
}

/* Hero Section */
.investment-hero {
    background: linear-gradient(135deg, rgba(26,26,26,0.7), rgba(184,115,51,0.3)), url('podstawowe_zdjęcia/kawalerka.png') center center/cover no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 80px;
}

@media (max-width: 600px) {
    .hero {
        padding-top: 70px; /* Mniejszy padding dla mniejszych ekranów */
    }
}

@media (max-width: 400px) {
    .hero {
        padding-top: 60px; /* Jeszcze mniejszy padding dla bardzo małych ekranów */
    }
}
.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
    margin-top: 19px;
    margin-bottom: 13px;
}
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.investment-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.investment-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Investment Info */
.investment-info {
    background: white;
    padding: 4rem 0;
}

.info-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.investment-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-navy);
}

.investment-details p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.investment-photos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.investment-photos img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.feature-icon {
    background: var(--primary-gold);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.investment-stats {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    height: fit-content;
}

.stats-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-navy);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--medium-gray);
}

.stat-value {
    font-weight: 600;
    color: var(--dark-navy);
}

/* PZT Section */
.pzt-section {
    padding: 4rem 2rem;
    text-align: center;
}

.pzt-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.pzt-section img {
    max-width: 60%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

/* Apartments Section */
.apartments-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.apartments-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-navy);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filters */
.apartments-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: white;
    border: 2px solid var(--light-gray);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
}

/* Apartments Grid */
.apartments-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.apartment-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 450px;
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.apartment-image-container {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.apartment-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.apartment-image-container img.hidden {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.apartment-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    z-index: 10;
}

.status-available {
    background: var(--success-green);
}

.status-reserved {
    background: var(--warning-orange);
}

.status-sold {
    background: var(--danger-red);
}

.apartment-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-gold);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.apartment-content {
    padding: 1.5rem;
}

.apartment-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-navy);
}

.apartment-floor {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.apartment-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    text-align: center;
    padding: 0.8rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.spec-label {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-top: 0.2rem;
}

.apartment-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 1rem;
}

.price-per-sqm {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.apartment-actions {
    display: flex;
    gap: 1rem;
}

.btn-segment, .btn-apartment {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-segment:hover, .btn-apartment:hover {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
}

/* Contact Section */
.contact-section {
    background: var(--dark-navy);
    color: white;
    padding: 5rem 0;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    background: var(--primary-gold);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    opacity: 0.8;
    margin: 0;
}

/* Footer */
.footer {
    background: #0f0f0f;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 2rem 0 0; /* Tylko górny padding */
    margin: 0;
    min-height: 0;
    overflow: hidden; /* Ukrywa niechciane odstępy */
}
.footer .github-link {
    color: inherit; 
    text-decoration: none; 
    transition: transform 0.3s ease, font-weight 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.footer .github-link:hover {
    color: var(--primary-gold);
    transform: scale(1.03);
    font-weight: 600;
    text-decoration: none;
}

.footer .nav-container {
    display: block;
    text-align: center;
    padding: 0;
    margin: 0; 
}

.footer p {
    display: block; /* Zastąpienie inline-block dla lepszej kontroli */
    margin: 0;
    padding: 0;
    line-height: 1; /* Zapobiega dodatkowym odstępom między liniami */
}

.footer img {
    height: 5vh; /* Zachowanie inline stylu */
    vertical-align: bottom; /* Wyrównanie spodu obrazka z linią tekstu */
    margin: 0;
    padding: 0;
}

.footer * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dodane style dla przycisków segmentów */
.btn-segment.status-available {
    background-color: var(--success-green);
    color: white;
}

.btn-segment.status-reserved {
    background-color: var(--warning-orange);
    color: white;
}

.btn-segment.status-sold {
    background-color: var(--danger-red);
    color: white;
}

.pzt-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.highlight-photo {
    border: 4px solid var(--primary-gold);
    box-shadow: 0 8px 30px rgba(184,115,51,0.25);
    border-radius: 12px;
    transition: transform 0.3s;
    z-index: 2;
    position: relative;
}

.highlight-photo:hover {
    transform: scale(1.04);
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-overlay.visible {
    display: flex;
}

#lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* Style dla Legendy Statusów */
.legend-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.legend-color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Style dla przycisków i ich statusów */
.btn-segment {
    flex: 1;
    min-width: 80px;
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-segment.status-available {
    background-color: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

.btn-segment.status-reserved {
    background-color: var(--warning-orange);
    color: white;
    border-color: var(--warning-orange);
}

.btn-segment.status-sold {
    background-color: var(--danger-red);
    color: white;
    border-color: var(--danger-red);
}

/* Style dla strzałek w lightboxie */
.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close-btn:hover {
    color: #bbb;
}

.lightbox-prev-btn,
.lightbox-next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.4s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

.lightbox-next-btn {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.lightbox-prev-btn {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.lightbox-prev-btn:hover,
.lightbox-next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-overlay {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#lightbox-image {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
}

/* Style dla karuzeli etapów budowy */
.construction-stages-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.stages-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stages-container .section-title {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    color: var(--dark-navy, #2c3e50);
}

.stages-container .section-subtitle {
    margin-bottom: 2.5rem;
    color: var(--medium-gray, #6c757d);
    font-size: 1.1rem;
}

.stages-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.stages-carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.stage-slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 16 / 9;
}

.stage-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stage-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    color: #fff;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
}

.stages-carousel-nav .stages-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    z-index: 10;
}

.stages-carousel-nav .stages-btn:hover {
    background: #fff;
}

.stages-carousel-nav .stages-btn.prev {
    left: 15px;
}

.stages-carousel-nav .stages-btn.next {
    right: 15px;
}

.stages-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.stages-carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.stages-carousel-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 950px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .investment-hero h1 {
        font-size: 2.2rem;
    }

    .info-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .investment-photos {
        grid-template-columns: 1fr;
    }

    .apartments-grid {
        grid-template-columns: 1fr;
    }

    .apartment-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .apartment-actions {
        flex-direction: column;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: clamp(1rem, 3.5vw, 1.4rem);
        gap: 0.3rem;
    }

    .logo img {
        height: 5vh;
        max-height: 40px;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    .logo img {
        height: 4vh;
        max-height: 35px;
    }
}