/* ===================================
   Custom Fonts
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

:root {
    /* Colors - Brand Book */
    --primary-color: #54717B;          /* Szaro-niebieski (CTA, przyciski, ikony) */
    --primary-hover: #3d565e;          /* Ciemniejszy szaro-niebieski (hover) */
    --secondary-color: #FAF3E8;        /* Bardzo jasny beż (tła sekcji, akcenty) */
    --dark-primary: #162B3B;           /* Granatowy (footer, Quick Info, ciemne sekcje) - zmienione z bordowego */
    --dark-secondary: #54717B;         /* Szaro-niebieski (alternatywne ciemne sekcje) */
    --accent-color: #54717B;           /* Szaro-niebieski jako akcent */
    --text-dark: #162B3B;              /* Granatowy dla tekstu */
    --text-light: #ffffff;             /* Biały tekst */
    --text-gray: #54717B;              /* Szaro-niebieski dla pomocniczego tekstu */
    --bg-light: #FAF3E8;               /* Bardzo jasny beż dla tła sekcji */
    --bg-white: #ffffff;               /* Białe tło */
    --border-color: #e8ddc9;           /* Jasny beż dla ramek */
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Font families */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-heading-weight: 600;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

/* ===================================
   Utility Classes
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: #403836;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 18px;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: none;
    letter-spacing: 0;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

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

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.navbar .logo {
    margin: 0;
    margin-top: 10px;
    padding: 0;
}

.footer .logo {
    margin: 0;
    padding: 0;
    display: block;
}

.navbar .logo-image {
    height: 90px;
    width: auto;
    max-width: 450px;
    object-fit: contain;
    transition: var(--transition-normal);
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    transition: var(--transition-normal);
}

.footer .logo-image {
    height: 80px;
    max-width: 400px;
    margin-left: 0;
    margin-bottom: 30px;
}

.logo-image:hover {
    opacity: 0.85;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-phone-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #4f1813;
    border: 2px solid #4f1813;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-normal);
    margin-right: 15px;
    z-index: 10;
}

.nav-phone-cta i {
    font-size: 16px;
}

.nav-phone-cta:hover {
    background: #4f1813;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center 35% !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 10;
    padding: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 64px;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.2;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

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

.hero-buttons .btn-primary {
    background: #cd9f8b;
}

.hero-buttons .btn-primary:hover {
    background: #bb7b5f !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

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

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 20;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 20px;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.scroll-indicator a {
    color: white;
    font-size: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===================================
   Quick Info Bar
   =================================== */

.quick-info {
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 40px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.info-icon {
    width: 56px;
    height: 56px;
    color: white;
    stroke: white;
    margin-right: 20px;
    opacity: 0.85;
    stroke-width: 1.5;
}

.info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
}

.info-number {
    font-size: 24px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.info-label {
    font-size: 12px;
    color: white;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ===================================
   Features Section
   =================================== */

.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.feature-icon i,
.feature-icon svg {
    width: 36px;
    height: 36px;
    color: white;
    stroke: white;
    stroke-width: 1.5;
}

.feature-icon .ph {
    font-size: 36px !important;
    color: white;
    line-height: 1;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===================================
   Apartments Section
   =================================== */

.apartments {
    padding: 100px 0;
    background: var(--bg-white);
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

.apartment-card {
    background: var(--bg-white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.apartment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.apartment-card.featured {
    box-sizing: border-box;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.apartment-image {
    height: 200px;
    min-height: 200px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.1);
}

.apartment-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.apartment-content h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.3;
}

.apartment-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-gray);
    font-size: 14px;
}

.apartment-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.apartment-details i {
    color: #403836;
}

.apartment-content p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.8;
    flex-grow: 1;
}

.apartment-content .btn {
    width: 100%;
}

/* ===================================
   Apartment Search Section
   =================================== */

.apartment-search {
    padding: 100px 0;
    background: #fafafa;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 35px;
    background: white;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-group input,
.filter-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-normal);
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-group input::placeholder {
    color: #999;
}

.clear-filters-btn {
    grid-column: span 1;
    margin-top: 10px;
    background: transparent;
    color: var(--text-gray);
    border: 1px solid #d0d0d0;
    font-weight: 400;
    font-size: 14px;
}

.clear-filters-btn:hover {
    background: #fafafa;
    border-color: #b0b0b0;
    color: var(--text-dark);
    transform: none;
    box-shadow: none;
}

.search-btn {
    grid-column: span 2;
    margin-top: 10px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
}

.results-count {
    font-size: 16px;
    color: var(--text-gray);
}

.results-count strong {
    color: var(--text-dark);
    font-size: 18px;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-sort label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.results-sort select {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.results-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.results-table thead {
    background: #f5f5f5;
}

.results-table th {
    padding: 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table td {
    padding: 20px 16px;
    border-top: 1px solid var(--border-color);
    font-size: 15px;
}

.results-table tbody tr {
    transition: background var(--transition-fast);
}

.results-table tbody tr:hover {
    background: #f8f8f8;
}

.building-badge {
    display: inline-block;
    padding: 4px 10px;
    background: transparent;
    color: var(--text-gray);
    border: 1px solid rgba(84, 113, 123, 0.2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.apartment-name {
    font-weight: 600;
    color: var(--text-dark);
}

.room-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-count i {
    color: #403836;
    font-size: 16px;
}

.area-value {
    font-weight: 600;
}

.price-cell {
    position: relative;
}

.price-cell:hover {
    cursor: pointer;
}

.price-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.price-per-sqm {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: 2px;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.available {
    background: #d4edda;
    color: #155724;
}

.status-badge.reserved {
    background: #fff3cd;
    color: #856404;
}

.status-badge.sold {
    background: #f8d7da;
    color: #721c24;
}

.results-table .btn {
    padding: 8px 20px;
    font-size: 13px;
    white-space: nowrap;
}

.price-history-cell {
    position: relative;
}

.price-stable {
    display: inline-block;
    padding: 8px 16px;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 400;
    border-radius: 5px;
}

.history-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-gray);
    border: 1px solid rgba(84, 113, 123, 0.3);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.history-btn:hover {
    background: rgba(84, 113, 123, 0.03);
    border-color: rgba(84, 113, 123, 0.5);
    color: var(--text-dark);
    transform: translateY(-1px);
}

.history-btn i {
    font-size: 14px;
}



.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-gray);
}

.no-results i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.no-results p {
    font-size: 18px;
}

/* Pagination - Delikatny styl */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
}

.pagination-btn {
    padding: 8px 16px;
    background: transparent;
    color: var(--text-gray);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f8f8;
    border-color: #c0c0c0;
    color: var(--text-dark);
}

.pagination-btn:disabled {
    background: transparent;
    border-color: #f0f0f0;
    color: #d0d0d0;
    cursor: not-allowed;
    opacity: 1;
}

.pagination-pages {
    display: flex;
    gap: 6px;
}

.pagination-page {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition-normal);
}

.pagination-page:hover {
    background: #f8f8f8;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-page.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Download CTA */
.download-cta {
    margin-top: 60px;
    text-align: center;
}

.btn-download-spec {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-download-spec:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(84, 113, 123, 0.3);
}

.btn-download-spec i {
    font-size: 20px;
}

/* Responsive */


@media (max-width: 1024px) {
    .apartments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-filters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-btn {
        grid-column: span 1;
    }
    
    .clear-filters-btn {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .search-filters {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    
    .search-btn {
        grid-column: span 1;
    }
    
    .clear-filters-btn {
        grid-column: span 1;
    }
    
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .results-table {
        font-size: 13px;
    }
    
    .results-table th,
    .results-table td {
        padding: 12px 10px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 20px;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .btn-download-spec {
        width: 100%;
        padding: 16px 30px;
        font-size: 15px;
    }
}

/* ===================================
   Gallery Section
   =================================== */

.gallery {
    padding: 100px 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-overlay i {
    font-size: 48px;
    margin-bottom: 10px;
}

.gallery-overlay p {
    font-size: 18px;
    font-weight: 500;
}

/* Gallery Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--secondary-color);
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
}

/* ===================================
   Additional Services Section
   =================================== */

.additional-services {
    padding: 60px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: 5px;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f1813, #7d3329);
}

.service-icon i,
.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: white !important;
    color: white !important;
    stroke-width: 1.5;
    font-size: 32px;
}

.service-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.service-price {
    font-size: 15px;
    font-weight: 300;
    color: #4f1813;
    margin: 0;
    margin-top: auto;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===================================
   Location Section
   =================================== */

.location {
    padding: 100px 0 50px 0;
    background: var(--bg-white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.location-map-wrapper {
    position: relative;
}

.metro-highlight {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: var(--transition-normal);
}

.metro-highlight:hover {
    border-color: #c0c0c0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metro-highlight i {
    font-size: 36px;
    color: var(--primary-color);
    min-width: 40px;
}

.metro-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metro-text strong {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.metro-text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.4;
}

.location-map {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: var(--transition-normal);
}

.location-map:hover {
    box-shadow: var(--shadow-xl);
}

.location-map iframe {
    width: 100%;
    height: 500px;
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1;
    transition: all var(--transition-normal);
}

.map-overlay .btn {
    box-shadow: var(--shadow-xl);
    background: var(--secondary-color);
    color: var(--dark-primary);
    font-weight: 600;
    white-space: nowrap;
}

.map-overlay .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.5);
}

.location-info h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.location-info > p {
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 16px;
}

.location-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
    margin-bottom: 30px;
}

.location-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    transition: all var(--transition-normal);
}

.location-point:hover {
    transform: translateX(5px);
}

.location-point:hover i {
    color: var(--primary-color);
}

.location-point i {
    font-size: 20px;
    color: var(--primary-color);
    min-width: 24px;
    text-align: center;
    margin-top: 2px;
    transition: color var(--transition-normal);
}

.location-point strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
    color: var(--text-dark);
    font-weight: 600;
}

.location-point p {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.4;
}

.location-address {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    margin-bottom: 40px;
}

.location-address i {
    font-size: 20px;
    color: white;
}

.location-address p {
    line-height: 1.5;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* ===================================
   Partners Section
   =================================== */

.partners {
    padding: 100px 0;
    background: var(--bg-light);
    border-top: 1px solid #e8e8e8;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.partner-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 40px;
    transition: var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.partner-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.partner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 25px;
}

.partner-logo {
    max-width: 100px;
    height: auto;
    object-fit: contain;
}

.partner-logo-text {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 2px;
}

.partner-link {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-gray);
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: var(--transition-normal);
    background: white;
}

.partner-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: #fafafa;
}

.partner-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.partner-content p:last-child {
    margin-bottom: 0;
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    padding: 100px 0 40px 0;
    background: var(--bg-white);
    border-top: 1px solid #e8e8e8;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-white);
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    transition: var(--transition-normal);
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 28px;
    color: #54717B;
    min-width: 40px;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-gray);
    line-height: 1.8;
}

.contact-item a {
    color: var(--text-gray);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.consent-intro {
    margin: 25px 0 20px 0;
    padding: 15px 20px;
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    border-radius: 5px;
}

.consent-intro p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
}

.checkbox-group label a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-group label a:hover {
    color: var(--secondary-color);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Legal Disclaimer */
.legal-disclaimer {
    width: 100%;
    padding: 20px 0;
    margin: 0;
    background: #f8f9fa;
}

.legal-disclaimer .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.legal-disclaimer p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-gray);
    margin: 0;
    text-align: center;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--dark-primary);
    color: var(--text-light);
    padding: 60px 0 20px;
    margin: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-nav {
    padding-left: 40px;
}

.footer-contact {
    padding-left: 20px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
    margin-left: 0;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-normal);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-list li {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.contact-list li strong {
    color: white;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.contact-list .contact-phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-normal);
}

.contact-list li a:hover {
    color: white;
}

.contact-list i {
    color: white;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* ===================================
   Download Materials Section
   =================================== */

.download-section {
    padding: 50px 0 100px 0;
    background: var(--bg-white);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.download-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 5px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.download-icon i {
    color: white;
}

.download-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.download-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.8;
    min-height: 50px;
}

.download-card .btn {
    width: 100%;
}

/* PDF link in navigation */
.nav-link.pdf-link {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-link.pdf-link i {
    margin-right: 5px;
}

/* ===================================
   Back to Top Button
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .section-title {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 28px;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 28px;
        font-weight: 300;
        line-height: 1.2;
    }
    
    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .location-points {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 90px;
    }
    
    .nav-content {
        justify-content: space-between;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-normal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
        order: 3; /* Hamburger na końcu */
    }
    
    .nav-phone-cta {
        order: 2; /* Telefon przed hamburger */
    }
    
    .logo {
        order: 1; /* Logo na początku */
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .navbar .logo-image {
        height: 60px;
        max-width: 250px;
        margin-top: 5px;
    }
    
    .nav-phone-cta {
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 50%; /* Pełne kółko */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 20px; /* Większy odstęp od hamburger menu */
        margin-left: auto; /* Przesuń do prawej */
    }
    
    .nav-phone-cta span {
        display: none; /* Ukryj tekst "Zadzwoń" */
    }
    
    .nav-phone-cta i {
        font-size: 20px;
        margin: 0;
    }
    
    .hero-title {
        font-size: 24px;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 24px;
        font-weight: 300;
        line-height: 1.2;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .apartments-grid,
    .gallery-grid,
    .download-grid,
    .partners-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-card {
        padding: 30px 25px;
    }
    
    .partner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .partner-logo {
        max-width: 80px;
    }
    
    .partner-logo-text {
        font-size: 24px;
    }
    
    .partner-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .location-points {
        gap: 15px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .slider-controls {
        padding: 0 15px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .logo-image {
        height: 45px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 40px;
        max-width: 130px;
    }
    .hero-title {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 20px;
        font-weight: 300;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-icon {
        width: 44px;
        height: 44px;
        margin-right: 15px;
    }
    
    .info-number {
        font-size: 22px;
    }
    
    .info-label {
        font-size: 11px;
    }
    
    .metro-highlight {
        padding: 15px 18px;
        gap: 12px;
    }
    
    .metro-highlight i {
        font-size: 28px;
        min-width: 32px;
    }
    
    .metro-text strong {
        font-size: 16px;
    }
    
    .partner-card {
        padding: 25px 20px;
    }
    
    .partner-card h3 {
        font-size: 20px;
    }
    
    .partner-content p {
        font-size: 14px;
    }
    
    .metro-text p {
        font-size: 13px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===================================
   Price History Tooltip
   =================================== */
.price-history-cell {
    position: relative;
    cursor: help;
}

.price-history-tooltip {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    min-width: 250px;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.price-history-cell:hover .price-history-tooltip {
    display: block;
}

.price-history-tooltip table {
    width: 100%;
    border-collapse: collapse;
}

.price-history-tooltip th,
.price-history-tooltip td {
    padding: 5px 8px;
    text-align: left;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.3;
}

.price-history-tooltip th {
    font-weight: 600;
    color: var(--text-dark);
    background: #f8f8f8;
}

.price-history-tooltip td {
    color: var(--text-gray);
}

.price-history-tooltip tr:last-child td {
    border-bottom: none;
}

/* Strzałka tooltipa po lewej stronie */
.price-history-tooltip::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent #ddd transparent transparent;
}

.price-history-tooltip::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 7px 7px 0;
    border-color: transparent white transparent transparent;
}

/* Na małych ekranach (mobile) tooltip nad komórką */
@media (max-width: 768px) {
    .price-history-tooltip {
        left: 50%;
        top: auto;
        bottom: calc(100% + 10px);
        transform: translateX(-50%);
        white-space: normal;
        max-width: 280px;
    }
    
    .price-history-tooltip::before {
        left: 50%;
        top: auto;
        bottom: -8px;
        transform: translateX(-50%);
        border-width: 8px 8px 0 8px;
        border-color: #ddd transparent transparent transparent;
    }
    
    .price-history-tooltip::after {
        left: 50%;
        top: auto;
        bottom: -6px;
        transform: translateX(-50%);
        border-width: 7px 7px 0 7px;
        border-color: white transparent transparent transparent;
    }
}