/* ================================== */
/*   FINALNY, KOMPLETNY KOD CSS       */
/* ================================== */

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Zapewnia, że nawigacja nie zasłania tytułów sekcji */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.mobile-menu-toggle { display: none; }

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero .container { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(37, 99, 235, 0.1); color: #2563eb; padding: 8px 16px; border-radius: 25px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.hero-title { font-size: 3.5rem; font-weight: 800; color: #1e293b; line-height: 1.2; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); margin-bottom: 25px; }
.highlight { color: #2563eb; }
.hero-subtitle { font-size: 1.25rem; color: #64748b; margin-top: 25px; margin-bottom: 35px; max-width: 550px; line-height: 1.6; }
.hero-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 45px; }
.feature { display: flex; align-items: center; gap: 10px; color: #475569; font-weight: 500; margin-bottom: 12px; line-height: 1.5; }
.feature i { color: #2563eb; font-size: 16px; }
.hero-cta { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-image { position: relative; height: 650px; }
.image-container { position: relative; height: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); }
.image-container img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.image-overlay { position: absolute; bottom: 30px; left: 30px; right: 30px; }
.stats { display: flex; gap: 20px; }
.stat { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); padding: 20px 25px; border-radius: 15px; text-align: center; flex: 1; border: 1px solid rgba(255, 255, 255, 0.2); }
.stat-number { font-size: 2rem; font-weight: 800; color: #2563eb; display: block; }
.stat-label { font-size: 0.9rem; color: #64748b; font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 16px; transition: all 0.3s ease; border: none; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); }
.btn-secondary { background: white; color: #2563eb; border: 2px solid #e2e8f0; }
.btn-secondary:hover { background: #f8fafc; color: #1d4ed8; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #2563eb; border: 2px solid #2563eb; }
.btn-outline:hover { background: #2563eb; color: white; }

/* Sections */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 2.5rem; font-weight: 700; color: #1e293b; margin-bottom: 15px; }
.section-subtitle { font-size: 1.125rem; color: #64748b; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* Offer Section */
.offer { background: white; }
.apartments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.apartment-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); transition: all 0.3s ease; border: 1px solid #e2e8f0; }
.apartment-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
.apartment-header { position: relative; }
.apartment-badge { position: absolute; top: 15px; left: 15px; background: #10b981; color: white; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; z-index: 2; }
.apartment-badge.premium { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.apartment-image { height: 250px; overflow: hidden; }
.apartment-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #f8fafc; padding: 20px; }
.apartment-content { padding: 30px; }
.apartment-title { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-bottom: 15px; }
.apartment-size { display: flex; align-items: baseline; gap: 8px; margin-bottom: 25px; }
.size-number { font-size: 2rem; font-weight: 800; color: #2563eb; }
.size-extra { color: #64748b; font-weight: 500; }
.apartment-features { margin-bottom: 25px; }
.feature-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #475569; }
.feature-item i { color: #2563eb; width: 16px; font-size: 14px; }
.apartment-benefits { background: #f8fafc; padding: 20px; border-radius: 15px; margin-bottom: 25px; }
.apartment-benefits h4 { color: #1e293b; margin-bottom: 8px; font-weight: 600; }
.apartment-benefits p { color: #64748b; font-size: 14px; }

/* Unique Features Section */
.unique-features { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: white; padding: 40px 30px; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); transition: all 0.3s ease; border: 1px solid #e2e8f0; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
.feature-card.featured { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; }
.feature-card.featured .feature-icon i, .feature-card.featured h3, .feature-card.featured p { color: white; }
.feature-icon { width: 80px; height: 80px; background: rgba(37, 99, 235, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.feature-card.featured .feature-icon { background: rgba(255, 255, 255, 0.2); }
.feature-icon i { font-size: 32px; color: #2563eb; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 15px; color: #1e293b; }
.feature-card p { color: #64748b; line-height: 1.6; }

/* Technical Section */
.technical { background: white; }
.technical-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.technical-item { background: #f8fafc; padding: 30px; border-radius: 15px; text-align: center; border: 1px solid #e2e8f0; transition: all 0.3s ease; }
.technical-item:hover { background: white; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.technical-icon { width: 60px; height: 60px; background: rgba(37, 99, 235, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.technical-icon i { font-size: 24px; color: #2563eb; }
.technical-item h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; color: #1e293b; }

/* Location Section */
.location { background: white; }
.location-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.location-info h3 { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-bottom: 30px; }
.location-features { margin-bottom: 40px; }
.location-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; }
.location-item:last-child { border-bottom: none; }
.location-item i { color: #2563eb; font-size: 18px; width: 20px; }
.location-item span { color: #475569; font-weight: 500; }

/* Gallery Section */
.gallery { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; height: 600px; }
.gallery-item { position: relative; border-radius: 15px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.gallery-item:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
.gallery-item.main { grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); color: white; padding: 40px 20px 20px; transform: translateY(100%); transition: transform 0.4s ease-in-out; }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-overlay h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; }
.gallery-overlay p { font-size: 0.9rem; opacity: 0.9; }

/* Contact Section */
.contact { background: white; }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-bottom: 30px; }
.contact-details { margin-bottom: 40px; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; padding: 20px; background: #f8fafc; border-radius: 15px; transition: all 0.3s ease; border: 1px solid #e2e8f0; }
.contact-item:hover { background: white; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); transform: translateY(-2px); }
.contact-icon { width: 50px; height: 50px; background: rgba(37, 99, 235, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon i { color: #2563eb; font-size: 18px; }
.contact-text strong { display: block; color: #1e293b; font-weight: 600; margin-bottom: 5px; }
.contact-text a, .contact-text span { color: #64748b; text-decoration: none; }
.contact-text a:hover { color: #2563eb; }
.contact-cta { display: flex; gap: 15px; flex-wrap: wrap; }
.contact-visual { display: flex; align-items: center; justify-content: center; }
.contact-card { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; padding: 40px; border-radius: 20px; text-align: center; box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3); }
.contact-card-header { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 25px; }
.contact-card-header i { font-size: 48px; opacity: 0.9; }
.contact-card-header h4 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.contact-card p { opacity: 0.9; line-height: 1.6; }

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
.modal.show { opacity: 1; }
.modal-content { background-color: white; margin: 5% auto; padding: 0; border-radius: 20px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); transform: translateY(-50px); transition: transform 0.3s ease; }
.modal.show .modal-content { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 30px 30px 20px; border-bottom: 1px solid #e2e8f0; }
.modal-header h3 { color: #1e293b; font-size: 1.5rem; font-weight: 700; margin: 0; }
.close { color: #64748b; font-size: 28px; font-weight: bold; cursor: pointer; transition: color 0.3s ease; line-height: 1; background: none; border: none; padding: 0; }
.close:hover { color: #ef4444; }
.modal-body { padding: 30px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 600; color: #374151; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 16px; transition: all 0.3s ease; font-family: 'Inter', sans-serif; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.5; color: #374151; }
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark { width: 20px; height: 20px; border: 2px solid #d1d5db; border-radius: 4px; position: relative; transition: all 0.3s ease; flex-shrink: 0; margin-top: 2px; }
.checkbox-label input[type="checkbox"]:checked + .checkmark { background-color: #2563eb; border-color: #2563eb; }
.checkbox-label input[type="checkbox"]:checked + .checkmark::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 12px; font-weight: bold; }
.form-actions { display: flex; gap: 15px; justify-content: flex-end; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; }

/* Lightbox Styles */
#lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10001; opacity: 0; transition: opacity 0.3s ease-in-out; }
#lightbox.active { display: flex; opacity: 1; }
.lightbox-overlay { position: absolute; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); }
.lightbox-content { position: relative; width: 90%; height: 90%; top: 0; left: 0; transform: none; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.lightbox-image-container { max-width: 100%; max-height: 80%; position: relative; }
.lightbox-image { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(0, 0, 0, 0.5); color: white; border: none; border-radius: 50%; cursor: pointer; transition: background 0.3s; z-index: 10; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(37, 99, 235, 1); }
.lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 20px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 24px; }
.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }
.lightbox-info { color: white; text-align: center; margin-top: 20px; text-shadow: 0 1px 3px black; }
.lightbox-title { font-size: 1.2rem; font-weight: 600; }
.lightbox-counter { font-size: 0.9rem; opacity: 0.8; }

/* Footer */
.footer { background-color: #1e293b; color: #cbd5e1; padding: 60px 0 30px 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #334155; }
.footer h4 { font-size: 1.1rem; font-weight: 600; color: white; margin-bottom: 20px; }
.footer-logo img { height: 70px; margin-bottom: 15px; }
.footer-logo p { font-size: 0.9rem; max-width: 280px; line-height: 1.6; }
.footer-nav a, .footer-contact a { color: #cbd5e1; text-decoration: none; transition: color 0.3s; }
.footer-nav a:hover, .footer-contact a:hover { color: #2563eb; }
.footer-nav a { display: block; margin-bottom: 10px; transition: color 0.3s, padding-left 0.3s; }
.footer-nav a:hover { padding-left: 5px; }
.footer-contact p { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-bottom { text-align: center; font-size: 0.85rem; color: #94a3b8; }

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .header .container { position: relative; }
    .nav { position: fixed; top: 91px; left: 0; width: 100%; height: calc(100vh - 91px); background: white; flex-direction: column; align-items: center; justify-content: center; gap: 40px; transform: translateX(-100%); transition: transform 0.3s ease-in-out; }
    .nav.active { transform: translateX(0); }
    .nav-link { font-size: 1.5rem; }
    .mobile-menu-toggle { display: flex; flex-direction: column; cursor: pointer; gap: 5px; padding: 10px; }
    .mobile-menu-toggle span { width: 25px; height: 3px; background: #333; transition: all 0.3s ease; border-radius: 2px; }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .contact-header { display: none; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 80px; }
    .hero .container, .location-content, .contact-content, .apartments-grid, .footer-content { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding: 80px 0; }
    .hero-image { order: -1; height: 400px; }
    .hero-title { font-size: 2.5rem; }
    .features-grid, .technical-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
    .gallery-item { height: 250px; }
    .gallery-item.main { grid-row: auto; height: 300px; }
    .form-row { grid-template-columns: 1fr; }
    .modal-content { width: 95%; margin: 10% auto; }
    .form-actions { flex-direction: column-reverse; gap: 10px; }
    .form-actions .btn { width: 100%; }
}