:root {
    --bg-color: #FFFCF7;
    --white: #ffffff;
    --text-color: #2C2C2C;
    --accent-color: #D3C5B1;
    --accent-hover: #c4b49e;
    --accent-light: #f4efe9;
    --gold-btn-color: #8C7B60;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { background-color: var(--bg-color); color: var(--text-color); font-family: var(--font-sans); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; border-radius: 4px; }

/* Kontenery */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-white { background-color: var(--white); padding: 60px; border-radius: 8px; margin: 40px 0; }
.bg-accent-light { background-color: var(--accent-light); padding: 60px; border-radius: 8px; margin: 40px 0; }

/* Typografia */
h1, h2, h3, h4 { font-family: var(--font-serif); color: #1a1a1a; font-weight: 400; }
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.4rem; margin-bottom: 1rem; }

/* Przyciski */
.btn {
    display: inline-block; background-color: var(--accent-color); color: #1a1a1a;
    padding: 14px 32px; text-decoration: none; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 1px; border: none; cursor: pointer;
    transition: all 0.3s; font-weight: 600; border-radius: 4px;
}
.btn:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

/* --- NAWIGACJA (STICKY) --- */
.main-header {
    width: 100%; background-color: var(--bg-color); position: sticky; top: 0; z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; z-index: 1001; }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-color); font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: #8a7a66; }
.mobile-btn { display: none; }
.desktop-btn { display: inline-block; }
.hamburger { display: none; cursor: pointer; padding: 10px; z-index: 1001; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: #333; transition: 0.3s; }

/* --- STOPKA --- */
.main-footer {
    width: 100%; background-color: #F9F6F0; color: var(--text-color);
    padding-top: 80px; margin-top: 80px; border-top: 1px solid #D3C5B1;
}
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; padding-bottom: 60px; }
.footer-logo { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: #BFA67A; margin-bottom: 20px; }
.footer-col ul { list-style: none; } .footer-col ul li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: #555; }
.social-links { display: flex; gap: 20px; margin-top: 30px; }
.social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background-color: #F0EBE5; color: #BFA67A;
    border-radius: 50%; text-decoration: none; transition: 0.3s;
}
.social-links a:hover { background-color: #BFA67A; color: #fff; }
.footer-bottom { width: 100%; background-color: #eeeae4; text-align: center; padding: 25px 0; font-size: 0.9rem; color: #888; }

/* --- SLIDER APARTAMENTÓW (Używany na obu stronach) --- */
.container-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.apartments-slider {
    display: flex; gap: 30px; overflow-x: auto; padding-bottom: 20px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.apartments-slider::-webkit-scrollbar { height: 6px; }
.apartments-slider::-webkit-scrollbar-thumb { background: #d3c5b1; border-radius: 10px; }
.apartments-slider::-webkit-scrollbar-track { background: #eee; }

a.card {
    text-decoration: none; color: inherit; display: block;
    flex: 0 0 300px; scroll-snap-align: start;
    background: #fff; border-radius: 8px; overflow: hidden;
    border: 1px solid #eee; transition: transform 0.3s;
}
a.card:hover { transform: translateY(-5px); }
.img-wrapper { height: 220px; overflow: hidden; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
a.card:hover .img-wrapper img { transform: scale(1.05); }
.card-content { padding: 20px; }
.price { display: block; font-weight: 700; color: #1a1a1a; margin-top: 10px; }

/* --- RESPONSYWNOŚĆ GLOBALNA --- */
@media (max-width: 900px) { .footer-content { grid-template-columns: 1fr; gap: 40px; text-align: center; } .social-links { justify-content: center; } }
@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-links {
        position: fixed; left: -100%; top: 0; flex-direction: column;
        background-color: var(--bg-color); width: 100%; height: 100vh;
        text-align: center; transition: 0.3s; padding-top: 100px;
    }
    .nav-links.active { left: 0; }
    .desktop-btn { display: none; } .mobile-btn { display: inline-block; margin-top: 20px; }
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
    a.card { flex: 0 0 85%; }
}