/* =====================================================================
   Українці в Польщі — czysty statyczny styl (bez frameworków)
   Kolory: ukraińska flaga (błękit #0057B7, żółty #FFD700)
   ===================================================================== */
:root {
  --blue: #0057b7;
  --blue-dark: #00408a;
  --yellow: #ffd700;
  --yellow-soft: #ffe970;
  --ink: #1b2330;
  --muted: #5b6573;
  --bg: #f5f7fb;
  --card: #ffffff;
  --border: #e3e8f0;
  --shadow: 0 6px 24px rgba(0, 41, 92, 0.08);
  --radius: 14px;
  --maxw: 1080px;
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- HEADER / NAV ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 10px rgba(0, 41, 92, 0.06);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
/* Przezroczysty pasek nad sliderem (strona główna, u góry) */
.site-header.transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.site-header.transparent .brand,
.site-header.transparent .brand-name { color: #fff; }
.site-header.transparent .nav-list > li > a,
.site-header.transparent .dropdown-toggle { color: #fff; }
.site-header.transparent .nav-list > li > a:hover,
.site-header.transparent .dropdown-toggle:hover { background: rgba(255, 255, 255, .16); }
.site-header.transparent .nav-list a.active { color: #fff; background: rgba(255, 255, 255, .20); }
.site-header.transparent .nav-external { color: #fff !important; }
.site-header.transparent .nav-toggle span { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); font-size: 1rem; transition: color .3s ease; }
.brand:hover { text-decoration: none; }
.brand-flag {
  width: 28px; height: 28px; flex: 0 0 auto;
  position: relative;
  transform-style: preserve-3d;
  /* Jednokrotny obrot po wejsciu/przejsciu miedzy podstronami
     (kazda strona laduje sie od nowa). Zatrzymuje sie na logo. */
  animation: brandFlip 3.4s ease-in-out .8s 1 both;
}
.brand-flag::before,
.brand-flag::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* Przód — logo (kłos na fladze UA) */
.brand-flag::before {
  background: url("../img/favicon.svg") center / contain no-repeat;
}
/* Tył — flaga Polski (biały / czerwony) */
.brand-flag::after {
  background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50% 100%);
  transform: rotateY(180deg);
}
@keyframes brandFlip {
  0%   { transform: perspective(300px) rotateY(0deg); }
  50%  { transform: perspective(300px) rotateY(180deg); }
  100% { transform: perspective(300px) rotateY(360deg); }
}
/* Szacunek dla uzytkownikow z ograniczona animacja — bez obracania */
@media (prefers-reduced-motion: reduce) {
  .brand-flag { animation: none; }
  /* Wyjątek: delikatny, pożądany ruch tła hero pozostaje aktywny również na
     telefonach z systemowym „ograniczeniem ruchu” (iOS/Android), bo wcześniej
     to właśnie ono wyłączało animację na mobile. */
  .slide.is-active .slide-bg img,
  .page-bg img {
    animation: kenburns 16s ease-in-out infinite alternate !important;
  }
}
.brand-name { white-space: nowrap; }

.main-nav .nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-list > li > a,
.dropdown-toggle {
  display: inline-block; padding: 8px 11px; border-radius: 9px;
  color: var(--ink); font-weight: 600; font-size: .86rem; white-space: nowrap;
  background: none; border: none; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: color .3s ease, background .15s ease;
}
.nav-list > li > a:hover,
.dropdown-toggle:hover { background: var(--bg); text-decoration: none; }
.nav-list a.active { color: var(--blue); background: #e9f0fb; }
.nav-external { color: var(--blue-dark) !important; }

/* Dropdown */
.has-dropdown { position: relative; }
.caret { font-size: .7em; }
.dropdown {
  list-style: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 220px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.dropdown li a:hover { background: var(--bg); text-decoration: none; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- HERO / SLIDER ---------------- */
.hero { color: #fff; margin-top: calc(-1 * var(--header-h) - 3px); }
.hero h1, .hero h2 { font-size: clamp(1.8rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: .5px; }
.hero-slogan { color: var(--yellow); font-weight: 700; font-size: 1.25rem; margin-top: 8px; }
.hero-sub { margin-top: 14px; font-size: 1.05rem; opacity: .96; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.slider { position: relative; overflow: hidden; }
.slides { position: relative; height: 520px; background: var(--blue-dark); }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(56px + var(--header-h)) 0 56px;
  opacity: 0; visibility: hidden; z-index: 0;
  /* Plynne znikanie; element pozostaje widoczny przez caly czas przejscia,
     a chowa sie dopiero PO nim (delay .8s) — dzieki temu nowy slajd nakłada
     sie na stary i nie ma przebłysku tła. */
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.slide.is-active {
  opacity: 1; visibility: visible; z-index: 1;
  transition: opacity .8s ease, visibility 0s linear 0s;
}

.slide-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.slide-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  /* Wskazówki kompozycji GPU — płynny zoom również na iOS Safari / Androidzie */
  transform: scale(1.06) translateZ(0);
  will-change: transform; backface-visibility: hidden;
}
/* Powolny, ciągły zoom (Ken Burns) na aktywnym slajdzie — pętla tam i z powrotem,
   dzięki czemu tło nieprzerwanie się porusza także na urządzeniach mobilnych. */
.slide.is-active .slide-bg img { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.2); } }

.slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,64,138,.45), rgba(0,41,92,.35));
}
.slide-grad-1 {
  background: radial-gradient(900px 360px at 80% -10%, rgba(255,215,0,.28), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}
.slide-grad-2 {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #0a66c2 100%);
}
.slide-content { position: relative; z-index: 2; }
.slide-illu { width: 64px; height: 64px; fill: var(--yellow); margin: 0 auto 6px; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }

/* Strzałki */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.slider-arrow:hover { background: rgba(255,255,255,.34); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }

/* Kropki */
.slider-dots { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 5; display: flex; gap: 9px; justify-content: center; }
.slider-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.45); transition: background .15s ease, transform .15s ease;
}
.slider-dots button.active { background: var(--yellow); transform: scale(1.2); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 16px rgba(255, 215, 0, .35); }
.btn-primary:hover { background: var(--yellow-soft); color: var(--ink); }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------------- PAGES / SECTIONS ---------------- */
.page { padding: 56px 0; }
.page[hidden] { display: none; }
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; color: var(--blue-dark);
  margin-bottom: 26px; padding-bottom: 12px; position: relative;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px;
  background: var(--yellow); border-radius: 4px;
}

/* Podstrona z pełnym tłem (to samo zdjęcie co w miniaturce) */
.page.has-bg {
  position: relative;
  margin-top: calc(-1 * var(--header-h) - 3px);
  padding: calc(48px + var(--header-h)) 0 64px;
  min-height: 70vh;
}
.page-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--blue-dark); }
.page-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  /* Płynne pojawienie tła po wczytaniu zdjęcia (klasa dodawana w main.js) */
  opacity: 0; transition: opacity .7s ease;
  /* Wskazówki kompozycji GPU — płynny zoom również na iOS Safari / Androidzie */
  transform: scale(1.06) translateZ(0);
  will-change: transform; backface-visibility: hidden;
}
.page-bg img.is-loaded { opacity: 1; }
/* Powolny, ciągły zoom (Ken Burns) tła podstrony — pętla tam i z powrotem,
   dzięki czemu tło nieprzerwanie się porusza także na urządzeniach mobilnych. */
.page-bg img { animation: kenburns 16s ease-in-out infinite alternate; }
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 64, 138, .55) 0%, rgba(0, 41, 92, .68) 100%);
}
.page.has-bg .container { position: relative; z-index: 1; }
.page.has-bg .section-title {
  color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

/* ---------------- CARDS ---------------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 26px; margin-bottom: 20px;
}
.card h3 { color: var(--blue-dark); font-size: 1.15rem; margin-bottom: 8px; }
.card p { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card.highlight { border-left: 5px solid var(--yellow); }
.note { background: #eef4ff; border-radius: 10px; padding: 12px 14px; color: #243a5e; }
.warn { color: #b00020; font-weight: 600; }
.muted { color: var(--muted); }

.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.badge {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: #e9f0fb; color: var(--blue-dark); font-weight: 600;
}
.badge:hover { background: #dce8fb; text-decoration: none; }

/* Quick grid */
.quick-grid {
  margin-top: 28px; display: grid; gap: 12px;
  grid-template-columns: repeat(6, 1fr);
}
.quick-card {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 132px; border-radius: var(--radius);
  padding: 14px 8px; text-align: center; font-weight: 700; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 9px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
/* Zdjęcie tła kafelka */
.qc-bg { position: absolute; inset: 0; z-index: 0; }
.qc-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* Przyciemnienie zdjęcia, by tekst był czytelny */
.quick-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,41,92,.85) 0%, rgba(0,64,138,.45) 55%, rgba(0,64,138,.15) 100%);
  transition: background .2s ease;
}
.quick-card:hover {
  text-decoration: none; transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 41, 92, 0.28);
}
.quick-card:hover::before {
  background: linear-gradient(to top, rgba(0,41,92,.82) 0%, rgba(0,64,138,.5) 55%, rgba(0,64,138,.2) 100%);
}
.qc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; position: relative; z-index: 2;
  background: rgba(255, 255, 255, 0.92); transition: background .15s ease, transform .15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.quick-card:hover .qc-icon { background: var(--yellow); transform: scale(1.08); }
.qc-icon svg { width: 24px; height: 24px; fill: var(--blue); }
.qc-title {
  font-size: .9rem; letter-spacing: .2px; line-height: 1.2; position: relative; z-index: 2;
  min-height: 2.4em; display: flex; align-items: center; justify-content: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}
.quick-card:hover .qc-title { color: var(--yellow-soft); }

/* Lists */
.contact-list { list-style: none; }
.contact-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.contact-list li:last-child { border-bottom: none; }
.ci { display: inline-block; width: 26px; }

/* Admin card */
.admin-card { margin-top: 18px; }
.admin-card h3 { margin-bottom: 16px; }
.admin-profile { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.admin-avatar {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border: 3px solid var(--yellow); box-shadow: 0 6px 18px rgba(0, 41, 92, .28);
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.admin-avatar:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(0, 41, 92, .35); }
.admin-avatar picture { width: 100%; height: 100%; display: block; }
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-initials { color: #fff; font-weight: 800; font-size: 2rem; letter-spacing: 1px; }
.admin-info { flex: 1 1 240px; min-width: 220px; }
.admin-name { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.admin-role { color: var(--blue-dark); font-weight: 600; margin-top: 2px; }
.admin-bio { margin-top: 8px; color: #4a5568; line-height: 1.5; }
.admin-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.fb-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
  background: #1877f2; color: #fff; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.fb-link:hover { background: #0d63d4; color: #fff; text-decoration: none; transform: translateY(-1px); }
.fb-icon { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.msg-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #00b2ff, #006aff);
  transition: filter .15s ease, transform .15s ease;
}
.msg-link:hover { filter: brightness(1.08); color: #fff; text-decoration: none; transform: translateY(-1px); }
.msg-icon { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }

.form-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--ink); color: #cfd7e3; margin-top: 0; }
.footer-inner {
  display: grid; gap: 28px; padding: 44px 20px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 5px 0; }
.footer-col a { color: #cfd7e3; }
.footer-col a:hover { color: var(--yellow); }
.footer-links-2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.15rem; margin-top: 10px; }
.footer-slogan { color: var(--yellow); font-weight: 600; }
.footer-admin { display: flex; align-items: center; gap: 14px; }
.footer-admin-avatar {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; overflow: hidden;
  display: inline-flex; border: 2px solid var(--yellow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transition: transform .15s ease;
}
.footer-admin-avatar:hover { transform: scale(1.06); }
.footer-admin-avatar picture { width: 100%; height: 100%; display: block; }
.footer-admin-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer-admin-name { color: #fff; font-weight: 700; }
.footer-admin-role { color: #9aa6b6; font-size: .9rem; }
.footer-admin-links { margin-top: 4px; font-size: .9rem; }
.footer-admin-links span { color: #5b6573; margin: 0 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: .9rem; }
.footer-bottom p { text-align: center; color: #9aa6b6; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--card); border-bottom: 3px solid var(--yellow);
    box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h));
    overflow-y: auto; transform: translateY(calc(-100% - var(--header-h) - 6px));
    visibility: hidden; transition: transform .25s ease, visibility .25s ease;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav .nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; }
  .nav-list > li > a, .dropdown-toggle { width: 100%; text-align: left; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 0 12px; min-width: auto;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .has-dropdown.open .dropdown { max-height: 320px; }
  .footer-inner { grid-template-columns: 1fr; }
  .slides { height: 560px; }
  .slider-arrow { width: 38px; height: 38px; font-size: 1.5rem; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }

  /* Rozwinięte menu mobilne ma białe tło — linki zawsze ciemne, nawet gdy pasek przezroczysty */
  .site-header.transparent .nav-list > li > a,
  .site-header.transparent .dropdown-toggle { color: var(--ink); }
  .site-header.transparent .nav-list > li > a:hover,
  .site-header.transparent .dropdown-toggle:hover { background: var(--bg); }
  .site-header.transparent .nav-list a.active { color: var(--blue); background: #e9f0fb; }
  .site-header.transparent .nav-external { color: var(--blue-dark) !important; }
}

@media (max-width: 520px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- BANER COOKIE (RODO/GDPR) ---------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: rgba(27, 35, 48, 0.98);
  color: #e8edf4;
  border-top: 3px solid var(--yellow);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .28);
  backdrop-filter: saturate(140%) blur(6px);
  animation: cookie-slide-up .35s ease;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.cookie-text { font-size: .92rem; line-height: 1.55; flex: 1 1 360px; margin: 0; }
.cookie-text a { color: var(--yellow); font-weight: 600; }
.cookie-text a:hover { color: var(--yellow-soft); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.cookie-btn {
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  cursor: pointer; border: 2px solid transparent; font-family: inherit;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.cookie-btn:hover { transform: translateY(-2px); }
.cookie-btn-accept { background: var(--yellow); color: var(--ink); }
.cookie-btn-accept:hover { background: var(--yellow-soft); }
.cookie-btn-reject {
  background: transparent; color: #e8edf4; border-color: rgba(255, 255, 255, .45);
}
.cookie-btn-reject:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 560px) {
  .cookie-inner { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; padding: 12px 14px; }
  .cookie-text { flex: 0 0 auto; font-size: .8rem; line-height: 1.4; }
  .cookie-actions { flex: 0 0 auto; gap: 8px; }
  .cookie-btn { flex: 1 1 0; padding: 9px 12px; font-size: .82rem; }
}
@media (max-width: 360px) {
  .cookie-text { font-size: .76rem; }
}

/* ---------------- STRONA PRAWNA (polityka prywatności) ---------------- */
.legal-page { background: var(--bg); }
.legal-page .header-inner { justify-content: space-between; }
.legal-back {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: #e9f0fb; color: var(--blue-dark); font-weight: 600; font-size: .88rem;
}
.legal-back:hover { background: #dce8fb; text-decoration: none; }
.legal-main { padding: 40px 0 64px; }
.legal-container { max-width: 820px; }
.legal-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: var(--blue-dark);
  margin-bottom: 6px;
}
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.legal-main h2 {
  font-size: 1.25rem; color: var(--blue-dark); font-weight: 700;
  margin: 28px 0 10px;
}
.legal-main p { margin-bottom: 12px; }
.legal-main ul { margin: 0 0 12px 22px; }
.legal-main li { margin-bottom: 6px; }
.legal-cookie-reset {
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem;
  cursor: pointer; font-family: inherit; transition: background .15s ease, transform .12s ease;
}
.legal-cookie-reset:hover { background: var(--blue-dark); transform: translateY(-2px); }
.legal-back-bottom { margin-top: 32px; font-weight: 600; }

/* ---------------- STRONA BLEDU 404 ---------------- */
.error-page { background: var(--bg); }
.error-main {
  min-height: calc(100vh - var(--header-h) - 60px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 0;
}
.error-box { max-width: 640px; text-align: center; }
.error-code {
  font-size: clamp(5rem, 22vw, 10rem); font-weight: 800; line-height: 1;
  margin: 0 0 8px; color: var(--blue);
  background: linear-gradient(180deg, var(--blue) 50%, var(--yellow) 50%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-title { font-size: clamp(1.4rem, 5vw, 2rem); color: var(--ink); margin: 0 0 12px; }
.error-text { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin: 0 auto 26px; max-width: 480px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.error-links {
  display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center;
  border-top: 1px solid #e2e8f2; padding-top: 22px;
}
.error-links a {
  font-size: .9rem; font-weight: 600; color: var(--blue-dark);
  background: #e9f0fb; padding: 7px 14px; border-radius: 999px;
}
.error-links a:hover { background: #dce8fb; text-decoration: none; }


