:root {
    --zielony: #006e36;
    --zielony_ciemny: #053e2a;
    --zielony_sredni: #0b7443;
    --kolor_tekstu: #172721;
    --kolor_wyciszony: #52645b;
    --kolor_linii: #dbe5df;
    --kolor_bialy: #fff;
    --tlo_jasne: #f1f6f2;
    --tlo_strony: #f8faf8;
    --max_szerokosc: 1350px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--tlo_strony);
    color: var(--kolor_tekstu);
    font-family: "Aptos","Segoe UI",Arial,sans-serif;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
}
img {
    display: block;
    max-width: 100%;
}
::selection {
    background: #c8e3ce;
    color: var(--zielony_ciemny);
}
:focus-visible {
    outline: 3px solid #63ad7c;
    outline-offset: 4px;
}
.link_pomin {
    position: absolute;
    top: -60px;
    left: 20px;
    background: #fff;
    color: var(--zielony);
    padding: 12px 18px;
    z-index: 20;
}
.link_pomin:focus {
    top: 12px;
}
.naglowek_strony {
    height: 99px;
    background: #fff;
    border-bottom: 1px solid #e7ede8;
    position: relative;
    z-index: 10;
}
.naglowek_srodek {
    max-width: var(--max_szerokosc);
    height: 100%;
    margin: auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 273px;
}
.logo_symbol {
    width: 43px;
    height: 43px;
    border: 2.4px solid var(--zielony);
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    flex: none;
}
.logo_symbol span:first-child {
    height: 21px;
    width: 2px;
    background: var(--zielony);
    position: absolute;
}
.logo_symbol span:last-child {
    width: 21px;
    height: 2px;
    background: var(--zielony);
    position: absolute;
}
.logo_napis {
    display: block;
}
.logo_napis strong {
    display: block;
    color: var(--zielony_ciemny);
    font-size: 16px;
    line-height: 1.03;
    letter-spacing: .035em;
    font-weight: 800;
}
.logo_napis small {
    display: block;
    color: #769183;
    font-size: 10px;
    letter-spacing: .20em;
    margin-top: 6px;
    font-weight: 700;
}
.menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.menu>a:not(.menu_kontakt) {
    font-size: 14px;
    font-weight: 650;
    color: #304439;
    transition: color .2s;
}
.menu>a:hover {
    color: var(--zielony);
}
.menu_kontakt {
    height: 43px;
    padding: 0 19px;
    display: flex;
    gap: 18px;
    align-items: center;
    color: #fff;
    background: var(--zielony);
    font-size: 14px;
    font-weight: 650;
    border-radius: 7px;
    transition: background .2s;
}
.menu_kontakt:hover {
    background: var(--zielony_ciemny);
}
.menu_kontakt span {
    font-size: 18px;
    line-height: 1;
}
.menu_przycisk {
    display: none;
}
.baner {
    --odstep_banera: max(0px,calc((100% - var(--max_szerokosc))/2));
    height: 100dvh;
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    overflow: hidden;
    background: #eef3ee;
}
.baner_zdjecie {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg,#f8faf8 0%,#f8faf8 27%,rgba(248,250,248,.96) 34%,rgba(248,250,248,.76) 43%,rgba(248,250,248,.22) 58%,rgba(11,25,17,.03) 100%),url("images/collegium-simulation-room.webp");
    background-size: cover;
    background-position: center center;
}
.baner:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 95px;
    background: linear-gradient(0deg,rgba(5,25,15,.19),transparent);
    pointer-events: none;
}
.baner_tresc {
    position: relative;
    z-index: 2;
    margin-left: var(--odstep_banera);
    width: min(635px,55%);
    padding: 112px 0 0 68px;
}
.etykieta_banera,.sekcja_etykieta {
    margin: 0;
    font-size: 12px;
    letter-spacing: .18em;
    font-weight: 800;
    color: var(--zielony);
    display: flex;
    align-items: center;
    gap: 12px;
}
.etykieta_banera_linia {
    width: 25px;
    height: 2px;
    background: var(--zielony);
    display: inline-block;
}
.baner h1 {
    font-size: 74px;
    line-height: 1.04;
    letter-spacing: -.063em;
    font-weight: 720;
    margin: 27px 0 26px;
    color: #122d20;
}
.baner h1 em {
    font-style: normal;
    color: var(--zielony);
}
.baner_opis {
    font-size: 18px;
    line-height: 1.65;
    max-width: 460px;
    color: #44584b;
    margin: 0;
}
.baner_autor {
    position: absolute;
    right: 50px;
    bottom: 20px;
    font-size: 12px;
    color: #FFF;
}
.baner_przyciski {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 39px;
}
.przycisk {
    height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.przycisk_glowny {
    background: var(--zielony);
    color: white;
    box-shadow: 0 12px 28px rgba(0,88,49,.12);
}
.przycisk_glowny:hover {
    background: var(--zielony_ciemny);
}
.przycisk span {
    font-size: 19px;
    font-weight: 400;
}
.link_tekstowy {
    color: #1c3e2c;
    font-size: 14px;
    font-weight: 730;
    border-bottom: 1px solid #9fb4a4;
    padding-bottom: 5px;
    white-space: nowrap;
}
.link_tekstowy span {
    margin-left: 6px;
    font-size: 18px;
    font-weight: 400;
}
.link_tekstowy:hover {
    color: var(--zielony);
}
.baner_wydarzenie {
    position: absolute;
    z-index: 3;
    right: calc(var(--odstep_banera) + 56px);
    bottom: 46px;
    width: 370px;
    padding: 25px 25px 19px;
    background: rgba(5,52,34,.94);
    color: white;
    border: 1px solid rgba(235,255,238,.23);
    border-radius: 12px;
    box-shadow: 0 26px 65px rgba(4,39,25,.23);
    transition: transform .2s;
}
.baner_wydarzenie:hover {
    transform: translateY(-4px);
}
.wydarzenie_etykieta {
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .15em;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #c9e8d2;
}
.punkt_animacji {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #81d6a0;
    display: inline-block;
}
.baner_wydarzenie strong {
    font-size: 28px;
    line-height: 1.13;
    letter-spacing: -.03em;
    display: block;
    margin: 23px 0 27px;
}
.wydarzenie_stopka {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.23);
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 700;
    color: #d9e9dd;
}
.strzalka_okragla {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    color: var(--zielony);
    display: grid;
    place-items: center;
    font-size: 17px;
    flex: none;
}
.baner_podpis {
    position: absolute;
    left: calc(var(--odstep_banera) + 68px);
    bottom: 19px;
    z-index: 2;
    font-size: 10px;
    color: #eef2ee;
    text-shadow: 0 1px 6px #1b3027;
}
.szerokosc_sekcji {
    max-width: var(--max_szerokosc);
    margin: 0 auto;
    padding-left: 68px;
    padding-right: 68px;
}
.aktualnosci {
    padding-top: 91px;
    padding-bottom: 105px;
}
.sekcja_naglowek {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}
.sekcja_naglowek h2 {
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -.055em;
    margin: 14px 0 0;
    font-weight: 720;
    color: #173326;
}
.link_spokojny {
    color: var(--zielony);
    font-size: 14px;
    font-weight: 720;
    border-bottom: 1px solid #9abfab;
    padding-bottom: 5px;
    white-space: nowrap;
}
.link_spokojny span {
    margin-left: 8px;
    font-size: 17px;
}
.aktualnosci_lista {
    display: grid;
    grid-template-columns: 1.17fr 1fr 1fr;
    gap: 17px;
}
.aktualnosci_karta {
    min-height: 280px;
    background: white;
    border: 1px solid #e5ebe5;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform .2s,box-shadow .2s;
}
.aktualnosci_karta:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(21,54,36,.07);
}
.aktualnosci_karta_wyrozniona {
    background: var(--zielony_ciemny);
    color: white;
    border-color: var(--zielony_ciemny);
}
.aktualnosci_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #687a6f;
}
.aktualnosci_karta_wyrozniona .aktualnosci_meta {
    color: #cbded2;
}
.etykieta {
    border-radius: 3px;
    background: rgba(255,255,255,.14);
    color: #e7f4e9;
    padding: 7px 8px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .11em;
}
.etykieta_jasna {
    background: #ebf5ed;
    color: var(--zielony);
}
.aktualnosci_karta_tresc {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 15px;
}
.aktualnosci_karta_tresc strong {
    font-size: 25px;
    line-height: 1.16;
    font-weight: 690;
    letter-spacing: -.04em;
}
.aktualnosci_karta_tresc>span {
    font-size: 13px;
    line-height: 1.55;
    color: #65776b;
    max-width: 295px;
}
.aktualnosci_karta_wyrozniona .aktualnosci_karta_tresc>span {
    color: #c5ddcb;
}
.aktualnosci_strzalka {
    position: absolute;
    right: 23px;
    bottom: 24px;
    color: var(--zielony);
    font-size: 25px;
}
.aktualnosci_karta_wyrozniona .aktualnosci_strzalka {
    color: #bce4c4;
}
.o_collegium {
    padding-top: 0;
    padding-bottom: 126px;
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    gap: 79px;
    align-items: center;
}
.o_collegium_zdjecie {
    height: 592px;
    overflow: hidden;
    border-radius: 11px;
    position: relative;
    background: #e9eee9;
}
.o_collegium_zdjecie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 35% center;
}
.o_collegium_zdjecie:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 80px;
    background: linear-gradient(transparent,rgba(9,20,13,.50));
    pointer-events: none;
}
.o_collegium_zdjecie>span {
    position: absolute;
    z-index: 1;
    left: 18px;
    bottom: 17px;
    color: white;
    font-size: 10px;
    text-shadow: 0 1px 5px #18251d;
}
.o_collegium_tresc {
    padding: 10px 0 0;
}
.o_collegium_tresc h2 {
    font-size: 47px;
    line-height: 1.12;
    letter-spacing: -.055em;
    font-weight: 700;
    margin: 20px 0 26px;
    color: #153626;
}
.o_collegium_tresc>p:not(.sekcja_etykieta) {
    font-size: 16px;
    line-height: 1.75;
    color: #5c6c60;
    margin: 0 0 35px;
}
.collegium_cechy {
    border-top: 1px solid #cfded2;
    margin-bottom: 31px;
}
.collegium_cechy>div {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 10px;
    border-bottom: 1px solid #d9e4da;
    padding: 15px 0;
}
.cecha_numer {
    grid-row: span 2;
    color: var(--zielony);
    font-size: 12px;
    font-weight: 800;
    padding-top: 3px;
}
.collegium_cechy strong {
    font-size: 16px;
    font-weight: 720;
}
.collegium_cechy p {
    font-size: 13px;
    color: #6a796d;
    margin: 5px 0 0;
    line-height: 1.45;
}
.link_zielony {
    color: var(--zielony);
}
.baza_wiedzy {
    background: #edf4ee;
    padding: 99px 0 95px;
}
.baza_wiedzy_naglowek {
    align-items: flex-end;
    margin-bottom: 38px;
}
.baza_wiedzy_naglowek h2 {
    margin-bottom: 13px;
}
.baza_wiedzy_naglowek p:not(.sekcja_etykieta) {
    margin: 0;
    color: #617367;
    font-size: 16px;
    line-height: 1.6;
    max-width: 620px;
}
.baza_wiedzy_etykieta {
    font-size: 10px;
    letter-spacing: .16em;
    color: #4f8660;
    font-weight: 800;
    white-space: nowrap;
    padding-bottom: 10px;
}
.baza_wiedzy_lista {
    display: grid;
    grid-template-columns: 1.14fr 1fr 1fr;
    gap: 18px;
}
.publikacja {
    min-height: 315px;
    padding: 27px 25px 24px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #dce9df;
    display: flex;
    flex-direction: column;
    transition: transform .2s,box-shadow .2s;
}
.publikacja:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(22,72,39,.08);
}
.publikacja_wyrozniona {
    background: #fff;
    border-top: 4px solid var(--zielony);
}
.publikacja_meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--zielony);
    margin-bottom: 34px;
}
.publikacja strong {
    font-size: 23px;
    line-height: 1.21;
    letter-spacing: -.035em;
    font-weight: 700;
    color: #193b29;
}
.publikacja p {
    font-size: 13px;
    line-height: 1.6;
    color: #6a796e;
    margin: 17px 0 25px;
}
.publikacja_stopka {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #e4ede5;
    padding-top: 17px;
    font-size: 12px;
    font-weight: 700;
    color: #4c6f53;
}
.publikacja_stopka span {
    font-size: 20px;
    color: var(--zielony);
}
.baza_wiedzy_opis {
    font-size: 11px;
    color: #667a69;
    margin: 18px 0 0;
}
.wydarzenia {
    padding-top: 97px;
    padding-bottom: 115px;
}
.wydarzenia_wstep {
    max-width: 330px;
    color: #617367;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.wydarzenia_lista {
    border-top: 1px solid #c9dbce;
}
.wydarzenie_wiersz {
    display: grid;
    grid-template-columns: 185px 1fr 48px;
    align-items: center;
    gap: 35px;
    min-height: 182px;
    border-bottom: 1px solid #d5e1d7;
    transition: background .2s;
}
.wydarzenie_wiersz:hover {
    background: #f0f6f1;
}
.wydarzenie_data {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 8px;
}
.wydarzenie_data strong {
    font-size: 41px;
    line-height: 1;
    letter-spacing: -.055em;
    font-weight: 680;
    color: var(--zielony);
}
.wydarzenie_data small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #809286;
}
.wydarzenie_opis {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wydarzenie_opis small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    color: var(--zielony);
}
.wydarzenie_opis strong {
    font-size: 24px;
    letter-spacing: -.03em;
    color: #193927;
}
.wydarzenie_opis>span {
    font-size: 14px;
    color: #66766a;
    line-height: 1.5;
}
.wydarzenie_wiersz_strzalka {
    height: 38px;
    width: 38px;
    border: 1px solid #b3cbb9;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--zielony);
    font-size: 19px;
}
.wydarzenie_wiersz_dodatkowy .wydarzenie_data strong {
    font-size: 34px;
}
.kontakt_zamkniecie {
    background: var(--zielony_ciemny);
    color: white;
}
.kontakt_zamkniecie_srodek {
    max-width: var(--max_szerokosc);
    margin: auto;
    padding: 77px 68px 82px;
    display: flex;
    justify-content: space-between;
    gap: 80px;
}
.kontakt_zamkniecie .sekcja_etykieta {
    color: #8dcba2;
}
.kontakt_zamkniecie h2 {
    margin: 19px 0 0;
    font-size: 43px;
    line-height: 1.13;
    letter-spacing: -.05em;
    font-weight: 650;
}
.kontakt_dane {
    min-width: 310px;
    color: #e3f0e7;
    padding-top: 12px;
}
.kontakt_dane p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 15px;
    font-weight: 650;
}
.kontakt_dane address {
    font-size: 14px;
    line-height: 1.6;
    font-style: normal;
    color: #bbd8c4;
}
.kontakt_dane a {
    font-size: 14px;
    display: inline-block;
    margin-top: 15px;
    border-bottom: 1px solid #91bba0;
    padding-bottom: 4px;
}
.kontakt_dane a span {
    margin-left: 7px;
}
.stopka {
    background: #fff;
}
.stopka_srodek {
    min-height: 71px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #718274;
    font-size: 12px;
}
.stopka_srodek>div {
    display: flex;
    gap: 31px;
}
.stopka a:hover {
    color: var(--zielony);
}
@media(max-width:1080px) {
    .naglowek_srodek {
        padding: 0 24px;
    }
    .menu {
        gap: 19px;
    }
    .menu>a:not(.menu_kontakt) {
        font-size: 13px;
    }
    .szerokosc_sekcji {
        padding-left: 40px;
        padding-right: 40px;
    }
    .baner_tresc {
        padding-left: 40px;
    }
    .baner_wydarzenie {
        right: 30px;
        width: 330px;
    }
    .baner_podpis {
        left: 40px;
    }
    .o_collegium {
        gap: 40px;
    }
    .o_collegium_tresc h2 {
        font-size: 40px;
    }
    .aktualnosci_karta_tresc strong {
        font-size: 22px;
    }
    .kontakt_zamkniecie_srodek {
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media(max-width:780px) {
    .naglowek_strony {
        height: 78px;
    }
    .naglowek_srodek {
        padding: 0 20px;
    }
    .logo {
        min-width: 0;
    }
    .logo_symbol {
        width: 38px;
        height: 38px;
    }
    .logo_napis strong {
        font-size: 13px;
    }
    .logo_napis small {
        font-size: 8px;
    }
    .menu_przycisk {
        width: 42px;
        height: 42px;
        background: #fff;
        border: 1px solid #d2e2d6;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
    }
    .menu_przycisk span {
        width: 19px;
        height: 2px;
        background: var(--zielony_ciemny);
    }
    .menu {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 14px 30px rgba(0,50,20,.12);
        display: none;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .menu.otwarte {
        display: flex;
    }
    .menu>a:not(.menu_kontakt) {
        padding: 14px 0;
        border-bottom: 1px solid #e4ece5;
        font-size: 16px;
    }
    .menu_kontakt {
        margin-top: 16px;
        justify-content: space-between;
    }
    .baner {
        height: auto;
        min-height: 0;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
    }
    .baner_zdjecie {
        position: relative;
        height: 295px;
        order: 2;
        background-image: url("images/collegium-simulation-room.webp");
        background-position: center center;
    }
    .baner:after {
        display: none;
    }
    .baner_tresc {
        order: 1;
        width: 100%;
        padding: 55px 24px 45px;
        background: #f6f9f6;
    }
    .baner h1 {
        font-size: 69px;
        margin: 22px 0;
    }
    .baner_opis {
        font-size: 16px;
        max-width: 550px;
    }
    .baner_przyciski {
        margin-top: 29px;
        flex-wrap: wrap;
        gap: 18px 25px;
    }
    .baner_wydarzenie {
        order: 3;
        position: relative;
        right: auto;
        bottom: auto;
        width: auto;
        margin: -35px 18px 18px;
        padding: 22px;
    }
    .baner_wydarzenie strong {
        font-size: 25px;
        margin: 16px 0 18px;
    }
    .baner_podpis {
        left: 24px;
        bottom: auto;
        top: calc(100% - 268px);
        display: none;
    }
    .szerokosc_sekcji {
        padding-left: 24px;
        padding-right: 24px;
    }
    .aktualnosci,.wydarzenia {
        padding-top: 70px;
        padding-bottom: 75px;
    }
    .sekcja_naglowek h2 {
        font-size: 39px;
    }
    .aktualnosci_lista {
        grid-template-columns: 1fr;
    }
    .aktualnosci_karta {
        min-height: 235px;
    }
    .o_collegium {
        grid-template-columns: 1fr;
        padding-bottom: 80px;
        gap: 35px;
    }
    .o_collegium_zdjecie {
        height: 380px;
    }
    .o_collegium_tresc h2 {
        font-size: 39px;
    }
    .baza_wiedzy {
        padding: 70px 0;
    }
    .baza_wiedzy_lista {
        grid-template-columns: 1fr;
    }
    .publikacja {
        min-height: 250px;
    }
    .publikacja_meta {
        margin-bottom: 22px;
    }
    .wydarzenie_wiersz {
        grid-template-columns: 100px 1fr 38px;
        gap: 16px;
    }
    .wydarzenie_data strong {
        font-size: 29px;
    }
    .kontakt_zamkniecie_srodek {
        padding: 64px 24px;
        flex-direction: column;
        gap: 25px;
    }
    .kontakt_zamkniecie h2 {
        font-size: 37px;
    }
    .kontakt_dane {
        min-width: 0;
    }
    .stopka_srodek {
        min-height: 90px;
    }
}
@media(max-width:520px) {
    .baner_tresc {
        padding-top: 47px;
    }
    .etykieta_banera {
        font-size: 10px;
        letter-spacing: .12em;
    }
    .baner h1 {
        font-size: 46px;
    }
    .przycisk {
        width: auto;
    }
    .link_tekstowy {
        font-size: 13px;
    }
    .sekcja_naglowek {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 27px;
    }
    .sekcja_naglowek h2 {
        font-size: 37px;
    }
    .link_spokojny {
        font-size: 13px;
    }
    .o_collegium_zdjecie {
        height: 280px;
    }
    .o_collegium_tresc h2 {
        font-size: 36px;
    }
    .baza_wiedzy_naglowek {
        gap: 18px;
    }
    .baza_wiedzy_etykieta {
        padding: 0;
    }
    .wydarzenie_wiersz {
        grid-template-columns: 1fr 32px;
        min-height: 0;
        padding: 24px 0;
        gap: 6px;
    }
    .wydarzenie_data {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
        padding-left: 0;
    }
    .wydarzenie_data strong {
        font-size: 30px;
    }
    .wydarzenie_opis {
        grid-column: 1;
    }
    .wydarzenie_opis strong {
        font-size: 21px;
    }
    .wydarzenie_wiersz_strzalka {
        grid-column: 2;
        grid-row: 2;
        width: 32px;
        height: 32px;
    }
    .kontakt_zamkniecie h2 {
        font-size: 34px;
    }
    .stopka_srodek {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
    .stopka_srodek>div {
        gap: 20px;
    }
}
@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    *,*:before,*:after {
        transition: none!important;
        animation: none!important;
    }
}
/* Final visual alignment and type scale. */
:root {
    --tlo_strony: #fff;
    --tlo_jasne: #f4f8f5;
}
.logo_grafika {
    display: block;
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: white;
    flex: none;
}
.logo {
    gap: 16px;
}
.logo_napis small {
    font-size: 12px;
    letter-spacing: .10em;
}
.logo_napis strong {
    font-size: 16px;
    line-height: 1.14;
}
.baner {
    background: #f8faf8;
}
.baner_tresc {
    width: min(850px,63%);
    padding-top: 104px;
}
.baner h1 {
    font-size: 68px;
    line-height: 1.1;
    letter-spacing: -.052em;
}
.baner_opis {
    font-size: 18px;
    line-height: 1.65;
}
.baner_przyciski {
    gap: 27px;
}
.przycisk,.link_tekstowy {
    font-size: 15px;
}
.baner_wydarzenie {
    width: 360px;
    cursor: pointer;
}
.baner_wydarzenie strong {
    font-size: 28px;
}
.wydarzenie_etykieta,.wydarzenie_stopka {
    font-size: 12px;
    letter-spacing: .07em;
}
.baner_podpis {
    font-size: 12px;
    color: #234432;
    text-shadow: none;
    max-width: 430px;
    line-height: 1.5;
    bottom: 22px;
}
.baner:after {
    display: none;
}
.czytaj_wyroznione {
    color: white;
    text-decoration: underline;
    text-underline-offset: 5px;
    font-size: 14px;
}
.sekcja_etykieta,.etykieta_banera {
    font-size: 12px;
    letter-spacing: .12em;
}
.aktualnosci_karta {
    min-height: 310px;
    gap: 26px;
    padding: 25px;
}
.etykieta {
    font-size: 12px;
    letter-spacing: .045em;
}
.aktualnosci_karta_tresc {
    gap: 15px;
    padding-right: 0;
}
.aktualnosci_karta_tresc>span {
    font-size: 16px;
    line-height: 1.6;
}
.czytaj_karte {
    color: var(--zielony);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
}
.aktualnosci_karta_wyrozniona .czytaj_karte {
    color: #e5f1e9;
}
.aktualnosci_karta_tresc strong {
    font-size: 25px;
    line-height: 1.22;
    letter-spacing: -.035em;
}
.o_collegium_zdjecie>span {
    font-size: 12px;
    line-height: 1.5;
    right: 15px;
}
.collegium_cechy p {
    font-size: 16px;
}
.cecha_numer {
    font-size: 14px;
}
.o_collegium_zdjecie {
    height: 585px;
}
.o_collegium_tresc h2 {
    font-size: 44px;
    line-height: 1.14;
}
.o_collegium {
    padding-top: 12px;
}
.baza_wiedzy {
    background: #f1f6f3;
}
.publikacja {
    min-height: 370px;
    gap: 0;
}
.publikacja p {
    font-size: 16px;
    line-height: 1.65;
}
.publikacja_meta {
    font-size: 12px;
    letter-spacing: .025em;
    line-height: 1.5;
    margin-bottom: 28px;
}
.publikacja_stopka {
    font-size: 14px;
    line-height: 1.5;
}
.publikacja strong {
    font-size: 24px;
    line-height: 1.24;
}
.baza_wiedzy_etykieta {
    font-size: 12px;
}
.baza_wiedzy_opis {
    font-size: 14px;
    line-height: 1.6;
}
.wydarzenie_wiersz {
    grid-template-columns: 165px 1fr 76px;
    gap: 30px;
}
.wydarzenie_szczegoly {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 5px;
    color: var(--zielony);
    font-weight: 700;
}
.wydarzenie_data small,.wydarzenie_opis small {
    font-size: 12px;
    letter-spacing: .07em;
}
.wydarzenie_opis>span {
    font-size: 16px;
}
.wydarzenie_data strong {
    font-size: 40px;
}
.kontakt_dane address,.kontakt_dane a {
    font-size: 16px;
}
.stopka_srodek {
    font-size: 13px;
    line-height: 1.7;
    padding-top: 17px;
    padding-bottom: 17px;
}
.stopka_srodek>div {
    gap: 25px;
}


.baner_logo {
    position: absolute;
    top: 20px;
    left: max(40px, calc((100% - var(--max_szerokosc)) / 2 + 40px));
    z-index: 5;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease, visibility .5s ease;
}

.baner_logo img {
    display: block;
    width: 114px;
    height: 114px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.baner.hero_otwarty .baner_logo {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
}

@media (max-width: 780px) {
    .baner_logo {
        top: 12px;
        left: 20px;
    }

    .baner_logo img {
        width: 56px;
        height: 56px;
    }
}

@media(max-width:1080px) {
    .baner_wydarzenie {
        width: 310px;
        right: 30px;
        bottom: 40px;
    }
    .baner h1 {
        font-size: 59px;
    }
    .logo {
        gap: 10px;
    }
    .logo_grafika {
        width: 64px;
        height: 64px;
    }
    .logo_napis strong {
        font-size: 14px;
    }
    .logo_napis small {
        font-size: 12px;
    }
    .menu {
        gap: 19px;
    }
    .menu>a:not(.menu_kontakt) {
        font-size: 14px;
    }
    .baner_tresc {
        width: 67%;
        padding-top: 90px;
    }
    .aktualnosci_lista,.baza_wiedzy_lista {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .aktualnosci_karta {
        padding: 21px;
    }
    .etykieta {
        font-size: 12px;
    }
    .aktualnosci_meta {
        flex-wrap: wrap;
    }
    .o_collegium {
        gap: 40px;
    }
    .o_collegium_tresc h2 {
        font-size: 39px;
    }
}
@media(max-width:900px) {
    .menu {
        gap: 14px;
    }
    .logo_grafika {
        width: 58px;
        height: 58px;
    }
    .logo_napis strong {
        font-size: 13px;
    }
    .logo_napis small {
        font-size: 12px;
    }
    .naglowek_srodek {
        gap: 14px;
    }
    .aktualnosci_karta_tresc strong {
        font-size: 22px;
    }
    .baner h1 {
        font-size: 55px;
    }
}
@media(max-width:780px) {
    .logo_grafika {
        width: 56px;
        height: 56px;
    }
    .logo_napis strong {
        font-size: 14px;
    }
    .logo_napis small {
        font-size: 12px;
    }
    .baner_tresc {
        width: 100%;
        padding: 52px 24px 43px;
    }
    .baner h1 {
        font-size: 58px;
    }
    .baner_wydarzenie {
        width: auto;
        right: auto;
        bottom: auto;
        margin: -35px 24px 20px;
    }
    .baner_zdjecie {
        height: 325px;
    }
    .baner_wydarzenie strong {
        font-size: 28px;
    }
    .baner_wydarzenie strong br {
        display: none;
    }
    .baner_wydarzenie strong {
        max-width: 400px;
    }
    .aktualnosci_lista,.baza_wiedzy_lista {
        grid-template-columns: 1fr;
    }
    .aktualnosci_karta {
        min-height: 245px;
        padding: 26px;
    }
    .aktualnosci_karta_tresc strong {
        font-size: 27px;
    }
    .o_collegium {
        padding-top: 0;
    }
    .o_collegium_zdjecie {
        height: 420px;
    }
    .o_collegium_tresc h2 {
        font-size: 40px;
    }
    .publikacja {
        min-height: 290px;
        padding: 28px;
    }
    .wydarzenie_wiersz {
        grid-template-columns: 110px 1fr 70px;
        gap: 20px;
    }
    .wydarzenie_data strong {
        font-size: 32px;
    }
    .stopka_srodek {
        flex-wrap: wrap;
    }
    .stopka_srodek>div {
        flex-wrap: wrap;
    }
    .stopka_srodek {
        min-height: 90px;
    }
}
@media(max-width:520px) {
    .baner h1 {
        font-size: 48px;
        letter-spacing: -.055em;
    }
    .etykieta_banera {
        font-size: 12px;
        line-height: 1.6;
        letter-spacing: .06em;
        align-items: flex-start;
    }
    .etykieta_banera_linia {
        flex: none;
        margin-top: 9px;
        width: 19px;
    }
    .baner_opis {
        font-size: 17px;
    }
    .baner_przyciski {
        gap: 24px;
        flex-wrap: wrap;
    }
    .link_tekstowy {
        font-size: 15px;
    }
    .baner_wydarzenie strong {
        font-size: 25px;
    }
    .wydarzenie_stopka {
        font-size: 12px;
        gap: 14px;
    }
    .baner_zdjecie {
        height: 275px;
    }
    .baner_wydarzenie {
        margin-left: 20px;
        margin-right: 20px;
    }
    .o_collegium_zdjecie {
        height: 340px;
    }
    .o_collegium_tresc h2 {
        font-size: 36px;
    }
    .wydarzenie_wiersz {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 26px 0;
    }
    .wydarzenie_data,.wydarzenie_opis,.wydarzenie_szczegoly {
        grid-column: auto;
    }
    .wydarzenie_opis strong {
        font-size: 24px;
    }
    .wydarzenie_szczegoly {
        justify-self: start;
        margin-top: 4px;
    }
    .kontakt_zamkniecie h2 {
        font-size: 35px;
    }
    .stopka_srodek>div {
        gap: 18px;
    }
    .baza_wiedzy_etykieta {
        line-height: 1.5;
    }
    .link_spokojny {
        white-space: normal;
        font-size: 14px;
    }
    .baner_wydarzenie strong br {
        display: block;
    }
}
.strona_zrodel {
    max-width: 1050px;
    padding-top: 75px;
    padding-bottom: 85px;
    font-size: 17px;
    line-height: 1.75;
}
.strona_zrodel h1 {
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -.04em;
    color: var(--zielony_ciemny);
    margin: 25px 0;
}
.strona_zrodel h2 {
    font-size: 26px;
    margin-top: 42px;
}
.strona_zrodel li {
    margin: 12px 0;
}
.strona_zrodel li a {
    color: var(--zielony);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.strona_zrodel .przycisk {
    margin-top: 25px;
}
@media(max-width:520px) {
    .strona_zrodel h1 {
        font-size: 36px;
    }
    .strona_zrodel {
        padding-top: 50px;
    }
    .strona_zrodel ul,.strona_zrodel ol {
        padding-left: 22px;
    }
    .strona_zrodel .logo_napis {
        display: none;
    }
}
.menu a,.stopka_srodek>div a {
    white-space: nowrap;
}
.wydarzenie_wiersz {
    padding: 30px 0;
}
.wydarzenie_opis {
    min-width: 0;
}
@media(max-width:520px) {
    .wydarzenie_wiersz {
        padding: 26px 0;
    }
    .stopka_srodek>div {
        gap: 14px 22px;
    }
}
/* Film w HERO: lokalna fotografia pozostaje widoczna do rozpoczęcia odtwarzania. */
.baner_zdjecie {
    overflow: hidden;
    background-image: url("images/collegium-simulation-room.webp");
}
.baner_zdjecie::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,#f8faf8 0%,#f8faf8 27%,rgba(248,250,248,.96) 34%,rgba(248,250,248,.76) 43%,rgba(248,250,248,.22) 58%,rgba(11,25,17,.03) 100%);
    pointer-events: none;
}
.baner_wideo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
}
.baner_wideo.ma_obraz {
    opacity: 1;
}
.baner_wideo iframe {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%,-50%);
    border: 0;
    pointer-events: none;
}
.baner_wideo_przyciski {
    position: absolute;
    z-index: 4;
    right: calc(var(--odstep_banera) + 56px);
    top: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.film_przycisk,.film_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid rgba(0,110,54,.2);
    border-radius: 7px;
    background: rgba(255,255,255,.96);
    color: var(--zielony_ciemny);
    font: 600 14px/1.4 "Segoe UI",Arial,sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.film_przycisk[hidden] {
    display: none;
}
.film_link {
    background: var(--zielony);
    border-color: var(--zielony);
    color: white;
}
.film_przycisk:hover {
    background: white;
}
.film_link:hover {
    background: var(--zielony_ciemny);
}
.baner_zdjecie {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.okno_filmu {
    width: min(1060px,94vw);
    max-width: 1060px;
    max-height: 94vh;
    overflow: auto;
    border: 0;
    padding: 0;
    border-radius: 12px;
    color: var(--kolor_tekstu);
    background: white;
    box-shadow: 0 25px 100px #0007;
}
.okno_filmu:not([open]) {
    display: none;
}
.okno_filmu::backdrop {
    background: rgba(5,20,13,.8);
}
.okno_filmu_naglowek {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
}
.okno_filmu_naglowek h2 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -.03em;
}
.film_zamknij {
    min-height: 44px;
    flex: none;
    background: #edf4ee;
    border: 1px solid #cfded2;
    border-radius: 6px;
    color: var(--zielony_ciemny);
    font-size: 14px;
    padding: 10px 14px;
    cursor: pointer;
}
.odtwarzacz_filmu {
    aspect-ratio: 16/9;
    min-height: 200px;
    background: #081a10;
}
.odtwarzacz_filmu iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: 0;
}
.okno_filmu_opis {
    margin: 0;
    padding: 15px 24px;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}
.okno_filmu_opis a {
    color: var(--zielony);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.film_otwarty {
    overflow: hidden;
}


/* OKNO Z WPISem */
.okno_trzymak {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 20, 13, .82);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.okno_trzymak.aktywne {
    display: flex;
}

body.okno_otwarte {
    overflow: hidden;
}

.okno_trzymak > .okno_wpis {
    display: flex;
    width: min(94vw, 1600px);
    height: min(86vh, 900px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .3);
}

.okno_wpis > .okno_zdjecie {
    position: relative;
    flex: 0 0 52%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #e9eee9;
}

.okno_zdjecie img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.okno_wpis > .okno_opis {
    position: relative;
    display: flex;
    flex: 1 1 48%;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 38px 0 30px 52px;
    background: #fff;
    color: #172721;
}

.okno_opis_tresc {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 48px 0 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: #26382e;
    font-size: 16px;
    line-height: 1.4;
    white-space: pre-line;
    scrollbar-width: thin;
    scrollbar-color: #9eb9a6 #edf3ef;
}
.okno_opis_tresc h2 {
    margin: auto;
    padding: 0;
    font-size: 24px;
    font-weight: bold;
    color: var(--zielony_ciemny);
}

.okno_opis_tresc_linia {
    clear: both;
    width: 100%;
    height: 1px;
    background-color: #9eb9a6;
    margin-top: 10px;
    margin-bottom: 10px;
}

.okno_opis_tresc::-webkit-scrollbar {
    width: 5px;
}

.okno_opis_tresc::-webkit-scrollbar-thumb {
    border-width: 1px;
}

.okno_opis_tresc::-webkit-scrollbar-thumb {
    border: 2px solid #edf3ef;
    border-radius: 10px;
    background: #9eb9a6;
}

.okno_opis_tresc::-webkit-scrollbar-thumb:hover {
    background: #006e36;
}

.okno_zamknij {
    position: absolute;
    z-index: 2;
    top: 5px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #dbe5df;
    border-radius: 50%;
    background: #f1f6f2;
    color: #053e2a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.okno_zamknij:hover {
    transform: rotate(90deg);
    border-color: #006e36;
    background: #006e36;
    color: #fff;
}

.okno_opis_tresc .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 48px;
    margin: 28px auto 0;
    padding: 12px 24px;
    border: 1px solid #006e36;
    border-radius: 7px;
    background: #006e36;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.okno_opis_tresc .button:hover {
    transform: translateY(-2px);
    border-color: #053e2a;
    background: #053e2a;
}

.okno_opis_tresc .button:focus-visible {
    outline: 3px solid #8dcba2;
    outline-offset: 3px;
}

.naglowek_strony {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 0 0 rgba(15, 45, 28, 0);
    transition: box-shadow .25s ease, background .25s ease;
}

.naglowek_strony.przewiniety {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 8px 24px rgba(15, 45, 28, .09);
}

.logo_grafika {
    transition: width .25s ease, height .25s ease;
}

.naglowek_strony.przewiniety .logo_grafika {
    width: 60px;
    height: 60px;
}

@media(prefers-reduced-motion:reduce) {
    .naglowek_strony,
    .logo_grafika {
        transition: none;
    }
}

@media(max-width:700px) {
    .okno_trzymak {
        padding: 12px;
    }

    .okno_trzymak > .okno_wpis {
        flex-direction: column;
        width: 100%;
        height: min(88vh, 760px);
        border-radius: 14px;
    }

    .okno_wpis > .okno_zdjecie {
        flex: 0 0 40%;
        width: 100%;
        height: 40%;
    }

    .okno_wpis > .okno_opis {
        flex: 1 1 60%;
        width: 100%;
        height: 60%;
        padding: 58px 0 20px 24px;
    }

    .okno_opis_tresc {
        padding-right: 24px;
        font-size: 16px;
        line-height: 1.65;
    }

    .okno_zamknij {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .okno_zamknij {
        transition: none;
    }
}



@media(max-width:1080px) {
    .baner_wideo_przyciski {
        right: 30px;
        top: 25px;
        max-width: 360px;
    }
    .film_przycisk,.film_link {
        padding: 10px 13px;
    }
}
@media(max-width:780px) {
    .baner_zdjecie::after {
        background: transparent;
    }
    .baner_wideo_przyciski {
        position: relative;
        order: 3;
        right: auto;
        top: auto;
        max-width: none;
        margin: 18px 24px 38px;
        justify-content: flex-start;
    }
    .baner_wydarzenie {
        order: 4;
    }
    .baner_podpis {
        display: none;
    }
}
@media(max-width:520px) {
    .baner_wideo_przyciski {
        gap: 10px;
        margin: 18px 20px 36px;
    }
    .film_przycisk,.film_link {
        font-size: 14px;
    }
    .okno_filmu_naglowek {
        padding: 14px 16px;
        gap: 10px;
    }
    .okno_filmu_naglowek h2 {
        font-size: 18px;
    }
    .film_zamknij {
        padding: 9px 11px;
    }
    .okno_filmu_opis {
        padding: 12px 16px;
    }
    .odtwarzacz_filmu {
        aspect-ratio: 16/9;
        min-height: 200px;
    }
}


/* Animacje i mikrointerakcje strony Collegium Orthopaedicum. */
:root {
    --czas_animacji: .72s;
    --krzywa_animacji: cubic-bezier(.2,.75,.25,1);
    --zielony_animacji: #006e36;
}

html {
    scroll-padding-top: 110px;
}

/* Elementy pojawiają się dopiero po aktywowaniu skryptu. */
html.animacje_aktywne .animacja_wejscia {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity var(--czas_animacji) var(--krzywa_animacji), transform var(--czas_animacji) var(--krzywa_animacji);
    transition-delay: var(--opoznienie-animacji, 0ms);
    will-change: opacity, transform;
}

html.animacje_aktywne .animacja_wejscia.animacja_z_lewej {
    transform: translate3d(-34px, 0, 0);
}

html.animacje_aktywne .animacja_wejscia.animacja_z_prawej {
    transform: translate3d(34px, 0, 0);
}

html.animacje_aktywne .animacja_wejscia.animacja_widoczna {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

/* Hero dostaje krótką sekwencję wejścia od razu po załadowaniu strony. */
html.animacje_aktywne .baner_tresc > * {
    opacity: 0;
    animation: baner_wejscie .8s var(--krzywa_animacji) both;
    animation-delay: var(--opoznienie_banera, 0ms);
}

html.animacje_aktywne .baner_tresc > :nth-child(1) { --opoznienie_banera: .08s; }
html.animacje_aktywne .baner_tresc > :nth-child(2) { --opoznienie_banera: .18s; }
html.animacje_aktywne .baner_tresc > :nth-child(3) { --opoznienie_banera: .30s; }
html.animacje_aktywne .baner_tresc > :nth-child(4) { --opoznienie_banera: .42s; }

@keyframes baner_wejscie {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Nagłówki sekcji z subtelnym akcentem, który rysuje się przy wejściu. */
.sekcja_etykieta {
    transition: color .25s ease;
}

.sekcja_etykieta::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7db48c;
    box-shadow: 0 0 0 4px rgba(0, 110, 54, .08);
    flex: none;
}

.sekcja_naglowek h2,
.baza_wiedzy_naglowek h2,
.o_collegium_tresc h2 {
    position: relative;
    width: fit-content;
    max-width: 100%;
}

.sekcja_naglowek h2::after,
.baza_wiedzy_naglowek h2::after,
.o_collegium_tresc h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--zielony), #a9d2b4);
    transform: scaleX(.45);
    transform-origin: left center;
    transition: transform .55s var(--krzywa_animacji);
}

.sekcja_naglowek h2.animacja_widoczna::after,
.baza_wiedzy_naglowek h2.animacja_widoczna::after,
.o_collegium_tresc h2.animacja_widoczna::after {
    transform: scaleX(1);
}

/* Karty zyskują głębię i wyraźny stan interaktywny bez gwałtownych ruchów. */
.aktualnosci_karta,
.publikacja {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform .38s var(--krzywa_animacji), box-shadow .38s ease, border-color .3s ease;
}

.aktualnosci_karta::before,
.publikacja::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #006e36, #9acba5, transparent 88%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--krzywa_animacji);
    pointer-events: none;
}

.aktualnosci_karta:hover,
.aktualnosci_karta:focus-within,
.publikacja:hover,
.publikacja:focus-within {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(14, 55, 31, .13);
    border-color: #b8d2bf;
}

.aktualnosci_karta:hover::before,
.aktualnosci_karta:focus-within::before,
.publikacja:hover::before,
.publikacja:focus-within::before {
    transform: scaleX(1);
}

.aktualnosci_karta_wyrozniona::before {
    background: linear-gradient(90deg, #a9d9b2, #d8f0db, transparent 88%);
}

.aktualnosci_strzalka,
.publikacja_stopka span,
.wydarzenie_wiersz_strzalka,
.przycisk span,
.menu_kontakt span {
    transition: transform .3s var(--krzywa_animacji), color .25s ease, background-color .25s ease;
}

.aktualnosci_karta:hover .aktualnosci_strzalka,
.aktualnosci_karta:focus-within .aktualnosci_strzalka,
.publikacja:hover .publikacja_stopka span,
.publikacja:focus-within .publikacja_stopka span,
.wydarzenie_wiersz:hover .wydarzenie_wiersz_strzalka {
    transform: translateX(5px);
}

.o_collegium_zdjecie {
    box-shadow: 0 18px 48px rgba(19, 54, 34, .10);
}

.o_collegium_zdjecie img {
    transition: transform .9s var(--krzywa_animacji), filter .7s ease;
}

.o_collegium_zdjecie:hover img {
    transform: scale(1.035);
    filter: saturate(1.05);
}

.collegium_cechy > div {
    transition: padding-left .3s ease, border-color .3s ease;
}

.collegium_cechy > div:hover {
    padding-left: 8px;
    border-color: #8eb99a;
}

.cecha_numer {
    transition: color .25s ease, transform .3s var(--krzywa_animacji);
}

.collegium_cechy > div:hover .cecha_numer {
    color: #064d2d;
    transform: scale(1.08);
}

.wydarzenie_wiersz {
    position: relative;
    transition: background .3s ease, padding .3s ease;
}

.wydarzenie_wiersz:hover {
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(231, 242, 233, .8), rgba(255, 255, 255, 0));
}

.wydarzenie_wiersz_strzalka {
    transition: transform .3s var(--krzywa_animacji), color .25s ease, background .25s ease, border-color .25s ease;
}

.wydarzenie_wiersz:hover .wydarzenie_wiersz_strzalka {
    color: #fff;
    background: var(--zielony);
    border-color: var(--zielony);
}

.przycisk_glowny,
.menu_kontakt {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: background .25s ease, box-shadow .3s ease, transform .3s var(--krzywa_animacji);
}

.przycisk_glowny::before,
.menu_kontakt::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.2) 48%, transparent 72%);
    transform: translateX(-120%);
    transition: transform .65s ease;
}

.przycisk_glowny:hover,
.przycisk_glowny:focus-visible,
.menu_kontakt:hover,
.menu_kontakt:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(0, 82, 43, .22);
}

.przycisk_glowny:hover::before,
.przycisk_glowny:focus-visible::before,
.menu_kontakt:hover::before,
.menu_kontakt:focus-visible::before {
    transform: translateX(120%);
}

.link_tekstowy,
.link_spokojny,
.menu > a:not(.menu_kontakt) {
    transition: color .25s ease;
}
.menu > a.menu_kontakt:hover,
.menu > a.menu_kontakt:focus-visible {
    color: #fff;
}

.link_spokojny {
    position: relative;
    transition: color .25s ease, border-color .25s ease;
}

.link_spokojny:hover {
    color: #063f26;
    border-color: var(--zielony);
}

.menu > a:not(.menu_kontakt) {
    position: relative;
}

.menu > a:not(.menu_kontakt)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background: var(--zielony);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .28s var(--krzywa_animacji);
}

.menu > a:not(.menu_kontakt):hover::after,
.menu > a:not(.menu_kontakt):focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.naglowek_strony {
    transition: box-shadow .35s ease, background .35s ease;
}

.naglowek_strony.przewiniety {
    box-shadow: 0 10px 30px rgba(15, 45, 28, .11);
}

@media (hover: none), (pointer: coarse) {
    .aktualnosci_karta:hover,
    .publikacja:hover {
        transform: none;
    }

    .aktualnosci_karta:hover::before,
    .publikacja:hover::before {
        transform: scaleX(0);
    }

    .aktualnosci_karta:hover .aktualnosci_strzalka,
    .publikacja:hover .publikacja_stopka span,
    .wydarzenie_wiersz:hover .wydarzenie_wiersz_strzalka {
        transform: none;
    }

    .o_collegium_zdjecie:hover img {
        transform: none;
        filter: none;
    }

    .wydarzenie_wiersz:hover {
        padding-left: 0;
        background: transparent;
    }

    .collegium_cechy > div:hover {
        padding-left: 0;
    }
}

@media (max-width: 780px) {
    html { scroll-padding-top: 82px; }

    html.animacje_aktywne .animacja_wejscia,
    html.animacje_aktywne .animacja_wejscia.animacja_z_lewej,
    html.animacje_aktywne .animacja_wejscia.animacja_z_prawej {
        transform: translate3d(0, 18px, 0);
    }

    html.animacje_aktywne .animacja_wejscia.animacja_widoczna {
        transform: translate3d(0, 0, 0);
    }

    .sekcja_naglowek h2::after,
    .baza_wiedzy_naglowek h2::after,
    .o_collegium_tresc h2::after {
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    html.animacje_aktywne .animacja_wejscia,
    html.animacje_aktywne .baner_tresc > * {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .sekcja_naglowek h2::after,
    .baza_wiedzy_naglowek h2::after,
    .o_collegium_tresc h2::after {
        transform: none;
        transition: none;
    }
}


/* Wejście i wyjście okna wpisu. */
.okno_trzymak {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(5, 20, 12, 0);
    transition: opacity 1s cubic-bezier(.65, 0, .35, 1), background-color 1s cubic-bezier(.65, 0, .35, 1), visibility 0s linear 1s;
}

.okno_trzymak.aktywne {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background: rgba(5, 20, 12, .78);
    transition: opacity 1s cubic-bezier(.65, 0, .35, 1), background-color 1s cubic-bezier(.65, 0, .35, 1), visibility 0s;
}

.okno_trzymak > .okno_wpis {
    opacity: 0;
    transform: scale(.12);
    transform-origin: center;
    transition: opacity 1s cubic-bezier(.65, 0, .35, 1), transform 1s cubic-bezier(.65, 0, .35, 1), box-shadow 1s cubic-bezier(.65, 0, .35, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .16);
}

.okno_trzymak.aktywne:not(.zamykanie) > .okno_wpis {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 35px 100px rgba(0, 0, 0, .34);
}

.okno_trzymak.aktywne.otwieranie_wpisu:not(.zamykanie) > .okno_wpis {
    opacity: 0;
    transform: scale(.12);
    transition: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .16);
}

.okno_trzymak.zamykanie {
    visibility: visible;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s cubic-bezier(.65, 0, .35, 1), background-color 1s cubic-bezier(.65, 0, .35, 1), visibility 0s linear 1s;
}

.okno_trzymak.zamykanie > .okno_wpis {
    opacity: 0;
    transform: scale(.08);
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(.65, 0, .35, 1);
}

.okno_trzymak:not(.tresc_gotowa):not(.blad_ladowania) > .okno_wpis {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    color: #456050;
    font-size: 15px;
    font-weight: 650;
}

.okno_trzymak:not(.tresc_gotowa):not(.blad_ladowania) > .okno_wpis::before {
    content: "";
    width: 38px;
    height: 38px;
    border: 3px solid #dce9df;
    border-top-color: var(--zielony);
    border-radius: 50%;
    animation: okno_krecenie .8s linear infinite;
}

@keyframes okno_krecenie {
    to { transform: rotate(360deg); }
}

.okno_trzymak.aktywne .okno_zdjecie img {
    animation: okno_zdjecie_wejscie .75s cubic-bezier(.2, .75, .25, 1) both;
}

.okno_trzymak.aktywne .okno_opis {
    animation: okno_tresc_wejscie .58s .12s cubic-bezier(.2, .75, .25, 1) both;
}

.okno_trzymak.aktywne .okno_zamknij {
    animation: okno_przycisk_wejscie .4s .26s cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes okno_zdjecie_wejscie {
    from { opacity: .45; transform: scale(1.045) translateX(-14px); }
    to { opacity: 1; transform: scale(1) translateX(0); }
}

@keyframes okno_tresc_wejscie {
    from { opacity: 0; transform: translate3d(18px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes okno_przycisk_wejscie {
    from { opacity: 0; transform: scale(.72) rotate(-45deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.logo_partner {
    width: 100%;
    max-width: 300px;
    margin: 15px;
}
.do_srodka {
    text-align: center;
}
.do_srodka img {
    display: inline-block;
}
.tlo_partnerzy {
    padding-bottom: 30px;
}

@media (max-width: 700px) {
    .okno_trzymak {
        padding: 12px;
    }

    .okno_trzymak > .okno_wpis {
        transform: scale(.12);
    }

    .okno_trzymak.zamykanie > .okno_wpis {
        transform: scale(.08);
    }
}

@media (max-width: 700px) {
    .okno_trzymak > .okno_wpis {
        position: relative;
    }

    .okno_wpis > .okno_opis {
        position: static;
    }

    .okno_zamknij {
        top: 14px;
        right: 14px;
        z-index: 5;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 5px 18px rgba(8, 35, 20, .18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .okno_trzymak,
    .okno_trzymak > .okno_wpis {
        transition-duration: .01ms;
        transition-delay: 0s;
    }

    .okno_trzymak.aktywne .okno_zdjecie img,
    .okno_trzymak.aktywne .okno_opis,
    .okno_trzymak.aktywne .okno_zamknij,
    .okno_trzymak:not(.tresc_gotowa):not(.blad_ladowania) > .okno_wpis::before {
        animation: none;
    }
}

/* Hero odsłaniane po najechaniu na czerwony przycisk */
.baner {
    min-height: 629px;
    isolation: isolate;
}

.baner_zdjecie::after {
    opacity: 0;
    transition: opacity .55s ease;
}

.baner_tresc {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity .45s ease, transform .45s ease, visibility .45s;
}

.baner_wydarzenie {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .45s ease, transform .45s ease, visibility .45s;
}

.baner .baner_aktywator {
    position: absolute;
    z-index: 5;
    left: max(24px, calc((100% - var(--max_szerokosc)) / 2 + 68px));
    bottom: 14px;
    width: max-content !important;
    max-width: calc(100% - 40px);
    min-width: 0;
    min-height: 56px;
    padding: 0 16px;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px;
    border: 0;
    border-radius: 15px;
    background-color: var(--zielony);
    color: #fff;
    font: 700 14px/1.2 "Aptos", "Segoe UI", Arial, sans-serif;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, opacity .3s ease;
}

.baner .baner_aktywator:hover,
.baner .baner_aktywator:focus-visible {
    background-color: var(--zielony_ciemny);
}

.baner .baner_aktywator:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.baner .baner_aktywator_napis {
    display: inline-block;
    flex: 0 0 auto;
    white-space: nowrap;
}

.baner .baner_aktywator_strzalka {
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0;
    font-size: 30px;
    line-height: 1;
    vertical-align: middle;
    transform: none !important;
    padding-bottom: 10px;
}

@media (max-width: 780px) {
    .baner .baner_aktywator {
        display: none !important;
    }
}

.baner.hero_otwarty .baner_zdjecie::after {
    opacity: 1;
}

.baner.hero_otwarty .baner_tresc,
.baner.hero_otwarty .baner_wydarzenie {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.baner.hero_otwarty .baner_aktywator {
    opacity: 0;
    pointer-events: none;
}

/* Nadpisanie wcześniejszej animacji tekstu uruchamianej przy ładowaniu */
html.animacje_aktywne .baner_tresc > * {
    opacity: 1;
    animation: none;
}

@media (max-width: 780px) {
    .baner {
        min-height: calc(30svh - 78px);
        height: 200px;
        padding: 0;
        display: block;
        background: #eef3ee;
    }

    .baner_zdjecie {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .baner_zdjecie::after {
        background: linear-gradient(
            90deg,
            rgba(248, 250, 248, .97) 0%,
            rgba(248, 250, 248, .88) 60%,
            rgba(248, 250, 248, .5) 100%
        );
    }

    .baner_tresc {
        position: relative;
        z-index: 2;
        width: 100%;
        min-height: calc(100svh - 78px);
        padding: 55px 24px 140px;
        background: transparent;
    }

    .baner_wydarzenie {
        z-index: 3;
        position: absolute;
        right: 18px;
        bottom: 120px;
        width: min(370px, calc(100% - 36px));
        margin: 0;
    }

    .baner_aktywator {
        position: absolute;
        left: 20px;
        bottom: 20px;
        width: calc(100% - 40px);
        min-height: 64px;
        padding: 0 20px;
    }

    .baner.hero_otwarty .baner_aktywator {
        opacity: 1;
        pointer-events: auto;
    }

    .baner_podpis {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .baner_zdjecie::after,
    .baner_tresc,
    .baner_wydarzenie,
    .baner_aktywator {
        transition: none;
    }
}

/* Pasek nawigacji: hamburger i kontakt na filmie, pełny nagłówek po przewinięciu. */
.naglowek_strony {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 99px;
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    pointer-events: none;
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.naglowek_srodek {
    pointer-events: none;
}

.naglowek_strony:not(.przewiniety) .logo,
.naglowek_strony:not(.przewiniety) .menu {
    display: none;
}

.naglowek_strony:not(.przewiniety) .naglowek_srodek {
    justify-content: flex-end;
}

.naglowek_strony:not(.przewiniety) .menu_przycisk {
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 7px;
    background: rgba(5, 30, 18, .48);
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .2s ease, transform .2s ease;
}

.naglowek_strony:not(.przewiniety) .menu_przycisk span {
    width: 21px;
    height: 2px;
    display: block;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
}

.naglowek_strony:not(.przewiniety) .menu_przycisk:hover,
.naglowek_strony:not(.przewiniety) .menu_przycisk:focus-visible {
    background: var(--zielony);
    transform: translateY(-2px);
}

.naglowek_strony:not(.przewiniety) .menu_przycisk[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.naglowek_strony:not(.przewiniety) .menu_przycisk[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.naglowek_strony:not(.przewiniety) .menu_przycisk[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.naglowek_strony.przewiniety {
    background: rgba(255, 255, 255, .98);
    border-bottom-color: #e7ede8;
    box-shadow: 0 8px 24px rgba(15, 45, 28, .09);
    pointer-events: auto;
}

.naglowek_strony.przewiniety .naglowek_srodek,
.naglowek_strony.przewiniety .logo,
.naglowek_strony.przewiniety .menu {
    pointer-events: auto;
}

.naglowek_strony.przewiniety .menu_przycisk {
    display: none;
}

.naglowek_strony:not(.przewiniety) .menu.otwarte {
    position: absolute;
    top: 82px;
    right: 40px;
    z-index: 1002;
    width: min(320px, calc(100vw - 40px));
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid #e2ebe4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(0, 25, 12, .24);
    pointer-events: auto;
}

.naglowek_strony:not(.przewiniety) .menu.otwarte > a:not(.menu_kontakt) {
    padding: 13px 12px;
    color: #304439;
    font-size: 14px;
}

.naglowek_strony:not(.przewiniety) .menu.otwarte .menu_kontakt {
    margin-top: 7px;
}

.baner_telefon {
    position: absolute;
    z-index: 1001;
    top: 26px;
    right: max(98px, calc((100% - var(--max_szerokosc)) / 2 + 98px));
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 7px;
    background: rgba(5, 30, 18, .48);
    color: #fff;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .2s ease, transform .2s ease;
}

.baner_telefon:hover,
.baner_telefon:focus-visible {
    background: var(--zielony);
    transform: translateY(-2px);
}

.baner_telefon svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
    margin-top: 4px;
}

@media (max-width: 780px) {
    .naglowek_strony {
        height: 78px;
    }

    .naglowek_strony.przewiniety .menu_przycisk {
        display: flex;
    }

    .naglowek_srodek {
        padding: 0 20px;
    }

    .naglowek_strony:not(.przewiniety) .menu_przycisk {
        width: 42px;
        height: 42px;
    }

    .naglowek_strony:not(.przewiniety) .menu.otwarte {
        top: 70px;
        right: 20px;
        width: min(320px, calc(100vw - 40px));
    }

    .baner_telefon {
        top: 18px;
        right: 72px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .naglowek_strony,
    .menu_przycisk span,
    .baner_telefon {
        transition: none;
    }
}

.flaga_link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 23px;
    line-height: 0;
    pointer-events: auto;
    z-index: 1002;
}

.flaga_uk {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    opacity: .82;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .16);
    transition: opacity .2s ease, transform .2s ease;
}

.flaga_link:hover .flaga_uk {
    opacity: 1;
    transform: translateY(-1px);
}

/* Pozycja flagi przed telefonem na hero */
.naglowek_strony:not(.przewiniety) .flaga_link {
    position: absolute;
    top: 36px;
    right: max(152px, calc((100% - var(--max_szerokosc)) / 2 + 152px));
}

/* Po przewinięciu flaga układa się za przyciskiem Kontakt */
.naglowek_strony.przewiniety .flaga_link {
    position: static;
    margin-left: -20px;
}

@media (max-width: 780px) {
    .flaga_link {
        flex-basis: 30px;
        width: 30px;
        height: 20px;
    }

    .naglowek_strony:not(.przewiniety) .flaga_link {
        top: 29px;
        right: 132px;
    }

    .naglowek_strony.przewiniety .flaga_link {
        margin-left: 0;
    }
}.flaga_link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 23px;
    line-height: 0;
    pointer-events: auto;
    z-index: 1002;
}

.flaga_uk {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    opacity: .82;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .16);
    transition: opacity .2s ease, transform .2s ease;
}

.flaga_link:hover .flaga_uk {
    opacity: 1;
    transform: translateY(-1px);
}

/* Pozycja flagi przed telefonem na hero */
.naglowek_strony:not(.przewiniety) .flaga_link {
    position: absolute;
    top: 36px;
    right: max(152px, calc((100% - var(--max_szerokosc)) / 2 + 152px));
}

/* Po przewinięciu flaga układa się za przyciskiem Kontakt */
.naglowek_strony.przewiniety .flaga_link {
    position: static;
    margin-left: -20px;
}

@media (max-width: 780px) {
    .flaga_link {
        flex-basis: 30px;
        width: 30px;
        height: 20px;
    }

    .naglowek_strony:not(.przewiniety) .flaga_link {
        top: 29px;
        right: 132px;
    }

    .naglowek_strony.przewiniety .flaga_link {
        margin-left: 0;
    }
    .baner_autor {
        right: 10px;
        bottom: 10px;
        font-size: 9px;
        color: #FFF;
    }    
}
