/* e-Pszczelarz.pl / Cloudy2026 - responsive Cloudy RWD 2026-08-22
   Zasada: zachowujemy wyglad Cloudy2026, zmieniamy glownie geometrie i responsywnosc.
   Desktop: wyglad maksymalnie zblizony do Cloudy2026.
   Tablet: 2 kolumny tam, gdzie ma to sens.
   Mobile: 1 kolumna, tresc glowna pierwsza, bez duplikowania modulow.
*/

*,
*:before,
*:after { box-sizing: border-box; }

html, body { max-width: 100%; }
body#bd { overflow-x: hidden; }

.main {
  width: calc(100% - 20px) !important;
  max-width: 1100px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#ja-wrapper,
#websiteWraper,
#ja-header,
#ja-mainnav,
#ja-subnav,
#ja-container,
#ja-topsl,
#ja-botsl,
#eps-bottom-full,
#ja-footer {
  min-width: 0 !important;
  max-width: 100% !important;
}

img,
object,
embed,
video,
iframe { max-width: 100%; }
img { height: auto; }
input,
select,
textarea,
button { max-width: 100%; }

/* Stopka - nadal w kolorystyce Cloudy, ale czytelna i responsywna. */
#ja-footer {
  clear: both !important;
  background: #2f5968 !important;
  color: #eef5f7 !important;
  border-top: 1px solid #264b58 !important;
}
#ja-footer .eps-footer {
  padding: 14px 10px 16px !important;
  text-align: center !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  line-height: 1.4 !important;
}
#ja-footer .eps-footer * {
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
}
#ja-footer .eps-footer-brand strong {
  display: block !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
}
#ja-footer .eps-footer-brand span {
  display: block !important;
  margin-top: 2px !important;
  color: #d7e5ea !important;
  font-size: 12px !important;
}
#ja-footer .eps-footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 4px 12px !important;
  margin: 10px 0 8px !important;
  padding: 0 !important;
}
#ja-footer .eps-footer-links a,
#ja-footer .eps-footer-cookie-button {
  display: inline-block !important;
  margin: 0 !important;
  padding: 3px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-decoration: underline !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}
#ja-footer .eps-footer-cookie-button {
  cursor: pointer !important;
  font-family: Arial, Helvetica, sans-serif !important;
}
#ja-footer .eps-footer-copy {
  color: #c7d9df !important;
  font-size: 11px !important;
}

.eps-rwd-title-list { display: none; }

@media screen and (min-width: 1025px) {
  #ja-container > .main {
    display: flex !important;
    align-items: flex-start !important;
  }
  #ja-mainbody {
    float: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  #ja-right {
    float: none !important;
    width: 20% !important;
    max-width: 20% !important;
    min-width: 0 !important;
    flex: 0 0 20% !important;
  }
  #ja-right .ja-colswrap,
  #ja-right .ja-col,
  #ja-right .column {
    width: 100% !important;
    max-width: 100% !important;
  }
  #ja-topsl > .main,
  #ja-botsl > .main {
    display: flex !important;
    align-items: stretch !important;
  }
  #ja-topsl .ja-box,
  #ja-botsl .ja-box { min-width: 0 !important; }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  body#bd { font-size: 14px !important; }
  .main { width: calc(100% - 16px) !important; }

  #ja-header .main,
  #ja-mainnav .main,
  #ja-container > .main,
  #ja-topsl > .main,
  #ja-botsl > .main,
  #eps-bottom-full > .main,
  #ja-footer .main { min-width: 0 !important; }

  #ja-header h1.logo img {
    max-width: 260px !important;
    height: auto !important;
  }

  #ja-container > .main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 235px !important;
    gap: 12px !important;
    align-items: start !important;
  }

  #ja-mainbody,
  #ja-right {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #ja-mainbody { display: block !important; }

  #ja-main,
  #ja-left,
  #ja-contentwrap,
  #ja-content,
  #ja-current-content,
  .ja-content-main {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #ja-left {
    clear: both !important;
    margin-top: 10px !important;
  }

  #ja-topsl > .main,
  #ja-botsl > .main {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #ja-topsl .ja-box,
  #ja-botsl .ja-box {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #ja-topsl .equalsTop,
  #ja-botsl .equalsBottom,
  #ja-topsl .ja-box-ct,
  #ja-botsl .ja-box-ct {
    height: auto !important;
    min-height: 0 !important;
  }

  #ja-right .ja-moduletable,
  #ja-right .moduletable,
  #ja-left .ja-moduletable,
  #ja-left .moduletable {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #ja-right input[type="text"],
  #ja-right input[type="password"],
  #ja-right input[type="search"],
  #ja-right select,
  #ja-right textarea,
  #ja-left input[type="text"],
  #ja-left input[type="password"],
  #ja-left select,
  #ja-left textarea { width: 100% !important; }

  #ja-current-content img,
  #ja-left img,
  #ja-right img,
  #ja-topsl img,
  #ja-botsl img,
  #eps-bottom-full img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media screen and (max-width: 767px) {
  body,
  body#bd {
    font-size: 15px !important;
    line-height: 1.45 !important;
    background: #f1f4f5 !important;
  }

  .main {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  #ja-header {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  #ja-header .main {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
  #headerRound1,
  #headerRound2,
  #headerRound3,
  #headerRound4,
  #headerRound5,
  #headerRound6 { display: none !important; }

  #ja-header .inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 5px !important;
  }

  #ja-header h1.logo,
  #ja-header .logo-text {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    text-align: center !important;
  }

  #ja-header h1.logo a {
    display: inline-block !important;
    max-width: 100% !important;
  }

  #ja-header h1.logo img {
    display: block !important;
    width: auto !important;
    max-width: min(245px, 88vw) !important;
    max-height: 72px !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  #searchWrapper,
  #ja-search {
    float: none !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 3px 0 2px !important;
    padding: 0 !important;
  }
  #ja-search form { width: 100% !important; margin: 0 !important; }
  #ja-search input[type="text"],
  #ja-search input.inputbox,
  #ja-search .inputbox {
    width: 100% !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    font-size: 16px !important;
  }

  #websiteWraper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 5px !important;
  }

  #ja-container { order: 1 !important; }
  #eps-bottom-full { order: 3 !important; }
  #ja-topsl { order: 4 !important; }
  #ja-botsl { order: 5 !important; }
  #ja-footer { order: 6 !important; }

  #ja-container,
  #ja-container > .main,
  #ja-mainbody,
  #ja-main,
  #ja-main > .inner,
  #ja-contentwrap,
  #ja-content,
  #ja-current-content,
  .ja-content-main,
  #ja-left,
  #ja-right,
  #ja-left .ja-colswrap,
  #ja-right .ja-colswrap,
  #ja-left .ja-col,
  #ja-right .ja-col {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #ja-container > .main {
    display: block !important;
    padding: 0 !important;
  }
  #ja-mainbody { padding-top: 0 !important; }
  #ja-main > .inner { padding: 0 4px 5px !important; }

  #ja-left,
  #ja-right,
  #eps-bottom-full,
  #ja-topsl,
  #ja-botsl { margin-top: 8px !important; }

  #ja-main .ja-mass-top {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
  }

  #ja-main .ja-mass-top .ja-moduletable,
  #ja-main .ja-mass-top .moduletable {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 8px !important;
  }

  #ja-main .ja-mass-top .ja-box-ct {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #Mod409 img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  #Mod367.eps-rwd-news-list-mode .nspMain,
  #Mod330.eps-rwd-news-list-mode .nspMain { display: none !important; }

  #Mod367.eps-rwd-news-list-mode .eps-rwd-title-list,
  #Mod330.eps-rwd-news-list-mode .eps-rwd-title-list {
    display: block !important;
    margin: 0 !important;
    padding: 3px 6px 6px !important;
    background: #f2f2f2 !important;
  }

  #Mod367 .eps-rwd-title-link,
  #Mod330 .eps-rwd-title-link {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 9px 28px 9px 8px !important;
    border: 0 !important;
    border-bottom: 1px solid #d8d8d8 !important;
    background: #fff !important;
    color: #26647d !important;
    text-decoration: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: normal !important;
  }

  #Mod367 .eps-rwd-title-link:last-child,
  #Mod330 .eps-rwd-title-link:last-child { border-bottom: 0 !important; }

  #Mod367 .eps-rwd-title-link:after,
  #Mod330 .eps-rwd-title-link:after {
    content: "›" !important;
    position: absolute !important;
    right: 9px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #7e9ba6 !important;
    font-size: 19px !important;
    line-height: 1 !important;
  }

  .article_column,
  .itemContainer,
  .itemContainerLast,
  .itemColumn,
  .blog-item,
  .catItemView,
  .latestItemView,
  .genericItemView,
  .itemView,
  .k2Container,
  .itemList,
  .itemListView {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .ja-content-main {
    padding: 7px 5px !important;
    overflow: visible !important;
  }

  .ja-content-main,
  .ja-content-main p,
  .ja-content-main li,
  .itemBody,
  .itemFullText,
  .catItemBody,
  .catItemIntroText {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .catItemTitle,
  .latestItemTitle,
  .genericItemTitle,
  .itemTitle {
    font-size: 19px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
  }

  .catItemImageBlock,
  .latestItemImageBlock,
  .genericItemImageBlock,
  .itemImageBlock {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 7px !important;
    text-align: center !important;
  }

  .catItemImageBlock img,
  .latestItemImageBlock img,
  .genericItemImageBlock img,
  .itemImageBlock img,
  .catItemImage img,
  .latestItemImage img,
  .genericItemImage img,
  .itemImage img {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #ja-current-content table,
  #ja-current-content form,
  #ja-current-content fieldset,
  #ja-current-content div { max-width: 100% !important; }
  #ja-current-content table { width: 100% !important; }

  #ja-left .ja-moduletable,
  #ja-left .moduletable,
  #ja-left .ja-module,
  #ja-left .module,
  #ja-right .ja-moduletable,
  #ja-right .moduletable,
  #ja-right .ja-module,
  #ja-right .module,
  #eps-bottom-full .ja-moduletable,
  #eps-bottom-full .moduletable {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 8px !important;
    overflow: visible !important;
  }

  #ja-left .ja-box-ct,
  #ja-right .ja-box-ct,
  #eps-bottom-full .ja-box-ct,
  #eps-bottom-full .jamod-content {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #ja-left img,
  #ja-right img,
  #eps-bottom-full img {
    max-width: 100% !important;
    height: auto !important;
  }

  #ja-left input[type="text"],
  #ja-left input[type="password"],
  #ja-left input[type="search"],
  #ja-right input[type="text"],
  #ja-right input[type="password"],
  #ja-right input[type="search"],
  #eps-bottom-full input[type="text"],
  #eps-bottom-full input[type="password"],
  #ja-left select,
  #ja-right select,
  #eps-bottom-full select,
  #ja-left textarea,
  #ja-right textarea,
  #eps-bottom-full textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 34px !important;
  }

  #ja-topsl > .main,
  #ja-botsl > .main { display: block !important; }

  #ja-topsl .ja-box,
  #ja-botsl .ja-box {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 7px !important;
  }

  #ja-topsl .equalsTop,
  #ja-botsl .equalsBottom,
  #ja-topsl .ja-box-ct,
  #ja-botsl .ja-box-ct,
  #ja-topsl .jamod-content,
  #ja-botsl .jamod-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #ja-topsl img,
  #ja-botsl img {
    max-width: 100% !important;
    height: auto !important;
  }

  #ja-topsl .nspMain,
  #ja-topsl .nspArts,
  #ja-topsl .nspArtPage,
  #ja-botsl .nspMain,
  #ja-botsl .nspArts,
  #ja-botsl .nspArtPage,
  #eps-bottom-full .nspMain,
  #eps-bottom-full .nspArts,
  #eps-bottom-full .nspArtPage {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #ja-topsl [style*="width"],
  #ja-botsl [style*="width"],
  #eps-bottom-full [style*="width"],
  #ja-left [style*="width"],
  #ja-right [style*="width"] { max-width: 100% !important; }

  #ja-topsl [style*="height"],
  #ja-botsl [style*="height"],
  #eps-bottom-full [style*="height"],
  #ja-left [style*="height"],
  #ja-right [style*="height"] { min-height: 0 !important; }

  #Kunena,
  #Kunena div,
  #Kunena table,
  #Kunena form,
  #Kunena fieldset,
  .kunena,
  .kunena div,
  .kunena table { max-width: 100% !important; }
  #Kunena table { width: 100% !important; }

  #ja-footer { margin-top: 8px !important; }
  #ja-footer .eps-footer { padding: 13px 9px 15px !important; }
  #ja-footer .eps-footer-brand strong { font-size: 16px !important; }
  #ja-footer .eps-footer-brand span { font-size: 11.5px !important; }
  #ja-footer .eps-footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 10px !important;
    margin: 10px 0 8px !important;
  }
  #ja-footer .eps-footer-links a,
  #ja-footer .eps-footer-cookie-button {
    width: 100% !important;
    padding: 7px 2px !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    text-align: center !important;
    text-decoration: none !important;
    font-size: 11.5px !important;
  }
}

@media screen and (max-width: 420px) {
  #ja-header h1.logo img {
    max-width: min(220px, 88vw) !important;
    max-height: 66px !important;
  }
  #websiteWraper {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
  #ja-footer .eps-footer-links { grid-template-columns: 1fr !important; }
}