


/* ------------------------------------- Begin "List of contents" ------------------------------------- */



/*
  1. .tiles
  2. article
  3. breadcrumb
  4. elementy
  5. footer
  6. go top
  7. header
  8. links-grid
  9. main
  10. menu rwd
  11. slider
*/


/* -------------------------------------- End "List of contents" -------------------------------------- */




/* ------------------------------------------ Begin ".tiles" ------------------------------------------ */

.tiles
{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tile
{
  display: block;
  background: #fff;
  border: 1px solid #e3e6ef;
  border-radius: 12px;
  overflow: hidden;
  color: #111;
  text-decoration: none;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.tile img
{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.tile-content
{
  padding: 12px;
}
.tile-content h2
{
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 8px 0;
}
.tile-content p
{
  margin: 4px 0;
  color: #525a6b;
  font-size: 14px;
}
.tile:hover
{
  border-color: #2d6cdf;
}



/* ------------------------------------------- End ".tiles" ------------------------------------------- */




/* ------------------------------------------ Begin "article" ----------------------------------------- */

article {
  padding: 0 0 50px 0; 
}

article section,
article header,
#zobacz-takze {
  max-width: 1000px;
  margin: 0 auto; 
}


/* ------------------------------------------- End "article" ------------------------------------------ */




/* ---------------------------------------- Begin "breadcrumb" ---------------------------------------- */

/* Podstawowe opakowanie breadcrumbów */
nav[aria-label="breadcrumb"] {
  font-size: 14px;
  font-family: Arial, sans-serif;
  margin: 10px 0;
}

/* Lista breadcrumbów w jednej linii */
.breadcrumb {
  list-style: none;   /* usuwamy kropki */
  padding: 0;
  margin: 0;
  display: flex;      /* elementy w poziomie */
  flex-wrap: wrap;    /* łamanie w małych ekranach */
  gap: 0.5em;         /* odstęp między elementami i separatorem */
}

/* Pojedynczy element */
.breadcrumb-item {
  color: #555;
}

/* Linki w breadcrumbach */
.breadcrumb-item a {
  text-decoration: none;
  color: #007bff;     /* odcień niebieskiego jak w linkach */
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #0056b3;     /* ciemniejszy po najechaniu */
  text-decoration: underline;
}

/* Separator (dodany w renderHtml jako <span class="breadcrumb-sep">) */
.breadcrumb-sep {
  color: #aaa;
  user-select: none;  /* nie zaznacza się podczas kopiowania */
}

/* Ostatni element (active) */
.breadcrumb-item.active {
  font-weight: bold;
  color: #222;
}

/* Opcjonalnie: małe animacje przy hoverze */
.breadcrumb-item a {
  position: relative;
}

.breadcrumb-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #007bff;
  transition: width 0.3s ease;
}

.breadcrumb-item a:hover::after {
  width: 100%;
}



/* ----------------------------------------- End "breadcrumb" ----------------------------------------- */




/* ----------------------------------------- Begin "elementy" ----------------------------------------- */


    
    
    
    
    
    
    
    
    
  /* 
  ==========================================================
  School CMS Blocks — base styles for all c-* components
  ==========================================================
  Zasady:
  - Minimalistycznie, czytelnie, bez frameworków.
  - Przyjazne mobile-first, lekkie gridy z gap.
  - Dostępność: wyraźne focusy, sensowny kontrast.
  - Obrazy/iframes responsywne: max-width:100%.
*/

:root
{
  --ink: #111;
  --ink-weak: #525a6b;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --card: #ffffff;
  --border: #e3e6ef;
  --primary: #2d6cdf;
  --primary-700: #1e40af;
  --accent: #0ea5e9;
  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 1px 8px rgba(0,0,0,.06);
}

/* Reset pod obrazki/iframes w komponentach */
.c-image img,
.c-gallery img,
.c-news img,
.c-video__placeholder,
.c-contact__map iframe
{
  max-width: 100%;
  display: block;
}

/* Uniwersalny focus — ułatwia nawigację klawiaturą */
.c-accordion__btn:focus,
.c-card:focus,
.c-link a:focus,
.c-file a:focus,
.c-linklist a:focus,
.c-people a:focus,
.c-form input:focus,
.c-form textarea:focus,
.c-form button:focus,
.c-filters input[type="checkbox"]:focus + span,
.c-hero .c-btn:focus
{
  outline: 3px solid rgba(45,108,223,.3);
  outline-offset: 2px;
}

/* Delikatne marginesy sekcji (opcjonalne, gdy renderujesz wiele bloków po sobie) */
.c-accordion,
.c-audio,
.c-calendar,
.c-cards,
.c-faq,
.c-file,
.c-filelist,
.c-filters,
.c-form,
.c-gallery,
.c-hero,
.c-hours,
.c-image,
.c-link,
.c-linklist,
.c-list,
.c-map,
.c-newslist,
.c-notice,
.c-people,
.c-quote,
.c-schedule,
.c-stats,
.c-steps,
.c-table,
.c-richtext,
.c-timeline,
.c-video,
.c-contact
{
  margin: 16px 0;
}

/* ---------------------------------------------
   Rich text wrapper
   --------------------------------------------- */
.c-richtext
{
  color: var(--ink);
  line-height: 1.65;
}
.c-richtext p
{
  margin: 0 0 12px 0;
}
.c-richtext h1,
.c-richtext h2,
.c-richtext h3
{
  margin: 18px 0 10px 0;
  line-height: 1.25;
}
.c-richtext a
{
  color: var(--primary);
  text-decoration: underline;
}

/* ---------------------------------------------
   Accordion
   --------------------------------------------- */
.c-accordion
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.c-accordion__item + .c-accordion__item
{
  border-top: 1px solid var(--border);
}
.c-accordion__btn
{
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.c-accordion__btn:hover
{
  background: var(--bg-soft);
}
.c-accordion__panel
{
  display: none; /* JS używa slideToggle; domyślnie schowane */
  padding: 0 14px 14px 14px;
  color: var(--ink);
}

/* ---------------------------------------------
   Audio
   --------------------------------------------- */
.c-audio
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--card);
}
.c-audio figcaption
{
  margin: 0 0 8px 0;
  color: var(--ink-weak);
  font-size: 14px;
}
.c-audio audio
{
  width: 100%;
  display: block;
}

/* ---------------------------------------------
   Calendar (lista wydarzeń)
   --------------------------------------------- */
.c-calendar
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 10px 12px;
}
.c-calendar__events
{
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-calendar__events li
{
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.c-calendar__events li:last-child
{
  border-bottom: 0;
}
.c-calendar time
{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--muted);
  margin-right: 8px;
}

/* ---------------------------------------------
   Cards (siatka linków-kafelków)
   --------------------------------------------- */
.c-cards
{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.c-card
{
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.c-card:hover
{
  border-color: var(--primary);
}
.c-card h3
{
  margin: 0;
  font-size: 18px;
}

/* ---------------------------------------------
   FAQ (dl/dt/dd)
   --------------------------------------------- */
.c-faq
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 10px 12px;
}
.c-faq dt
{
  font-weight: 700;
  margin-top: 10px;
}
.c-faq dd
{
  margin: 4px 0 10px 0;
  color: var(--ink);
}

/* ---------------------------------------------
   File / Filelist
   --------------------------------------------- */
.c-file
{
  color: var(--ink);
}
.c-file a
{
  color: var(--primary);
  text-decoration: underline;
}
.c-file small
{
  color: var(--muted);
  margin-left: 6px;
}

.c-filelist
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px;
}
.c-filelist h3
{
  margin: 0 0 8px 0;
}
.c-filelist ul
{
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-filelist li
{
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.c-filelist li:last-child
{
  border-bottom: 0;
}
.c-filelist a
{
  color: var(--primary);
  text-decoration: underline;
}
.c-filelist small
{
  color: var(--muted);
  margin-left: 6px;
}

/* ---------------------------------------------
   Filters (tagi + search)
   --------------------------------------------- */
.c-filters
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px;
}
.c-filters__tags
{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.c-filters__tags label
{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
}
.c-filters__search
{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

/* ---------------------------------------------
   Form
   --------------------------------------------- */
.c-form
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px;
}
.c-form label
{
  display: block;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.c-form input,
.c-form textarea,
.c-form select
{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-top: 6px;
  background: #fff;
}
.c-form textarea
{
  min-height: 120px;
  resize: vertical;
}
.c-form button
{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.c-form button:hover
{
  background: var(--primary-700);
}

/* ---------------------------------------------
   Gallery
   --------------------------------------------- */
.c-gallery
{
  display: grid;
  gap: 10px;
}
.c-gallery--grid
{
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.c-gallery img
{
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------------------------------------------
   Hero
   --------------------------------------------- */
.c-hero
{
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
}
.c-hero::before
{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.45));
}
.c-hero__content
{
  position: relative;
  color: #fff;
  padding: 28px;
}
.c-hero h1
{
  margin: 0 0 8px 0;
}
.c-hero p
{
  margin: 0 0 12px 0;
}
.c-hero .c-btn
{
  display: inline-block;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* ---------------------------------------------
   Hours (tabela godzin)
   --------------------------------------------- */
.c-hours
{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.c-hours th,
.c-hours td
{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.c-hours th
{
  text-align: left;
  background: var(--bg-soft);
  width: 30%;
}

/* ---------------------------------------------
   Image (figure/figcaption)
   --------------------------------------------- */
.c-image
{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}
.c-image figcaption
{
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------------------------
   Link / Linklist
   --------------------------------------------- */
.c-link a
{
  color: var(--primary);
  text-decoration: underline;
}
.c-link small
{
  color: var(--muted);
  margin-left: 6px;
}

.c-linklist
{
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-linklist li
{
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.c-linklist li:last-child
{
  border-bottom: 0;
}
.c-linklist a
{
  color: var(--primary);
  text-decoration: underline;
}
.c-linklist small
{
  color: var(--muted);
  margin-left: 6px;
}

/* ---------------------------------------------
   Generic list (ul/ol)
   --------------------------------------------- */
.c-list
{
  padding-left: 18px;
}
.c-list li
{
  margin: 6px 0;
}

/* ---------------------------------------------
   Map (kontener pod mapę JS)
   --------------------------------------------- */
.c-map
{
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #eef2ff;
}

/* ---------------------------------------------
   News list
   --------------------------------------------- */
.c-newslist
{
  display: grid;
  gap: 16px;
}
.c-news
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.c-news img
{
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.c-news h3
{
  margin: 12px;
  font-size: 18px;
}
.c-news h3 a
{
  color: var(--ink);
  text-decoration: none;
}
.c-news p
{
  margin: 0 12px 8px 12px;
  color: var(--ink);
}
.c-news time
{
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 0 12px 12px 12px;
}
.c-pagination
{
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------------------------
   Notice
   --------------------------------------------- */
.c-notice
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 12px;
}
.c-notice--important
{
  border-color: #fde68a;
  background: #fffbeb;
}
.c-notice strong
{
  display: block;
  margin-bottom: 6px;
}

/* ---------------------------------------------
   People
   --------------------------------------------- */
.c-people
{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.c-person
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.c-person img
{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 999px;
  margin: 0 auto 8px auto;
  border: 1px solid var(--border);
}
.c-person h4
{
  margin: 6px 0 2px 0;
}
.c-person p
{
  margin: 0 0 8px 0;
  color: var(--muted);
}
.c-person a
{
  color: var(--primary);
  text-decoration: underline;
  font-size: 14px;
}

/* ---------------------------------------------
   Quote
   --------------------------------------------- */
.c-quote
{
  border-left: 4px solid #c7d2fe;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
}
.c-quote p
{
  margin: 0 0 6px 0;
}
.c-quote footer,
.c-quote cite
{
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
}

/* ---------------------------------------------
   Schedule
   --------------------------------------------- */
.c-schedule
{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.c-schedule thead th
{
  background: var(--bg-soft);
  font-weight: 700;
}
.c-schedule th,
.c-schedule td
{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.c-schedule__note
{
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

/* ---------------------------------------------
   Stats
   --------------------------------------------- */
.c-stats
{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.c-stats li
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.c-stats strong
{
  display: block;
  font-size: 22px;
  line-height: 1.1;
}
.c-stats span
{
  color: var(--muted);
  font-size: 13px;
}

/* ---------------------------------------------
   Steps
   --------------------------------------------- */
.c-steps
{
  padding-left: 20px;
}
.c-steps li
{
  margin: 8px 0;
}
.c-steps li strong
{
  margin-right: 6px;
}

/* ---------------------------------------------
   Table (ogólna)
   --------------------------------------------- */
.c-table
{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.c-table thead th
{
  background: var(--bg-soft);
  font-weight: 700;
}
.c-table th,
.c-table td
{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

/* ---------------------------------------------
   Timeline
   --------------------------------------------- */
.c-timeline
{
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--border);
}
.c-timeline li
{
  position: relative;
  padding: 8px 0 8px 8px;
}
.c-timeline li::before
{
  content: "";
  position: absolute;
  left: -6px;
  top: 14px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 999px;
}
.c-timeline time
{
  color: var(--muted);
  font-size: 13px;
  display: inline-block;
  margin-right: 8px;
}
.c-timeline strong
{
  display: inline-block;
  margin-right: 6px;
}

/* ---------------------------------------------
   Video
   --------------------------------------------- */
.c-video
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.c-video__placeholder
{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: #111827;
  color: #fff;
  font-weight: 700;
}
.c-video figcaption
{
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------------------------
   Contact
   --------------------------------------------- */
.c-contact
{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px;
  box-shadow: var(--shadow);
}
.c-contact h3
{
  margin: 0 0 8px 0;
}
.c-contact p
{
  margin: 6px 0;
}
.c-contact a
{
  color: var(--primary);
  text-decoration: underline;
}
.c-contact__map
{
  margin-top: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.c-contact__map iframe
{
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
}

/* ---------------------------------------------
   Responsive drobiazgi
   --------------------------------------------- */
@media (min-width: 640px)
{
  .c-newslist
  {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px)
{
  .c-newslist
  {
    grid-template-columns: repeat(3, 1fr);
  }
}



/* ------------------------------------------ End "elementy" ------------------------------------------ */




/* ------------------------------------------ Begin "footer" ------------------------------------------ */

footer {
  padding: 50px 30px 50px 30px;
  min-height: 150px;
  font-size: 16px;
  background: #2c3e50;
}



.site-footer
{
  background-color: #2c3e50; /* ciemne tło dla kontrastu */
  color: #ecf0f1; /* jasny tekst */
  font-size: 14px;
}

.footer-container
{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* na mobile kolumny się zwiną */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h3
{
  margin: 0 0 10px;
  font-size: 18px;
}

.footer-column p
{
  margin: 5px 0;
}

footer a
{
  color: #ecf0f1;
  text-decoration: none;
}

footer a:hover
{
  text-decoration: underline;
}

.footer-bottom
{
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 20px;
  padding-top: 10px;
  font-size: 12px;
  color: #bdc3c7;
}



/* ------------------------------------------- End "footer" ------------------------------------------- */




/* ------------------------------------------ Begin "go top" ------------------------------------------ */

  /* 
    Przycisk fixed w prawym dolnym rogu. 
    Postęp rysujemy pseudo-elementem ::before jako pierścień z conic-gradient.
    Zmienna --p ∈ [0,1] odpowiada za wypełnienie w stopniach: calc(var(--p) * 360deg).
  */
  #gotop
  {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: #121212; /* tło "wnętrza" kółka */
    color: #ffffff;
    cursor: pointer;
    display: none; /* domyślnie ukryte – pokażemy po scrollu */
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    /* Parametry pierścienia sterowane zmiennymi CSS */
    --p: 0;              /* progres [0..1] ustawiany z JS */
    --ring: #34c759;     /* kolor aktywnego pierścienia (możesz podmienić) */
    --track: rgba(255,255,255,0.15); /* kolor toru (tło pierścienia) */
    --thickness: 6px;    /* grubość pierścienia */
    z-index: 9999;
  }

  /* Statyczny tor pierścienia (tło) */
  #gotop::after
  {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--track) 360deg, transparent 0);
    /* Maskowanie, aby powstał pierścień zamiast pełnego koła */
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
            mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
  }

  /* Dynamiczny, wypełniający się pierścień postępu */
  #gotop::before
  {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--ring) calc(var(--p) * 360deg), transparent 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
            mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
    transition: background 80ms linear; /* drobne wygładzenie wypełniania */
  }

  /* Ikona w środku kółka */
  .gotop__icon
  {
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
    position: relative;
    z-index: 1;
  }

  /* Drobny efekt hover/focus dla dostępności i feedbacku */
  #gotop:hover,
  #gotop:focus-visible
  {
    outline: none;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    transform: translateY(-1px);
    transition: transform 120ms ease, box-shadow 120ms ease;
  }



/* ------------------------------------------- End "go top" ------------------------------------------- */




/* ------------------------------------------ Begin "header" ------------------------------------------ */

/* Desktop */
#main-header 
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px;
  max-width: 1140px;
  margin: 0 auto;
}

/* Logo */
#main-header #logo 
{
  display: inline-block;
  padding-left: 80px;
  background-image: url('../images/logo_sp50.png');
  background-size: 60px;
  background-position: left center;
  background-repeat: no-repeat;
  font-size: 24px;
  font-weight: 700;
  color: rgb(15, 26, 69);
  text-decoration: none;
  line-height: 1.2;
}

#main-header #logo span 
{
  display: block;
  font-size: 18px;
  font-weight: normal;
}

/* Kontakt */
#main-header .contact a 
{
  color: rgb(15, 26, 69);
  font-weight: 600;
  font-size: 25px;
  line-height: 30px;
  text-decoration: none;
  transition: color 0.3s ease;
}

#main-header .contact a:hover 
{
  color: rgb(64,142,224);
}

/* --- RWD --- */
@media (max-width: 768px) 
{
  #main-header 
  {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  /* Odwrócenie kolejności */
  #main-header .contact 
  {
    order: -1; /* kontakt wchodzi na górę */
    align-self: flex-end;
    margin-bottom: 10px;
  }

  #main-header .contact a 
  {
    font-size: 16px;
  }

  #main-header #logo 
  {
    font-size: 20px;
    padding-left: 60px;
    background-size: 40px;
  }

  #main-header #logo span 
  {
    font-size: 16px;
  }
}

@media (max-width: 480px) 
{
  #main-header 
  {
    padding: 8px;
  }

  #main-header .contact a 
  {
    font-size: 14px;
  }

  #main-header #logo 
  {
    font-size: 18px;
    padding-left: 50px;
    background-size: 35px;
  }
}



/* ------------------------------------------- End "header" ------------------------------------------- */




/* ---------------------------------------- Begin "links-grid" ---------------------------------------- */

    .links-grid
    {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 16px;
      margin: 24px 0;
    }
    .link-tile
    {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 72px;
      padding: 16px 20px;
      text-decoration: none;
      background: #135f92;
      color: #fff;
      border-radius: 10px;
      text-align: center;
      font-weight: 600;
      line-height: 1.35;
      transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease;
      box-shadow: 0 2px 8px rgba(0,0,0,.08);
    }
    .link-tile:hover
    {
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(0,0,0,.12);
      background: #0f517d;
    }
    .link-tile:active
    {
      transform: translateY(0);
    }


/* ----------------------------------------- End "links-grid" ----------------------------------------- */




/* ------------------------------------------- Begin "main" ------------------------------------------- */

html, body {
  background: #fff;
  margin: 0;
  padding: 0;
   font-family: "Open Sans", sans-serif;
  font-size: 18px;
}

a {
 text-decoration: none; 
}

a:hover {
  text-decoration: underline; 
}


/* -------------------------------------------- End "main" -------------------------------------------- */




/* ----------------------------------------- Begin "menu rwd" ----------------------------------------- */

/* =========================================
   WSPÓLNE PODSTAWY (dla obu zakresów)
   ========================================= */

/* Pasek nawigacji – tło, font, warstwa nad treścią */
#menu
{
  width: 100%;
  background-color: #333;
  font-family: Arial, sans-serif;
  position: relative;
  z-index: 1000;
}

/* Overlay (rozmycie pod menu) – domyślnie zdefiniowany,
   ale używany tylko na desktopie (mobile go wyłącza) */
.menu-overlay
{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;            /* realne top i height nadaje jQuery */
  height: 0;

  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  z-index: 900;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.05s linear, visibility 0s linear 0.05s;
}

.menu-overlay.is-visible
{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.05s linear;
}

/* Linki 2. poziomu – wspólna estetyka */
#menu .submenu > li
{
  display: block;
}

#menu .submenu > li > a
{
  display: block;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#menu .submenu > li > a:hover
{
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

/* Przyciski „Menu” – bazowo ukryte, pokazujemy w RWD */
#menu .menu-toggle
{
  display: none;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: #245c8e;     /* niebieski pasek RWD */
  color: #fff;
  border: 0;
  padding: 14px 16px;
  font-size: 18px;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

/* =========================================
   DESKTOP / DUŻE EKRANY
   ========================================= */
@media (min-width: 751px)
{
  /* Kontener 1. poziomu – płynne skalowanie do 1000 px (bez poziomego scrolla) */
  #menu .menu
  {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    list-style: none;
    padding: 0;

    display: flex;
    align-items: stretch;
    flex-wrap: wrap;            /* pozwól zejść do 2 linii */
    justify-content: center;
    row-gap: 6px;

    position: relative;         /* kotwica dla absolutnego .submenu */
  }

  /* Nigdy nie kotwiczymy do <li> – panel liczy się do .menu */
  #menu .menu > li
  {
    position: static !important;
    flex: 0 0 auto;
  }

  /* Linki 1. poziomu (desktop) */
  #menu .menu > li > a
  {
    display: block;
    padding: 14px 20px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease;
  }

  #menu .menu > li > a:hover,
  #menu .menu > li.is-active > a
  {
    background-color: #444;
  }

  /* Mega-submenu: pełna szerokość .menu, 10 px niżej, siatka 3 kolumny */
  #menu .submenu
  {
    position: absolute;
    top: calc(100% + 10px);     /* liczone od .menu – działa także przy 2 liniach */
    left: 0;
    right: 0;
    box-sizing: border-box;

    background: linear-gradient(180deg, #444 0%, #3a3a3a 100%);
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.35);
    z-index: 1100;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 24px;

    /* ukrywanie/animacja – click-only (nie :hover) */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      transform 0.22s ease,
      opacity 0.22s ease,
      visibility 0s linear 0.22s;
  }

  #menu .submenu.is-open
  {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      transform 0.22s ease,
      opacity 0.22s ease;
  }

  /* FIX na motywy, które próbują otwierać na :hover (tu możemy wymusić tylko wygląd grida,
     ale i tak otwieramy TYLKO na klik dzięki JS). */
  #menu .menu > li:hover > .submenu,
  #menu .menu > li:focus-within > .submenu
  {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Overlay używamy wyłącznie na desktopie (RWD go wyłączy) */
  .menu-overlay
  {
    display: block;
  }
}

/* =========================================
   MOBILE / RWD (≤ 750 px)
   ========================================= */
@media (max-width: 750px)
{
  /* Pokaż przycisk „Menu” (niebieski) */
  #menu .menu-toggle
  {
    display: block;
  }

  /* Kontener 1. poziomu w pionie – BEZ paddingu na .menu,
     żeby <li> z width:100% nie „wystawał”. */
  #menu .menu
  {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    list-style: none;

    display: none;              /* rozwinie go JS (slideDown) */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    row-gap: 0;

    position: static;           /* panel 2. poziomu będzie w przepływie */
    
	padding: 10px 15px;
    box-sizing: border-box;    
    
    
  }

  /* 1. poziom zajmuje 100% szerokości kontenera */
  #menu .menu > li
  {
    width: 100%;
    margin: 0;                  /* zerujemy ewentualne marginesy z motywu */
    position: static !important;
    flex: 0 0 auto;
  }

  /* Link 1. poziomu – padding + box-sizing, żeby NIC nie wystawało */
  #menu .menu > li > a
  {
    display: block;
    width: 100%;
    box-sizing: border-box;     /* 100% obejmuje padding/border */
    padding: 16px;
    background: #eee;
    color: #222;
    border-radius: 6px;
    margin-top: 10px;
    text-decoration: none;
  }

  /* Czytelny hover i stan aktywny (żeby nie było czarne na czarnym) */
  #menu .menu > li > a:hover
  {
    background: #ddd;
    color: #000;
  }

  #menu .menu > li.is-active > a
  {
    background: #e2e2e2;
    color: #000;
  }

  /* Drugi poziom w RWD:
     - jedna kolumna w pionie,
     - w przepływie dokumentu (position: static),
     - sterowanie WYŁĄCZNIE display (slideDown/Up w JS),
     - brak overlayu i z-indexów – menu pcha <article> w dół. */
  #menu .submenu
  {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    border-radius: 10px;
    box-shadow: none;
    background: #3f3f3f;

    display: none;              /* wymagane dla jQuery slideDown/Up */
    grid-template-columns: 1fr; /* pionowo */
    gap: 10px;
    padding: 12px;
    margin: 8px 0 0 0;

    /* wyłączamy „desktopową” animację visibility/opacity/transform */
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  /* Overlay w RWD jest wyłączony */
  .menu-overlay
  {
    display: none !important;
  }
}

/* =========================================
   Drobne dopieszczenia
   ========================================= */
@media (max-width: 650px)
{
  #menu .menu > li > a { padding: 14px; }
}

@media (max-width: 560px)
{
  #menu .menu > li > a { padding: 12px; }
}

/* Preferencje dostępności – mniej animacji */
@media (prefers-reduced-motion: reduce)
{
  #menu .submenu,
  .menu-overlay
  {
    transition: none !important;
  }
}



/* ------------------------------------------ End "menu rwd" ------------------------------------------ */




/* ------------------------------------------ Begin "slider" ------------------------------------------ */

  /* 
    Stylizacja slidera:
    - Układ "panorama": obraz wypełnia szerokość, stałe proporcje wysokości (np. 42vh na desktopie).
    - Tekst jako overlay z gradientem dla czytelności.
    - Przyjazne focus-states dla dostępności (TAB).
  */

  .slider
  {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 16px auto;
    user-select: none;
  }

  .slider-track
  {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
  }

  .slide
  {
    position: relative;
    display: none;
    text-decoration: none;
    outline: none;
  }

  .slide.is-active
  {
    display: block;
  }

  .slide-bg
  {
    display: block;
    width: 100%;
    height: 42vh;
    min-height: 320px;
    max-height: 560px;
    object-fit: cover;
  }

  .slide-overlay
  {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.75) 100%);
  }

  .slide-title
  {
    margin: 0 0 6px 0;
    font-size: clamp(24px, 3.2vw, 40px);
    line-height: 1.15;
    color: #fff;
    letter-spacing: 0.2px;
  }

  .slide-subtitle
  {
    margin: 0;
    font-size: clamp(16px, 2vw, 22px);
    color: rgba(255,255,255,0.88);
  }

  .slider-controls
  {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
  }

  .ctrl
  {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
  }

  .ctrl:focus-visible
  {
    outline: 3px solid #2b7cff;
    outline-offset: 2px;
  }

  /* Drobna animacja przenikania slajdów */
  .slide.is-active .slide-bg,
  .slide.is-active .slide-overlay
  {
    animation: fadeIn 420ms ease-out both;
  }

  @keyframes fadeIn
  {
    from { opacity: 0; transform: scale(1.01); }
    to { opacity: 1; transform: scale(1); }
  }

  /* Mobile: większy overlay padding i wyższy tekst dla czytelności */
  @media (max-width: 640px)
  {
    .slide-overlay
    {
      padding: 16px;
    }
  }



/* ------------------------------------------- End "slider" ------------------------------------------- */

