@font-face { font-family: Ubuntu; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/ubuntu-300-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/ubuntu-300-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ubuntu-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ubuntu-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ubuntu-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ubuntu-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ubuntu-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ubuntu-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --granat: #1f3485;
    --granat-ciemny: #142259;
    --niebieski: #79a0d4;
    --pomarancz: #ff9900;
    --pomarancz-ciemny: #e07f00;
    --tekst: #3d4250;
    --tekst-slaby: #6b7080;
    --tlo: #f4f6fa;
    --karta: #ffffff;
    --linia: #e2e6ef;
    --cien: 0 1px 2px rgb(20 34 89 / .06), 0 8px 24px rgb(20 34 89 / .08);
    --promien: 12px;
    --szer: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font: 400 17px/1.7 Ubuntu, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--tekst);
    background: var(--tlo);
}
img { max-width: 100%; height: auto; }
a { color: var(--granat); text-decoration-color: rgb(31 52 133 / .35); text-underline-offset: 3px; }
a:hover { color: var(--pomarancz-ciemny); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--pomarancz); outline-offset: 2px; border-radius: 4px; }
.szer { width: min(100% - 32px, var(--szer)); margin-inline: auto; }
.sr, .pomin:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pomin:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* pasek górny */
.pasek-gorny { background: var(--granat-ciemny); color: #c9d3f0; font-size: 13px; }
.pasek-gorny .szer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.pasek-gorny p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spolecznosci { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.spolecznosci a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #c9d3f0; }
.spolecznosci a:hover { background: rgb(255 255 255 / .1); color: #fff; }
.spolecznosci svg { width: 16px; height: 16px; fill: currentColor; }

/* nagłówek i menu */
.naglowek { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linia); }
.naglowek .szer { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.logo img { display: block; width: 240px; height: auto; }
.menu > ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu li { position: relative; list-style: none; }
.menu > ul > li > a, .menu > ul > li > button {
    display: block; padding: 10px 16px; border: 0; background: none; border-radius: 8px; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; color: var(--granat); text-decoration: none;
}
.menu > ul > li > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.menu > ul > li:hover > a, .menu > ul > li:hover > button, .menu > ul > li.aktywna > a, .menu > ul > li.aktywna > button { background: var(--tlo); }
.menu > ul > li.aktywna > a, .menu > ul > li.aktywna > button { box-shadow: inset 0 -3px 0 var(--pomarancz); }
.menu ul ul {
    position: absolute; top: 100%; left: 0; min-width: 270px; margin: 0; padding: 8px; background: #fff;
    border: 1px solid var(--linia); border-radius: var(--promien); box-shadow: var(--cien);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.menu li:hover > ul, .menu li:focus-within > ul, .menu li.otwarte > ul { opacity: 1; visibility: visible; transform: none; }
.menu ul ul a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; line-height: 1.4; color: var(--tekst); text-decoration: none; }
.menu ul ul a:hover, .menu ul ul li.aktywna > a { background: var(--tlo); color: var(--granat); }
.menu ul ul ul { position: static; min-width: 0; padding: 0 0 4px 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
.menu ul ul ul a { font-size: 14px; color: var(--tekst-slaby); }
.menu-przelacz { display: none; }

/* baner */
.baner { position: relative; display: grid; min-height: 240px; overflow: hidden; background: linear-gradient(120deg, var(--granat-ciemny), var(--granat) 60%, #3b5bb5); color: #fff; }
.baner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.baner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 34 89 / .35), rgb(20 34 89 / .78)); }
.baner-bez-zdjecia::after { display: none; }
.baner-tekst { position: relative; z-index: 1; align-self: end; padding-block: 56px 28px; }
.baner h1 { margin: 0; font-size: clamp(30px, 4.5vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 12px rgb(0 0 0 / .25); }
.okruszki ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: #dbe3fa; }
.okruszki li + li::before { content: "›"; margin: 0 10px; opacity: .7; }
.okruszki a { color: #fff; }

/* układ */
.uklad { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; padding-block: 40px 64px; }
.uklad.bez-boku { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.tresc { order: 2; min-width: 0; padding: clamp(24px, 4vw, 48px); background: var(--karta); border-radius: var(--promien); box-shadow: var(--cien); }
.bok { order: 1; display: flex; flex-direction: column; gap: 24px; }
.tresc > :first-child { margin-top: 0; }
.tresc h2 { margin: 1.6em 0 .6em; font-size: 24px; font-weight: 500; line-height: 1.3; color: var(--granat); }
.tresc h3 { margin: 1.6em 0 .6em; font-size: 19px; font-weight: 500; color: var(--granat); }
.tresc p, .tresc ul, .tresc ol { margin: 0 0 1em; }
.tresc img { border-radius: 8px; }
.tresc table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.tresc td, .tresc th { padding: 8px 10px; border-bottom: 1px solid var(--linia); vertical-align: top; }
.tresc iframe { max-width: 100%; border: 0; border-radius: 8px; }

/* boczne kafelki „Zobacz również” */
.bok h2 { margin: 0 0 14px; font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--granat); }
.bok h2::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--pomarancz); }
.zobacz ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.zobacz a { position: relative; display: grid; place-items: end start; aspect-ratio: 2.2; overflow: hidden; border-radius: 10px; color: #fff; text-decoration: none; background: var(--granat); }
.zobacz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.75); transition: filter .25s, transform .4s; }
.zobacz a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(20 34 89 / .85), transparent 70%); }
.zobacz span { position: relative; z-index: 1; padding: 12px 14px; font-weight: 500; font-size: 15px; line-height: 1.3; }
.zobacz a:hover img, .zobacz .biezaca img { filter: none; transform: scale(1.04); }
.zobacz .biezaca a { box-shadow: 0 0 0 3px var(--pomarancz); }
.blok-boczny { padding: 22px; background: var(--karta); border-radius: var(--promien); box-shadow: var(--cien); font-size: 15px; line-height: 1.6; }
.blok-boczny h3 { margin: 0 0 6px; font-size: 16px; color: var(--granat); }
.blok-boczny p { margin: 0 0 16px; overflow-wrap: anywhere; }

/* galerie */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 1.5em; }
.galeria a { display: block; overflow: hidden; border-radius: 8px; border: 1px solid var(--linia); background: #fff; }
.galeria img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; transition: transform .3s; }
.galeria a:hover img { transform: scale(1.04); }
.podglad { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgb(10 16 40 / .92); }
.podglad[hidden] { display: none; }
.podglad img { grid-column: 2; max-height: 90vh; margin: auto; border-radius: 6px; box-shadow: 0 10px 40px rgb(0 0 0 / .5); }
.podglad button { border: 0; background: none; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 12px; }
.podglad-zamknij { position: absolute; top: 8px; right: 12px; }

/* aktualności */
.zajawka { padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--linia); display: flow-root; }
.zajawka:last-child { border-bottom: 0; margin-bottom: 0; }
.zajawka header h2 { margin: 0 0 2px; }
.zajawka header h2 a { text-decoration: none; }
.tresc time { color: var(--tekst-slaby); font-size: 14px; }
.zajawka img { float: right; width: 180px; margin: 0 0 12px 20px; }
.tagi { display: flex; flex-wrap: wrap; gap: 6px; }
.tagi a { padding: 2px 10px; border-radius: 99px; background: var(--tlo); font-size: 13px; text-decoration: none; }

/* formularz */
.formularz { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 8px 0 24px; }
.pole { display: flex; flex-direction: column; gap: 6px; }
.pelne { grid-column: 1 / -1; }
.pole label { font-weight: 500; font-size: 15px; color: var(--granat); }
.wymagane { color: var(--pomarancz-ciemny); }
.formularz input, .formularz select, .formularz textarea {
    width: 100%; padding: 11px 14px; border: 1px solid #cbd2e0; border-radius: 10px; background: #fff;
    font: inherit; font-size: 16px; color: var(--tekst); transition: border-color .15s, box-shadow .15s;
}
.formularz input:focus, .formularz select:focus, .formularz textarea:focus { outline: none; border-color: var(--granat); box-shadow: 0 0 0 4px rgb(31 52 133 / .12); }
.formularz .input-validation-error { border-color: #c62828; }
.blad-pola { color: #c62828; font-size: 14px; }
.pole-pulapka { position: absolute; left: -9999px; }
.przycisk { padding: 12px 32px; border: 0; border-radius: 10px; background: var(--pomarancz); color: #1d1300; font: inherit; font-weight: 500; cursor: pointer; transition: background .15s, transform .1s; }
.przycisk:hover { background: var(--pomarancz-ciemny); }
.przycisk:active { transform: translateY(1px); }
.komunikat { padding: 14px 18px; margin-bottom: 16px; border-radius: 10px; }
.komunikat.sukces { background: #e8f5e9; color: #1b5e20; }
.komunikat.blad { background: #fdecea; color: #8e1c1c; }

/* stopka */
.stopka { background: var(--granat-ciemny); color: #c9d3f0; font-size: 15px; }
.stopka .kolumny { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 48px; }
.stopka h2 { margin: 0 0 12px; font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.stopka p { margin: 0 0 12px; }
.stopka a { color: #fff; }
.stopka em { color: #9fb0e0; }
.stopka-linki ul { margin: 0; padding: 0; list-style: none; }
.stopka-linki li { margin-bottom: 6px; }
.prawa { border-top: 1px solid rgb(255 255 255 / .1); padding-block: 16px; font-size: 13px; color: #8f9cc8; }

.cookies { position: fixed; inset: auto 16px 16px; z-index: 60; max-width: 760px; margin-inline: auto; display: flex;
    align-items: center; gap: 16px 24px; padding: 16px 20px; background: var(--granat-ciemny); color: #e6ebf8;
    border-radius: var(--promien); box-shadow: 0 8px 32px rgb(0 0 0 / .25); font-size: 15px; }
.cookies[hidden] { display: none; }
.cookies p { margin: 0; flex: 1; }
.cookies a { color: #fff; }
.cookies-przyciski { flex: none; display: flex; gap: 10px; }
.cookies-przyciski button { flex: 1; padding: 10px 18px; border: 2px solid var(--pomarancz); border-radius: 8px; font: inherit;
    font-weight: 500; cursor: pointer; white-space: nowrap; }
.cookies-tak { background: var(--pomarancz); color: #1b1b1b; }
.cookies-tak:hover, .cookies-tak:focus-visible { background: var(--pomarancz-ciemny); border-color: var(--pomarancz-ciemny); }
.cookies-nie { background: transparent; color: #fff; }
.cookies-nie:hover, .cookies-nie:focus-visible { background: rgb(255 255 255 / .1); }
.prawa a, .cookies-ustawienia { color: inherit; }
.cookies-ustawienia { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 980px) {
    .menu-przelacz {
        display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--tlo); cursor: pointer;
    }
    .menu-przelacz span:first-child, .menu-przelacz span:first-child::before, .menu-przelacz span:first-child::after {
        content: ""; display: block; width: 20px; height: 2px; background: var(--granat); border-radius: 2px; position: relative; transition: .2s;
    }
    .menu-przelacz span:first-child::before { position: absolute; top: -6px; }
    .menu-przelacz span:first-child::after { position: absolute; top: 6px; }
    .menu-przelacz[aria-expanded="true"] span:first-child { background: transparent; }
    .menu-przelacz[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
    .menu-przelacz[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }
    .menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 76px); overflow: auto; background: #fff; border-bottom: 1px solid var(--linia); box-shadow: var(--cien); display: none; }
    .menu.otwarte { display: block; }
    .menu > ul { flex-direction: column; padding: 8px 16px 16px; }
    .menu > ul > li > a, .menu > ul > li > button { width: 100%; text-align: left; padding: 14px 8px; }
    .menu ul ul { position: static; display: none; min-width: 0; padding: 0 0 8px 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .menu li.otwarte > ul, .menu ul ul ul { display: block; }
    .menu li:hover > ul { display: none; }
    .menu li.otwarte:hover > ul, .menu ul ul li:hover > ul { display: block; }
    .uklad { grid-template-columns: minmax(0, 1fr); }
    .tresc { order: 1; }
    .bok { order: 2; }
    .zobacz ul { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .stopka .kolumny { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .pasek-gorny p { display: none; }
    .pasek-gorny .szer { justify-content: flex-end; }
    .logo img { width: 190px; }
    .baner { min-height: 180px; }
    .baner-tekst { padding-block: 40px 20px; }
    .uklad { padding-block: 20px 40px; gap: 20px; }
    .formularz { grid-template-columns: 1fr; }
    .zajawka img { float: none; width: 100%; margin: 0 0 12px; }
    .stopka .kolumny { grid-template-columns: 1fr; }
    .cookies { flex-direction: column; align-items: stretch; inset: auto 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
