:root {
    --primary-bg: #ffffff;
    --secondary-bg: #fdfbf7;
    --text-main: #333333;
    --text-muted: #666666;
    --accent-gold: #c5a869;
    --accent-gold-hover: #b09355;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--primary-bg);
    line-height: 1.6;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; font-weight: 600; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* 1. GLASSMORPHISM NAWIGACJA */
header {
    position: fixed; top: 0; width: 100%;
    background-color: transparent; 
    z-index: 1000; padding: 10px 0; transition: all 0.4s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06); padding: 0;
}

nav {
    max-width: 1200px; margin: 0 auto; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
}

header .logo { 
    font-size: 24px; letter-spacing: 1px; text-transform: uppercase; color: #fff; 
    transition: 0.4s; text-shadow: 0 2px 4px rgba(0,0,0,0.3); z-index: 1002; position: relative; 
}
header.scrolled .logo { color: var(--accent-gold); text-shadow: none; }
header.menu-open .logo { color: var(--accent-gold); text-shadow: none; } 

.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links li a { 
    font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; 
    color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.3); position: relative; transition: 0.4s; 
}
header.scrolled .nav-links li a { color: var(--text-main); text-shadow: none; }
header.scrolled .nav-links li a:hover, header.scrolled .nav-links li a.active { color: var(--accent-gold); }

.nav-links li a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -6px; left: 0; background-color: var(--accent-gold); transition: width 0.3s ease;
}
.nav-links li a:hover::after, .nav-links li a.active::after { width: 100%; }

/* HAMBURGER MENU */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1002; }
.hamburger span {
    display: block; width: 30px; height: 2px; background-color: #fff;
    transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
header.scrolled .hamburger span { background-color: var(--text-main); box-shadow: none; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--text-main); box-shadow: none; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--text-main); box-shadow: none; }


/* --- BANNERY --- */
.page-header {
    position: relative; height: 50vh;
    background-image: url('https://images.pexels.com/photos/164595/pexels-photo-164595.jpeg?auto=compress&cs=tinysrgb&w=1920&q=80');
    background-position: center; background-size: cover; background-repeat: no-repeat;
    background-attachment: fixed; display: flex; justify-content: center; align-items: center; color: white; text-align: center;
}
.page-header::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45); z-index: 1;
}
.page-header > div, .page-header > h1 {
    position: relative; z-index: 2; animation: fadeDown 1.2s ease-out forwards; opacity: 0; transform: translateY(-30px);
}
@keyframes fadeDown { to { opacity: 1; transform: translateY(0); } }

/* --- RESZTA STYLÓW --- */
.container { max-width: 1200px; margin: 80px auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 32px; color: var(--accent-gold); margin-bottom: 10px; }
.section-title .divider { width: 50px; height: 2px; background: var(--accent-gold); margin: 0 auto; }

/* KARTY / GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); transition: 0.4s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 250px; object-fit: cover; }
.card-body { padding: 25px; }
.card-body h3 { margin-bottom: 15px; color: var(--accent-gold); }

/* SZACHOWNICA NA STRONIE GŁÓWNEJ */
.feature-block { display: flex; align-items: center; gap: 50px; margin-bottom: 80px; }
.feature-block:nth-child(even) { flex-direction: row-reverse; }
.feature-image { flex: 1; position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.feature-image img { width: 100%; height: 400px; object-fit: cover; transition: transform 0.6s ease; border-radius: 12px; }
.feature-content { flex: 1; padding: 20px; }
.feature-content h3 { font-size: 30px; margin-bottom: 20px; color: var(--accent-gold); }
.feature-content p { color: var(--text-muted); margin-bottom: 25px; font-size: 15px; }

/* PRZYCISKI */
.btn-outline {
    display: inline-block; border: 1px solid var(--accent-gold); color: var(--accent-gold);
    padding: 12px 30px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
    border-radius: 6px; transition: all 0.3s ease;
}
.btn-outline:hover { background-color: var(--accent-gold); color: white; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(197, 168, 105, 0.3); }

.btn {
    display: inline-block; padding: 14px 35px; background: var(--accent-gold); color: white; border: none; cursor: pointer;
    text-transform: uppercase; font-size: 13px; letter-spacing: 1px; margin-top: 10px;
    border-radius: 6px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(197, 168, 105, 0.3);
}
.btn:hover { background: var(--accent-gold-hover); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(197, 168, 105, 0.5); }

/* NOWOCZESNY FORMULARZ */
.modern-form { display: flex; flex-direction: column; gap: 25px; margin-top: 20px; }
.input-group { position: relative; }
.modern-form input, .modern-form textarea {
    width: 100%; padding: 10px 0; font-size: 15px; color: var(--text-main); font-family: 'Montserrat', sans-serif;
    border: none; border-bottom: 1px solid #ccc; outline: none; background: transparent; transition: 0.3s;
}
.modern-form textarea { height: 80px; resize: none; }
.modern-form input:focus, .modern-form textarea:focus { border-bottom-color: transparent; }
.modern-form .bar { position: relative; display: block; width: 100%; }
.modern-form .bar::before {
    content: ''; height: 2px; width: 0; bottom: 0; left: 0; position: absolute;
    background: var(--accent-gold); transition: width 0.4s ease;
}
.modern-form input:focus ~ .bar::before, .modern-form textarea:focus ~ .bar::before { width: 100%; }

/* STOPKA */
footer { background: #1a1a1a; color: #bbb; padding: 60px 20px 20px; margin-top: 80px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-family: 'Playfair Display', serif; }
.footer-bottom { text-align: center; border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; font-size: 12px; }
.map-container { height: 450px; width: 100%; margin-top: 30px; border: none; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }

/* EFEKTY SCROLLOWANIA I HOVER NA BLOKACH */
.reveal { opacity: 0; transform: translateY(60px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.feature-block:hover .feature-image img { transform: scale(1.05); }

/* RESPONSYWNOŚĆ (TELEFONY I TABLETY) */
@media (max-width: 768px) {
    .page-header { background-attachment: scroll; }
    .page-header h1 { font-size: 40px; }
    .page-header p { font-size: 15px; }

    .feature-block, .feature-block:nth-child(even) { flex-direction: column; gap: 30px; text-align: center; }
    .feature-image { width: 100%; }
    .feature-image img { height: 300px; }

    .hamburger { display: flex; }
    
    .nav-links { 
        position: fixed; top: 0; right: -100%; 
        width: 100%; height: 100vh;
        background-color: var(--primary-bg); 
        flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.4s ease; z-index: 1001; gap: 35px;
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links li a { 
        color: var(--text-main); font-size: 20px; text-shadow: none; font-weight: 600;
    }
    
    .nav-links li a::after { display: none; }
    .nav-links li a:hover, .nav-links li a.active { color: var(--accent-gold); }
}