@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --bg-main: #111111; 
    --surface: rgba(26, 26, 26, 0.9); 
    --accent: #c5a880; 
    --accent-glow: rgba(197, 168, 128, 0.4);
    --text-main: #f5f5f5; 
    --text-muted: #aaaaaa; 
    --border-color: #2a2a2a; 
    --header-bg: rgba(17, 17, 17, 0.85);
    --footer-bg: #0a0a0a; 
    --shadow-color: rgba(0, 0, 0, 0.5); 
    --particle-color: rgba(197, 168, 128, 0.3);
}

body.light-mode {
    --bg-main: #f8f9fa; 
    --surface: rgba(255, 255, 255, 0.9); 
    --text-main: #1a1a1a; 
    --text-muted: #666666;
    --border-color: #e5e5e5; 
    --header-bg: rgba(255, 255, 255, 0.9); 
    --footer-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.05); 
    --particle-color: rgba(197, 168, 128, 0.15);
}

body, header, .card, .feature-box, .step-card, .text-container, footer, nav ul, .slider-btn, .spec-item, .experience-badge, .expert-card, .timeline-content {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; position: relative; }

/* --- EKRAN ŁADOWANIA (PRELOADER) --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-main); z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
#preloader.hidden { opacity: 0; visibility: hidden; }
#preloader img { max-width: 250px; animation: pulse 1.5s infinite alternate; filter: drop-shadow(0 0 10px var(--accent-glow)); }
@keyframes pulse { 0% { transform: scale(0.95); opacity: 0.8; } 100% { transform: scale(1.05); opacity: 1; } }

/* --- ANIMACJE POJAWIANIA SIĘ (SCROLL REVEAL) --- */
.fade-in-section { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, visibility; }
.fade-in-section.is-visible { opacity: 1; transform: none; }

/* --- PŁYWAJĄCE PRZYCISKI KONTAKTU --- */
.floating-contact { position: fixed; bottom: 30px; left: 30px; z-index: 998; display: flex; flex-direction: column; gap: 15px; }
.float-btn { width: 55px; height: 55px; border-radius: 50%; background: var(--surface); border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px var(--shadow-color); transition: all 0.3s ease; text-decoration: none; cursor: pointer; }
.float-btn img { width: 24px; height: 24px; filter: brightness(0) invert(1); transition: 0.3s; }
body.light-mode .float-btn img { filter: brightness(0); }
.float-btn:hover { background: var(--accent); transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 25px var(--accent-glow); }
.float-btn:hover img { filter: brightness(0) invert(1); } 
body.light-mode .float-btn:hover img { filter: brightness(0) invert(1); }

/* --- ANIMOWANE TŁO --- */
.animated-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; pointer-events: none; }
.particle { position: absolute; background-color: var(--particle-color); border-radius: 50%; pointer-events: none; opacity: 0; animation: float-particle linear infinite; filter: blur(1px); }
@keyframes float-particle { 0% { transform: translateY(100vh) translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-10vh) translateX(30px); opacity: 0; } }

/* --- NAWIGACJA & PRZYCISKI MOTYWU --- */
header { background: var(--header-bg); backdrop-filter: blur(10px); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-color); box-shadow: 0 4px 20px var(--shadow-color); }
.header-logo img { height: 45px; display: block; transition: transform 0.3s; filter: drop-shadow(0 0 5px var(--accent-glow)); }
.header-logo img:hover { transform: scale(1.05); }
.header-controls { display: flex; align-items: center; gap: 20px; }
.theme-toggle-btn, #backToTopBtn, .slider-btn, .lightbox-btn { display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border-color); cursor: pointer; transition: all 0.3s ease; }
.theme-toggle-btn img, #backToTopBtn img, .slider-btn img, .lightbox-btn img { width: 20px; height: 20px; object-fit: contain; pointer-events: none; transition: filter 0.3s ease; }
#backToTopBtn:hover img, .slider-btn:hover img, .lightbox-btn:hover img { filter: brightness(0) invert(1); }
.theme-toggle-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--text-main); }
.theme-toggle-btn img { filter: brightness(0) invert(1); }
body.light-mode .theme-toggle-btn img { filter: brightness(0); }
.theme-toggle-btn:hover { background-color: var(--text-main); box-shadow: 0 0 15px var(--accent-glow); transform: scale(1.1); }
.theme-toggle-btn:hover img { filter: brightness(0); }
body.light-mode .theme-toggle-btn:hover img { filter: brightness(0) invert(1); }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 25px; height: 3px; background-color: var(--text-main); border-radius: 3px; transition: 0.3s; }
nav ul { list-style: none; display: flex; gap: 30px; align-items: center; }
nav a { color: var(--text-main); text-decoration: none; text-transform: uppercase; font-size: 14px; font-weight: 500; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; padding: 5px 0; position: relative; }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--accent); transition: width 0.3s ease; box-shadow: 0 0 10px var(--accent); }
nav a:hover::after, nav a.active-link::after { width: 100%; }
nav a:hover, nav a.active-link { color: var(--accent); text-shadow: 0 0 8px var(--accent-glow); }

/* --- OGÓLNE --- */
.page-content { flex-grow: 1; padding-bottom: 80px; position: relative; z-index: 1; }
.section-title { text-align: center; padding: 80px 0 40px; font-size: 36px; font-weight: 300; text-transform: uppercase; letter-spacing: 2px; color: var(--text-main); }
.section-title span { color: var(--accent); font-weight: 500; text-shadow: 0 0 15px var(--accent-glow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 30px; background-color: transparent; color: var(--accent); text-decoration: none; border: 1px solid var(--accent); border-radius: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: all 0.4s ease; text-align: center; }
.btn:hover { background-color: var(--accent); color: #fff; box-shadow: 0 0 20px var(--accent-glow); transform: translateY(-3px); }
body:not(.light-mode) .btn:hover { color: var(--bg-main); }

/* --- HERO --- */
.hero { background: linear-gradient(to right, rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.3)), url('dom_adamowizna 1.jpg') center/cover; height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; border-bottom: 1px solid var(--border-color); }
.hero h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 20px; font-weight: 300; color: #ffffff; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); }
.hero h1 span { color: #ffffff; font-weight: 300; } 
.hero p { font-size: clamp(16px, 2vw, 20px); margin-bottom: 40px; color: #dddddd; max-width: 800px; margin-left: auto; margin-right: auto; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); line-height: 1.8; }
body.light-mode .hero .btn:hover { color: #111111; }

/* --- O FIRMIE & KARTY --- */
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1200px; margin: 100px auto 80px; padding: 0 5%; }
.about-image { position: relative; border-radius: 8px; z-index: 2; }
.about-image::before { content: ''; position: absolute; top: -15px; left: -15px; width: 100%; height: 100%; border: 1px solid var(--accent); border-radius: 8px; z-index: -1; transition: all 0.4s ease; }
.about-image:hover::before { top: -8px; left: -8px; box-shadow: 0 0 15px var(--accent-glow) inset; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.8); display: block; }
.experience-badge { position: absolute; bottom: -20px; right: -20px; background: #151515; border: 1px solid #333; padding: 15px 25px; border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.9); display: flex; align-items: center; gap: 15px; z-index: 3; }
body.light-mode .experience-badge { background: #ffffff; border-color: #e5e5e5; }
.experience-badge .number { font-size: 32px; font-weight: 600; color: var(--accent); line-height: 1; }
.experience-badge .text { font-size: 11px; color: #ffffff; line-height: 1.4; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
body.light-mode .experience-badge .text { color: var(--text-main); }
.about-content .section-subtitle { color: var(--accent); text-transform: uppercase; letter-spacing: 4px; font-size: 11px; font-weight: 500; margin-bottom: 15px; display: block; }
.about-content h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 25px; color: var(--text-main); font-weight: 300; line-height: 1.2; }
.about-content h2 span { color: var(--accent); font-weight: 400; display: block; }
.about-content .lead-text { font-size: 16px; color: var(--text-main); margin-bottom: 20px; font-weight: 400; line-height: 1.8; }
.about-content p { margin-bottom: 15px; color: var(--text-muted); line-height: 1.8; font-size: 14px; }
.about-features { list-style: none; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.about-features li { display: flex; align-items: center; gap: 10px; color: var(--text-main); font-weight: 500; font-size: 13px; }
.check-icon { background-color: var(--accent); color: #111; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 10px; font-weight: bold; }
body.light-mode .check-icon { color: #ffffff; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 0 5%; max-width: 1200px; margin: 0 auto; }
.feature-box { background: var(--surface); padding: 40px 30px; border-radius: 8px; text-align: center; border: 1px solid var(--border-color); box-shadow: 0 4px 15px var(--shadow-color); }
.feature-box:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 15px 35px var(--shadow-color), 0 0 20px var(--accent-glow); }
.feature-icon-img { width: 50px; height: 50px; object-fit: contain; margin-bottom: 20px; filter: drop-shadow(0 0 5px var(--accent-glow)); }
.feature-box h3 { margin-bottom: 15px; font-size: 18px; color: var(--text-main); font-weight: 500; }
.feature-box p { color: var(--text-muted); font-size: 13px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; padding: 0 5%; max-width: 1200px; margin: 0 auto; }
.card { background: var(--surface); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 4px 15px var(--shadow-color); cursor: pointer; }
.card:hover { transform: translateY(-15px) scale(1.02); border-color: var(--accent); box-shadow: 0 20px 40px var(--shadow-color), 0 0 25px var(--accent-glow); }
.card img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s ease; }
.card:hover img { transform: scale(1.1); }
.card-content { padding: 30px; position: relative; background: var(--surface); z-index: 2; }
.card-content h3 { color: var(--text-main); margin-bottom: 10px; font-size: 22px; font-weight: 500; }

/* GALERIA & SPECYFIKACJA (SZEROKIE - DO 1600px) */
.details-header { max-width: 1600px; margin: 40px auto 20px; padding: 0 5%; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 0 5%; max-width: 1400px; margin: 0 auto; }
.gallery-grid img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; cursor: zoom-in; border: 1px solid transparent; }
.gallery-grid img:hover { transform: scale(1.05); border-color: var(--accent); box-shadow: 0 10px 25px var(--accent-glow); z-index: 10; position: relative; }
.house-info-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; max-width: 1600px; margin: 0 auto 60px; padding: 0 5%; }
.house-desc h3, .house-specs h3 { color: var(--accent); font-size: 26px; font-weight: 300; margin-bottom: 20px; text-transform: uppercase; }
.spec-item { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--border-color); }

/* WIZYTÓWKA & INNE */
.expert-card { display: flex; flex-direction: row; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; margin-bottom: 40px; margin-top: 30px; box-shadow: 0 5px 20px var(--shadow-color); }
.expert-logo { width: 35%; background: #e7eef1; display: flex; align-items: center; justify-content: center; padding: 30px; box-sizing: border-box; }
.expert-logo img { width: 100%; max-width: 220px; height: auto; display: block; object-fit: contain; }
.expert-info { width: 65%; padding: 30px 40px; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
.expert-info h4 { font-size: 26px; color: var(--text-main); margin-bottom: 5px; }
.expert-role { color: var(--accent); font-weight: 500; font-size: 16px; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.expert-company { color: var(--text-muted); font-size: 14px; margin-bottom: 25px; }
.expert-contact p { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; color: var(--text-main); font-size: 15px; }

/* -- POPRAWIONE MARGINESY I SZEROKOŚĆ DLA STRON FINANSE / KONTAKT -- */
.text-container { width: 90%; max-width: 900px; margin: 0 auto; padding: 40px; background: var(--surface); border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px var(--shadow-color); position: relative; overflow: hidden; }
.text-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.site-footer { background-color: var(--footer-bg); border-top: 1px solid var(--border-color); padding: 60px 5% 20px; margin-top: 40px; position: relative; z-index: 1; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 50px; margin-bottom: 20px; filter: drop-shadow(0 0 5px var(--accent-glow)); }
.footer-col h3 { color: var(--text-main); margin-bottom: 20px; font-size: 18px; font-weight: 500; position: relative; display: inline-block; text-transform: uppercase; letter-spacing: 1px; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 40px; height: 1px; background-color: var(--accent); box-shadow: 0 0 5px var(--accent); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 13px; }
.footer-link { color: var(--accent); text-decoration: none; cursor: pointer; transition: color 0.3s ease; }
.footer-link:hover { color: #fff; text-shadow: 0 0 5px var(--accent-glow); }

#backToTopBtn { display: none; position: fixed; bottom: 40px; right: 40px; z-index: 999; width: 50px; height: 50px; background-color: var(--surface); border-radius: 50%; box-shadow: 0 4px 15px var(--shadow-color); border: 1px solid var(--accent); }
#backToTopBtn:hover { background-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); transform: translateY(-5px); }

/* --- LIGHTBOX WIDEO & ZDJĘCIA --- */
.slider-container { position: relative; max-width: 1600px; width: 90%; margin: 0 auto 40px; overflow: hidden; border-radius: 8px; box-shadow: 0 10px 30px var(--shadow-color); }
.slider-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slider-wrapper::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 100%; scroll-snap-align: start; }
.slide img { width: 100%; height: 600px; object-fit: cover; display: block; cursor: zoom-in; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--surface); border: 1px solid var(--accent); width: 50px; height: 50px; border-radius: 50%; z-index: 10; }
.slider-btn.prev { left: 20px; } .slider-btn.next { right: 20px; }

.lightbox { display: flex; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); align-items: center; justify-content: center; flex-direction: column; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: var(--text-main); font-size: 40px; cursor: pointer; z-index: 10001; }
.lightbox-img-container { position: relative; display: flex; align-items: center; justify-content: center; width: 90%; height: 80%; }
#lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border: 2px solid var(--border-color); border-radius: 4px; display: none; }
#lightbox-video { width: 100%; max-width: 1000px; height: 60vh; border: 2px solid var(--border-color); border-radius: 4px; display: none; box-shadow: 0 0 30px rgba(0,0,0,0.8); }
.lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(26, 26, 26, 0.8); border: 1px solid var(--accent); width: 50px; height: 50px; border-radius: 50%; z-index: 10001; }
.lightbox-btn.prev { left: 5%; } .lightbox-btn.next { right: 5%; }

/* --- LUKSUSOWY KURSOR --- */
@media (min-width: 769px) {
    body, a, button, img, .card, iframe, .faq-question { cursor: none !important; }
}
.custom-cursor-dot { width: 6px; height: 6px; background-color: var(--accent); position: fixed; border-radius: 50%; z-index: 100000; pointer-events: none; transform: translate(-50%, -50%); }
.custom-cursor-outline { width: 40px; height: 40px; border: 1px solid var(--accent-glow); background-color: rgba(197, 168, 128, 0.05); position: fixed; border-radius: 50%; z-index: 99999; pointer-events: none; transform: translate(-50%, -50%); transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease; }
.custom-cursor-outline.hover { width: 70px; height: 70px; background-color: rgba(197, 168, 128, 0.15); border-color: var(--accent); }

/* --- ANIMOWANE LICZNIKI (OKOLICA) --- */
.counters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; max-width: 800px; margin: 40px auto 0 auto; padding: 40px 5% 0 5%; border-top: 1px solid var(--border-color); }
.counter-box { background: var(--surface); padding: 20px 15px; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px var(--shadow-color); transition: all 0.3s ease; }
.counter-box:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 25px var(--accent-glow); }
.counter-number { font-size: 36px; font-weight: 600; color: var(--accent); margin-bottom: 5px; line-height: 1; text-shadow: 0 0 15px var(--accent-glow); }
.counter-text { font-size: 12px; color: var(--text-main); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* --- ROZWIJANE FAQ (AKORDEON) --- */
.faq-container { max-width: 900px; margin: 0 auto; padding: 0 5%; }
.faq-item { border-bottom: 1px solid var(--border-color); transition: all 0.3s ease; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 25px 0; font-size: 18px; color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Poppins', sans-serif; font-weight: 500; }
.faq-question:hover { color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--text-muted); font-size: 15px; }
.faq-answer p { padding-bottom: 25px; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-question { color: var(--accent); }
.faq-icon { transition: transform 0.3s ease; font-size: 24px; font-weight: 300; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* --- FILTRY GALERII --- */
.gallery-filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; padding: 0 5%; }
.filter-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 10px 25px; border-radius: 30px; cursor: pointer; transition: all 0.3s ease; font-family: 'Poppins', sans-serif; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; font-weight: 500; }
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 15px var(--accent-glow); }
body:not(.light-mode) .filter-btn:hover, body:not(.light-mode) .filter-btn.active { color: var(--bg-main); }
/* Ważne dla płynnego ukrywania filtrów */
.gallery-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.gallery-item.hide { display: none !important; opacity: 0 !important; pointer-events: none !important; }

/* --- COOKIES BANNER --- */
.cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background: var(--surface); border-top: 1px solid var(--accent); padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 10000; box-shadow: 0 -10px 30px var(--shadow-color); transition: bottom 0.5s ease; flex-wrap: wrap; gap: 20px; }
.cookie-banner.show { bottom: 0; }
.cookie-text { font-size: 14px; color: var(--text-main); flex: 1; min-width: 250px; }
.cookie-text a { color: var(--accent); text-decoration: none; }
.cookie-btn { padding: 10px 20px; background: var(--accent); color: #fff; border: none; border-radius: 4px; font-weight: 500; font-family: 'Poppins', sans-serif; text-transform: uppercase; font-size: 13px; white-space: nowrap; cursor: pointer; }
body:not(.light-mode) .cookie-btn { color: var(--bg-main); }
.cookie-btn:hover { box-shadow: 0 0 15px var(--accent-glow); }

/* --- OGRANICZENIE SZEROKOŚCI DLA WIELKICH MONITORÓW (ULTRAWIDE) --- */
html { background-color: #0a0a0a; transition: background-color 0.4s ease; }
html:has(body.light-mode) { background-color: #e5e5e5; }
body { max-width: 1920px; margin: 0 auto; box-shadow: 0 0 50px rgba(0,0,0,0.8); }
body.light-mode { box-shadow: 0 0 50px rgba(0,0,0,0.1); }

@media (min-width: 1921px) {
    .floating-contact { left: calc(50vw - 960px + 30px); }
    #backToTopBtn { right: calc(50vw - 960px + 40px); }
    .cookie-banner { max-width: 1920px; left: 50%; transform: translateX(-50%); }
}

/* RESPONSYWNOŚĆ POPRAWKI NA TELEFONY */
@media (max-width: 900px) {
    .about-section, .house-info-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    nav ul { position: absolute; top: 100%; left: 0; width: 100%; background: var(--header-bg); flex-direction: column; max-height: 0; overflow: hidden; padding: 0; }
    nav ul.open { max-height: 500px; }
    nav ul li { width: 100%; text-align: center; }
    nav a { display: block; padding: 20px 0; border-bottom: 1px solid var(--border-color); }
    nav a::after { display: none; }
    .theme-toggle-wrapper { padding: 20px 0; width: 100%; justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .slide img { height: 300px; }
    .floating-contact { bottom: 20px; left: 20px; }
    .hide-on-mobile { display: none !important; }
    .details-header { flex-direction: column; justify-content: center; text-align: center; }
    .center-on-mobile { justify-content: center !important; }
    .counters-grid { grid-template-columns: 1fr; gap: 20px; }
    .custom-cursor-dot, .custom-cursor-outline { display: none !important; }
    
    .text-container { padding: 30px 20px; width: 92%; }
    .expert-card { flex-direction: column; }
    .expert-logo, .expert-info { width: 100%; padding: 30px; }
}