/* =========================================
   PREMIUM DEEP OCEAN FRAMEWORK
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-bg: #F0F4F8;          /* Bardzo jasny, chłodny błękit (piana morska) */
    --color-surface: #FFFFFF;     /* Czysta biel dla kart */
    --color-ocean-deep: #284B63;  /* Głęboki, spokojny granatowo-morski */
    --color-accent: #4FD1C5;      /* Koralowy Błękit (Teal) */
    --color-text: #4A5568;        /* Miękki, chłodny szary tekst */
    --color-heading: #1A3647;     /* Bardzo ciemny morski do nagłówków */
}

body { 
    background-color: var(--color-bg); 
    color: var(--color-text); 
    font-family: 'DM Sans', sans-serif; 
    line-height: 1.7; 
    font-weight: 400;
    overflow-x: hidden; 
    scroll-behavior: smooth;
}

/* --- TYPOGRAFIA --- */
h1, h2, h3, h4 { color: var(--color-heading); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: 4rem; line-height: 1.15; margin-bottom: 24px; color: #FFFFFF; }
h2 { font-size: 2.8rem; margin-bottom: 20px; text-transform: none;}
h3 { font-size: 1.5rem; margin-bottom: 15px; }

/* --- UKŁAD (LAYOUT) --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-padding { padding: 120px 0; }
.text-center { text-align: center; }

/* --- NAWIGACJA --- */
.navbar {
    position: fixed; 
    top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 24px 40px; 
    display: flex; justify-content: space-between; align-items: center;
    
    /* --- POPRAWKA LAGÓW --- */
    transition: transform 0.4s ease, background-color 0.4s ease, padding 0.4s ease;
    transform: translateZ(0); /* Wymusza renderowanie przez kartę graficzną */
    backface-visibility: hidden;
    will-change: transform, background-color, padding;
}

.navbar.scrolled { 
    background-color: rgba(240, 244, 248, 0.98); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); 
    padding: 16px 40px; 
    
    /* Usunięcie zbędnych filtrów, które spowalniają scrollowanie */
    backdrop-filter: none; 
}
.logo { font-size: 1.4rem; font-weight: 600; color: #FFFFFF; text-decoration: none; transition: 0.3s;}
.navbar.scrolled .logo { color: var(--color-heading); }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { text-decoration: none; color: #FFFFFF; font-weight: 400; transition: 0.3s; font-size: 0.95rem; }
.navbar.scrolled .nav-links a { color: var(--color-text); }
.nav-links a:hover { color: var(--color-accent) !important; }
.nav-links a.active { color: var(--color-accent) !important; font-weight: 500;}

.nav-logo-img {
    height: 160px; width: auto; display: block; transition: all 0.4s ease;
    filter: brightness(0) invert(1); 
}
.navbar.scrolled .nav-logo-img { height: 100px; filter: none; }

/* --- PRZYCISKI --- */
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px;}
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 36px; border-radius: 100px; 
    text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: 0.5px;
    transition: all 0.3s ease; border: 1px solid transparent; cursor: pointer;
}
.btn-accent { background-color: var(--color-accent); color: var(--color-heading); }
.btn-accent:hover { background-color: #38B2AC; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 209, 197, 0.3); }

.btn-outline-white { background-color: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { border-color: #FFFFFF; background-color: rgba(255,255,255,0.05); }

.btn-outline-dark { background-color: transparent; color: var(--color-heading); border-color: var(--color-heading); }
.btn-outline-dark:hover { background-color: var(--color-heading); color: #FFFFFF; }

/* --- HERO WIDEO (STRONA GŁÓWNA) --- */
.hero {
    min-height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding-top: 80px; overflow: hidden; 
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    /* To niweluje lagi przy przewijaniu: */
    transform: translate3d(-50%, -50%, 0); 
    will-change: transform;
    z-index: 0;
    object-fit: cover;
    opacity: 0.8;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(40, 75, 99, 0.65), rgba(40, 75, 99, 0.85));
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 850px; }
.hero-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 650px; margin: 0 auto; font-weight: 300; line-height: 1.8;}

/* --- HERO SUBPAGE (PODSTRONY) --- */
.hero-subpage {
    min-height: 50vh; 
    background-image: linear-gradient(rgba(40, 75, 99, 0.75), rgba(40, 75, 99, 0.9)), url('https://images.unsplash.com/photo-1505118380757-91f5f5632de0?q=80&w=1920&auto=format&fit=crop'); 
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding-top: 100px; 
}

/* --- GRIDS --- */
.grid-2 { display: grid; gap: 80px; grid-template-columns: 1fr 1fr; align-items: center; }
.grid-3 { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.content-grid { display: grid; gap: 60px; grid-template-columns: 1fr 2fr; margin-top: -60px; position: relative; z-index: 10; }
.grid-2-booking { display: grid; gap: 60px; grid-template-columns: 1fr 1.5fr; align-items: start; }

/* --- WSPÓLNE KOMPONENTY (Karty, Profile, Cennik) --- */
.about-image { width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); object-fit: cover; aspect-ratio: 4/5; }
.profile-sidebar img { width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); object-fit: cover; aspect-ratio: 3/4; }
.profile-sidebar .contact-info { background: var(--color-surface); padding: 30px; border-radius: 16px; margin-top: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.03); }

.offer-card { background: var(--color-surface); padding: 50px 40px; border-radius: 16px; text-align: center; transition: all 0.4s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.03); }
.offer-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(40, 75, 99, 0.08); border-bottom: 3px solid var(--color-accent);}
.offer-icon { font-size: 2.8rem; margin-bottom: 24px; color: var(--color-accent); }

.service-detail { background: var(--color-surface); padding: 40px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); margin-bottom: 30px; border: 1px solid rgba(0,0,0,0.03); transition: 0.3s;}
.service-detail:hover { box-shadow: 0 15px 40px rgba(40, 75, 99, 0.05); transform: translateY(-3px);}
.service-icon { font-size: 2.5rem; color: var(--color-accent); margin-bottom: 16px; display: inline-block;}

/* Cennik */
.pricing-section { background-color: var(--color-bg); padding-top: 0;}
.pricing-card { background: var(--color-surface); padding: 60px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.04); max-width: 800px; margin: 0 auto;}
.pricing-item { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.pricing-item:last-child { border-bottom: none; padding-bottom: 0;}
.pricing-info h4 { margin-bottom: 4px; font-size: 1.2rem;}
.pricing-info span { color: #888; font-size: 0.95rem;}
.pricing-cost { text-align: right;}
.pricing-cost .price { font-size: 1.6rem; font-weight: 600; color: var(--color-ocean-deep);}
.pricing-cost .currency { font-size: 1rem; color: #888; margin-left: 4px;}

/* Formaty Tekstowe O mnie */
.main-text p { margin-bottom: 24px; font-size: 1.05rem; color: var(--color-text); }
.main-text h2 { margin-top: 48px; }
.quote-box { background-color: var(--color-surface); padding: 40px; border-left: 4px solid var(--color-accent); border-radius: 0 16px 16px 0; margin: 40px 0; font-size: 1.2rem; font-style: italic; color: var(--color-heading); box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.credentials-list { list-style: none; margin-top: 24px; }
.credentials-list li { padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; align-items: flex-start; gap: 16px; }
.credentials-list li:last-child { border-bottom: none; }
.check-icon { color: var(--color-accent); font-size: 1.2rem; margin-top: 4px; }

/* Zapisy i Kontakt */
.contact-card { background: var(--color-surface); padding: 50px 40px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.03); margin-bottom: 30px; }
.contact-card h3 { color: var(--color-ocean-deep); margin-bottom: 24px;}
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-icon { font-size: 1.5rem; color: var(--color-accent); margin-top: 2px;}
.contact-text strong { display: block; color: var(--color-heading); font-weight: 500; margin-bottom: 4px;}
.calendar-wrapper { background: var(--color-surface); border-radius: 16px; padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.03); min-height: 600px; display: flex; flex-direction: column; }
.calendar-placeholder { width: 100%; height: 100%; min-height: 580px; background-color: #F8FAFC; border: 2px dashed #CBD5E1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }

/* --- ZNANY LEKARZ CTA (PREMIUM FLOATING CARD) --- */
.booking-section { 
    background-color: var(--color-bg); /* Jasne tło płynnie łączące się z resztą strony */
    padding: 60px 0 120px 0; 
}

.booking-card {
    background: linear-gradient(135deg, var(--color-heading) 0%, var(--color-ocean-deep) 100%);
    border-radius: 32px; /* Nowoczesne, mocne zaokrąglenie */
    padding: 80px 40px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 40px 80px rgba(26, 54, 71, 0.15); /* Głęboki, miękki cień */
    position: relative;
    overflow: hidden; /* Przycina ozdoby w tle */
}

.booking-card h2 { 
    color: #FFFFFF; /* Zmiana z seledynowego na czystą, luksusową biel */
    margin-bottom: 20px; 
    font-weight: 600; /* Odrobinę grubsza, pewniejsza czcionka */
    font-size: 3rem;
    letter-spacing: -0.03em; /* Ściśnięcie liter daje efekt drogiej typografii */
}

.booking-subtitle { 
    font-size: 1.15rem; 
    color: rgba(255, 255, 255, 0.75); /* Zgaszona biel, uspokaja wzrok */
    margin: 0 auto 40px auto; 
    max-width: 600px; 
    font-weight: 300; /* Lżejsza waga do czytania */
    line-height: 1.7;
}

/* Subtelna "poświata" (rozświetlająca mrok) wewnątrz karty */
.booking-deco {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.booking-deco::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

/* Poprawka mobilna dla tej sekcji */
@media (max-width: 992px) {
    .booking-card {
        padding: 50px 20px;
        border-radius: 24px;
    }
    .booking-card h2 { font-size: 2.2rem; }
    .booking-section { padding: 40px 0 80px 0; }
}
/* --- STOPKA --- */
footer { background-color: #1A3242; padding: 80px 0 40px; color: rgba(255,255,255,0.6); }
footer h3 { color: #FFFFFF; margin-bottom: 24px; font-size: 1.2rem; font-weight: 500;}
.footer-line { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 60px; padding-top: 30px; text-align: center; font-size: 0.9rem;}
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; margin-bottom: 12px; transition: 0.3s;}
.footer-links a:hover { color: var(--color-accent); }


/* =========================================
   RESPONSYWNOŚĆ (MOBILE)
   ========================================= */
@media (max-width: 992px) { 
    .navbar, .navbar.scrolled { flex-direction: column; padding: 15px 10px; background-color: var(--color-ocean-deep); }
    .nav-logo-img, .navbar.scrolled .nav-logo-img { height: 60px; filter: brightness(0) invert(1); margin-bottom: 15px; }
    .nav-links { width: 100%; justify-content: center; gap: 12px; flex-wrap: nowrap; }
    .nav-links a { color: #FFFFFF !important; font-size: 0.85rem; white-space: nowrap; }
    
    .grid-2, .grid-3, .content-grid, .grid-2-booking { grid-template-columns: 1fr !important; gap: 30px; }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .section-padding { padding: 60px 0; }
    
    .content-grid { margin-top: 20px; }
    
    .pricing-card { padding: 30px 20px; }
    .pricing-item { flex-direction: column; align-items: flex-start; gap: 15px; padding: 20px 0; }
    .pricing-info { width: 100%; }
    .pricing-cost { text-align: left; width: 100%; border-top: 1px dashed rgba(0,0,0,0.05); padding-top: 10px; }
    .pricing-cost .price { font-size: 1.4rem; }
    
    .contact-card { padding: 30px 20px; }
    .calendar-wrapper { min-height: 500px; }
}