:root {
    --bg-beige: #F5F5F0;
    --navy: #13233c;
    --navy-light: #002d5c;
    --text-dark: #1A1A1A;
    --text-light: #F5F5F0;
    --text-gray: #4b5563;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-beige);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0; }
section { position: relative; overflow: hidden; }
.section-padding { padding: 100px 20px; }

.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 30px 0; transition: all 0.4s var(--transition);
}

.navbar.scrolled {
    padding: 5px 0; background: rgba(245, 245, 240, 0.9);
    backdrop-filter: blur(10px);
}

.navbar.scrolled .nav-links a { color: var(--text-dark); }
.navbar.scrolled .logo { height: 70px; width: auto; }
.navbar.scrolled .nav-links { margin: 0; }

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
}

.logo {
    font-size: 1.5rem; font-weight: 700; letter-spacing: 4px;
    text-decoration: none; color: inherit; height: 150px; width: auto; 
}

.nav-links { display: flex; align-items: center; margin-top: -50px; }
.nav-links a {
    text-decoration: none; margin-left: 40px;
    font-weight: 400; letter-spacing: 0.05em; color: var(--text-light);
    transition: opacity 0.3s; font-family: "Marcellus", serif; font-size: 1rem; 
}
.nav-links a:hover { opacity: 0.6; }

.menu-btn { display: none; background: none; border: none; cursor: pointer; z-index: 1001; }
.menu-btn .line { display: block; width: 25px; height: 2px; background: currentColor; margin: 6px 0; transition: 0.4s; }

.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('hero.jpg'); background-size: cover; background-position: center; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.hero-content { position: relative; z-index: 1; }

.hero-headline { overflow: hidden; font-size: clamp(3rem, 8vw, 6rem); line-height: 1.1; font-weight: 700; }
.hero-headline span { display: block; transform: translateY(110%); transition: transform 1.2s var(--transition); }
.hero-content.active .hero-headline span { transform: translateY(0); }

.logo-title { font-family: 'Cormorant Garamond', serif; font-weight: 450; font-size: 5rem; letter-spacing: 0.2em; }
.hero-subtitle { font-family: "Prata", serif; font-weight: 600; font-style: italic; font-size: clamp(3rem, 5vw, 6rem); line-height: 1; letter-spacing: 0.1em; overflow: hidden; }

.fade-in { font-family: 'Cormorant Garamond', serif; letter-spacing: 0.15em; opacity: 0; transform: translateY(20px); transition: all 1s var(--transition) 0.5s; font-size: 1.2rem; margin-top: 20px; }
.hero-content.active .fade-in { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(40px); transition: all 1s var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }

.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100%;
    background: var(--navy); z-index: 999; display: flex;
    align-items: center; justify-content: center; transition: 0.6s var(--transition);
}
.mobile-menu.active { right: 0; }
.mobile-links a { font-family: 'Cormorant Garamond', serif; text-transform: uppercase; display: block; color: white; font-size: 2.5rem; text-decoration: none; margin: 20px 0; text-align: center; font-weight: 100; }

.subtitle { font-family: 'Cormorant Garamond', serif; display: block; font-size: 1rem; letter-spacing: 3px; color: var(--navy); margin-bottom: 15px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; margin-bottom: 60px; font-weight: 700; }

.about { box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3); }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.about-card { cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; }
.about-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 700; margin: 0; } 
.about-card h3, .about-card p { margin: 16px 24px 16px; letter-spacing: 0.05em; color: var(--navy); }

.card-img {width: 100%; height: 450px; object-fit: cover; display: block; transition: transform 0.6s var(--transition); border-radius: 2px; }
.about-card:hover .card-img { transform: scale(0.98); }

.statistics-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.statistics-section { background: var(--navy); color: var(--text-light); box-shadow: 0 6px 12px rgba(0,0,0,0.25), 0 -6px 12px rgba(0,0,0,0.25); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; padding: 40px; }
.stat-number { font-family: "Marcellus", serif; font-weight: 550; letter-spacing: 0.1em; font-size: 48px; color: white; margin-bottom: 8px; }
.stat-label { font-family: "Marcellus", serif; font-size: 14px; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.1em; }

.story-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.story-section { padding: 100px 0 40px 0; }
.story-grid { display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr); }
.story-grid p { color: var(--text-gray); margin-bottom: 24px; }
.story-image { box-shadow: 0 10px 30px rgba(0,0,0,0.25); border-radius: 16px; width: 100%; height: auto;}
.story-label { letter-spacing: 0.1em; color: var(--text-gray); margin-bottom: 16px; }
.story-grid h2 { font-family: 'Cormorant Garamond', serif; margin-bottom: 24px; font-size: 46px; }
.story-grid h2 span { font-style: italic; }
.story-features { margin-bottom: 32px; border-radius: 12px; }
.story-features.story-grid {display: grid;grid-template-columns: 1fr 1fr;gap: 20px;margin-top: 30px;
}
.story-feature-item { margin-bottom: 16px; padding: 16px; border-radius: 12px; }
.story-grid h3 { font-family: 'Cormorant Garamond', serif; margin-bottom: 8px; }

.ticker-wrap { width: 100%; overflow: hidden; padding: 25px 0; }
.ticker { display: flex; white-space: nowrap; animation: ticker 20s linear infinite; }
.ticker span { font-family: "Marcellus", serif; font-style: italic; font-size: 5rem; font-weight: 900000; color: transparent; -webkit-text-stroke: 1px var(--navy); padding-right: 50px; }

@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.site-footer {
    background-color: var(--navy); color: #fff; padding: 80px 0 0 0; margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.05); box-shadow: 0 6px 12px rgba(0,0,0,0.25), 0 -6px 12px rgba(0,0,0,0.25);
    font-family: 'Cormorant Garamond', serif; display: block; letter-spacing: 3px;
}
.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 40px 80px; display: grid; grid-template-columns: 1fr 1.2fr 1.8fr; gap: 70px; }
.footer-logo { width: 150px; filter: brightness(0) invert(1); margin-bottom: 35px; }
.brand-info { color: rgba(255,255,255,0.5); font-size: 1rem; line-height: 1.8; margin-bottom: 30px; letter-spacing: 1px; }
.footer-fb-links a { display: block; color: #fff; text-decoration: none; font-size: 1rem; margin-bottom: 12px; opacity: 0.5; transition: 0.3s; letter-spacing: 1px; }
.footer-fb-links a:hover { opacity: 1; }

.footer-title { text-transform: uppercase; letter-spacing: 5px; font-size: 1rem; color: rgba(255,255,255,0.5); margin-bottom: 30px; font-weight: 700; }
.contact-mail { display: block; margin-bottom: 6px; color: white; font-size: 1.1rem; text-decoration: none;}
.contact-phone { font-size: 1.1rem; font-weight: 700; color: white; text-decoration: none;}

.salony-wybor {display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; }

.location-card {appearance: none; -webkit-appearance: none; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); color: #fff; text-align: left; font-family: inherit; width: 100%; padding: 20px; margin-bottom: 5px; cursor: pointer; transition: all 0.4s var(--transition); position: relative; overflow: hidden; }

.location-card p { font-style: italic; font-weight: 700; margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.location-card strong { display: block; font-size: 1rem; margin-bottom: 3px; letter-spacing: 0.5px; }

.location-card::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: #fff; transform: scaleY(0); transition: 0.3s; }
.location-card:hover { background: rgba(255,255,255,0.05); }
.location-card.active { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); opacity: 1; }
.location-card.active::before { transform: scaleY(1); }

.map-wrapper {
    --location-text: "OSTRÓW MAZOWIECKA"; 
    position: relative; padding: 12px; border: 1px solid rgba(255,255,255,0.15); height: 480px; box-shadow: 0 40px 80px rgba(0,0,0,0.3); }
.map-wrapper::before {
    content: var(--location-text); position: absolute; top: -10px; left: 20px; background: var(--navy); padding: 0 12px; font-size: 0.65rem; font-weight: 600; letter-spacing: 2px; color: #fff; z-index: 5; transition: all 0.3s; }
.location-map-iframe { width: 100%; height: 100%; border: 0; display: none; }
.location-map-iframe.active { display: block; animation: mapFade 0.5s ease-out forwards; }
@keyframes mapFade { from { opacity: 0; } to { opacity: 1; } }

.footer-bottom-bar { margin-top: 40px; padding: 30px; text-align: center; background: rgba(0,0,0,0.2); font-size: 0.75rem; color: rgba(255,255,255,0.2); border-top: 1px solid rgba(255,255,255,0.03); }

@media (max-width: 992px) {
    .story-grid { grid-template-columns: 1fr; }
    .story-grid h2 { font-size: 38px; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 50px; }
    .footer-column:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
    .footer-logo, .brand-info { margin-bottom: 0; justify-self: center; }
    .footer-fb-links { grid-column: 1 / -1; display: flex; justify-content: center; gap: 40px; margin-top: 20px; }
    .map-wrapper { height: 400px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .navbar { color: white; }
    .navbar.scrolled { color: var(--navy); }
    .about-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 80px 15px; }
    .story-grid { grid-template-columns: 1fr; gap: 30px; }
    .story-image { max-height: 400px; object-fit: cover; }
    .story-grid h2 { font-size: 32px; line-height: 1.2; }
    .footer-container { grid-template-columns: 1fr; gap: 50px; }
    .footer-column:first-child { display: flex; flex-direction: column; text-align: center; gap: 20px; }
    .footer-fb-links { flex-direction: row; justify-content: center; gap: 30px; margin-top: 10px; }
    .footer-column:nth-child(2) { text-align: center; }
    .salony-wybor { max-width: 400px; margin: 0 auto 25px auto; }
    .map-wrapper { height: 350px; max-width: 500px; margin: 0 auto; }
    .story-features.story-grid {grid-template-columns: 1fr; }
    .card-img{ height: 300px; }
    .story-section { padding: 0px }
}

@media (max-width: 350px) {
    .container { padding: 0 20px; }
    .logo { font-size: 1.2rem; }
    .footer-fb-links { flex-direction: column; gap: 15px; }
}