:root {
    --primary: #0c2d48;
    --secondary: #145374;
    --accent: #2ec4b6;
    --gold: #d4af37;
    --light: #f4f9fb;
}

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

html {
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Catamaran, Roboto, Helvetica, sans-serif;
    background: var(--light);
    color: var(--primary);

}

body.is-loading * {
    -moz-transition: none !important;
    -webkit-transition: none !important;
    -o-transition: none !important;
    -ms-transition: none !important;
    transition: none !important;
    -moz-animation: none !important;
    -webkit-animation: none !important;
    -o-animation: none !important;
    -ms-animation: none !important;
    animation: none !important;
}

body {

    animation: fadein 1.5s;
    -moz-animation: fadein 1.5s;
    /* Firefox */
    -webkit-animation: fadein 1.5s;
    /* Safari and Chrome */
    -o-animation: fadein 1.5s;
    /* Opera */
}

html,
body {
    overflow-x: hidden;
}



@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-moz-keyframes fadein {

    /* Firefox */
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadein {

    /* Safari and Chrome */
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-o-keyframes fadein {

    /* Opera */
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ================= BANNER OBRAZEK RESPONSYWNY ================= */

.banner {
    background: #10163c;
    padding: 20px 20px;
    text-align: center;
    top: 70px;
    position: relative;
}

.banner-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.banner-image {
    width: 100%;
    max-width: 1009px;
    /* nigdy większy niż oryginał */
    height: auto;
    /* zachowanie proporcji */
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {

    .banner-container {
        flex-direction: column;
        gap: 20px;
    }

    .banner-logo {
        max-height: 70px;
    }

    .banner {
        padding: 30px 15px;
    }
}


/* Nagłówek podstron */
.page-header {
    background: linear-gradient(to right, #f4f8fb, #ffffff);
    border-bottom: 1px solid #d9e2ec;

    padding: 35px 20px 35px 20px;
    /* mniejsza wysokość */
    margin-bottom: 60px;
    /* większy odstęp od kolejnej sekcji */
}

/* Wewnętrzny kontener */
.page-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    /* wszystko wyśrodkowane */
}

/* Układ tytułu z ikoną */
.page-title {
    display: inline-flex;
    /* inline-flex pozwala wyśrodkować całość */
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    justify-content: center;
    /* centralizacja elementów w inline-flex */
}

/* Ikona */
/* Ikona bazowa */
.page-icon {
    width: 25px;
    height: 25px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.page-icon-small {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* Tytuł */
.page-header h1 {
    font-size: 30px;
    font-weight: 600;
    color: #0b3c5d;
    margin: 0;
}

/* Opis */
.page-header p {
    font-size: 15px;
    color: #486581;
    margin: 0;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 22px;
    }

    .page-title {
        gap: 8px;
    }
}



/* ================= IKONY ================= */
/* ================= QUICK SECTION ================= */

.quick-section {
    max-width: 1000px;
    margin: 80px auto;
    /* display: flex;*/
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

.quick-section-news {
    max-width: 1000px;
    margin: 80px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

/* Lewa strona - ikony */

.quick-left {
    flex: 2;

}

.icon-links {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.icon-box {
    position: relative;
    transition: 0.3s ease;
}

.icon-box img {
    width: 180px;
    border-radius: 20px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

.icon-box:hover {
    transform: translateY(-6px);
}

/* Prawa strona - opiekun */

.quick-right {
    flex: 1;
    text-align: center;
}

.guardian-title {
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.guardian-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.guardian-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 992px) {

    .quick-section {
        flex-direction: column;
        gap: 50px;
    }

    .icon-links {
        justify-content: center;
        gap: 50px;
        flex-wrap: wrap;
    }

    .guardian-photo {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 600px) {

    .icon-links {
        gap: 30px;
    }

    .icon-box img {
        width: 95px;
    }

    .guardian-photo {
        width: 120px;
        height: 120px;
    }
}


/* Premium tooltip */

.tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: 0.3s;
    white-space: normal;
    text-align: center;
    /* pozwala łamać tekst */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Strzałka */
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    border-width: 6px;
    border-style: solid;
    border-color: #240393 transparent transparent transparent;
}

/* Pokazywanie */
.icon-box:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsywność */
@media (max-width: 768px) {
    .news-img {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 15px 0;
    }
}

/* ================= FOTO ================= */

.photo-contact img {
    max-width: 150px;
    width: 50%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.page-tittle h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 2.5px;

}

/* ================= NEWS banner ================= */

/* Sekcja */
.medical-banner-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0 50px 0;
}

/* Rama */
.medical-banner-frame {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-left: 3px solid #0b3c5d;
    /* medyczny akcent */
    max-width: 720px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Link jako całość */
.medical-banner-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

/* Efekt hover */
.medical-banner-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(11, 60, 93, 0.15);
}

/* Obraz */
.medical-banner {
    width: 680px;
    height: 300px;
    overflow: hidden;
}

.medical-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Podpis */
.medical-banner-caption {
    padding: 18px 20px;
    background: #f7fbff;
    border-top: 1px solid #e3edf5;
    font-family: "Segoe UI", Arial, sans-serif;
}

.medical-banner-caption strong {
    display: block;
    font-size: 16px;
    color: #0b3c5d;
    margin-bottom: 4px;
}

.medical-banner-caption span {
    font-size: 14px;
    color: #486581;
}



/* KLUCZOWA CZĘŚĆ RESPONSYWNOŚCI */

@media (max-width: 768px) {

    .medical-banner-frame {
        max-width: 95%;
    }

    .medical-banner {
        width: 100%;
        height: auto;
    }

    .medical-banner img {
        height: auto;
    }
}




/* ================= NEWS ================= */

.news-section {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 20px;
}

.news-content ul {
    padding-left: 4%;
}

.news-content p {
    padding-bottom: 1%;
}

.news-content ol {
    padding-left: 4%;
}

.news-img {
    float: right;
    height: 150px;
    margin-left: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}


.news-card {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.news-card .video-wrapper {
    flex: 1;
    margin-bottom: 20px;
    width: 0%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}


.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

.news-content {
    flex: 1;
}

.news-content h2 {
    margin-bottom: 15px;
    color: var(--secondary);
}

/* ================= NEWS META (SVG VERSION) ================= */

.news-meta {
    display: flex;
    gap: 25px;
    font-size: 13px;
    margin-bottom: 14px;
    color: #6b7c8c;
    letter-spacing: 0.4px;
    align-items: center;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
    transition: 0.3s ease;
}

.news-card:hover .meta-icon {
    color: var(--gold);
}


.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--accent), var(--gold));
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn-event {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.85;
}


/* ===================== */
/* KSIĄŻKI */
/* ===================== */

.books-section {
    max-width: 1200px;
    margin: 20px auto;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 50px;
    color: #003366;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 kolumny */
    gap: 40px;
}

.book-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card img {
    width: 50%;
    max-width: 220px;
    height: auto;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.book-card img:hover {
    transform: scale(1.05);
}

.book-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #003366;
}

.book-author {
    font-size: 14px;
    color: #555;
}

/*============ respons ========*/
@media (max-width: 992px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .books-grid {
        grid-template-columns: 1fr;
    }
}


/* ===================== */
/* SZKOLENIA */
/* ===================== */

.training-section {
    max-width: 1200px;
    margin: 100px auto;
    /* 90 × 1.6 ≈ 144 */
    padding: 0 20px;
    text-align: center;
}

.news-card-news {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    background: rgb(237, 238, 222);
    padding: 30px;
    border-color: #004080;
    border: 2px solid #fc8b4f;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.news-card-news:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.szkolenia {}

.szkolenia h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 2.5px;

}

.szkolenia-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 20px 20px;
}

.szkolenie-box {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.szkolenie-box:hover {
    transform: translateY(-5px);
}

.szkolenie-image {
    width: 30%;
    display: flex;
    align-items: center;
    /* wyśrodkowanie pionowe */
    justify-content: center;
    /* wyśrodkowanie poziome */
    padding: px;
}

.szkolenie-image img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    /* ważne – nie przycina */
}

.szkolenie-content {
    width: 80%;
    padding: 15px 15px 15px 0px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.szkolenie-content h3 {
    margin-bottom: 20px;
    font-weight: 400;
    color: #580101;
}

.szkolenie-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.meta-item svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #f3bf13;
    stroke-width: 2;
}

.event-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.event-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #270587;
    stroke-width: 2;
    transition: 0.3s;
}

.event-link:hover svg {
    stroke: #0077ff;
}


.video-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

/* --- GÓRNY OPIS Z OBLEWANIEM --- */

.video-intro {
    overflow: hidden;
    margin-bottom: 60px;
}

.video-intro-img {
    float: left;
    width: 320px;
    margin: 0 30px 20px 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.video-intro-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #003366;
}

.video-intro-text p {
    line-height: 1.7;
    color: #444;
}

/* --- LISTA VIDEO --- */

.video-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.video-row {
    display: flex;
    gap: 30px;
    align-items: stretch;
    padding: 30px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.video-description {
    width: 99%;
}

.video-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #002b5c;
}

.video-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.video-embed {
    width: 40%;
}

.video-embed iframe {
    width: 100%;
    height: 260px;
    border-radius: 10px;
}




/* RESPONSYWNOŚĆ */
@media (max-width: 992px) {
    .szkolenia-grid {
        grid-template-columns: 1fr;
    }

    .szkolenie-box {
        flex-direction: column;
    }

    .szkolenie-image,
    .szkolenie-content {
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .event-link {
        position: relative;
        margin-top: 20px;
        right: auto;
        bottom: auto;
    }

    .news-card-news {
        flex-direction: column;
        word-wrap: break-word;
    }
}

@media (max-width: 992px) {

    .video-row {
        flex-direction: column;
    }

    .video-description,
    .video-embed {
        width: 100%;
    }

    .video-embed iframe {
        height: 220px;
    }

    .video-embed video {
        max-width: 100%;
    }

    .video-intro-img {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 768px) {
    .video-description h3 {
        font-size: 90%;
    }
}

/*============================================
                    ZARZĄD
/*************************===================*/
.zarzad-section {
    max-width: 1200px;
    margin: 100px auto;
    /* 90 × 1.6 ≈ 144 */
    padding: 0 20px;
    text-align: center;
}

/* --- GÓRA --- */

.zarzad-top {
    margin-bottom: 96px;
    /* 60 × 1.6 */
}

.zarzad-main-img {
    position: relative;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: 0.4s ease;
    /* delikatne podświetlenie */
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.07),
        0 0 0 6px rgba(0, 86, 163, 0.05);
}

.zarzad-top h2 {
    font-size: 24px;
    color: #002b5c;
    margin-bottom: 5px;
}

.zarzad-top p {
    color: #666;
    font-size: 15px;
}

/* --- SIATKA --- */

.zarzad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    /* rytm bazowy */
    margin-bottom: 120px;
    /* 75 × 1.6 */
    justify-items: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.zarzad-card {
    transition: 0.3s ease;
    position: relative;
    margin-bottom: 18px;
}

.zarzad-card img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: 0.4s ease;

    /* delikatne podświetlenie */
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.07),
        0 0 0 6px rgba(0, 86, 163, 0.05);
}


.zarzad-top h3 {
    font-size: 18px;
    color: #002b5c;
    margin-bottom: 4px;
    font-weight: 400;
    margin-bottom: 8px;
}

.zarzad-top h2 {
    color: #002b5c;
    margin-bottom: 4px;
    font-weight: 600;
    margin-bottom: 20px;
}

.zarzad-card h2 {
    font-size: 16px;
    color: #002b5c;
    margin-bottom: 4px;
    font-weight: 600;
    margin-bottom: 20px;
}

.zarzad-card h3 {
    font-size: 17px;
    letter-spacing: 0.4px;
    color: #002b5c;
    margin-bottom: 4px;
    font-weight: 400;
    margin-bottom: 20px;
}

.zarzad-card p {
    font-size: 14px;
    color: #777;
}

.zarzad-card::before,
.zarzad-main-img::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 86, 163, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: 0.4s ease;
}

.zarzad-card:hover::before {
    opacity: 1;
}

.zarzad-card:hover {
    transform: translateY(-6px);
}

/* --- PODTYTUŁY --- */

.zarzad-subtitle {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 64px;
    /* 40 × 1.6 */
    color: #002b5c;
    position: relative;
}

.zarzad-subtitle::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #0056a3;
    margin: 15px auto 0;
}

/* ================= RESPONS ================= */

@media (max-width: 1100px) {
    .zarzad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .zarzad-grid {
        grid-template-columns: 1fr;
    }

    .zarzad-main-img {
        width: 180px;
        height: 180px;
    }

    .zarzad-card img {
        width: 150px;
        height: 150px;
    }
}


/*******************************************
                    OSRODKI
/********************************************/
.osrodki-section {
    max-width: 1000px;
    margin: 100px auto;
    padding: 0 20px;
}

.osrodek-content {
    flex: 1;
    min-width: 0;
    /* 🔥 KLUCZOWE */
}

.osrodek-content p {
    word-wrap: break-word;
}

.osrodki-title {
    text-align: center;
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 80px;
    color: #002b5c;
}



/* --- RZĄD --- */

.osrodek-row-alt {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    margin-bottom: 60px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

.osrodek-row {
    display: flex;
    gap: 25px;
    padding: 25px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    transition: 0.3s ease;
}

.osrodek-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* --- OBRAZ --- */

.osrodek-alt-img img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.osrodek-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* --- TREŚĆ --- */

.osrodek-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #002b5c;
    margin-bottom: 10px;
}

.osrodek-kierownik {
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    color: #5c6f85;
}

.osrodek-contact p {
    font-size: 14px;
    margin-bottom: 4px;
    color: #444;
}

.osrodek-contact a {
    color: #0056a3;
    text-decoration: none;
    transition: 0.3s ease;
}

.osrodek-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    .osrodek-box {
        flex-direction: column;
        padding: 20px;
    }

    .osrodek-img {
        flex: none;
        width: 50%;
    }

    .osrodek-content {
        width: 100%;
    }

    .osrodek-content h3 {
        font-size: 80%;
    }

    .osrodek-contact p {
        font-size: 80%;

    }

}

/*******************************************
                    czlonkostwo
============================================*/
.czlonkostwo-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.czlonkostwo-section img {
    height: 120px;
    width: 120px;
}

@media (max-width: 768px) {
    .czlonkostwo-section img {
        height: 100px;
        width: 100px;
    }
}


/*******************************************
                    WYTYCZNE
/********************************************/


.wytyczne-section {
    max-width: 1000px;
    margin: 100px auto;
    padding: 0 0px;
    text-align: center;
}

.wytyczne-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 36px;
    /* złoty rytm (60px × 1.618) */
    position: relative;
}

.wytyczne-header::before,
.wytyczne-header::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #0056a3;
    opacity: 0.2;
    margin: 0 20px;
}

.divider70 {
    height: 70px
}

.year-decor {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #002b5c;
    text-transform: uppercase;
    padding: 5px;
    position: relative;
    background: linear-gradient(90deg, #004080, #0070c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Delikatna poświata / glow pod rokiem */
.year-decor::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #0056a3;
    opacity: 0.3;
    border-radius: 1px;
}

/* Lista wytycznych */
.wytyczne-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* złoty rytm: 25 × 1.618 ≈ 40 */
    align-items: flex-start;
}

/* Pojedyncza wytyczna */
.wytyczna-item {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    align-items: center;
}

.wytyczna-item:hover {
    transform: translateY(-3px);
}

/* Ikona */
.wytyczna-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: 0.3s ease;
}

.wytyczna-item:hover .wytyczna-icon img {
    transform: scale(1.05);
}

/* Tytuł wytycznej */
.wytyczna-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #002b5c;
    text-align: left;
    margin: 30px;
}

/* Ikona linku w prawym dolnym rogu boxu */
.box-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #0056a3;
    border-radius: 50%;
    transition: 0.3s ease;
}

.box-link svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.box-link:hover {
    background: #d10628;
    transform: scale(1.1);
}

/* Tooltip */
.box-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #0056a3;
    border-radius: 50%;
    transition: 0.3s ease;
    cursor: pointer;
}

/* Tekst tooltipa */
.box-link::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #002b5c;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

/* Strzałka */
.box-link::after {
    content: "";
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: #002b5c transparent transparent transparent;
    opacity: 0;
    transition: 0.25s ease;
}

/* Pokazanie tooltipa */
.box-link:hover::before,
.box-link:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.box-link:hover {
    background: #003366;
    transform: scale(1.1);
}



@media (max-width: 768px) {
    .wytyczna-item {
        flex-direction: column;
        text-align: center;
    }

    .wytyczna-item-last {
        flex-direction: column;
        text-align: center;
    }


    .wytyczna-icon img {
        margin-bottom: 12px;
    }

    .wytyczna-title h3 {
        font-size: 16px;
    }
}



/*******************************************
                    akredytacja
============================================*/
.akredytacja-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.akredytacja-section img {
    width: 150px;

}

@media (max-width: 768px) {
    .akredytacja-section img {
        height: 100px;
        width: 100px;
    }
}


/**********************************************
HISTORIA
**********************************************/
.historia-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

/* ===== CZĘŚĆ 1 ===== */
/* ===== INTRO ===== */

.historia-intro {
    max-width: 1000px;
    margin: 0 auto 140px auto;
    text-align: center;
}

/* Motto */
.historia-motto {
    font-size: 24px;
    font-style: italic;
    font-weight: 500;
    color: #002b5c;
    margin-bottom: 50px;
    line-height: 1.4;
}

/* Tekst */
.historia-text {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

/* Dwa zdjęcia */
.historia-images {
    display: flex;
    justify-content: center;
    /* wyśrodkowanie w poziomie */
    gap: 40px;
    /* odstęp między zdjęciami */
    margin-top: 30px;
    flex-wrap: wrap;
    /* pozwala na „złamanie” na mniejsze ekrany */
}

.historia-img-box {
    width: 35%;
    text-align: center;
    transition: 0.4s ease;
}

.historia-img-box img {
    flex: 1 1 420px;
    /* minimalna szerokość 420px, rośnie do dostępnego miejsca */
    max-width: 420px;
    width: 100%;
    height: auto;

    border-radius: 6px;

    /* cień */
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(11, 60, 93, 0.06);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* hover efekt */
.historia-images img:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.12),
        0 6px 18px rgba(11, 60, 93, 0.10);
}


/* ===== GALERIA ===== */

.historia-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 60px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.historia-card {
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
    transition: 0.4s ease;
    position: relative;
}

.historia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.historia-card img {
    width: 50%;
    border-radius: 16px;
    margin-bottom: 25px;
}

/* Nazwisko */
.historia-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #002b5c;
    margin-bottom: 8px;
}

/* Tytuł artykułu */
.historia-article {
    font-size: 14px;
    color: #777;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Ikona */
.historia-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0056a3, #0077cc);
    border-radius: 50%;
    transition: 0.3s ease;
    position: relative;
}

.historia-link svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.historia-link:hover {
    transform: scale(1.15);
}

/* Tooltip */
.historia-link::before {
    content: attr(title);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #002b5c;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s ease;
}

.historia-link:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* responsywność */

@media (max-width: 1024px) {
    .historia-images img {
        flex: 1 1 300px;
        /* mniejsze ekrany: minimalna szerokość 300px */
    }
}

@media (max-width: 768px) {
    .historia-section {
        padding: 100px 20px;
    }

    .historia-gallery {
        gap: 40px;
    }

    .historia-card {
        padding: 15px;
    }

    .historia-images {
        flex-direction: column;
        /* zdjęcia jedno pod drugim */
        align-items: center;
        /* wyśrodkowanie w pionie */
        gap: 25px;
    }

    .historia-images img {
        width: 100%;
        max-width: 450px;
        /* zdjęcia skalują się do 90% szerokości kontenera */
        flex: 1 1 auto;
        margin: 0 auto;

    }

    .img-box img {

        max-width: 450px;
    }
}

.historia-img-box p {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/*******************************************
                    KONTAKT
============================================*/

.kontakt-section {
    max-width: 1200px;
    margin: 100px auto;
    /* 90 × 1.6 ≈ 144 */
    padding: 0 20px;
    text-align: center;
}

.kontakt-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 120px;
    /* złoty rytm */
}



/* Nagłówek */
.kontakt-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: #002b5c;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.kontakt-title {
    font-size: 16px;
    color: #0056a3;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 60px;
}

/* Dane kontaktowe */
.kontakt-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.kontakt-item {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    transition: 0.3s ease;
}

.kontakt-item svg {
    width: 24px;
    height: 24px;
    stroke: #0056a3;
    stroke-width: 2;
    fill: none;
}

.kontakt-item:hover {
    transform: translateX(4px);
}

/* Miejsce pracy */
.kontakt-workplace {
    font-size: 16px;
    font-weight: 400;
    color: #555;
    margin-top: 10px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Cienka linia dekoracyjna */
.kontakt-divider {
    width: 80px;
    height: 2px;
    background: #0056a3;
    margin: 0 auto 30px auto;
    opacity: 0.4;
    border-radius: 1px;
}

/* MAPA - wycentrowana */
.kontakt-map-wrapper {
    display: flex;
    justify-content: center;
    padding-bottom: 120px;
    /* złoty rytm */
}

.kontakt-map {
    width: 90%;
    max-width: 1100px;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.kontakt-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.kontakt-map:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}


/*****************************************************
artykuły
*****************************************************/
.article-page {
    padding: 140px 20px;
    background: #ffffff;
}

/* ===== HEADER ===== */

.article-header {
    max-width: 900px;
    margin: 0 auto 100px auto;
    text-align: center;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    color: #002b5c;
    margin-bottom: 20px;
}

.article-author {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.article-divider {
    width: 100px;
    height: 2px;
    background: #0056a3;
    margin: 0 auto;
    opacity: 0.3;
}

/* ===== TREŚĆ ===== */

.article-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.9;
    color: #333;
    text-align: justify;
}

.article-content p {
    margin-bottom: 28px;
}

.article-ending {
    text-align: center;
    padding: 80px 20px 5px;
    position: relative;
    overflow: hidden;
}

/* Cienka linia */
.decorative-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeLine 1.2s ease forwards;
}

/* Diament */
.ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
}

.diamond {
    width: 18px;
    height: 18px;
    background: #222;
    transform: rotate(45deg);
    animation: pulseDiamond 2.5s ease-in-out infinite;
}

/* Tekst */
.ending-text {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #666;
    margin-top: 10px;
    opacity: 0;
    animation: fadeText 1.5s ease forwards;
    animation-delay: 0.6s;
}

/* Animacje */
@keyframes pulseDiamond {

    0%,
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotate(45deg) scale(1.2);
        opacity: 0.6;
    }
}

@keyframes fadeLine {
    to {
        opacity: 1;
    }
}

@keyframes fadeText {
    to {
        opacity: 1;
    }
}


/* ===== OBLEWANE ZDJĘCIA ===== */

.float-image {
    width: 20%;
    margin: 10px 30px 20px 0;
    cursor: pointer;
}

.float-image.right {
    float: right;
    margin: 10px 0 20px 30px;
}

.float-image.left {
    float: left;
}

.float-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(2, 0, 0, 0.08);
    transition: 0.4s ease;
}

.float-image:hover img {
    transform: scale(1.03);
}

.float-image figcaption {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* FLOATY */
.float-left {
    float: left;
    margin: 0 30px 20px 0;
}

.float-right {
    float: right;
    margin: 0 0 20px 30px;
}

/* Styl zdjęcia */
.image-box {
    position: relative;
    width: 35%;
    margin: 0 20px 20px;
    cursor: pointer;
}

.image-box img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease;
}

.image-box:hover img {
    transform: scale(1.03);
}


/* BALON (tylko hover na desktop) */
@media (min-width: 901px) {

    .image-box::after,
    .image-box::before {
        opacity: 0;
        transition: all 0.4s ease;
    }

    .image-box:hover::after {
        content: attr(title);
        position: absolute;
        top: 50%;
        width: 260px;
        background: #0c2d48;
        color: #fff;
        padding: 16px 18px;
        border-radius: 12px;
        font-size: 14px;
        line-height: 1.5;
        pointer-events: none;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
        transform: translateY(-50%) translateX(20px);
        opacity: 1;
        animation: balloonFadeIn 0.5s forwards;
        z-index: 1000;
    }

    /* Strzałka */
    .image-box::before {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: 8px solid transparent;
        opacity: 0;
        transition: all 0.35s ease;
        z-index: 1001;
    }

    /* Jeśli zdjęcie po lewej → balon po PRAWEJ */
    /* Balon po lewej */
    .float-left:hover::after {
        left: 100%;
        transform: translateY(-50%) translateX(20px);
    }

    .float-left:hover::before {
        left: calc(100% - 1px);
        border-right-color: #008871;
    }

    /* Balon po prawej */
    .float-right:hover::after {
        right: 100%;
        transform: translateY(-50%) translateX(-20px);
    }

    .float-right:hover::before {
        right: calc(100% - 1px);
        border-left-color: #008871;
    }

    @keyframes balloonFadeIn {
        0% {
            transform: translateY(-50%) translateX(0);
            opacity: 0;
        }

        100% {
            transform: translateY(-50%) translateX(20px);
            opacity: 1;
        }
    }

    @keyframes arrowFadeIn {
        0% {
            transform: translateY(-50%) translateX(0);
            opacity: 0;
        }

        100% {
            transform: translateY(-50%) translateX(20px);
            opacity: 1;
        }
    }
}

/* HOVER */
.image-box:hover::after,
.image-box:hover::before {
    opacity: 1;
}



/* Czyści float */
.article-content::after {
    content: "";
    display: block;
    clear: both;
}


/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {

    /* MOBILE - wyłączamy balon */
    @media (max-width: 900px) {

        .image-box::after,
        .image-box::before {
            display: none !important;
        }

        .float-left,
        .float-right {
            float: none;
            width: 100%;
            margin: 20px auto;
            display: block;
        }
    }


    .image-box {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {

    .float-image,
    .float-image.right,
    .float-image.left {
        float: none;
        width: clamp(220px, 25%, 360px);
    }

    .article-title {
        font-size: 30px;
    }

    .article-content {
        font-size: 16px;
    }
}



/* ================= STOPKA ================= */

.footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

/* ================= RESPONSYWNOŚĆ ================= */

@media (max-width: 992px) {

    .news-card {
        flex-direction: column;
    }
}



/* ================= SCROLL ANIMATION ================= */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delikatne opóźnienia (premium efekt sekwencyjny) */

.reveal.delay-1 {
    transition-delay: 0.15s;
}

.reveal.delay-2 {
    transition-delay: 0.3s;
}

.reveal.delay-3 {
    transition-delay: 0.45s;
}

.reveal.delay-4 {
    transition-delay: 0.6s;
}

/***********************************************
ZAMKNIĘCIE TYTUŁU NA RESPONSIE 
===============================================*/

@media (max-width: 768px) {

    .page-title,
    .page-header {
        display: none;
    }



}