/* =========================
   HEADER / BELKA
   ========================= */
.header.container-header.full-width{
  background: #2d445f;
}

/* linki w belce (np. logo/tekst) */
.header.container-header.full-width a{
  color: #ffffff;
}
.header.container-header.full-width a:hover{
  color: #EE6C4D;
}

/* =========================
   DESKTOP: dropdown (1 i 2 poziom)
   ========================= */
@media (min-width: 992px){

  .container-nav{ background: transparent; }

  /* top level */
  .container-nav .mod-menu{
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: .2rem;
    align-items: center;
  }

  .container-nav .mod-menu > li{
    position: relative;
  }

  /* linki poziomu 1 */
  .container-nav .mod-menu > li > a{
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    padding: .7rem .95rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    transition: background .2s ease;
  }

  .container-nav .mod-menu > li > a:hover{
    background: rgba(255,255,255,.12);
  }

  /* ---------- SUBMENU poziom 1 ---------- */
  .container-nav .mod-menu > li > ul{
    display: none;
    position: absolute;
    top: 100%;              /* ZERO przerwy = nie znika */
    left: 0;
    z-index: 9999;

    min-width: 260px;
    margin: 0;
    padding: 8px;
    list-style: none;

    background: #ffffff;
    border: 1px solid rgba(45,68,95,.16);
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(0,0,0,.14);
  }

  /* “mostek” hover – nawet jak jest 1px przerwy przez line-height */
  .container-nav .mod-menu > li > ul::before{
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
  }

  /* pokaż submenu poziom 1 */
  .container-nav .mod-menu > li:hover > ul,
  .container-nav .mod-menu > li > ul:hover{
    display: block;
  }

  /* WYMUSZENIE KOLORÓW W SUBMENU (żeby nie było białe na białym) */
  .container-nav .mod-menu > li > ul,
  .container-nav .mod-menu > li > ul *{
    color: #2d445f;
  }

  /* linki w submenu */
  .container-nav .mod-menu ul a,
  .container-nav .mod-menu ul a:link,
  .container-nav .mod-menu ul a:visited{
    display: block;
    padding: .55rem .85rem;
    border-radius: 12px;

    color: #2d445f;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    border-left: 4px solid transparent;
    transition: background .18s ease, border-color .18s ease;
  }

  .container-nav .mod-menu ul a:hover,
  .container-nav .mod-menu ul a:focus{
    background: rgba(238,108,77,.12);
    border-left-color: #EE6C4D;
    color: #2d445f;
    outline: none;
  }

  /* ---------- SUBMENU poziom 2 (ul ul) ---------- */
  .container-nav .mod-menu ul li{
    position: relative;
  }

  .container-nav .mod-menu ul ul{
    display: none;
    position: absolute;
    top: 0;
    left: 100%;            /* bez dodatkowego odstępu = nie znika */
    margin-left: 8px;      /* mały odstęp, ale mostek poniżej go “zabezpiecza” */
    z-index: 10000;

    min-width: 260px;
    margin-top: -8px;      /* wyrównanie do paddingu parenta */
    padding: 8px;
    list-style: none;

    background: #ffffff;
    border: 1px solid rgba(45,68,95,.16);
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(0,0,0,.14);
  }

  /* mostek dla poziomu 2 */
  .container-nav .mod-menu ul ul::before{
    content: "";
    position: absolute;
    left: -10px;
    top: 0;
    width: 10px;
    height: 100%;
  }

  /* pokaż poziom 2 */
  .container-nav .mod-menu ul li:hover > ul,
  .container-nav .mod-menu ul li > ul:hover{
    display: block;
  }

  /* (opcjonalnie) strzałka – tylko dla TOP elementów mających <ul> */
  .container-nav .mod-menu > li > ul{
    /* nic */
  }
  .container-nav .mod-menu > li > a + ul{ /* gdy zaraz po <a> jest <ul> */
    /* nic – selektor pomocniczy */
  }
  .container-nav .mod-menu > li > a{
    /* zostawiamy bez strzałek, bo bez HTML-klas to bywa mylące */
  }
}

/* =========================
   MOBILE: podmenu schowane (otwierane przez klasy JS szablonu)
   ========================= */
@media (max-width: 991.98px){

  /* WYŁĄCZAMY desktopowe latanie */
  .container-nav .mod-menu ul{
    position: static !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  /* domyślnie chowamy podmenu */
  .container-nav .mod-menu li > ul{
    display: none;
    margin: 6px 0 10px 0;
    padding-left: 12px;
    border-left: 3px solid rgba(238,108,77,.5);
  }

  /* pokazuj tylko gdy szablon/JS da klasę */
  .container-nav .mod-menu li.open > ul,
  .container-nav .mod-menu li.show > ul,
  .container-nav .mod-menu li.active > ul,
  .container-nav .mod-menu li.current > ul,
  .container-nav .mod-menu li.mm-active > ul{
    display: block;
  }

  /* linki na mobile */
  .container-nav .mod-menu a{
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
  }
}



/* "karta" dla pojedynczego newsa (działa gdy item ma wrapper .newsflash-item / .newsflash-item) */
.newsflash-item,
.mod-articlesnews__item,
.mod_articles_news .newsflash-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 1rem;
  margin: 0 0 1rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.newsflash-item:hover,
.mod-articlesnews__item:hover,
.mod_articles_news .newsflash-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.12);
}

/* tytuł */
.newsflash-title {
  margin: 0 0 .6rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.newsflash-title a {
  color: #111;
  text-decoration: none;
  transition: opacity .15s ease;
}

.newsflash-title a:hover {
  opacity: .75;
  text-decoration: none;
}

/* obrazek + podpis */
.newsflash-image {
  margin: .75rem 0 1rem;
  border-radius: 14px;
  overflow: hidden;              /* zaokrąglenie obrazka */
  background: #f6f6f6;
  border: 1px solid rgba(0,0,0,.06);
}

.newsflash-image img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.001);
  transition: transform .25s ease;
}

.newsflash-item:hover .newsflash-image img,
.mod-articlesnews__item:hover .newsflash-image img {
  transform: scale(1.03);
}

.newsflash-image figcaption {
  padding: .55rem .85rem;
  font-size: .9rem;
  color: rgba(0,0,0,.70);
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
}

/* introtext (żeby nie było "ściany tekstu") */
.newsflash-item p,
.mod-articlesnews__item p {
  margin: 0 0 .75rem;
  line-height: 1.6;
  color: rgba(0,0,0,.85);
}

/* link "Czytaj więcej" (Joomla zwykle daje .readmore a, czasem .btn) */
.readmore a,
p.readmore a,
a.readmore,
.mod-articlesnews a.readmore,
.mod_articles_news a.readmore {
  display: inline-flex;
  align-items: center;
  gap: .45rem;

  margin-top: .2rem;
  padding: .55rem .9rem;
  border-radius: 999px;

  font-weight: 600;
  text-decoration: none;

  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  color: #111;

  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.readmore a:hover,
p.readmore a:hover,
a.readmore:hover {
  transform: translateY(-1px);
  background: #f4f4f4;
  border-color: rgba(0,0,0,.22);
}

/* układ z miniaturą po lewej na desktop (jeśli w itemach jest obrazek) */
@media (min-width: 992px) {
  .newsflash-item,
  .mod-articlesnews__item,
  .mod_articles_news .newsflash-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    column-gap: 1.1rem;
    align-items: start;
  }

  .newsflash-title,
  .newsflash-item > .newsflash-title {
    grid-column: 2;
  }

  .newsflash-image {
    grid-column: 1;
    grid-row: 1 / span 4;
    margin: 0;                 /* na gridzie bez marginesów */
    position: sticky;
    top: 1rem;                 /* lekko "przyklejone" przy scrollu (opcjonalne) */
  }
}

/* jeśli obrazek ma być mniejszy (Twoja .halfimage) – poprawiamy bez wymuszania 40%/40% */
.halfimage {
  max-width: 420px;
  width: 100%;
  margin: .75rem auto 1rem;
  border-radius: 14px;
  overflow: hidden;
}

/* delikatne ograniczenie bardzo dużych obrazków w intro */
.newsflash-image img,
.halfimage img {
  max-width: 100%;
}

/* ciut lepsze odstępy na mobile */
@media (max-width: 575px) {
  .newsflash-item,
  .mod-articlesnews__item,
  .mod_articles_news .newsflash-item {
    padding: .9rem;
    border-radius: 12px;
  }
}

/* ===== MODUŁ ZAJĘĆ ===== */
#mod-custom127 table {
    width: 100%;
    max-width: 1200px;
    border-collapse: separate;
    border-spacing: 20px;
}

/* Nagłówki */
#mod-custom127 th {
    background: #2d445f;
    border-radius: 12px 12px 0 0;
    padding: 16px;
}

#mod-custom127 th h3 {
    margin: 0;
    font-size: 1.2rem;
}

#mod-custom127 th a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

#mod-custom127 th a:hover {
    color: #EE6C4D;
}

/* Komórki jako karty */
#mod-custom127 td {
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    vertical-align: top;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover na całej kolumnie */
#mod-custom127 td:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* Obrazy */
#mod-custom127 img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* Tekst */
#mod-custom127 p {
    color: #2d445f;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Wyróżnienia */
#mod-custom127 strong {
    color: #EE6C4D;
}

/* Sekcja "Wolnych miejsc" */
#mod-custom127 tr.alert td {
    background: #2d445f;
    color: #ffffff;
    text-align: center;
    border-radius: 12px;
    padding: 12px;
}

#mod-custom127 tr.alert strong {
    color: #EE6C4D;
}

/* Responsywność */
@media (max-width: 900px) {
    #mod-custom127 table,
    #mod-custom127 tbody,
    #mod-custom127 tr {
        display: block;
    }

    #mod-custom127 th,
    #mod-custom127 td {
        display: block;
        width: 100%;
    }

    #mod-custom127 tr {
        margin-bottom: 30px;
    }
}


/* ===== NEWSFEEDS (Facebook/RSS) ===== */
.com-newsfeeds-newsfeed {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

/* Nagłówek feedu */
.com-newsfeeds-newsfeed > h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.com-newsfeeds-newsfeed > h2 a {
  color: #2d445f;
  text-decoration: none;
  font-weight: 800;
  border-bottom: 3px solid rgba(238, 108, 77, 0.35);
  padding-bottom: 2px;
}

.com-newsfeeds-newsfeed > h2 a:hover {
  color: #EE6C4D;
  border-bottom-color: #EE6C4D;
}

/* Opis */
.com-newsfeeds-newsfeed p,
.com-newsfeeds-newsfeed .feed-description {
  color: #2d445f;
  opacity: 0.95;
  line-height: 1.6;
}

.com-newsfeeds-newsfeed p a {
  color: #EE6C4D;
  font-weight: 700;
  text-decoration: none;
}

.com-newsfeeds-newsfeed p a:hover {
  text-decoration: underline;
}

/* Logo / obrazek feedu */
.com-newsfeeds-newsfeed__feed-image {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
}

.com-newsfeeds-newsfeed__feed-image img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid rgba(45, 68, 95, 0.12);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* Lista wpisów jako grid */
.com-newsfeeds-newsfeed__items {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Pojedynczy wpis */
.com-newsfeeds-newsfeed__items > li {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  border: 1px solid rgba(45, 68, 95, 0.10);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.com-newsfeeds-newsfeed__items > li:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.12);
  border-color: rgba(238, 108, 77, 0.35);
}

/* Tytuł wpisu */
.com-newsfeeds-newsfeed__items .feed-link {
  margin: 0;
  padding: 14px 16px 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.com-newsfeeds-newsfeed__items .feed-link a {
  color: #2d445f;
  text-decoration: none;
  font-weight: 800;
}

.com-newsfeeds-newsfeed__items .feed-link a:hover {
  color: #EE6C4D;
}

/* Treść wpisu */
.com-newsfeeds-newsfeed__items .feed-item-description {
  padding: 0 16px 16px;
  color: #2d445f;
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Obrazki w treści */
.com-newsfeeds-newsfeed__items .feed-item-description img {
  width: 100% !important;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin: 10px 0 10px;
  border: 1px solid rgba(45, 68, 95, 0.10);
}

/* Uporządkowanie divów generowanych przez RSS (czasem w środku jest div>img>div) */
.com-newsfeeds-newsfeed__items .feed-item-description > div {
  display: grid;
  gap: 8px;
}

.com-newsfeeds-newsfeed__items .feed-item-description > div > div {
  margin: 0;
}

/* Responsywność */
@media (max-width: 900px) {
  .com-newsfeeds-newsfeed__items {
    grid-template-columns: 1fr;
  }

  .com-newsfeeds-newsfeed__items .feed-item-description img {
    height: 210px;
  }
}

/* ===== BLOG FEATURED (komunikat na głównej) ===== */
.blog-featured {
  max-width: 1100px;
  margin: 0 auto;
}

/* Karta artykułu */
.blog-featured .blog-item {
  background: #ffffff;
  border: 1px solid rgba(45, 68, 95, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

/* Wnętrze */
.blog-featured .item-content {
  padding: 18px 18px 20px 18px;
}

/* Tytuł artykułu = pasek */
.blog-featured .item-title {
  margin: -18px -18px 14px -18px; /* żeby pasek doszedł do krawędzi */
  padding: 14px 18px;
  background: #EE6C4D;
  font-size: 1.25rem;
  line-height: 1.2;
}

.blog-featured .item-title a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.blog-featured .item-title a:hover {
  color: #EE6C4D;
}

/* Pierwszy akapit (u Ciebie: p.bg-primary) – przerabiamy na wyróżniony baner */
.blog-featured p.bg-primary {
  margin: 0 0 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #EE6C4D;              /* akcent */
  color: #ffffff !important;
  font-weight: 700;
}

/* Tekst */
.blog-featured .item-content p {
  margin: 0 0 10px 0;
  color: #2d445f;
  font-size: 1rem;
  line-height: 1.65;
}

/* Delikatny lewy “znacznik” przy zwykłych akapitach (oprócz bg-primary) */
.blog-featured .item-content p:not(.bg-primary) {
  padding-left: 12px;
  border-left: 4px solid rgba(238, 108, 77, 0.55);
}

/* Linki */
.blog-featured .item-content a {
  color: #2d445f;
  text-decoration: underline;
  text-decoration-color: rgba(238,108,77,0.75);
  text-underline-offset: 3px;
  word-break: break-word; /* ładnie łamie długie URL */
}

.blog-featured .item-content a:hover {
  color: #EE6C4D;
}

/* Opcjonalnie: subtelny hover całej karty */
.blog-featured .blog-item:hover {
  box-shadow: 0 16px 34px rgba(0,0,0,0.12);
  border-color: rgba(238,108,77,0.35);
}

/* Responsywność */
@media (max-width: 700px) {
  .blog-featured .item-content {
    padding: 16px;
  }

  .blog-featured .item-title {
    margin: -16px -16px 12px -16px;
    padding: 12px 16px;
    font-size: 1.1rem;
  }
}

/* ===== MODUŁ: AKTUALNOŚCI (mod-articlesnews-horizontal) ===== */

/* Nagłówek modułu */
.moduletable > h3 {
  max-width: 1100px;
  margin: 10px auto 14px auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: #2d445f;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Lista jako siatka kart */
.mod-articlesnews-horizontal.newsflash-horiz.mod-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1100px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Karta */
.mod-articlesnews-horizontal.newsflash-horiz.mod-list > li {
  background: #ffffff;
  border: 1px solid rgba(45, 68, 95, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

  /* układ w pionie (żeby przycisk mógł “usiąść” na dole) */
  display: flex;
  flex-direction: column;
}

.mod-articlesnews-horizontal.newsflash-horiz.mod-list > li:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
  border-color: rgba(238,108,77,0.45);
}

/* Tytuł */
.mod-articlesnews-horizontal .newsflash-title {
  margin: 0;
  padding: 14px 16px;
  background: rgba(45, 68, 95, 0.06);
  border-bottom: 1px solid rgba(45, 68, 95, 0.10);
  color: #2d445f;
  font-weight: 800;
  line-height: 1.25;
}

/* Obrazek */
.mod-articlesnews-horizontal .newsflash-image {
  margin: 0;
}

.mod-articlesnews-horizontal .newsflash-image img {
  width: 100%;
  height: 210px;          /* stała wysokość = równe karty */
  object-fit: cover;
  display: block;
}

/* Treść/opis */
.mod-articlesnews-horizontal.newsflash-horiz.mod-list > li > p {
  margin: 0;
  padding: 12px 16px 0 16px;
  color: #2d445f;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Emoji (facebookowe obrazki) – żeby nie robiły bałaganu w linii */
.mod-articlesnews-horizontal.newsflash-horiz.mod-list > li p img[alt] {
  vertical-align: -3px;
}

/* Linki w treści */
.mod-articlesnews-horizontal.newsflash-horiz.mod-list > li p a {
  color: #2d445f;
  text-decoration: underline;
  text-decoration-color: rgba(238,108,77,0.75);
  text-underline-offset: 3px;
}

.mod-articlesnews-horizontal.newsflash-horiz.mod-list > li p a:hover {
  color: #EE6C4D;
}

/* "Czytaj więcej" na dole karty */
.mod-articlesnews-horizontal .readmore {
  margin-top: auto;        /* dociska do dołu */
  padding: 14px 16px 16px 16px;
}

/* Przycisk */
.mod-articlesnews-horizontal .readmore .btn.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: #EE6C4D;
  border: 1px solid rgba(238,108,77,0.55);
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  text-decoration: none;

  transition: transform 0.2s ease, filter 0.2s ease;
}

.mod-articlesnews-horizontal .readmore .btn.btn-secondary:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

/* Jeżeli jakiś element NIE ma opisu, to i tak zachowaj odstęp */
.mod-articlesnews-horizontal.newsflash-horiz.mod-list > li > p:empty {
  display: none;
}

/* Responsywność */
@media (max-width: 1000px) {
  .mod-articlesnews-horizontal.newsflash-horiz.mod-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mod-articlesnews-horizontal.newsflash-horiz.mod-list {
    grid-template-columns: 1fr;
  }

  .mod-articlesnews-horizontal .newsflash-image img {
    height: 190px;
  }
}

/* =================================================
   STRONY PRAWNE – WYGLĄD ARTYKUŁU
   tylko dla body.law
   ================================================= */

/* kontener artykułu */
body.law .com-content-article{
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  line-height: 1.75;
  color: #2d445f;
}

/* tytuł strony */
body.law .com-content-article .page-header h1{
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 24px;
  line-height: 1.25;
  color: #2d445f;
}

/* nagłówki w treści */
body.law .com-content-article__body h1{
  font-size: 1.6rem;
  margin: 32px 0 14px;
  font-weight: 800;
}

body.law .com-content-article__body h2{
  font-size: 1.25rem;
  margin: 28px 0 10px;
  font-weight: 700;
  padding-left: 10px;
  border-left: 4px solid #EE6C4D;
}

body.law .com-content-article__body h3{
  font-size: 1.1rem;
  margin: 22px 0 8px;
  font-weight: 700;
}

/* akapity */
body.law .com-content-article__body p{
  margin: 0 0 14px;
  text-align: justify;
}

/* LISTY (jeśli się pojawią) */
body.law .com-content-article__body ul,
body.law .com-content-article__body ol{
  margin: 12px 0 16px 20px;
  padding: 0;
}

body.law .com-content-article__body li{
  margin-bottom: 8px;
}

/* LINKI – pomarańczowe, czytelne */
body.law .com-content-article__body a{
  color: #EE6C4D;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(238,108,77,.6);
  text-underline-offset: 3px;
}

body.law .com-content-article__body a:hover{
  color: #d95a3c;
  text-decoration-color: #d95a3c;
}

/* adresy e-mail – nie łamią layoutu */
body.law .com-content-article__body a[href^="mailto"]{
  word-break: break-word;
}

/* delikatne oddzielenie sekcji (np. między nagłówkami) */
body.law .com-content-article__body hr{
  border: none;
  height: 1px;
  background: rgba(45,68,95,.15);
  margin: 28px 0;
}

/* meta info (autor, data, odsłony) – spokojniejsze */
body.law .article-info{
  margin-top: 32px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* na mobile – trochę ciaśniej */
@media (max-width: 600px){
  body.law .com-content-article{
    padding: 18px 16px 26px;
  }

  body.law .com-content-article .page-header h1{
    font-size: 1.6rem;
  }
}

/* =========================
   FOOTER (tabela w module)
   ========================= */

/* ===== FOOTER: pełna szerokość + brak ściśnięcia ===== */
.container-footer.footer.full-width{
  background:#2d445f;
  color:#fff;
  width:100%;
  padding: 28px 0;
  border-top: 4px solid rgba(238,108,77,0.55);
}

/* usuń ograniczenia szerokości z szablonu w stopce */
.container-footer.footer.full-width .grid-child{
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* moduł w stopce też na pełną szerokość */
.container-footer.footer.full-width #mod-custom110{
  width: 100%;
  max-width: none !important;
  margin: 0 auto;
  padding: 0 16px; /* kontrolowany odstęp od krawędzi */
  box-sizing: border-box;
}

/* TABELA: stabilny układ 3 kolumn */
.container-footer.footer.full-width table{
  width: 100%;
  max-width: 1100px;          /* jeśli chcesz full-full, usuń tę linię */
  margin: 0 auto;             /* wyśrodkuj w stopce */
  border-collapse: collapse;  /* zamiast border-spacing */
  table-layout: fixed;        /* równe kolumny */
}

.container-footer.footer.full-width tr:first-child td{
  padding: 0 12px 10px 12px;
}

.container-footer.footer.full-width tr:nth-child(2) td{
  padding: 10px 12px 0 12px;
}

/* 3 równe kolumny */
.container-footer.footer.full-width td{
  width: 33.333%;
  vertical-align: top;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  font-size: 0.98rem;
  overflow-wrap: anywhere; /* długie rzeczy nie rozpychają/nie ściskają */
}

/* nagłówki kolumn */
.container-footer.footer.full-width td strong{
  display:inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color:#fff;
  padding-bottom: 8px;
  border-bottom: 3px solid rgba(238,108,77,0.7);
}

/* akapity */
.container-footer.footer.full-width p{
  margin: 0 0 8px 0;
}

/* linki */
.container-footer.footer.full-width a{
  color:#EE6C4D;
  font-weight:700;
  text-decoration: underline;
  text-decoration-color: rgba(238,108,77,0.6);
  text-underline-offset: 3px;
}
.container-footer.footer.full-width a:hover{
  color:#ffd2c6;
  text-decoration-color:#ffd2c6;
}

/* ===== MOBILE: tabela -> sekcje ===== */
@media (max-width: 900px){
  .container-footer.footer.full-width table,
  .container-footer.footer.full-width tbody,
  .container-footer.footer.full-width tr,
  .container-footer.footer.full-width td{
    display:block;
    width:100% !important;
  }

  .container-footer.footer.full-width table{
    max-width: 1100px;
  }

  .container-footer.footer.full-width tr{
    margin: 0 0 14px 0;
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
  }

  .container-footer.footer.full-width tr:first-child{
    display:none; /* chowamy rząd nagłówków tabeli */
  }

  /* na mobile dodajemy “nagłówki” z pierwszego wiersza jako etykiety:
     niestety bez zmiany HTML nie da się ich skopiować automatycznie,
     ale i tak układ będzie czytelny (3 bloki jeden pod drugim). */
}

.container-banner {
  margin: 0 0 0;
  display: block;
}

/* =========================================================
   AKTUALNOŚCI (category blog) – DWA RÓŻNE STYLE
   - leading: większy (hero)
   - reszta: zwykłe kafle / listy
   Kolory: #2d445f + akcent #EE6C4D, tło białe
   ========================================================= */

/* ogólne – tekst i linki */
.com-content-category-blog{
  color: #2d445f;
}

.com-content-category-blog a{
  color: #2d445f;
}

.com-content-category-blog a:hover{
  color: #EE6C4D;
}

/* =========================
   1) LEADING (główny wpis)
   ========================= */
.com-content-category-blog .items-leading .blog-item{
  background: #fff;
  border: 1px solid rgba(45,68,95,.14);
  border-radius: 18px;
  padding: 18px;
  margin: 0 0 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

/* leading: układ 2-kolumnowy na desktop, bez wymuszania wysokości zdjęcia */
@media (min-width: 992px){
  .com-content-category-blog .items-leading .blog-item{
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
    align-items: start;
  }
}

.com-content-category-blog .items-leading .blog-item figure.item-image{
  margin: 0;
}

.com-content-category-blog .items-leading .blog-item figure.item-image img{
  width: 100%;
  height: auto;              /* NIC nie tniemy na siłę */
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(45,68,95,.12);
}

/* leading: tytuł większy */
.com-content-category-blog .items-leading .blog-item .page-header h2{
  margin: 2px 0 10px;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 900;
  color: #2d445f;
}

/* leading: intro większe i czytelne */
.com-content-category-blog .items-leading .blog-item .item-content > p{
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(45,68,95,.92);
}

/* leading: meta w jednej linii (ładniej) */
.com-content-category-blog .items-leading .blog-item .article-info{
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(45,68,95,.14);
  font-size: .92rem;
  opacity: .9;
}
.com-content-category-blog .items-leading .blog-item .article-info dt{
  display: none;
}
.com-content-category-blog .items-leading .blog-item .article-info dd{
  margin: 0 12px 6px 0;
  display: inline-block;
}

/* leading: przycisk – pomarańczowy, ale tylko tu jako CTA */
.com-content-category-blog .items-leading .blog-item .readmore .btn.btn-secondary{
  background: #EE6C4D;
  border: 1px solid rgba(238,108,77,.6);
  color: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}


/* =========================================================
   ARTYKUŁ (com_content article) – nowoczesna karta + typografia
   ========================================================= */

.com-content-article.item-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 30px;
}

/* nagłówek */
.com-content-article.item-page .page-header h1{
  margin: 10px 0 14px;
  color: #2d445f;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
}

/* “karta” treści */
.com-content-article.item-page .com-content-article__body{
  background: #fff;
  border: 1px solid rgba(45,68,95,.14);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

/* tekst */
.com-content-article.item-page .com-content-article__body p{
  margin: 0 0 12px;
  color: rgba(45,68,95,.92);
  line-height: 1.75;
  font-size: 1.05rem;
}

/* linki w treści – pomarańcz jako akcent */
.com-content-article.item-page .com-content-article__body a{
  color: #EE6C4D;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(238,108,77,.55);
  text-underline-offset: 3px;
}
.com-content-article.item-page .com-content-article__body a:hover{
  color: #d95a3f;
  text-decoration-color: rgba(238,108,77,.9);
}

/* emoji obrazkowe z FB w tekście */
.com-content-article.item-page .com-content-article__body p img[alt]{
  vertical-align: -3px;
}

/* obrazki w treści (jeśli się pojawią) */
.com-content-article.item-page .com-content-article__body img{
  max-width: 100%;
  height: auto;
}

/* info artykułu pod treścią */
.com-content-article.item-page .article-info{
  max-width: 1100px;
  margin: 14px auto 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(45,68,95,.05);
  border: 1px solid rgba(45,68,95,.10);
}
.com-content-article.item-page .article-info dt{
  display:none;
}
.com-content-article.item-page .article-info dd{
  margin: 0 14px 6px 0;
  display: inline-block;
  color: rgba(45,68,95,.85);
}
.com-content-article.item-page .article-info a{
  color: #EE6C4D;
  font-weight: 700;
  text-decoration: none;
}
.com-content-article.item-page .article-info a:hover{
  text-decoration: underline;
}

/* nawigacja następny/poprzedni – spokojnie, bez “zalewu” pomarańczem */
.com-content-article.item-page .pagenavigation{
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 0 16px;
}
.com-content-article.item-page .pagenavigation .btn.btn-secondary{
  background: #ffffff;
  border: 1px solid rgba(45,68,95,.22);
  color: #2d445f;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  text-decoration: none;
}
.com-content-article.item-page .pagenavigation .btn.btn-secondary:hover{
  border-color: rgba(238,108,77,.55);
  color: #EE6C4D;
}

/* =========================================================
   GALERIA: JoomlaWorks Simple Image Gallery (SIG / jw_sig)
   ========================================================= */

/* reset listy i siatka */
.com-content-article.item-page .sigFreeContainer{
  list-style: none;
  margin: 14px 0 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* usuń “clear” element SIG */
.com-content-article.item-page .sigFreeClear{
  display:none !important;
}

/* kafelek */
.com-content-article.item-page .sigFreeThumb{
  margin: 0 !important;
}

/* link jako karta */
.com-content-article.item-page .sigFreeThumb .sigFreeLink{
  display: block;
  width: 100% !important;    /* SIG daje inline width/height – nadpisujemy */
  height: auto !important;
  border-radius: 16px;
  overflow: hidden;

  background: rgba(45,68,95,.04);
  border: 1px solid rgba(45,68,95,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* SIG robi obraz przez background-image na .sigFreeImg */
.com-content-article.item-page .sigFreeThumb .sigFreeImg{
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2;        /* równe kafle bez względu na proporcje zdjęć */
  background-size: cover !important;
  background-position: center !important;
  border-radius: 16px;
}

/* hover – delikatny akcent */
.com-content-article.item-page .sigFreeThumb .sigFreeLink:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  border-color: rgba(238,108,77,.35);
}

/* responsywność galerii */
@media (max-width: 900px){
  .com-content-article.item-page .sigFreeContainer{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px){
  .com-content-article.item-page .sigFreeContainer{
    grid-template-columns: 1fr;
  }
  .com-content-article.item-page .com-content-article__body{
    padding: 16px;
    border-radius: 16px;
  }
}

/* =========================================================
   HOME – lekkie, nowoczesne karty (O nas + Godziny)
   ========================================================= */

/* same karty */
.main-top.card,
.sidebar-right.card{
  background:#fff;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 8px 22px rgba(0,0,0,.05);
}

/* nagłówki – bez tła */
.main-top.card .card-header,
.sidebar-right.card .card-header{
  background:transparent;
  border:0;
  padding:14px 18px 6px;
  font-size:1.6rem;
  font-weight:800;
  color:#2d445f;
}

/* cienka kreska pod nagłówkiem */
.main-top.card .card-header:after,
.sidebar-right.card .card-header:after{
  content:"";
  display:block;
  width:48px;
  height:3px;
  margin-top:6px;
  background:#EE6C4D;
  border-radius:10px;
}

/* body */
.main-top.card .card-body,
.sidebar-right.card .card-body{
  padding:10px 18px 18px;
}

/* ================= O NAS ================= */

#mod-custom129 p{
  color:#2d445f;
  line-height:1.7;
  margin-bottom:12px;
  opacity:.9;
}

#mod-custom129 p:first-child{
  font-size:1.05rem;
}

/* ================= GODZINY ================= */

#mod-custom128 table{
  width:100%;
  border-collapse:collapse;
}

/* pierwszy wiersz */
#mod-custom128 tr:first-child td{
  padding:10px 0 12px;
  font-weight:700;
  color:#2d445f;
}

/* zwykłe wiersze */
#mod-custom128 td{
  padding:8px 0;
  border-bottom:1px dashed rgba(0,0,0,.08);
  color:#2d445f;
}

/* dzień */
#mod-custom128 td:first-child{
  font-weight:600;
}

/* godzina */
#mod-custom128 td:last-child{
  text-align:right;
  font-weight:600;
}

/* hover bardzo delikatny */
#mod-custom128 tr:hover td{
  color:#EE6C4D;
}

/* ostatni bez linii */
#mod-custom128 tr:last-child td{
  border-bottom:0;
}

/* mobile */
@media(max-width:768px){
  .main-top.card .card-body,
  .sidebar-right.card .card-body{
    padding:12px;
  }
}

/* =========================================================
   HOME – równa wysokość + mocniejsze "O nas"
   ========================================================= */

/* kontener z obiema kartami */
.site-grid{
  align-items: stretch;
}

/* same karty na pełną wysokość kolumny */
.main-top.card,
.sidebar-right.card{
  height:100%;
  display:flex;
  flex-direction:column;
}

/* body też rozciągamy */
.main-top.card .card-body,
.sidebar-right.card .card-body{
  flex:1;
}

/* ================= O NAS – większy tekst ================= */

#mod-custom129 p{
  font-size:1.1rem;
  line-height:1.75;
}

#mod-custom129 p:first-child{
  font-size:1.2rem;
  font-weight:500;
}

/* =========================================================
   LAW: spójny wygląd strony + tabela (TYLKO body.law)
   ========================================================= */

:root{
  --law-main:#2d445f;
  --law-accent:#EE6C4D;
  --law-border: rgba(45,68,95,.14);
  --law-soft: rgba(45,68,95,.06);
  --law-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* ---- typografia i rytm na stronie law ---- */
body.law .com-content-article{
  max-width: 1100px;
  margin: 0 auto;
}

body.law .com-content-article .page-header h1{
  color: var(--law-main);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}

body.law .com-content-article__body{
  color: var(--law-main);
  line-height: 1.75;
  font-size: 1rem;
}

body.law .com-content-article__body h1,
body.law .com-content-article__body h2,
body.law .com-content-article__body h3{
  color: var(--law-main);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 18px 0 10px;
}

body.law .com-content-article__body h2{
  border-left: 6px solid var(--law-accent);
  padding-left: 12px;
}

body.law .com-content-article__body a{
  color: var(--law-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(238,108,77,.55);
  text-underline-offset: 3px;
}
body.law .com-content-article__body a:hover{
  text-decoration-color: var(--law-accent);
}

/* =========================================================
   TABELA: wygląd premium + równe kolumny
   ========================================================= */

/* wrapper (dla mobile scroll) – bez zmian w HTML */
body.law .com-content-article__body table{
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;

  background: #fff;
  border: 1px solid var(--law-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--law-shadow);

  margin: 18px 0 26px;
}

/* komórki */
body.law .com-content-article__body table td,
body.law .com-content-article__body table th{
  padding: 14px 16px !important;
  vertical-align: top !important;

  color: var(--law-main) !important;
  font-size: .98rem;
  line-height: 1.65;

  border: 0 !important;
  border-bottom: 1px solid rgba(45,68,95,.10) !important;
}

/* nagłówek – u Ciebie to 1. wiersz z TD */
body.law .com-content-article__body table tr:first-child td{
  background: var(--law-main) !important;
  color: #fff !important;
  font-weight: 900 !important;
  letter-spacing: .2px;
  border-bottom: 0 !important;
}

/* pionowe separatory kolumn (bez nagłówka) */
body.law .com-content-article__body table tr:not(:first-child) td + td{
  border-left: 1px solid rgba(45,68,95,.10) !important;
}

/* zebra + miękkie tło dla czytelności */
body.law .com-content-article__body table tr:nth-child(even):not(:first-child) td{
  background: rgba(45,68,95,.03) !important;
}

/* akcent po lewej w pierwszej kolumnie (bez nagłówka) */
body.law .com-content-article__body table tr:not(:first-child) td:first-child{
  border-left: 6px solid rgba(238,108,77,.45) !important;
}

/* kolumny: proporcje (desktop) – daje „równo” */
@media (min-width: 992px){
  body.law .com-content-article__body table{
    table-layout: fixed;
  }

  /* 4 kolumny: 28% / 30% / 18% / 24% */
  body.law .com-content-article__body table td:nth-child(1){ width: 28%; }
  body.law .com-content-article__body table td:nth-child(2){ width: 30%; }
  body.law .com-content-article__body table td:nth-child(3){ width: 18%; }
  body.law .com-content-article__body table td:nth-child(4){ width: 24%; }
}

/* „Podstawa prawna” – jak badge, żeby było czytelne */
body.law .com-content-article__body table tr:not(:first-child) td:nth-child(3){
  font-weight: 800 !important;
}

body.law .com-content-article__body table tr:not(:first-child) td:nth-child(3) br{
  display: none;
}

/* ostatni wiersz bez dolnej kreski */
body.law .com-content-article__body table tr:last-child td{
  border-bottom: 0 !important;
}

/* =========================================================
   MOBILE: elegancki scroll + sticky nagłówek
   ========================================================= */
@media (max-width: 900px){

  /* tabela jako blok przewijany */
  body.law .com-content-article__body table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* minimalne szerokości kolumn – żeby nie ściskało tekstu */
  body.law .com-content-article__body table td{
    min-width: 240px;
  }

  body.law .com-content-article__body table tr:first-child td{
    position: sticky;
    top: 0;
    z-index: 2;
  }

  /* delikatne „paseczki” w scrollu */
  body.law .com-content-article__body table::-webkit-scrollbar{
    height: 10px;
  }
  body.law .com-content-article__body table::-webkit-scrollbar-thumb{
    background: rgba(45,68,95,.25);
    border-radius: 999px;
  }
  body.law .com-content-article__body table::-webkit-scrollbar-track{
    background: rgba(45,68,95,.08);
    border-radius: 999px;
  }
}

/* ===== TYLKO: sekcja Linki (container-bottom-b) ===== */

/* pełna szerokość + ciemne tło */
.grid-child.container-bottom-b{
  width: 100%;
  max-width: none;
  background: #1f2f45;              /* ciemniej niż #2d445f */
  padding: 26px 0;
}

/* karta bez białego tła i bez ramek */
.grid-child.container-bottom-b .bottom-b.card{
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0 auto;
  width: min(1400px, 100%);         /* bardzo szeroko, ale nie bez końca */
  padding: 0 14px;                  /* oddech przy krawędzi */
}

/* usuń nagłówek "Linki" (tylko tutaj!) */
.grid-child.container-bottom-b .card-header.law{
  display: none !important;
}

/* trochę miejsca dla slidera */
.grid-child.container-bottom-b .card-body{
  padding: 0;
}

/* nawigacja/paginacja Swipera pod ciemnym tłem */
.grid-child.container-bottom-b .swiper-button-prev,
.grid-child.container-bottom-b .swiper-button-next{
  color: #ffffff;
}

.grid-child.container-bottom-b .swiper-pagination-bullet{
  background: rgba(255,255,255,0.55);
  opacity: 1;
}

.grid-child.container-bottom-b .swiper-pagination-bullet-active{
  background: #EE6C4D;
}

/* Slider "Linki" – tylko dla tego konkretnego bloku */
.bottom-b.card .card-body { padding: 0; }

/* klikalny slajd */
.bottom-b.card .logo-link{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  border-radius: 16px;
  text-decoration:none;
  transition: transform .15s ease, background .15s ease;
}

.bottom-b.card .logo-link:hover{
  transform: translateY(-2px);
  background: rgba(238,108,77,.10);
}

/* obrazek równo i elegancko */
.bottom-b.card .logo-link img{
  width: 100%;
  height: 120px;      /* równa wysokość wszystkich */
  object-fit: contain;
  display:block;
}

/* paginacja i strzałki – czytelne */
.bottom-b.card .swiper-pagination-bullet{
  opacity: 1;
  background: rgba(255,255,255,.55);
}
.bottom-b.card .swiper-pagination-bullet-active{
  background: #EE6C4D;
}

.bottom-b.card .swiper-button-prev,
.bottom-b.card .swiper-button-next{
  color: #ffffff;
}

/* ===== Linki slider (tylko ten moduł) ===== */
.grid-child.container-bottom-b{
  background: #1f2f45;
  padding: 26px 0;
}

.grid-child.container-bottom-b > .bottom-b.card{
  background: transparent;
  border: 0;
  box-shadow: none;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0 14px;
}

/* usuń tytuł "SliderLinki" */
.grid-child.container-bottom-b > .bottom-b.card > .card-header{
  display:none !important;
}

/* usuń podwójną "kartę w karcie" z środka */
#mod-custom131 .bottom-b.card{
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* swiper obszar */
#mod-custom131 .swiper-linki{
  padding: 10px 0 18px;
}

/* klikalne logo */
#mod-custom131 .logo-link{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  border-radius: 16px;
  text-decoration:none;
  transition: transform .15s ease, background .15s ease;
}
#mod-custom131 .logo-link:hover{
  transform: translateY(-2px);
  background: rgba(238,108,77,.10);
}

/* równe logo */
#mod-custom131 .logo-link img{
  width: 100%;
  height: 120px;
  object-fit: contain;
  display:block;
}

/* strzałki + kropki */
#mod-custom131 .swiper-button-prev,
#mod-custom131 .swiper-button-next{
  color: #fff;
}

#mod-custom131 .swiper-pagination-bullet{
  opacity: 1;
  background: rgba(255,255,255,.55);
}
#mod-custom131 .swiper-pagination-bullet-active{
  background: #EE6C4D;
}

/* AWARYJNIE: jeśli Swiper nie działa, zrób ładną siatkę zamiast "słupa" */
#mod-custom131 .swiper-linki .swiper-wrapper{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px){
  #mod-custom131 .swiper-linki .swiper-wrapper{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px){
  #mod-custom131 .swiper-linki .swiper-wrapper{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TYLKO: Informacje prawne (body.law + .content-categorylaw)
   ========================================================= */

body.law .content-categorylaw{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

/* selektor limitu (Pokaż #) */
body.law .content-categorylaw .com-content-category__pagination{
  margin: 6px 0 12px;
}

body.law .content-categorylaw .form-select{
  border-radius: 14px;
  border: 1px solid rgba(45,68,95,.18);
  color: #2d445f;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

/* tabela jako “karta” */
body.law .content-categorylaw .com-content-category__table{
  background: #fff;
  border: 1px solid rgba(45,68,95,.14) !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  margin: 0;
}

/* nagłówki */
body.law .content-categorylaw .com-content-category__table thead th{
  background: rgba(45,68,95,.06);
  color: #2d445f;
  font-weight: 900;
  border-bottom: 1px solid rgba(45,68,95,.14) !important;
  padding: 14px 14px;
  white-space: nowrap;
}

/* linki sortowania w nagłówku */
body.law .content-categorylaw .com-content-category__table thead th a{
  color: #2d445f;
  text-decoration: none;
}
body.law .content-categorylaw .com-content-category__table thead th a:hover{
  color: #EE6C4D;
  text-decoration: underline;
  text-decoration-color: rgba(238,108,77,.55);
  text-underline-offset: 3px;
}

/* komórki */
body.law .content-categorylaw .com-content-category__table tbody th,
body.law .content-categorylaw .com-content-category__table tbody td{
  padding: 14px 14px;
  border-top: 1px solid rgba(45,68,95,.10) !important;
  color: rgba(45,68,95,.9);
  vertical-align: middle;
}

/* tytuł jako mocniejszy link */
body.law .content-categorylaw .com-content-category__table .list-title a{
  color: #2d445f;
  font-weight: 850;
  text-decoration: none;
  line-height: 1.25;
}
body.law .content-categorylaw .com-content-category__table .list-title a:hover{
  color: #EE6C4D;
}

/* zebra delikatna (nadpisuje bootstrap striped) */
body.law .content-categorylaw .com-content-category__table.table-striped tbody tr:nth-of-type(odd){
  background: rgba(45,68,95,.02);
}

/* hover miękki */
body.law .content-categorylaw .com-content-category__table.table-hover tbody tr:hover{
  background: rgba(238,108,77,.06);
}

/* badge odsłon – w Twoich kolorach */
body.law .content-categorylaw .com-content-category__table .badge.bg-info{
  background: rgba(238,108,77,.14) !important;
  color: #2d445f !important;
  border: 1px solid rgba(238,108,77,.35);
  font-weight: 900;
  border-radius: 999px;
  padding: .35rem .6rem;
}

/* responsywność: na telefonie tabela przewijana poziomo */
@media (max-width: 700px){
  body.law .content-categorylaw .com-content-category__articles{
    overflow-x: auto;
  }
  body.law .content-categorylaw .com-content-category__table{
    min-width: 640px;
  }
}
/* =========================================================
   INFORMACJE PRAWNE – WYRAŹNE, NOWOCZESNE LINKI
   ========================================================= */

/* główne linki tytułów */
body.law .content-categorylaw .list-title a{
  color: #EE6C4D;
  font-weight: 900;
  text-decoration: none;
  position: relative;
  transition: 
    color .25s ease,
    transform .2s ease,
    text-shadow .25s ease;
}

/* delikatne podkreślenie animowane */
body.law .content-categorylaw .list-title a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #EE6C4D, rgba(238,108,77,.4));
  border-radius: 2px;
  transition: width .28s ease;
}

/* hover – smooth efekt */
body.law .content-categorylaw .list-title a:hover{
  color: #d85a3d;
  transform: translateX(3px);
  text-shadow: 0 2px 10px rgba(238,108,77,.25);
}

body.law .content-categorylaw .list-title a:hover::after{
  width: 100%;
}


/* linki w nagłówku tabeli */
body.law .content-categorylaw thead th a{
  color: #2d445f;
  font-weight: 800;
  transition: color .25s ease;
}

body.law .content-categorylaw thead th a:hover{
  color: #EE6C4D;
}


/* badge odsłon bardziej spójny */
body.law .content-categorylaw .badge.bg-info{
  background: linear-gradient(135deg, #EE6C4D, #f08a70) !important;
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 10px rgba(238,108,77,.25);
}

/* Tylko ta komórka z mapą */
td.footer-map{
  padding: 12px 0 !important;  /* trochę oddechu góra/dół */
}

/* Ładna “karta” na mapę */
td.footer-map iframe{
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 450px !important;
  border: 0 !important;

  border-radius: 16px;                 /* zaokrąglenie */
  box-shadow: 0 12px 30px rgba(0,0,0,.18); /* cień */
}

/* ważne: żeby zaokrąglenie działało w każdym przypadku */
td.footer-map{
  overflow: hidden;     /* ucina rogi iframe jeśli przeglądarka marudzi */
  border-radius: 16px;  /* to samo co iframe */
}

}

td.footer-map iframe{
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
td.footer-map{ border-radius: 20px; }





/* === TŁO sekcji (overlay) – działa nawet jak tło jest „zablokowane” === */
.container-bottom-b .bottom-b.card .card-body{
  position: relative;
  isolation: isolate;        /* żeby overlay był pod treścią */
  padding: 18px;
  border-radius: 18px;
}

/* overlay tła (możesz zmienić kolory) */
.container-bottom-b .bottom-b.card .card-body::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  z-index: -1;

  /* tu ustawiasz tło */
  border: 1px solid rgba(45,68,95,.16);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

/* === Swiper layout === */
.container-bottom-b .bottom-b.card .swiper{
  padding: 10px 46px 34px; /* miejsce na strzałki + kropki */
}

/* === Kafelki slajdów: większy kontrast i „premium” look === */
.container-bottom-b .bottom-b.card .swiper-slide a{
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(45,68,95,.18);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

/* Loga: czytelniejsze nawet gdy są jasne */
.container-bottom-b .bottom-b.card .swiper-slide img{
  display: block;
  object-fit: contain;
  padding: 12px;

  /* poprawa czytelności jasnych logotypów */
  filter: contrast(1.12) saturate(1.05);
  transform: translateZ(0);
}



/* === Strzałki === */
.container-bottom-b .bottom-b.card .swiper-button-prev,
.container-bottom-b .bottom-b.card .swiper-button-next{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(45,68,95,.18);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
.container-bottom-b .bottom-b.card .swiper-button-prev::after,
.container-bottom-b .bottom-b.card .swiper-button-next::after{
  font-size: 16px;
}

/* === Kropki/paginacja bardziej czytelne === */
.container-bottom-b .bottom-b.card .swiper-pagination{
  bottom: 10px !important;
}
.container-bottom-b .bottom-b.card .swiper-pagination-bullet{
  opacity: .35;
}
.container-bottom-b .bottom-b.card .swiper-pagination-bullet-active{
  opacity: 1;
  transform: scale(1.2);
}

/* poprawki wyświetlania zdj artykułów */

/* ===== KONTAINER OBRAZKA ===== */
.com-content-category-blog .blog-item .item-image {
  float: none;
  width: 100%;
  max-width: 90%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0 auto 1rem auto;
  border-radius: 14px;

  /* animacja */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== OBRAZEK ===== */
.com-content-category-blog .blog-item .item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;

  border-radius: 14px;

  /* animacja zoom */
  transition: transform 0.5s ease;
}

/* ===== HOVER (EFEKT PREMIUM) ===== */
.com-content-category-blog .blog-item:hover .item-image {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.com-content-category-blog .blog-item:hover .item-image img {
  transform: scale(1.05);
}

/* ===== DELIKATNY OVERLAY (opcjonalny luksusowy efekt) ===== */
.com-content-category-blog .blog-item .item-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 14px;
}

.com-content-category-blog .blog-item:hover .item-image::after {
  opacity: 1;
}

/* ===== WAŻNE: żeby overlay działał poprawnie ===== */
.com-content-category-blog .blog-item .item-image {
  position: relative;
}

.map-container {
  width: 100%;
  max-width: 2000px;       /* kontrola szerokości */
  margin: 2rem auto;       /* wyśrodkowanie */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  position: relative;
}

/* proporcje (ładne, panoramiczne) */
.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* efekt hover */
.map-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  transition: all 0.3s ease;
}

/* subtelny overlay (premium look) */
.map-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-container:hover::after {
  opacity: 1;
}