/*****************************/
/*** Core html setup stuff ***/
/*****************************/

html {
  height: 100%;
  margin-bottom: 1px;
}

form {
  margin: 0;
  padding: 0;
}

body {
	font-family: Helvetica,Arial,sans-serif;
	line-height: 1.3em;
	margin: 0px 0px 0px 0px;
	font-size: 12px;
	color: #333;
}

a:link, a:visited {
	text-decoration: none;
	font-weight: normal;
}

a:hover {
	text-decoration: underline;
	font-weight: normal;
}

input.button { cursor: pointer; }

p { margin-top: 0; margin-bottom: 5px; }

img { border: 0 none; }

/*****************************************/
/*** Template specific layout elements ***/
/*****************************************/
#page_bg {
	padding: 10px 0;
	margin-bottom: 1px;
}

div.center {
  text-align: center;
}

div#wrapper {
	margin-left: auto;
	margin-right: auto;
}

body.width_medium div#wrapper {
	width: 950px;
}

body.width_small div#wrapper {
	width: 773px;
}

body.width_fmax div#wrapper {
	min-width: 750px;
	max-width: 1050px;
}

div#header_l {
	position: relative;
}

div#header_r {
	height: 90px;
	padding-left: 370px;
	padding-right: 30px;
	padding-top: 25px;
	overflow: hidden;
	text-align: left;
}

div#logo {
	position: absolute;
	left: 0;
	top: 0;
	float: left;
	width: 298px;
	height: 75px;
	background: url(../images/mw_joomla_logo.png) 0 0 no-repeat;
	margin-left: 30px;
	margin-top: 25px;
}

div#newsflash {
	width: auto;
	margin-left: 350px;
	margin-right: 30px;
	border: 1px solid #00f;
}

div#tabarea {
	background: #f7f7f7 url(../images/mw_header_b.png) 0 0 repeat-x;
	margin: 0 11px;

}

div#tabarea_l {
	background: url(../images/mw_header_l_b.png) 0 0 no-repeat;
	padding-left: 32px;
}

div#tabarea_r {
	height: 42px;
	background: url(../images/mw_header_r_b.png) 100% 0 no-repeat;
	padding-right: 1px;
}

div#footer_r {
	padding-top: 10px;
	height: 47px;
	overflow: hidden;
}

div#footer_r div {
	text-align: center;
	font-size: .90em;
	color: #aaa;
}

div#footer_r a:link, div#footer_r a:visited  {
	color: #999;
}

div#footerspacer {
	height: 10px;
}

#pathway {
	padding: 0px 10px 8px;
	width: auto;
	margin-top: -2px;
	margin-right: 250px;
	text-align: left;
}

#search {
	float: right;
	width:320px;
	margin-top: -20px;
	margin-right: 30px;
	height: 40px;
	overflow: hidden;
	text-align:right;
}

form#searchForm input {
	vertical-align: middle;
}

form#searchForm table {
	border-collapse: collapse;
}

form#searchForm td {
	padding:0;
}

#mod_search_searchword {
	padding-left: 3px;
}

#area {
	padding: 0;
}

#whitebox {
	margin: 0 21px 0px 21px;
	background: #fff;
	width: auto;
}

#whitebox div {
	text-align: left;
}

#whitebox_t {
	background: #fff url(../images/mw_content_t.png) 0 0 repeat-x;
}

#whitebox_tl {
	background: url(../images/mw_content_t_l.png) 0 0 no-repeat;
}

#whitebox_tr {
	height: 10px;
	overflow: hidden;
	background: url(../images/mw_content_t_r.png) 100% 0 no-repeat;
}

#whitebox_m {
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
	width: auto;
	padding: 1px 8px;
}

#whitebox_b {
	margin-top: -5px;
	background: url(../images/mw_content_b.png) 0 100% repeat-x;
}

#whitebox_bl {
	background: url(../images/mw_content_b_l.png) 0 100% no-repeat;
}

#whitebox_br {
	height: 13px;
	background: url(../images/mw_content_b_r.png) 100% 100% no-repeat;
}

/* horizontal pill menu */
table.pill {
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

td.pill_l {
  background: url(../images/mw_menu_cap_l.png) no-repeat;
  width:  20px;
  height: 32px;

}

td.pill_m {
  background: url(../images/mw_menu_normal_bg.png) repeat-x;
  padding: 0;
  margin: 0;
  width: auto;
}

td.pill_r {
  background: url(../images/mw_menu_cap_r.png) no-repeat;
  width:  19px;
  height: 32px;
}

#pillmenu {
  white-space: nowrap;
  height: 32px;
  float: left;
}

#pillmenu ul {
  margin: 0;
  padding: 0;
  list-style:none;
}

#pillmenu li {
	float: left;
	background: url(../images/mw_menu_separator.png) top right no-repeat;
	margin: 0;
	padding: 0;
}

#pillmenu a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
	float:left;
  display:block;
  height: 24px;
  line-height: 24px;
  padding: 0 20px;
  color: #000;
  text-decoration: none;
}

#pillmenu a#active_menu-nav {
	margin-top:2px;
	height: 21px;
	line-height: 21px;
	background-position: 0 0;
}

#leftcolumn {
	padding: 0;
	margin: 0;
	width: 20%;
	float:left;
}

#maincolumn,
#maincolumn_full {
	margin-left: 20%;
	padding-left: 15px;
	width: 75%;
}

#maincolumn_full {
	margin-left: 0;
	padding: 0;
	width: 100%;
}

table.nopad {
	width: 100%;
	border-collapse: collapse;
	padding: 0;
	margin: 0;
	margin-bottom: 15px;
}

table.nopad td.middle_pad {
	width: 20px;
}

/*****************************************/
/*** Joomla! specific content elements ***/
/*****************************************/

div.offline {
	background: #fffebb;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	font-size: 1.2em;
	padding: 5px;
}

span.pathway {
  display: block;
  margin: 0 20px;
  height: 16px;
  line-height: 16px;
  overflow: hidden;
}

/* headers */
div.componentheading {
  padding-left: 0px;
}

h1 {
	padding: 0;
	font-family:Helvetica ,Arial,sans-serif;
	font-size: 1.3em;
	font-weight: bold;
	vertical-align: bottom;
	color: #666;
	text-align: left;
	width: 100%;
}

h2, .contentheading {
	padding: 0;
	font-family: Arial, Helvetica,sans-serif;
	font-size: 1.4em;
	font-weight: normal;
	vertical-align: bottom;
	color: #333;
	text-align: left;
	width: 100%;
}

table.contentpaneopen h3 {
	margin-top: 25px;
}

h4 {
	font-family: Arial, Helvetica, sans-serif;
	color: #333;
}

h3, .componentheading, table.moduletable th, legend {
  margin: 0;
  font-weight: bold;
  font-family: Helvetica,Arial,sans-serif;
  font-size: 1.5em;
  padding-left: 0px;
	margin-bottom: 10px;
	text-align: left;
}

/* small text */
.small {
	font-size: .90em;
	color: #999;
	font-weight: normal;
	text-align: left;
}

.modifydate {
  height: 20px;
  vertical-align: bottom;
	font-size: .90em;
	color: #999;
	font-weight: normal;
	text-align: left;
}

.createdate {
	height: 20px;
	vertical-align: top;
	font-size: .90em;
	color: #999;
	font-weight: normal;
	vertical-align: top;
	padding-bottom: 5px;
	padding-top: 0px;

}

a.readon {
	margin-top: 10px;
	display: block;
	float: left;
	background: url(../images/mw_readon.png) top right no-repeat;
	padding-right: 20px;
	line-height: 14px;
	height: 16px;
}

/* form validation */
.invalid { border-color: #ff0000; }
label.invalid { color: #ff0000; }


/** overlib **/

.ol-foreground {
	background-color: #f6f6f6;
}

.ol-background {
	background-color: #666;
}

.ol-textfont {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
}

.ol-captionfont {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #f6f6f6;
	font-weight: bold;
}
.ol-captionfont a {
	color: #0B55C4;
	text-decoration: none;
	font-size: 12px;
}

.ol-closefont {}

/* menu links */
a.mainlevel:link, a.mainlevel:visited {
	padding-left: 5px;
}

a.mainlevel:hover {

}

/* spacers */
span.article_separator {
	display: block;
	height: 20px;
}

.article_column {
	padding-right: 5px;
}

.column_separator {
	border-left: 1px dashed #e0e0e0;
	padding-left: 10px;
}

td.buttonheading {

}

td.buttonheading img {
	border:none;
}

.clr {
	clear: both;
}

td.greyline {
  width: 20px;
  background: url(../images/mw_line_grey.png) 50% 0 repeat-y;
}

div#maindivider {
  border-top: 1px solid #ddd;
  margin-bottom: 10px;
  overflow: hidden;
  height: 1px;
}

table.blog span.article_separator {
	display: block;
	height: 20px;
}

/* edit button */
.contentpaneopen_edit{
	float: left;
}

/* table of contents */
table.contenttoc {
  margin: 5px;
  border: 1px solid #ccc;
  padding: 5px;
  float: right;
}

table.contenttoc td {
  padding: 0 5px;
}


/* content tables */
td.sectiontableheader {
  background: #efefef;
  color: #333;
  font-weight: bold;
  padding: 4px;
  border-right: 1px solid #fff;
}

tr.sectiontableentry0 td,
tr.sectiontableentry1 td,
tr.sectiontableentry2 td {
  padding: 4px;
}

td.sectiontableentry0,
td.sectiontableentry1,
td.sectiontableentry2 {
  padding: 3px;
}


/* content styles */
table.contentpaneopen, table.contentpane {
	margin: 0;
	padding: 0;
	width: 100%;
}

table.contentpaneopen li {
	margin-bottom: 5px;
}

table.contentpaneopen fieldset {
	border: 0;
	border-top: 1px solid #ddd;
}

table.contentpaneopen h3 {
	margin-top: 25px;
}

table.contentpaneopen h4 {
	font-family: Arial, Helvetica, sans-serif;
	color: #333;
}

.highlight {
	background-color: #fffebb;
}

/* module control elements */
table.user1user2 div.moduletable {
	margin-bottom: 0px;
}

div.moduletable, div.module {
  margin-bottom: 25px;
}

div.module_menu h3 {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #eee;
	margin: -23px -4px 5px -5px;
	padding-left: 10px;
	padding-bottom: 2px;
}

div.module_menu {
	margin: 0;
	padding: 0;
	margin-bottom: 15px;
}

div.module_menu div div div {
	padding: 10px;
	padding-top: 30px;
	padding-bottom: 15px;
	width: auto;
}

div.module_menu div div div div {
	background: none;
	padding: 0;
}

div.module_menu ul {
	margin: 10px 0;
	padding-left: 20px;
}

div.module_menu ul li a:link, div.module_menu ul li a:visited {
	font-weight: bold;
}

#leftcolumn div.module {
	padding: 0 10px;
}

#leftcolumn div.module table {
	width: auto;
}

/* forms */
table.adminform textarea {
  width: 540px;
  height: 400px;
  font-size: 1em;
  color: #000099;
}

div.search input {
	width: 145px;
	border: 1px solid #ccc;
	margin: 15px 0 10px 0;
}

form#form-login fieldset { border: 0 none; margin: 0em; padding: 0.2em;}
form#form-login ul { padding-left: 20px; }

form#com-form-login fieldset { border: 0 none; margin: 0em; padding: 0.2em;}
form#com-form-login ul { padding-left: 20px; }

/* thumbnails */
div.mosimage         {  margin: 5px; }
div.mosimage_caption {  font-size: .90em; color: #666; }

div.caption       { padding: 0 10px 0 10px; }
div.caption img   { border: 1px solid #CCC; }
div.caption p     { font-size: .90em; color: #666; text-align: center; }

div.img_caption       { padding: 0 10px 0 10px; }
div.img_caption img   { border: 1px solid #CCC; }
div.img_caption p     { font-size: .90em; color: #666; text-align: center; }

/* Parameter Table */
table.paramlist {
	margin-top: 5px;
}

table.paramlist td.paramlist_key {
	width: 128px;
	text-align: left;
	height: 30px;
}

table.paramlist td.paramlist_value {
}

div.message {
	font-family : "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size : 14px;
	color : #c30;
	text-align: center;
	width: auto;
	background-color: #f9f9f9;
	border: solid 1px #d5d5d5;
	margin: 3px 0px 10px;
	padding: 3px 20px;
}

/* Banners module */

/* Default skyscraper style */
.bannergroup {
}

.banneritem img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Text advert style */

.banneritem_text {
	padding: 4px;
	font-size: 11px;
}

.bannerfooter_text {
	padding: 4px;
	font-size: 11px;
	background-color: #F7F7F7;
	text-align: right;
}

/* System Messages */
/* see system general.css */

.pagination span { padding: 2px; }
.pagination a    { padding: 2px; }

/* Polls */
.pollstableborder td {
	text-align: left;
}

/* WebLinks */
span.description {
	display:block;
	padding-left: 30px;
}

/* Frontend Editing*/
fieldset {
	border: 1px solid #ccc;
	margin-top: 15px;
	padding: 15px;
}

legend {
	margin: 0;
	padding: 0 10px;
}

td.key {
	border-bottom:1px solid #eee;
	color: #666;
}

/* Tooltips */

.tool-tip {
	float: left;
	background: #ffc;
	border: 1px solid #D4D5AA;
	padding: 5px;
	max-width: 200px;
}

.tool-title {
	padding: 0;
	margin: 0;
	font-size: 100%;
	font-weight: bold;
	margin-top: -15px;
	padding-top: 15px;
	padding-bottom: 5px;
	background: url(../../system/images/selector-arrow.png) no-repeat;
}

.tool-text {
	font-size: 100%;
	margin: 0;
}

/* System Standard Messages */
#system-message { margin-bottom: 20px; }

#system-message dd.message ul { background: #C3D2E5 url(../../system/images/notice-info.png) 4px center no-repeat;border-top: 3px solid #DE7A7B; border-bottom: 3px solid #DE7A7B; margin:0px; padding-left: 40px; text-indent:0px;}

/* System Error Messages */
#system-message dd.error ul { color: #c00; background: #E6C0C0 url(../../system/images/notice-alert.png) 4px center no-repeat; border-top: 3px solid #DE7A7B; border-bottom: 3px solid #DE7A7B; margin:0px; padding-left: 40px; text-indent:0px;}

/* System Notice Messages */
#system-message dd.notice ul { color: #c00; background: #EFE7B8 url(../../system/images/notice-note.png) 4px center no-repeat; border-top: 3px solid #F0DC7E; border-bottom: 3px solid #F0DC7E; margin:0px; padding-left: 40px; text-indent:0px;}

#syndicate{
	float:left;
	padding-left: 25px;
}

#power_by{
	float:right;
	padding-right: 25px;
}

/* Component Specific Fixes */

#component-contact table td {
	padding: 2px 0;
}

.item-page .article-info, ul.pager {
display:none;
}

.pasektop {
background: rgba(0, 0, 0, 0) url("../images/pasek_top.jpg") no-repeat scroll 0 0;
float: left;
width: 100%;
padding-bottom:1px;
}


.pasektop #fontsize, .pasektop .jfontsize {
float:right;
padding-top:4px;
margin-right:40px;

background:#fff;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
display:block;
  padding: 2px 15px 2px 15px;
  margin-top:8px;
}



.pasektop .jfontsize #jfontsize-minus {
  font-size: 1.1em;
  color:#000;
}

.pasektop .jfontsize #jfontsize-default {
  font-size: 1.3em;
  font-weight: 600;
  color:#e5692d;
}

.pasektop .jfontsize #jfontsize-plus {
  font-size: 1.6em;
  font-weight: 700;
    color:#000;
}

.pasektop .jfontsize a {
  color: #b73c00;
  padding: 0 1px 0 0;
  text-decoration: none;
  border:0px;
}

.pasektop .jfontsize a:hover {
background:none;
}


.content-outer {

margin: auto;
width: 1000px;
background:#f2ebcf;
overflow:hidden;
}



.pasektop  a.niedowidzacy-btn {
  background: #fff url("../images/dla_niedowidzacych_ico.png") no-repeat scroll right center !important;

  float: right;
  font-weight: bold;
font-size:1.2em;
color:#000;
  margin-right: 20px;
margin-top:8px;
  padding: 6px 48px 6px 15px;


-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
display:block;
}

.pasektop  a.normalny-btn {
  background: #fff url("../images/dla_niedowidzacych_ico.png") no-repeat scroll right center !important;

  float: right;
  font-weight: bold;
font-size:1.2em;
color:#000;
  margin-right: 20px;
margin-top:8px;
  padding: 6px 48px 6px 15px;


-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
display:block;
}




#menu .vvisit_counter  {
padding:0px;
margin:20px 0px 20px 0px;
}

#menu .vvisit_counter div, #menu .vvisit_counter hr {
display:none;
}

#menu .vvisit_counter div.vdigit_counter {
display:block;
}

dt.a-m-d, .a-m-t-n, .a-m-t, .sf-menu li {
background: url(../images/normal/linia3.jpg) 24px 0 no-repeat;
padding-top: 17px;
padding-left: 44px;
padding-bottom: 10px;
font-family: "Century Gothic", Verdana;
font-size: 1.3em; /*15px;*/
/*height: 20px;*/
z-index: 100;
}

.sf-menu li.item-101 {
background:none;
}

.breadcrumb {
  font-size: 1.3em;
}

body .item-page {
font-size:1.3em;
overflow:hidden;
}

.articlebody {
float: left;
width: 95%;
}

a._dodatkowa {
  padding: 10px 20px !important;   
  text-align: left !important;
  width: 60% !important;
  height: 20px !important;
  
}

/* ==========================================================================
   Dodatki WCAG 2.1 oraz Asystent AI Chat (Stowarzyszenie SRNIS)
   ========================================================================== */

/* Skip Link dla klawiatury */
.wcag-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #e06000;
    color: #ffffff !important;
    padding: 8px 15px;
    border-radius: 0 0 4px 4px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 10000;
    transition: top 0.2s ease;
    outline: none;
    text-decoration: none !important;
}
.wcag-skip-link:focus {
    top: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Przyciski WCAG w nagłówku */
.wcag-btn-inline {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wcag-btn-inline:hover, .wcag-btn-inline:focus {
    background-color: #e06000;
    color: #ffffff;
    border-color: #e06000;
    outline: none;
}

/* Nadpisania WCAG dla wielkości czcionek */
body.wcag-font-small { font-size: 10px !important; }
body.wcag-font-large { font-size: 15px !important; }
body.wcag-font-large h1, body.wcag-font-large .componentheading { font-size: 20px !important; }
body.wcag-font-large p, body.wcag-font-large td, body.wcag-font-large li { font-size: 15px !important; }

/* Podkreślanie linków */
body.wcag-underlines a {
    text-decoration: underline !important;
}

/* Czcionka dla dyslektyków */
body.wcag-readable-font {
    font-family: Arial, sans-serif !important;
    letter-spacing: 0.03em;
    word-spacing: 0.06em;
}

/* Stylizacja Asystenta AI Chat */
.fop-chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #002e5b;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
}
.fop-chat-toggle:hover, .fop-chat-toggle:focus {
    transform: scale(1.08);
    background-color: #e06000;
}
.fop-chat-toggle .fop-chat-ico-close { display: none; width: 25px; height: 25px; }
.fop-chat-toggle .fop-chat-ico-chat { display: block; width: 25px; height: 25px; }
.fop-chat-toggle.is-open .fop-chat-ico-close { display: block; }
.fop-chat-toggle.is-open .fop-chat-ico-chat { display: none; }

.fop-chat-panel {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 350px;
    height: 480px;
    max-height: calc(100vh - 120px);
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}
.fop-chat-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fop-chat-head {
    background: linear-gradient(135deg, #002e5b, #001a35);
    color: #ffffff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.fop-chat-head__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f39200;
}
.fop-chat-head__avatar svg { width: 20px; height: 20px; }
.fop-chat-head__t { display: flex; flex-direction: column; }
.fop-chat-head__t b { font-size: 13.5px; font-weight: bold; }
.fop-chat-head__t span { font-size: 10.5px; color: rgba(255, 255, 255, 0.7); }

.fop-chat-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
}

.fop-chat-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fop-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.4;
    word-wrap: break-word;
}
.fop-msg--bot {
    background-color: #ffffff;
    color: #333333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.fop-msg--user {
    background-color: #002e5b;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fop-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    width: 100%;
}
.fop-chip {
    background-color: #ffffff;
    color: #002e5b;
    border: 1px solid #002e5b;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    font-weight: bold;
}
.fop-chip:hover {
    background-color: #002e5b;
    color: #ffffff;
}

.fop-chat-foot {
    padding: 8px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fop-chat-foot input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 12.5px;
    outline: none;
}
.fop-chat-foot button {
    background-color: #002e5b;
    color: #ffffff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.fop-chat-foot button svg { width: 14px; height: 14px; transform: rotate(45deg); }
.fop-chat-disclaimer { background-color: #edf2f7; color: #718096; font-size: 9px; padding: 3px; text-align: center; }

.fop-typing {
    background-color: #ffffff;
    padding: 8px 12px;
    border-radius: 10px;
    border-bottom-left-radius: 2px;
    display: flex;
    align-items: center;
    gap: 3px;
    align-self: flex-start;
}
.fop-typing span {
    width: 5px;
    height: 5px;
    background-color: #a0aec0;
    border-radius: 50%;
    animation: fopBounce 1.4s infinite ease-in-out both;
}
.fop-typing span:nth-child(1) { animation-delay: -0.32s; }
.fop-typing span:nth-child(2) { animation-delay: -0.16s; }

/* Odbudowa stylów Breadcrumbs dla Joomla 5 */
.breadcrumb {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
}
.breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
}
.breadcrumb-item a {
    color: #402000 !important; /* dopasowanie do brązowych odcieni paska */
    text-decoration: underline !important;
}
.breadcrumb-item a:hover {
    text-decoration: none !important;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: " » " !important;
    padding-right: 8px !important;
    color: #402000 !important;
}
.breadcrumb-item.active {
    font-weight: bold !important;
    color: #000000 !important;
}

/* ==========================================================================
   RESPONSYWNY LAYOUT v3.0 (WARIANT B WCAG 2.1 + KONTRAST + MOBILE)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

#center {
    width: 96% !important;
    max-width: 1220px !important;
    margin: 14px auto 0 auto !important;
    background: none !important;
}

/* Oryginalny baner z motylem — płynnie skalowany na każdym ekranie */
#header_image {
    position: relative;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1000 / 229;
    background-size: 100% 100% !important;
    background-position: center top !important;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}
.srnis-header-home-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 70px;
    text-decoration: none;
}

/* Pasek górny (.pasektop): przycisk mobilny + breadcrumbs + kontrolki WCAG */
.pasektop {
    float: none !important;
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 8px 16px !important;
    margin: 0 0 18px 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 0 0 14px 14px;
    background-image: none !important;
}
.pasektop-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}
.pasektop-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}
.pasektop .breadcrumb {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.95em !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.wcag-controls-inline {
    float: none !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pasektop a.niedowidzacy-btn,
.pasektop a.normalny-btn {
    float: none !important;
    margin: 0 !important;
}

/* Przycisk mobilnego menu (ukryty na desktopie > 900px) */
.srnis-mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: "Century Gothic", Verdana, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}
.srnis-mobile-menu-icon {
    font-size: 17px;
}

/* Główny układ 2-kolumnowy: lewy pasek (#menu) + prawa treść (#content), a pod nimi stopka (#part8) */
.content-outer {
    width: 96% !important;
    max-width: 1220px !important;
    margin: 0 auto 28px auto !important;
    background: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start;
    gap: 22px;
    overflow: visible !important;
}
#part1, #part3, #part6 {
    display: none !important;
}

#menu {
    float: none !important;
    width: 280px !important;
    flex: 0 0 280px !important;
    height: auto !important;
    background: none !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#part2 {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 13px 18px !important;
    border-radius: 12px 12px 0 0;
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.srnis-sidebar-heading {
    font-family: "Century Gothic", Verdana, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.srnis-mobile-menu-close,
.srnis-mobile-drawer-close {
    display: none !important;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}
#part5 {
    width: 100% !important;
    margin: -16px 0 0 0 !important;
    padding: 10px 12px 14px 12px !important;
    border-radius: 0 0 12px 12px;
    background-image: none !important;
}
#part7 {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 12px;
    text-align: center;
}
#part7 img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
#vvisit_counter {
    position: static !important;
    width: auto !important;
    margin-top: 10px !important;
}

/* Kolumna z treścią (#content / #part4) */
#content {
    float: none !important;
    width: calc(100% - 302px) !important;
    flex: 1 1 calc(100% - 302px) !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}
#part4 {
    width: 100% !important;
    min-height: 560px !important;
    padding: 28px 32px !important;
    border-radius: 14px;
    background-image: none !important;
    overflow-x: auto;
}
.blog, table.contentpaneopen, .item-page, .articlebody {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}
.page-header {
    width: 100% !important;
    float: none !important;
    margin-bottom: 14px;
}
.part0 {
    float: none !important;
    width: 100% !important;
    background: none !important;
    padding: 12px 20px !important;
    text-align: right;
}

/* Responsywność obrazków i tabel wewnątrz artykułów */
#part4 img {
    max-width: 100% !important;
    height: auto !important;
}
#part4 table {
    max-width: 100% !important;
}

/* Menu boczne (.mod-menu) */
.mod-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.mod-menu > li {
    background: none !important;
    padding: 0 !important;
    margin: 0 0 3px 0 !important;
    font-family: "Century Gothic", Verdana, sans-serif !important;
    font-size: 1.04em !important;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.mod-menu > li > a,
.mod-menu > li > span {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}
.mod-menu > li > a:hover {
    transform: translateX(2px);
}
.mod-menu > li.deeper > a::after,
.mod-menu > li.parent > a::after {
    content: "▾";
    font-size: 0.8em;
    margin-left: 6px;
    opacity: 0.75;
}
/* Przycisk dotykowego rozwijania podmenu */
.srnis-submenu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    margin-left: 4px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Podmenu (Poradnia, Szkolenia) */
.mod-menu ul.mod-menu__sub,
.mod-menu ul.nav-child {
    display: none;
    width: 100%;
    list-style: none !important;
    padding: 6px 8px !important;
    margin: 4px 0 6px 10px !important;
    border-radius: 8px;
}
.mod-menu > li:hover > ul.mod-menu__sub,
.mod-menu > li:focus-within > ul.mod-menu__sub,
.mod-menu > li.active > ul.mod-menu__sub,
.mod-menu > li.current > ul.mod-menu__sub,
.mod-menu > li.is-open > ul.mod-menu__sub,
.mod-menu > li:hover > ul.nav-child,
.mod-menu > li.active > ul.nav-child,
.mod-menu > li.is-open > ul.nav-child {
    display: block !important;
}
.mod-menu ul.mod-menu__sub li,
.mod-menu ul.nav-child li {
    background: none !important;
    padding: 2px 0 !important;
    font-size: 0.92em !important;
}
.mod-menu ul.mod-menu__sub li a,
.mod-menu ul.nav-child li a {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Stopka (#part8) */
#part8 {
    float: none !important;
    clear: both;
    width: 100% !important;
    flex: 0 0 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 18px 16px !important;
    background-image: none !important;
    border-radius: 12px;
    display: block !important;
}
.srnis-footer-credits {
    font-family: "Century Gothic", Verdana, sans-serif;
    font-size: 13px;
    text-align: center;
    padding: 4px 10px;
}
.srnis-footer-sep {
    margin: 0 6px;
}

/* ==========================================================================
   NOWOCZESNE KARTY STRONY GŁÓWNEJ (.srnis-home-*)
   ========================================================================== */
.srnis-home-wrap {
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-family: "Century Gothic", Verdana, sans-serif;
}
.srnis-home-card {
    padding: 22px 24px;
    border-radius: 12px;
}
.srnis-home-section-title {
    margin: 0 0 14px 0 !important;
    font-size: 1.25em !important;
    font-weight: bold !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Sekcja 1: Sprawozdanie OPP za 2025 + Baner 1,5% e-pity */
.srnis-opp-row {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 20px;
    align-items: center;
}
.srnis-opp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}
.srnis-opp-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.95em;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.srnis-opp-link:hover {
    transform: translateY(-2px);
}
.srnis-opp-badge {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.srnis-opp-banner {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
}
.srnis-opp-banner img {
    max-width: 165px !important;
    height: auto !important;
    border-radius: 6px;
}

/* Sekcja 2: Zrealizowaliśmy (2 zielone karty projektowe) */
.srnis-green-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.srnis-green-item {
    padding: 16px 18px;
    border-radius: 10px;
    line-height: 1.55;
    font-size: 0.96em;
}
.srnis-green-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.04em;
}

/* Sekcja 3: 5 filarów działalności Stowarzyszenia */
.srnis-pillars-intro {
    font-size: 1.08em;
    font-weight: bold;
    margin: 0 0 14px 0;
}
.srnis-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.srnis-pillar-card {
    padding: 16px 18px;
    border-radius: 10px;
    line-height: 1.5;
}
.srnis-pillar-card--wide {
    grid-column: span 2;
}
.srnis-pillar-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}
.srnis-pillar-text {
    margin: 0;
    font-size: 0.98em;
    font-weight: 600;
}
.srnis-brochure-links {
    margin-top: 12px;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.srnis-brochure-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.92em;
    font-weight: bold;
    transition: transform 0.15s ease;
}
.srnis-brochure-btn:hover {
    transform: translateY(-1px);
}

/* Sekcja 4: Kontakt + Konto Bankowe 2026 Stymulacja Bazalna */
.srnis-contact-account-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 18px;
}
.srnis-contact-box,
.srnis-account-box {
    padding: 20px 22px;
    border-radius: 12px;
    line-height: 1.6;
}
.srnis-contact-box h3,
.srnis-account-box h3 {
    margin: 0 0 10px 0 !important;
    font-size: 1.15em !important;
}
.srnis-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none !important;
    font-size: 1.05em;
}
.srnis-account-number-wrap {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.srnis-account-number {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 1.12em;
    font-weight: bold;
    letter-spacing: 0.6px;
}
.srnis-copy-btn {
    padding: 7px 13px;
    border-radius: 7px;
    font-family: "Century Gothic", Verdana, sans-serif;
    font-size: 12.5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ==========================================================================
   GALERIA ZDJĘĆ ORAZ LIGHTBOX
   ========================================================================== */
.srnis-gallery-wrap {
    margin: 10px 0 25px 0;
}
.srnis-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    padding: 12px;
    border-radius: 10px;
}
.srnis-gallery-tab {
    padding: 7px 14px;
    border-radius: 20px;
    font-family: "Century Gothic", Verdana, sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}
.srnis-gallery-section {
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 10px;
}
.srnis-gallery-cat-title {
    margin: 0 0 14px 0 !important;
    padding-bottom: 8px;
    font-size: 1.25em !important;
}
.srnis-gallery-cat-count {
    font-size: 0.8em;
    font-weight: normal;
    opacity: 0.85;
}
.srnis-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
}
.srnis-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.srnis-gallery-item:hover {
    transform: translateY(-3px);
}
.srnis-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox modal */
.srnis-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px 60px;
    box-sizing: border-box;
}
.srnis-lightbox.is-open {
    display: flex;
}
.srnis-lightbox__stage {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.srnis-lightbox__img {
    max-width: 88vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.srnis-lightbox__caption {
    margin-top: 12px;
    color: #f2fd01 !important;
    font-family: "Century Gothic", Verdana, sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}
.srnis-lightbox__close {
    position: fixed;
    top: 18px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e5692d;
    color: #ffffff !important;
    border: 2px solid #ffffff;
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10010;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.srnis-lightbox__close:hover {
    background: #ff0000;
    transform: scale(1.08);
}
.srnis-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10010;
    transition: background-color 0.2s ease;
}
.srnis-lightbox__nav:hover {
    background: #e5692d;
    border-color: #ffffff;
}
.srnis-lightbox__nav--prev { left: 18px; }
.srnis-lightbox__nav--next { right: 18px; }

/* ==========================================================================
   CZYTELNA TYPOGRAFIA ARTYKUŁÓW ORAZ UKŁAD KURSÓW (.srnis-sb-*)
   ========================================================================== */
.articlebody {
    line-height: 1.68;
    font-size: 1rem;
}
.articlebody p {
    text-align: left !important;
    line-height: 1.68;
    margin: 0 0 14px 0;
}
.articlebody ul {
    padding-left: 22px !important;
    margin: 0 0 16px 0 !important;
}
.articlebody li {
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin-bottom: 8px;
    line-height: 1.62;
}
.articlebody img {
    border-radius: 10px;
}
.articlebody img[style*="float: left"],
.articlebody img[style*="float:left"] {
    margin: 4px 22px 14px 0 !important;
}
.articlebody img[style*="float: right"],
.articlebody img[style*="float:right"] {
    margin: 4px 0 14px 22px !important;
}

/* Układ kart dla podstrony Stymulacja Bazalna */
.srnis-sb-hero {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 24px;
    align-items: start;
}
.srnis-sb-subtitle {
    margin: -6px 0 16px 0 !important;
    font-size: 1.08em !important;
    font-weight: 600 !important;
    opacity: 0.9;
}
.srnis-sb-portrait {
    text-align: center;
    padding: 12px;
    border-radius: 12px;
}
.srnis-sb-portrait img {
    width: 120px !important;
    height: auto !important;
    border-radius: 8px;
    display: block;
    margin: 0 auto 8px auto;
}
.srnis-sb-portrait figcaption {
    font-size: 12.5px;
    font-weight: bold;
    line-height: 1.35;
}

/* Karta eksperta (Teresa Wysocka) */
.srnis-sb-expert {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
.srnis-sb-expert-CardLeft {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
}
.srnis-sb-expert-CardLeft img {
    width: 180px !important;
    height: auto !important;
    border-radius: 10px;
    margin: 0 auto 12px auto;
    display: block;
}
.srnis-sb-expert-name {
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 4px;
}
.srnis-sb-expert-role {
    font-size: 0.9em;
    line-height: 1.45;
    margin-bottom: 10px;
}

/* Siatka terminów kursów i seminariów 2026 */
.srnis-sb-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}
.srnis-sb-course-card {
    padding: 20px 22px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.srnis-sb-course-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.srnis-sb-course-num {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: bold;
}
.srnis-sb-price-badge {
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}
.srnis-sb-course-title {
    margin: 2px 0 !important;
    font-size: 1.12em !important;
    font-weight: bold !important;
    line-height: 1.4;
}
.srnis-sb-hours-list {
    margin: 4px 0 !important;
    padding: 10px 14px !important;
    border-radius: 8px;
    list-style: none !important;
}
.srnis-sb-hours-list li {
    list-style: none !important;
    margin-bottom: 4px !important;
    font-size: 0.94em;
    font-weight: 600;
}
.srnis-sb-hours-list li:last-child {
    margin-bottom: 0 !important;
}
.srnis-sb-seats-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: bold;
}

/* Siatka wyprawki (Co zabrać na kurs) */
.srnis-sb-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

/* ==========================================================================
   FISZKI NAWIGACJI DOLNEJ ("ZOBACZ RÓWNIEŻ") — nav.pagenavigation
   ========================================================================== */
nav.pagenavigation {
    clear: both;
    margin-top: 26px;
    padding-top: 20px;
}
nav.pagenavigation .pagination {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
nav.pagenavigation a.previous,
nav.pagenavigation a.next,
.srnis-pagenav-card {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
nav.pagenavigation a.next {
    flex-direction: row-reverse;
    text-align: right;
}
nav.pagenavigation a.previous:hover,
nav.pagenavigation a.next:hover {
    transform: translateY(-2px);
}
/* Dopóki skrypt JS nie zamieni treści, ukrywamy zdublowany napis "Poprzednia"/"Następna" */
nav.pagenavigation a:not(.srnis-pagenav-card) > span[aria-hidden="true"] {
    display: none;
}
.srnis-pagenav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.srnis-pagenav-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.srnis-pagenav-kicker {
    font-size: 11.5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}
.srnis-pagenav-title {
    font-size: 1.02em;
    font-weight: bold;
    line-height: 1.35;
}

/* ==========================================================================
   MEDIA QUERIES — TABLETY ORAZ TELEFONY KOMÓRKOWE (<= 900px)
   ========================================================================== */
@media (max-width: 900px) {
    #center,
    .content-outer {
        width: 96% !important;
        margin-top: 8px !important;
    }
    .srnis-mobile-menu-btn {
        display: inline-flex !important;
    }
    .srnis-submenu-toggle {
        display: inline-flex !important;
    }
    .mod-menu > li.deeper > a::after,
    .mod-menu > li.parent > a::after {
        display: none;
    }
    .content-outer {
        flex-direction: column !important;
        gap: 16px;
    }
    /* Na telefonie treść główna (#content) idzie na górę, a karta 1,5% KRS (#part7) pod nią */
    #content {
        order: 1;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    #menu {
        order: 2;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    #part8 {
        order: 3;
    }
    /* Domyślnie na mobile chowamy listę 13 zakładek, otwieramy po kliknięciu ☰ MENU */
    #menu #part2,
    #menu #part5 {
        display: none;
    }
    #menu.is-mobile-open {
        order: 0;
    }
    #menu.is-mobile-open #part2 {
        display: flex !important;
    }
    #menu.is-mobile-open #part5 {
        display: block !important;
    }
    .srnis-mobile-menu-close,
    .srnis-mobile-drawer-close {
        display: inline-flex !important;
    }
    #part4 {
        padding: 18px 16px !important;
        min-height: 0 !important;
    }
    .srnis-opp-row,
    .srnis-contact-account-row,
    .srnis-pillars-grid,
    .srnis-sb-hero,
    .srnis-sb-expert,
    nav.pagenavigation .pagination {
        grid-template-columns: 1fr !important;
    }
    .srnis-pillar-card--wide {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 560px) {
    .pasektop {
        padding: 8px 10px !important;
    }
    .pasektop-left {
        width: 100%;
        justify-content: space-between;
    }
    .pasektop-right {
        width: 100%;
        justify-content: space-between;
        padding-top: 6px;
    }
    .srnis-home-card,
    .srnis-contact-box,
    .srnis-account-box,
    .srnis-sb-course-card {
        padding: 16px 14px;
    }
    .srnis-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .srnis-lightbox {
        padding: 16px;
    }
}
/* ==========================================================================
   PODSTRONY: paski zdjęć, karty publikacji, lista linków, komunikaty
   ========================================================================== */
.srnis-photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 16px 0 4px 0;
}
.srnis-photo-strip img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
.srnis-photo-strip--tall img { height: 240px !important; }
.srnis-pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}
.srnis-pub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none !important;
}
.srnis-pub-card img {
    max-width: 210px !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}
.srnis-pub-card strong { line-height: 1.4; }
.srnis-notice {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: bold;
    margin: 0 0 14px 0;
}
.srnis-map-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    display: block;
}
.srnis-timeline-year {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}
.articlebody .srnis-link-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 10px;
    padding: 0 !important;
    margin: 0 !important;
}
.articlebody .srnis-link-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 12px 14px;
    border-radius: 10px;
    line-height: 1.45;
    word-break: break-word;
}
.articlebody .srnis-link-list li a { font-weight: bold; }
.srnis-verses p { margin: 0 0 10px 0; }
@media (max-width: 560px) {
    .srnis-photo-strip img { height: 150px !important; }
    .articlebody .srnis-link-list ul { grid-template-columns: 1fr; }
}
