/* * * * * * * * * * * * * * * * * * * *
 *
 *   @site		magda.karaikara.pl
 *   @name		custom.css
 *   @author	Filip "olo" Żbik
 *   @created	03.2026
 *   @licence	copyright (c) by olo
 *   @version	1.0.0
 *
 */

:root {
	--huch1-width: 220px;
	--huch1-bar-width: 18px;
}

/* core */
a { color: var(--sppb-main0-color1); }
a:hover, a:focus, a:active { color: var(--sppb-main2); }
p:last-child { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.25em 0; }

/* domyślne marginesy sekcji */
.sppb-section { padding: 70px 0; }
.top0{padding-top:0;}
.bottom0{padding-bottom:0;}
.sppb-section .sppb-section { padding: 0 0; }
/* for noised sections - much more impressive bg than just smooth gradient */
.noise { z-index: 3; }
.noise::before { content: ''; position: absolute; inset: 0; background: url('/images/template/noise-bg.png'); opacity: 0.05; z-index: 1; }

.mod-articles-image { margin: 0; }

/* ogarnięcie kontenerów */
.sppb-row-container { max-width: 100%!important; padding: 0; }
.sppb-addon:not(.addon-p0), .s-art-container { padding: 0 50px 0 calc(var(--huch1-bar-width) + 50px); }
@media (max-width: 991.9007px) { .sppb-addon:not(.addon-p0), .s-art-container { padding: 0 30px 0 calc(var(--huch1-bar-width) + 30px); }}
@media (max-width: 767.9007px) { .sppb-addon:not(.addon-p0), .s-art-container { padding: 0 25px 0 calc(var(--huch1-bar-width) + 25px); }}
@media (max-width: 575.9007px) { .sppb-addon:not(.addon-p0), .s-art-container { padding: 0 15px 0 calc(var(--huch1-bar-width) + 15px); }}
.sppb-addon-text-block, .s-art-container { max-width: 1200px; }

/* artykuły (one się wsm dosyć mocno łączą z kontenerami, więc niech już tutaj będą) */
/* zwykły tytuł (nie link) */
.s-art-container h2 { font-weight: 500; font-size: 3rem; }
/* fancy tytuł (link) */
.s-art-container h2 a {
	/* background MUSI być wyżej, żeby reszta działała poprawnie! NIE RUSZAJ */
	background: linear-gradient(to right, var(--sppb-main1), var(--sppb-between1), var(--sppb-main2));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
/* pozostałe pola artykułów */
.s-art-container:has(div) { padding-top: 50px; padding-bottom: 120px; }
.s-art-container a, .s-art-container a img { width: 100%; }
.s-art-container .s-dodatkowy-opis { font-size: 2.5rem; line-height: 1.25; }
.s-art-container .s-dodatkowy-opis p {  }
.s-art-container .s-art-content { margin-top: 12rem; }
/* pojedynczy artykuł (nieco inne reguły dla kontenerów) */
body.com-content.view-article #sp-main-body { padding: 0; }
body.com-content.view-article #sp-main-body .container { max-width: 100%!important; padding: 0; }




/* Helix Ultimate Custom Header */
/* !!! WARNING !!! */
/* some shitty js goes from nav.sp-megamenu-wrapper to > parent > parent (2 nodes up) and gives to the target inline style - position: static - and also to parent for that node position: relative (3 nodes up) */
#s-huch1-header { width: var(--huch1-bar-width); box-shadow: 0 0 6px #0002; position: fixed!important; top: 0; left: 0; bottom: 0; background: #fffa; overflow: hidden; z-index: 9007; }
#s-huch1-header::before, #s-huch1-header::after { content: ''; position: absolute; inset: 0 0 0 calc(100% - 2px); z-index: 9007; }
#s-huch1-header::before { width: var(--huch1-bar-width); inset: 0 0 0 calc(100% - var(--huch1-bar-width)); background-image: linear-gradient(to bottom, var(--sppb-main1), var(--sppb-main2)); z-index: 9007; }
#s-huch1-wrapper { display: flex; flex-direction: column; justify-content: flex-start; gap: 25px; padding: 12px; }
#s-huch1-wrapper, #s-huch1-header.s-sticky { width: var(--huch1-width); }
#s-huch1-header.s-not-sticky { transition: 0.55s; }
#s-huch1-header.s-not-sticky .s-to-hide { pointer-events: none; opacity: 0; transition: 0.55s; }
#s-huch1-header.s-not-sticky .s-to-hide:has(input) { transition: 0.55s; }
#s-huch1-header.s-not-sticky:hover { width: var(--huch1-width); overflow: initial; }
#s-huch1-header.s-not-sticky:hover, #s-huch1-header.s-not-sticky.s-toggled-out { width: var(--huch1-width); }
#s-huch1-header.s-not-sticky:hover .s-to-hide { pointer-events: initial; opacity: 1; }
#s-huch1-header.s-not-sticky:hover .s-to-hide:has(input) { transition: 0.55s 0.55s; }
#s-huch1-header.s-not-sticky:hover .s-to-hide, #s-huch1-header.s-not-sticky.s-toggled-out .s-to-hide { pointer-events: initial; opacity: 1; }

#s-huch1-offcanvas-toggler {
	height: auto; position: fixed; top: 20px; right: 24px; padding: 8px 10px; border-radius: 4px; cursor: pointer; z-index: 9007;
	background: linear-gradient(35deg, var(--sppb-main2) 0%, var(--sppb-main1) 100%);
}
.burger-icon > span { background-color: transparent; border-bottom: 3px solid; }
.burger-icon > span:nth-child(1) { border-bottom-color: #fff; transition: 0.15s 0s; }
.burger-icon > span:nth-child(2) { border-bottom-color: #fff; transition: 0.15s 0.11s; }
.burger-icon > span:nth-child(3) { border-bottom-color: #fff; transition: 0.15s 0.22s; }
/* #s-huch1-offcanvas-toggler:hover .burger-icon > span:nth-child(1) { border-bottom-color: var(--sppb-main1); } */
/* #s-huch1-offcanvas-toggler:hover .burger-icon > span:nth-child(2) { border-bottom-color: var(--sppb-between1); } */
/* #s-huch1-offcanvas-toggler:hover .burger-icon > span:nth-child(3) { border-bottom-color: var(--sppb-main2); } */
#s-huch1-offcanvas-toggler:hover .burger-icon > span:nth-child(1) { border-bottom-color: #252525; }
#s-huch1-offcanvas-toggler:hover .burger-icon > span:nth-child(2) { border-bottom-color: #252525; }
#s-huch1-offcanvas-toggler:hover .burger-icon > span:nth-child(3) { border-bottom-color: #252525; }
@media (max-width: 767.9007px) { #s-huch1-header { width: 0; }}

.sp-megamenu-parent { margin: 0 -15px; margin: 0; width: 100%; display: flex!important; flex-direction: column; }
.sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span { padding: 0 15px; line-height: 80px; padding: 15px 0; line-height: 1; width: 100%; }
.sp-megamenu-parent > li:last-child > a { padding: 0px 0px 0px 15px; padding: 15px 0; }
.sp-megamenu-parent .sp-dropdown.sp-dropdown-main { top: 0; left: 100% !important; padding: 0 0 0 12px; width: auto !important; }
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner { box-shadow: 0 3px 5px 0 rgba(0,0,0,.2); box-shadow: 0 3px 5px 0 rgba(0,0,0,.122); }
.sp-megamenu-parent .sp-dropdown .sp-dropdown-items { display: flex; }
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a { white-space: nowrap; }
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a, .sp-megamenu-parent .sp-dropdown li.sp-menu-item span:not(.sp-menu-badge) { padding: 10px 10px; padding: 15px 18px; border-right: 1px solid #f2f2f2; }

.sp-scroll-up { bottom: 30px; }




#top-slider { height: 100vh; color: #fff; background-size: 1400px auto; position: relative; overflow: hidden; }
@media (min-width: 1400px) { #top-slider .sppb-row-container { max-width: 80vw; } }
#top-slider::before, #top-slider::after {
	content: ''; position: absolute; inset: 0;
	background-image: url('/images/template/zdjecia/bg-top-v1.jpg'); background-repeat: no-repeat; background-attachment: fixed; background-size: cover; background-position: center center;
}
#top-slider::before { animation: LaunchAnim01 2s 0.55s forwards; }
@keyframes LaunchAnim01 {
	0% { filter: blur(0.025vw) saturate(1.0666); }
	100% { filter: blur(0.09vw) saturate(0.6) brightness(0.8); }
}
@keyframes LaunchAnim02 {
	0% { filter: blur(0.025vw) saturate(1.0666); }
	100% { filter: blur(0.09vw) saturate(2) brightness(0.8); }
}
#top-slider::after {
	margin: 0 auto; filter: blur(0.025vw) saturate(1.0666); 
	-webkit-mask-image: linear-gradient(to right, transparent 0, transparent 10%, #000 50%, transparent 90%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, transparent 10%, #000 50%, transparent 90%, transparent 100%);
}
@media (min-aspect-ratio: 4/3) {
	/* wykonaj tylko, jeśli ekran ma odpowiednie proporcje */
	#top-slider::after { background-size: 100% auto; }
}
#top-slider div { height: 100%; }
#top-slider .sppb-row-container { max-width: 100%; }
#top-slider div.sppb-addon-content { height: auto; }
#top-slider div.sppb-addon-raw-html { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: 150px; }
#top-slider div.sppb-addon-raw-html h1, #top-slider div.sppb-addon-raw-html h2 { font-size: clamp(36px, calc(60 / 1400 * 100vw), 72px); text-transform: uppercase; line-height: 1; }
#top-slider div.sppb-addon-raw-html h1 span { white-space: nowrap; }
#top-slider div.sppb-addon-raw-html h1 span + span { font-weight: 600; letter-spacing: -0.045em; }




.mod-articles-items { padding-left: 0; list-style: none; }




/* CTA home */
#cta-fixed-bottom { position: fixed; bottom: -150px; z-index: 100; left: 0; right: 0; color: #fff; padding: 15px 0 6px 0; font-size: 16px; transition: 0.375s; }
#cta-fixed-bottom.scrolled-in { bottom: 0; }
#cta-fixed-bottom a:hover, #cta-fixed-bottom a:focus, #cta-fixed-bottom a:active { color: var(--sppb-main1); }
#cta-fixed-bottom p a { font-weight: 600; }
#cta-fixed-bottom p a::before { content: '\f095'; font-family: 'Font Awesome 6 Free'; margin-right: 0.2rem; font-weight: 300; }
#cta-fixed-bottom .sppb-icons-group-list { margin-top: 5px; text-align: left; }
#cta-fixed-bottom .sppb-icons-group-list a { width: 50px; height: 50px; display: flex; align-items: center; justify-content: flex-start; border: 0; font-size: 32px; margin: 0 10px 0 0; }
.sp-module #cta-fixed-bottom ul > li > a { color: #fff; }
.sp-module #cta-fixed-bottom ul > li > a:hover, .sp-module #cta-fixed-bottom ul > li > a:focus, .sp-module #cta-fixed-bottom ul > li > a:active { color: var(--sppb-main1); }
@media (max-width: 767.9007px) {
	#cta-fixed-bottom p { text-align: center; }
	#cta-fixed-bottom .sppb-icons-group-list { text-align: center; }
	#cta-fixed-bottom .sppb-icons-group-list a { justify-content: center; margin: 0 5px; }
}

/* CTA pojedynczy obraz */
#cta-single-art { font-size: 16px; }
#cta-single-art a:hover, #cta-single-art a:focus, #cta-single-art a:active { color: var(--sppb-main1); }
#cta-single-art p a { color: var(--sppb-main2); font-weight: 600; }
#cta-single-art p a::before { content: '\f095'; font-family: 'Font Awesome 6 Free'; margin-right: 0.2rem; font-weight: 300; }
#cta-single-art .sppb-icons-group-list { margin-top: 5px; text-align: left; }
#cta-single-art .sppb-icons-group-list a { width: 50px; height: 50px; display: flex; align-items: center; justify-content: flex-start; border: 0; font-size: 32px; margin: 0 10px 0 0; }
@media (max-width: 767.9007px) {
	#cta-single-art p { text-align: center; }
	#cta-single-art .sppb-icons-group-list { text-align: center; }
	#cta-single-art .sppb-icons-group-list a { justify-content: center; margin: 0 5px; }
}




/* logo strony (fixed) */
#logo-fixed { position: fixed; top: 12px; left: -3px; }
#logo-fixed img { width: auto; height: 36px; filter: invert(1); }
#logo-fixed .sppb-addon { padding: 0; }















