/* =======================
   Bazowe
======================= */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

header {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

html {
    scroll-behavior: smooth;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
}

/* Linki w nawigacji (desktop) */
.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a,
nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
nav a:hover {
    color: #012FCD;
}

/* =======================
   Przycisk hamburger + panel mobilny
======================= */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 10px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* Panel wysuwany */
.mobile-panel {
    position: fixed;
    inset: 0 0 0 auto;                /* top:0 right:0 bottom:0 left:auto */
    width: min(82vw, 360px);
    background: #fff;
    box-shadow: -6px 0 24px rgba(0, 0, 0, .08);
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px 18px 24px;
    gap: 8px;
    z-index: 1000;
}

.mobile-panel a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
}

.mobile-panel a:hover {
    background: rgba(0, 123, 255, .08);
    color: #002B5B;
}

/* Zaciemnienie tła */
.scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .32);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 999;
}

/* Stany otwartego menu */
body.nav-open {
    overflow: hidden; /* blokuje przewijanie tła */
}

body.nav-open .mobile-panel {
    transform: translateX(0);
}

body.nav-open .scrim {
    opacity: 1;
    pointer-events: auto;
}

/* =======================
   Hero
======================= */
.hero {
    background: linear-gradient(to right, #eaeffc, #ffffff);
}
.hero .hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}
.hero .hero-content {
    flex: 1 1 500px;
}
.hero .hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #003366;
    margin: 0;
}

.hero .hero-content h1 span {
    color: #012FCD;
}
.hero .hero-content p {
    margin-top: 1rem;
    font-size: 1.15rem;
    color: #444;
    line-height: 1.6;
}
.hero .hero-content .hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero .hero-image {
    flex: 1 1 500px;
    text-align: center;
}
.hero .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: -7px;
}

/* =======================
   Przyciski
======================= */
.btn-primary {
    background-color: #012FCD;
    color: #fff;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}
.btn-primary:hover {
    background-color: #0056b3;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #012FCD;
    color: #012FCD;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}
.btn-outline:hover {
    background-color: #012FCD;
    color: #fff;
}

/* =======================
   Pozostałe sekcje
======================= */
.section-blue {
    background-color: #f0f7ff;
    padding: 4rem 1rem;
}

.section-white {
    background-color: #ffffff;
    padding: 4rem 1rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Services grid (wariant 1) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Stare kafelki services */
.service-box {
    background-color: #f8fbff;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.service-box img {
    width: 40px;
    height: 40px;
}
.service-box span {
    font-weight: 600;
    color: #333;
}

/* Footer */
footer {
    background-color: #f0f7ff;
    color: #333;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* =======================
   Sekcja „Jak zostać pacjentem?”
======================= */
.process-section {
    background-color: #ffffff;
    padding: 60px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.timeline {
    position: relative;
    padding-left: 0;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #012FCD;
}
.timeline-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}
.timeline-marker {
    position: absolute;
    left: 5px;
    background-color: #012FCD;
    color: white;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 0 0 4px #fff;
}
.timeline-content {
    background-color: #f8fbff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-left: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    flex: 1;
}
.timeline-content p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #222;
}
.timeline-content a {
    color: #012FCD;
    text-decoration: underline;
}
.timeline-content a:hover {
    text-decoration: none;
}

/* =======================
   Sekcja „Aktualności”
======================= */
.news-section {
    background: linear-gradient(to bottom, #ffffff, #f4f6fa);
    padding: 80px 20px;
}
.news-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.news-image {
    flex: 1;
    min-width: 300px;
}
.news-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.news-content {
    flex: 1;
    min-width: 300px;
}
.news-title {
    font-size: 2rem;
    font-weight: 700;
    color: #00205B;
    margin-bottom: 16px;
}
.news-subtitle {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}
.news-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}
.news-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #2f2f2f;
    position: relative;
    padding-left: 24px;
}
.news-list li::before {
    content: "";
    position: absolute;
    left: 0;
    color: #012FCD;
}
.news-date {
    font-weight: 600;
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
}
.news-note {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

/* =======================
   Sekcja „O nas”
======================= */
.about-section {
    background: linear-gradient(to bottom, #f7f9fc, #ffffff);
    padding: 80px 20px;
}
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}
.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}
.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.about-content {
    flex: 1;
    min-width: 300px;
}
.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: #00205B;
    margin-bottom: 24px;
}
.about-text {
    font-size: 1rem;
    color: #444;
    margin-bottom: 16px;
    line-height: 1.6;
}
.highlight-box {
    background-color: #e8f0fe;
    padding: 20px 24px;
    border-left: 5px solid #2f78d4;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.highlight-title {
    font-size: 1.2rem;
    color: #002766;
    margin-bottom: 12px;
}
.highlight-list {
    padding-left: 0;
    list-style: none;
    color: #333;
    font-size: 0.95rem;
}
.highlight-list li {
    margin-bottom: 8px;
}

/* =======================
   Services – nowy grid (wariant 2)
======================= */
.services-section {
    background-color: #ffffff;
    padding: 80px 20px;
}
.container-services {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #00205B;
    text-align: center;
    margin-bottom: 50px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.service-card {
    background-color: #f7faff;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.service-icon {
    font-size: 32px;
    color: #012FCD;
    flex-shrink: 0;
}
.service-title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
}

/* =======================
   Responsywność
======================= */
@media (max-width: 920px) {
    /* chowamy linki desktop, pokazujemy hamburger */
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .timeline { padding-left: 0; }
    .timeline-marker { left: 5px; }

    .news-wrapper { flex-direction: column; }

    .about-container { flex-direction: column; text-align: center; }
    .about-content { order: 2; }
    .about-image { order: 1; }

    .hero .hero-content {
        margin-top: 40px;
    }


    .hero .hero-content h1 {
        font-size: 30px;
        text-align: center;
        font-weight: 700;
        line-height: 1.2;
        color: #003366;
        margin: 0;
    }

    .hero .hero-content h1 span {
        color: #012FCD;
    }
    .hero .hero-content p {
        text-align: center;
        margin-top: 1rem;
        font-size: 15px;
        color: #444;
        line-height: 1.6;
    }
    .hero .hero-content .hero-buttons {
        margin-top: 2rem;
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-subheader {
        display: none;
    }
}


.contact-section {
    background: linear-gradient(to bottom, #f7f9fc, #ffffff);
    padding: 80px 20px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-text {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #1a1a1a;
}

.contact-item a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-icon {
    font-size: 22px;
    color: #2F78D4;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Leaflet – wygląd mapy w stylistyce strony */
#map {
    width: 100%;
    height: 240px;                 /* możesz zwiększyć do 380–420 */
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;              /* ładne obcięcie narożników */
}
@media (max-width: 768px){
    #map { height: 280px; }
}
