/* ==========================================
   ZMIENNE (NOWA, LUKSUSOWA PALETA KOLORÓW)
   ========================================== */
:root {
    --primary: #cba876;       
    --primary-dark: #b5925e;  
    --taupe: #b79990;         
    --bg-light: #faf7f2;      
    --bg-body: #ffffff;       
    --text-dark: #2a2522;     
    --text-muted: #786d68;    
    --white: #ffffff;
    --border-color: #ede7e1;
}

/* ==========================================
   RESET I BAZA
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background-color: var(--bg-body); line-height: 1.6; overflow-x: hidden; width: 100%; max-width: 100vw; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--text-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100% !important; height: auto; display: block; }

/* ==========================================
   NAWIGACJA I LOGO
   ========================================== */
.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: var(--taupe) !important; box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important; transition: 0.3s; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; max-width: 1400px; margin: 0 auto; min-height: 115px; }
.logo { display: block !important; text-decoration: none; flex-shrink: 0 !important; min-width: 0 !important; }
.logo img { width: 250px !important; height: 115px !important; object-fit: contain !important; display: block !important; }
.main-nav ul { display: flex; list-style: none; gap: 30px; }
.main-nav a { text-decoration: none; color: var(--white); font-weight: 500; font-size: 1.05rem; transition: 0.3s; }
.main-nav a:hover, .main-nav a.active { color: var(--text-dark); } 
.header-actions { display: flex; align-items: center; gap: 15px; }
.btn-appointment, .btn-primary { background-color: var(--primary); color: var(--white); border: none; padding: 12px 28px; border-radius: 30px; font-weight: 600; cursor: pointer; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 15px rgba(203, 168, 118, 0.4); display: inline-block; }
.btn-appointment:hover, .btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.mobile-menu-toggle { display: none; background: none; border: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.mobile-menu-toggle span { width: 30px; height: 3px; background-color: var(--white); transition: 0.3s; }
.nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; transition: 0.3s; }
.nav-overlay.active { display: block; opacity: 1; }

/* ==========================================
   SEKCJA GŁÓWNA - KOLAŻ (INDEX.HTML)
   ========================================== */
.hero-section { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; background-color: var(--text-dark); }

/* --- NOWOŚĆ: UKRYTY KOLAŻ NA START DLA EFEKTU PŁYNNOŚCI --- */
.hero-collage { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); z-index: 1; opacity: 0; transition: opacity 0.8s ease-in-out; }
.hero-collage.loaded { opacity: 1; }
/* ---------------------------------------------------------- */

.collage-img { background-size: cover; background-position: center center; width: 100%; height: 100%; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30, 25, 23, 0.55); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 800px; padding: 20px; }
.hero-content h1 { font-size: 4.5rem; margin-bottom: 20px; color: var(--white); text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }

/* ==========================================
   WSPÓLNE TYTUŁY I ANIMACJE
   ========================================== */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; color: var(--taupe); }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.animate-on-scroll.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ==========================================
   SEKCJA KONTAKT (Index.html)
   ========================================== */
.contact-section { padding: 100px 0; background-color: var(--bg-light); }
.contact-info-box { background: var(--white); padding: 50px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); text-align: center; max-width: 800px; margin: 0 auto; }
.btn-call-large { display: inline-block; background-color: var(--primary); color: var(--white); font-size: 1.2rem; font-weight: 600; padding: 18px 40px; border-radius: 50px; text-decoration: none; box-shadow: 0 10px 25px rgba(203, 168, 118, 0.4); transition: transform 0.3s; margin: 15px; }
.btn-call-large:hover { transform: scale(1.05); background-color: var(--primary-dark); }

/* ==========================================
   PODSTRONY (OFERTA, CENNIK, PRACOWNICY)
   ========================================== */
.subpage-hero { padding-top: 180px; padding-bottom: 60px; background-color: var(--bg-light); text-align: center; }
.subpage-hero h1 { font-size: 3rem; color: var(--taupe); margin-bottom: 15px; }
.subpage-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.content-section { padding: 80px 0; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.price-page-header { background-color: var(--bg-light); padding: 160px 20px 60px; text-align: center; border-bottom: 1px solid var(--border-color); }
.price-page-header h1 { font-size: 3rem; color: var(--taupe); margin-bottom: 15px; }
.price-columns-wrapper { background-color: var(--bg-light); padding: 60px 20px; }
.price-card { padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); background-color: #ffffff; border-top: 5px solid var(--taupe); }
.price-card h2 { text-align: center; font-size: 2.5rem; margin-bottom: 5px; color: var(--text-dark); }
.price-card .location-desc { text-align: center; color: var(--text-muted); margin-bottom: 40px; font-size: 1.05rem; }
.price-category { margin-bottom: 35px; }
.price-category h3 { font-family: 'Inter', sans-serif; font-size: 1.1rem; padding: 10px 15px; border-radius: 6px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; background-color: var(--taupe); color: var(--white); }
.price-item { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; border-bottom: 1px dashed #e2e8f0; padding-bottom: 5px; color: var(--text-dark); font-size: 1.05rem; }
.price-item span:last-child { font-weight: 600; white-space: nowrap; color: var(--taupe); }
.price-item.sub { font-size: 0.9rem; color: var(--text-muted); border-bottom: none; padding-bottom: 0; margin-top: -8px; margin-bottom: 12px; }

.staff-section { background-color: var(--bg-body); padding: 80px 20px; }
.employee-profile { background: var(--white); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 50px; border: 1px solid var(--border-color); max-width: 1000px; margin: 0 auto;}
.employee-header { display: flex; gap: 40px; padding: 40px; background: var(--bg-light); align-items: center; }
.employee-photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); box-shadow: 0 5px 15px rgba(203, 168, 118, 0.2); }
.employee-info h3 { font-size: 2.2rem; margin-bottom: 5px; color: var(--text-dark); }
.employee-info .role { color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 15px; font-size: 1rem; letter-spacing: 1px; }
.employee-info .desc { color: var(--text-muted); line-height: 1.7; font-size: 1.05rem; }
.employee-gallery-wrapper { padding: 40px; background: var(--white); }
.employee-gallery-wrapper h4 { text-align: center; margin-bottom: 30px; font-size: 1.6rem; color: var(--text-dark); position: relative; }
.employee-gallery-wrapper h4::after { content: ''; display: block; width: 50px; height: 3px; background: var(--taupe); margin: 10px auto 0; }
.employee-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.employee-gallery img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    border-radius: 8px; 
    transition: transform 0.3s ease; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    display: block; 
    cursor: pointer; 
    
    /* Wymuszenie akceleracji sprzętowej (GPU) eliminuje lagi przy scrollowaniu */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}
.employee-gallery img:hover { transform: scale(1.03) translateZ(0); }

/* ==========================================
   INTERAKTYWNE ELEMENTY (LIGHTBOX, BOOKSY, MAPA)
   ========================================== */
.lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 3000; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); transform: scale(0.95); transition: transform 0.3s ease; }
.lightbox-overlay.active .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 4rem; color: var(--white); cursor: pointer; background: none; border: none; text-shadow: 0 2px 10px rgba(0,0,0,0.5); font-weight: 300; transition: 0.3s; }
.lightbox-close:hover { color: var(--primary); transform: scale(1.1); }

.booksy-widget { position: fixed; right: 0; top: 50%; transform: translateY(-50%); background-color: var(--text-dark); color: var(--white); padding: 18px 12px; border-radius: 12px 0 0 12px; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; box-shadow: -5px 0 20px rgba(0,0,0,0.2); z-index: 999; writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 2px; text-transform: uppercase; font-size: 0.95rem; transition: background-color 0.3s, padding 0.3s; border: 1px solid var(--border-color); border-right: none; }
.booksy-widget:hover { background-color: var(--primary); padding-right: 20px; }

.map-section { line-height: 0; }
.map-section iframe { filter: grayscale(10%) contrast(95%); transition: filter 0.3s; }
.map-section iframe:hover { filter: grayscale(0%) contrast(100%); }

/* ==========================================
   MODAL I STOPKA
   ========================================== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--white); padding: 50px 30px; border-radius: 12px; width: 90%; max-width: 480px; position: relative; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-muted); }

.main-footer { background-color: var(--taupe); color: var(--white); padding: 60px 0 20px; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--white); text-decoration: none; display: inline-block; margin-bottom: 15px; }
.footer-desc { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; font-weight: 500; }
.footer-heading { font-size: 1.25rem; margin-bottom: 20px; color: #ffffff !important; font-weight: 700; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .contact-details li { color: rgba(255, 255, 255, 0.9); text-decoration: none; transition: 0.3s; font-weight: 500; }
.footer-links a:hover { color: var(--primary); }
.footer-location-title { color: #ffffff !important; font-weight: 700 !important; font-size: 1.05rem !important; display: block; margin-bottom: 4px; }
.footer-phone-link { color: #ffffff !important; font-weight: 700 !important; font-size: 1.1rem !important; text-shadow: 0 1px 3px rgba(0,0,0,0.2); text-decoration: none; transition: opacity 0.3s; }
.footer-phone-link:hover { opacity: 0.8; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; font-weight: 500; }

.floating-call-btn { position: fixed; bottom: 20px; right: 20px; background-color: var(--primary); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 998; text-decoration: none; transition: transform 0.3s; }
.floating-call-btn:hover { transform: scale(1.1); }

/* ==========================================
   RWD (RESPONSYWNOŚĆ - TELEFONY I TABLETY)
   ========================================== */
@media (max-width: 992px) {
  .hero-collage { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
  .employee-header { flex-direction: column; text-align: center; }
  .header-container { min-height: 140px !important; padding: 0 15px !important; }
  .btn-appointment { display: none !important; }
  .logo { width: 80% !important; max-width: 80% !important; display: flex !important; align-items: center !important; }
  .logo img { height: 85px !important; max-height: 85px !important; width: auto !important; max-width: 100% !important; object-fit: contain !important; transform: scale(1.45) !important; transform-origin: left center !important; } 
  .main-nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background-color: var(--taupe); flex-direction: column; justify-content: center; align-items: center; transition: 0.4s ease-in-out; z-index: 999; box-shadow: -5px 0 15px rgba(0,0,0,0.2); }
  .main-nav.active { right: 0; }
  .main-nav ul { flex-direction: column; text-align: center; gap: 20px; }
  .mobile-menu-toggle { display: flex; }
  .mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
  .about-grid, .content-grid { grid-template-columns: 1fr; }
  .animate-on-scroll { opacity: 1 !important; transform: translateY(0) !important; transition: none !important; }
  
  /* --- POPRAWKA WIDOCZNOŚCI NA TELEFONACH (PRZESUNIĘCIE) --- */
  .hero-section { 
      margin-top: 140px; 
      height: calc(100vh - 140px); 
  }
  .hero-content { 
      margin-top: 0; 
  }
}

@media (max-width: 768px) {
  /* Skalowanie czcionek dla bardzo małych ekranów (np. telefony pionowo) */
  .hero-content h1 { font-size: 2.8rem; }
  .hero-collage { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .collage-img:nth-child(5) { grid-column: span 2; }
  .booksy-widget { padding: 12px 8px; font-size: 0.8rem; }
}