﻿html { font-size: max(10px, 0.52vw); font-family: "Inter", sans-serif; position:relative; }
body {margin: 0; padding: 0; width: 100%; height: 100%; text-align: left; color:#002450; line-height:3rem; font-size:1.6rem; background:#fff; }

*{box-sizing: border-box;}
.all { width:100%; position:relative; }
img {border:none; margin:0; padding:0; }
a:link , a:visited , a:hover {text-decoration: none; color:#009edf;}
a:hover {color: #009edf;}
h1 , h2 , h3 , h4 , h5, h6{padding:0; font-size: 1.8rem; margin:0;  font-weight: normal;  }
ul{ padding:0; margin:0;}
p{ margin:0 0 2rem 0; padding:0;  }
ul{ padding:0; margin:0; list-style:none;}


img.alignleft , .alignleft { float:left; margin-right:1rem; width:auto !important; height:auto !important;}
img.alignright { float:right; margin-left:2rem;}
img.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto;}

:root{
	--k1:#00aeef;	
	--k2:#f26522;	
	--k3:#002450;
	--k10:#f7f9fb;
	--p2:2%;		
	--p3:3%;
	--p5:5%;	
	--p10:10%;		
	--p15:15%;			
	--p20:20%;				
    --tyt:1; 
}



#top { width:70%; margin:0 var(--p15); position: fixed; top: 1rem; z-index:2222; background:rgba(255,255,255,0.2); padding:1.5rem; display:flex; justify-content:space-between; box-shadow: 0 0 0 0.1rem rgba(255,255,255,0.4);}  

#top a#logo { display:block; filter: brightness(0) invert(1);}
#top a#logo img { width:auto; height:9rem; display:block;}
#topprawa { display:flex; justify-content:space-between; flex-direction:column; align-items:flex-end;}

#topp { display:flex; align-items:center; padding-right:3rem;}
ul#infotop { display:flex;}
ul#infotop li { margin-right:2.5rem;}
ul#infotop li a { color:#fff; font-size:1.5rem; }
ul#infotop li a:hover { color:var(--k1);}
#topp #szukaj { width:auto; height:2rem; cursor:pointer; filter: brightness(0) invert(1);}

#mtop > ul { display:flex; }
#mtop > ul > li > a { color:#fff; font-size:1.8rem; padding:0 3rem 3rem 3rem; position:relative;}
#mtop > ul > li > a:after {  content: ''; width:0; height: 0.5rem; display: block; position:absolute; bottom:2rem; left:0; background: #02254C;
background: linear-gradient(90deg, rgba(2, 37, 76, 1) 0%, rgba(2, 37, 76, 1) 33%, rgba(0, 174, 239, 1) 33%, rgba(0, 174, 239, 1) 66%, rgba(242, 101, 34, 1) 66%, rgba(242, 101, 34, 1) 100%); }
#mtop > ul > li:hover > a:after  {  width:100%; }


#mtop > ul > li > ul {position: absolute; z-index: 222; left: 0; top: 12rem; background: rgba(100%,100%,100%,1); width: 100%; padding: 3% 3% 1% 3%; box-shadow: 0 0.5rem 0.5rem 0 rgba(0,0,0,0.1);
display: flex; flex-wrap: wrap; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 1s ease, visibility 0s linear 1s;}
#mtop > ul > li:hover > ul, #mtop > ul > li:focus-within > ul { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 1s ease, visibility 0s;}
#mtop > ul > li > ul > li { width:18%; margin:0 1% 2% 1%; }
#mtop > ul > li > ul > li > a { height:3rem; line-height:1.6rem; width:100%; display:block;  color:var(--k3) !important; font-size:1.4rem; display:flex; justify-content:center; align-items: ; text-align:center;  }
#mtop > ul > li > ul > li a:hover {color:var(--k2) !important;}
#mtop > ul > li > ul > li > a img { width:auto; height:3rem; display:block; margin-right:1rem;}

a.lang-switch { color:#fff;  width:4rem; text-align:center; margin-right:2rem;}
a.lang-switch:hover { color:var(--k1);}

#top.stik {background:rgba(255,255,255,1); box-shadow: 0.6rem 1.4rem 3rem 0rem rgba(0,0,0,0.1); top: 0.1rem; width:90%; margin:0 var(--p5);}
#top.stik a#logo { filter: brightness(1) invert(0);}
#top.stik a#logo img { height:8rem; }
#top.stik #mtop ul li a { color:var(--k3);}
#top.stik ul#infotop li a { color:var(--k3);}
#top.stik ul#infotop li a:hover { color:var(--k2);}
#top.stik #topp #szukaj { filter: brightness(1) invert(0);}
#top.stik #mtop > ul > li > ul {top:11rem;}
#top.stik #mtop > ul > li > ul { background:#fff;}
#top.stik .hamburger { color:var(--k3);}

#top.stik a.lang-switch { color:var(--k3); }
#top.stik a.lang-switch:hover { color:var(--k2);}


#vid { position:relative; height:100vh; height:100svh; min-height:80rem; overflow:hidden; background:var(--k1);}
#vid video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; z-index:0; }
#vid h1 { position:absolute; z-index:30; left:5%; bottom:10%; width:90%; text-align:center; font-size:8rem; line-height:8rem; color:#fff;}
#vid h1 span { color:var(--k1);}
#vid h1 span:nth-child(2n) { color:var(--k2);}
#vid .pas { width:100%; height:1.5rem; position:absolute; z-index:21; left:0; bottom:0; background: #FFF; 
background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 174, 239, 1) 50%, rgba(242, 101, 34, 1) 100%);}
.cien1 { width:100%; height:30%; position:absolute; z-index:20; left:0; bottom:0; background: #152E5C; background: linear-gradient(0deg, rgba(21, 46, 92, 0.6) 0%, rgba(21, 46, 92, 0) 100%);}
.cien2 {width:100%; height:30%; position:absolute; z-index:20; left:0; top:0; background: #152E5C; background: linear-gradient(180deg, rgba(21, 46, 92, 0.7) 0%, rgba(21, 46, 92, 0) 100%);}


#button {display:inline-block; background: var(--k1) ; width:5rem; height:5rem;  text-align: center; position: fixed; bottom: 2rem; right: 2rem; 
opacity: 0; visibility: hidden; z-index: 1000; cursor:pointer; display:flex; align-items:center; justify-content:center;  }
#button img { width:2rem; height:2rem; display:block;}
#button:hover { background:var(--k2);   }
#button.show {opacity: 1; visibility: visible;}

#home { width:100%; padding:var(--p3) var(--p5);}

.tyt , .tyt2 { font-size:calc(6rem * var(--tyt)); line-height:1.07; color:var(--k3); text-align:center; margin-bottom:6rem;}
.tyt2 { text-align:left;}
.tyt3 , .tyt4 { font-size:calc(3rem * var(--tyt)); line-height:1; color:var(--k3); text-align:left; margin-bottom:var(--p3);}
.tyt3 { text-align:center;}
.tyt5 , .tyt6 { color:#9296a7; text-transform:uppercase; letter-spacing:0.2rem; font-size:calc(2rem * var(--tyt)); margin-bottom:3rem; display:block;}
.tyt6 { text-align:center;}

.podstrona .tyt2 { font-size:calc(5rem * var(--tyt)); line-height:1.08; margin-bottom:5rem;}

a.wiecej2 { color:#05218b; text-transform:uppercase; font-size:1.2rem; margin-top:6rem; display: flex; align-items:center; width: fit-content; }
a.wiecej2 img , .blok-tresc .box a.wiecej2 img { width:auto !important; height:2.5rem !important; margin-left:1rem;}
a.wiecej2:hover img {transform: rotate(180deg);}
a.wiecej2:hover { text-decoration:underline;}

a.wiecej3 { color:#05218b; text-transform:uppercase; font-size:1.2rem; display: flex; align-items:center; width: fit-content; }
a.wiecej3 img , .blok-tresc .box a.wiecej3 img { width:auto !important; height:2.5rem !important; margin-left:1rem;}
a.wiecej3:hover img {transform: rotate(180deg);}
a.wiecej3:hover { text-decoration:underline;}


#infohome { width:100%; display:flex; justify-content:space-between;}
#infohome .box { width:49%; position: relative;}
#infohome .box2 { width:100%; padding:6%; position:relative; overflow:hidden; min-height:90rem;  z-index:5;}
#infohome .box a.wiecej2 { position:absolute; z-index:6; left:5%; bottom:5rem; margin:0;}


#infohome .box:nth-child(1) { background:#e3ebf8;}
#infohome .box:nth-child(2) { background:#fdf2ea;}

#infohome .box:nth-child(1) ul { width:55%; position:relative; z-index:5; margin-left:-3%;}
#infohome .box:nth-child(1) ul li { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:2rem;}
#infohome .box:nth-child(1) ul li .ico { background:var(--k1); border-radius: 50%; width:6rem; height:6rem; display: flex; flex: 0 0 6rem; align-items:center; justify-content:center; margin-right:1rem;  }
#infohome .box:nth-child(1) ul li .ico img { width:auto; height:3rem; display:block;}
#infohome .box:nth-child(1) ul li .txt { line-height:2rem; font-size:1.3rem; }
#infohome .box:nth-child(1) ul li .txt strong { display:block; font-size:1.8rem; margin-bottom:1rem; }
#infohome .box:nth-child(1) ul li .txt { line-height:2rem;}
#infohome .box:nth-child(1) .tyt4 { margin-bottom:8rem; position:relative; z-index:5;}


#bgco { position:absolute; z-index:2; right:0; top:0; width:auto !important; height:100% !important;}
#dziewczynka { position:absolute; width:55% !important; height:auto !important; z-index:10; right:-4.1%; bottom:0;}


#infohome .box:nth-child(2) .tyt4{ width:90%;}
#infohome .box:nth-child(2) #cambridge { display:block; max-width:70%; width:35rem !important; height:auto !important; margin:0 0 3rem 2rem;}
#proc { width:auto !important; height:80% !important; position:absolute; z-index:2; right:0; top:10%;}

#infohome .box:nth-child(2) ul { width:100%; display:flex; justify-content:space-between; margin-top:8rem;}
#infohome .box:nth-child(2) ul li { display:flex; flex-direction:column; width:31%;}
#infohome .box:nth-child(2) ul li .ico { background:var(--k2); border-radius: 50%; width:6rem; height:6rem; display: flex; flex: 0 0 6rem; align-items:center; justify-content:center; margin-bottom:2rem; margin-right:1rem;  }
#infohome .box:nth-child(2) ul li .ico img { width:auto; height:3rem; display:block;}
#infohome .box:nth-child(2) ul li .txt { line-height:2rem; width:100%; font-size:1.3rem; }
#infohome .box:nth-child(2) ul li .txt strong { display:block; font-size:1.8rem; margin-bottom:1rem; }
#infohome .box:nth-child(2) ul li .txt { line-height:2rem;}

#rodzice { width:100%; padding:var(--p3) var(--p5) var(--p3) 0; position:relative;  display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
#rodzice #dyrbg, #rodzice .box { grid-column: 1 / 1; grid-row: 1 / 1;}
#rodzice #dyrbg { width: 100% !important; height: auto !important; display: block; border-radius: 0 1rem 1rem 0; z-index: 1; }
#rodzice .box { width: 60%; z-index: 5; align-self: center; margin: -3% 0 0 5%; background: #E2EBF8; background: linear-gradient(180deg, rgba(226, 235, 248, 1) 0%, rgba(255, 255, 255, 1) 100%); padding: 5% 10% 5% 5%;}


#dyr { position:absolute; z-index:10; right:15.8%; top:2.5%; width:27.4% !important; height:auto !important; }
#podpislist { width:100%; padding-top:7rem;}
#podpislist strong { font-size:2.4rem;}

.bela { width:15rem; height:1rem; margin-top:2rem; background: #02254C; display:block;
background: linear-gradient(90deg, rgba(2, 37, 76, 1) 0%, rgba(2, 37, 76, 1) 33%, rgba(0, 174, 239, 1) 33%, rgba(0, 174, 239, 1) 66%, rgba(242, 101, 34, 1) 66%, rgba(242, 101, 34, 1) 100%);}

#wartosci { width:100%; padding:0 var(--p15) var(--p3) var(--p15);}
#wartosci .box{ width:100%; padding-right:60%; margin-bottom:3rem; position:relative;}
#wartosci .box .bela { position:absolute; z-index:2; right:0; bottom:0;}

#wartosci ul { width: 100%; display: flex; justify-content: space-between; gap: 2rem;}
#wartosci ul > li { width: 18%; aspect-ratio: 266 / 376; perspective: 100rem; }
#wartosci ul > li .ico { position: relative; width: 100%; height: 100%;  transition: transform 0.6s ease; transform-style: preserve-3d;}
#wartosci ul > li:hover .ico { transform: rotateY(180deg);}
#wartosci ul > li .ico img, #wartosci ul > li .txt { position: absolute; top: 0; left: 0; width: 100%; height: 100%; backface-visibility: hidden; }
#wartosci ul > li .ico img { object-fit: cover; z-index: 2;}
#wartosci ul > li .txt { background-color:#e3ebf8; padding: 2rem; display: flex;  flex-direction: column; justify-content: center; align-items: center; text-align: center;  transform: rotateY(180deg); 
font-size:1.4rem; line-height:2rem;}


#historia { width:100%; padding:var(--p3) var(--p10) 5rem var(--p10); background: #FDF2EA; background: linear-gradient(180deg, rgba(253, 242, 234, 1) 0%, rgba(255, 255, 255, 1) 100%); position:relative; }
#historia .box { width:100%; padding:0 var(--p15);}
#his { width:100%; padding-bottom:var(--p5);}
#his .item { display:flex; justify-content:space-between; position:relative;}
#his .item .ico { width:40%; overflow:hidden;}
#his .item .ico img { width:100% !important; height:auto !important; display:block;}
#his .item .txt { width:57%; padding-right:var(--p5);}
#his .item:hover .txt h2 { color:var(--k2);}
#historia a.wiecej2 { position:absolute; right:var(--p10); bottom:3rem ;}

a.wiecej { width:100%; height:100%; position:absolute; z-index:22; left:0; top:0; text-indent:-99999px; }

/* ---------------------------------  karuzela -------------------------------------*/

.krz { position: relative; --krz-show: 1; --krz-gap: 0; }

.krz-list {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;            /* pionowe przewijanie strony działa, poziome przeciąga karuzelę */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.krz-list.is-dragging { cursor: grabbing; }

.krz-track {
  display: flex;
  gap: var(--krz-gap);
  will-change: transform;
}

/* szerokość slajdu liczona z liczby widocznych slajdów i odstępu */
.krz-slide {
  flex: 0 0 calc((100% - (var(--krz-show) - 1) * var(--krz-gap)) / var(--krz-show));
  min-width: 0;
  box-sizing: border-box;
}
.krz-slide img { display: block; -webkit-user-drag: none; }

/* kropki – ten sam wygląd co wcześniej */
.krz-dots { position: absolute; bottom: 0; left: 0; display: block; width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; }
.krz-dots li { position: relative; display: inline-block; margin: 0 0.2rem; padding: 0; }
.krz-dots li button {
  display: block; width: 2rem; height: 1rem; padding: 0; border: none; cursor: pointer;
  background: var(--k1); line-height: 0; font-size: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.krz-dots li button:hover,
.krz-dots li.krz-active button { background: var(--k2); }
.krz-dots li.krz-active button { width: 4rem; }

/* strzałki (gdy arrows: true) */
.krz-arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 3rem; height: 3rem; border: none; border-radius: 50%; cursor: pointer;
  background: var(--k2); color: #fff; font-size: 2rem; line-height: 1;
}
.krz-arrow:hover { background: var(--k1);}

.krz-prev { left: -4%; }
.krz-next { right: -4%; }
.krz-arrow[disabled] { opacity: 0.3; cursor: default; }

/* ---------------------------------  end karuzela -------------------------------------*/


#newshome { width:100%; padding:var(--p3) var(--p10) 5rem var(--p10); position:relative; background: #E3EBF8; background: linear-gradient(90deg, rgba(227, 235, 248, 1) 0%, rgba(255, 255, 255, 1) 100%);}
#news2 {width:100%; padding-bottom:var(--p5);}
#news2 .item { padding:0 1rem; position:relative;}
#news2 .item .ico { width:100%; overflow:hidden; border-radius: 1rem 1rem 0 0; background: #00AEEF; background: linear-gradient(358deg, rgba(0, 174, 239, 1) 0%, rgba(242, 101, 34, 1) 100%); }
#news2 .item .ico img { width:100% !important; height:auto !important; display:block;}
#news2 .item:hover .ico img { opacity:0.5;}

#news2 .item .txt .info { display:flex; justify-content:space-between; align-items:baseline; margin:1.5rem 0 2rem 0; height:1.4rem;}
#news2 .item .txt .info .tyt5 { font-size:1.4rem; line-height:1.4rem;}
#news2 .item .txt .info .bela { margin-top:0;}
#news2 .item:hover .txt .info .bela { width:20rem !important;}
#news2 .item .txt h2 { font-size:2rem;}
#newshome a.wiecej2 { position:absolute; right:var(--p10); bottom:4rem ;}

#fastkontakt { width:100%; padding:var(--p3) var(--p15); }
#fastkontakt .box { text-align:center;}
#infokontakt { width:100%; display:flex; justify-content: space-between;}
#infokontakt #map { width:53%; }
#infokontakt .box { width:45%;}
#infokontakt .box img { width:100% !important; height:auto !important; display:block;}

#krakow { width:100% !important; height:auto !important; display:block; }


#footer { width:100%; padding:var(--p3) var(--p10);background: #0B1A37; background: linear-gradient(180deg, rgba(11, 26, 55, 1) 0%, rgba(2, 37, 76, 1) 100%); color:#fff; }
#footer h3 { color:#fff;}
#footer .box { width:100%; padding:0 var(--p20);}

ul#social { width:100%; display:flex; justify-content:center;}
ul#social li { margin:0 0.5rem;}
ul#social li a img { display:block; width:auto; height:4rem;}
ul#social li:hover a img { opacity:0.3;}

#infofooter { width:100%; padding:3rem 5%; border-bottom:0.1rem solid #212e47; border-top:0.1rem solid #212e47; margin-top:5%; display:flex; justify-content:space-between;}
#infofooter .dol img { width:auto; height:8rem; display:block; filter: brightness(0) invert(1); margin:0 auto 1rem auto ;}
#infofooter .dol { text-align:center; font-size:1.4rem; line-height:2.5rem;}
#infofooter .dol a { color:#fff;}
#infofooter .dol a:hover { color:var(--k1);}
#infofooter .dol .tyt6 { margin-bottom:1rem; font-size:1.4rem;}

#podpis { width:100%; font-size:1.2rem; line-height:2rem; display:flex; justify-content:space-between; padding-top:3rem;}
#podpis a { color:#fff;}
#podpis a:hover { text-decoration:underline;}


#inforek { position:fixed; z-index:3333; right:0.5rem; top: 50%;  transform: translate(0, -50%); display:flex; flex-direction:column;}
#inforek:hover {right:1rem;}
#inforek a { text-align:center; width:15rem; height:5rem; line-height:5rem; font-size:1.4rem; text-transform:uppercase;  }
#inforek a:nth-child(1) { margin-bottom:0.5rem; background:var(--k10); color:var(--k1);}
#inforek a:nth-child(2) {background:var(--k1); color:#fff;}
#inforek a:nth-child(1):hover , #inforek a:nth-child(2):hover { background:var(--k2); color:#fff; }


/* ===== Zdjęcie w nagłówku: wejście + paralaksa + przyciemnianie przy przewijaniu ===== */
#topimg { width: 100% !important; position: relative; overflow: hidden; isolation: isolate; }
#topimg .cien2 { height:100%; }

#topimg img {
	width: 100% !important;
	height: auto !important;
	display: block;
	position: relative;
	z-index: 0;
	will-change: translate;
	animation: topimg-in 1.8s cubic-bezier(.2, .7, .2, 1) both; object-fit:cover;
}

/* Przyciemnienie rośnie wraz z przewijaniem (--topimg-p: 0 → 1 ustawia skrypt) */
#topimg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #0b1f3a;
	opacity: calc(var(--topimg-p, 0) * 1.5);
	pointer-events: none;
}

/* Cienie i pasek zostają nad zdjęciem (Twoje własne z-index mają pierwszeństwo) */
:where(#topimg > div, #topimg > span) { z-index: 2; }

@keyframes topimg-in {
	from { scale: 1.12; }
	to   { scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
	#topimg img { animation: none; }
	#topimg::before { display: none; }
}


.estymo-breadcrumbs { width:100%; padding:0 var(--p15); font-size:1.2rem; color:#fff; text-align:left; line-height:2rem; position:absolute; z-index:50; left:0; bottom:0.5rem;}
.estymo-breadcrumbs a { color:#fff;}
.estymo-breadcrumbs a:hover { text-decoration:underline;}

ul.news { width:102%; margin-left:-1%; display:flex; justify-content:center; flex-wrap:wrap;}
ul.news li { width:23%; margin:0 1% 2% 1%; position:relative;}
ul.news li .ico { width:100%; overflow:hidden; border-radius: 1rem 1rem 0 0; background: #00AEEF; background: linear-gradient(358deg, rgba(0, 174, 239, 1) 0%, rgba(242, 101, 34, 1) 100%); }
ul.news li .ico img { width:100% !important; height:auto !important; display:block;}
ul.news li:hover .ico img { opacity:0.5;}
ul.news li .txt .info { display:flex; justify-content:space-between; margin:1.5rem 0 2rem 0; height:1.4rem; align-items:baseline;}
ul.news li .txt .info .tyt5 { font-size:1.4rem; line-height:1.4rem;}
ul.news li .txt .info .bela { margin-top:0;}
ul.news li:hover .txt .info .bela { width:20rem !important;}
ul.news li .txt h2 { font-size:2rem;}

#cat { width:100%; padding:var(--p3) var(--p10);}

/* ---------------------------------  Kategoria -------------------------------------*/

.opiskat { width:100%; padding:0 var(--p10) 2rem var(--p10); text-align:center;}
.opis-cat {display: flex; gap: 2%; flex-wrap: wrap; width:100%; padding:var(--p5) var(--p5) 0 var(--p5);}
.opis-cat > .box:first-child:last-child { width: 100%;}
.opis-cat > .box { width: 48.5%; box-sizing: border-box;}

/* --------------------------------- END Kategoria -------------------------------------*/

#page-all { width:100%; padding:var(--p3) var(--p5); display:flex; justify-content:space-between; align-items:center; overflow:hidden;}
#page-all .box:nth-child(1) { width:53%;}
#page-all .box:nth-child(2) { width:45%;}
#page-all .box img { width: auto !important; height:auto !important; display:block; margin:0 auto; max-width:100%;}
#page-all .box:nth-child(2) .lista p:first-of-type { font-size:1.9rem;}

#page-podstrona { width:100%; padding:var(--p3) var(--p15); }

.inne {width:100%; padding:var(--p3) var(--p10);} 

/* Galeria*/

.lista ul.galeria { width:101%; margin-left:-0.5% !important;  padding:0; display:flex; flex-wrap:wrap; justify-content:center; }
.lista ul.galeria li  { width:19%; position:relative; margin:0 0.5% 1% 0.5%; padding:0; background:none; overflow:hidden; }
.lista ul.galeria li a { display:block; overflow:hidden; position:relative;}
.lista ul.galeria li a , ul.galeria li a img {	display: block;	position: relative; }
.lista ul.galeria li a img { width:100% !important; height:auto !important; display:block; }
.lista ul.galeria li a div { position: absolute; background: url(../graf/zoom.svg) no-repeat center center rgba(0,174,239,0.6); background-size:30%; width: 100%; height: 100%; visibility:hidden; }
.lista ul.galeria li:hover a div { visibility:visible;}
.lista ul.galeria li a  { background-image: none ; background-size:0; transition: none;}
.lista ul.galeria li a:hover { background-size:0; transition: none ;}
.lista > ul.galeria > li:last-child {padding: 0;}
.lista ul.galeria li a { border-radius: 1rem; overflow: hidden;}
.lista ul.galeria li a img { margin: 0 !important; border-radius: 0 !important;}
.lista ul.galeria li a div {inset: 0; }

/* end Galeria*/



/* -------------------------  START sekcje  ----------------------------- */

.all-sekcja { padding:var(--p2) var(--p5); overflow:hidden;}

.E-szer1 { width:100%;}
.E-szer2 { width:90%; margin:0 5%;}
.E-szer3 { width:80%; margin:0 10%;}
.E-szer4 { width:70%; margin:0 15%;}
.E-szer5 { width:60%; margin:0 20%;}

.E-bg1 { background:none;}
.E-bg2 { box-shadow: 0 0 0 0.1rem var(--k1); margin-top: var(--p2) !important; margin-bottom: var(--p2) !important;}
.E-bg3 { background: #E3EBF8; background: linear-gradient(149deg, rgba(227, 235, 248, 1) 0%, rgba(255, 255, 255, 1) 100%);}
.E-bg4 {background: #FDF2EA; background: linear-gradient(180deg, rgba(253, 242, 234, 1) 0%, rgba(255, 255, 255, 1) 100%);}
.E-bg5 {background: var(--k10); }
.E-bg6 { background:url(../graf/WIPS-BG.jpg) no-repeat; background-attachment:fixed !important; background-size:cover;}
.E-bg7 { position:relative; overflow:hidden; }
.background-video {width: 100%; height:100%; position:absolute; left:0; right:0; top:0; bottom:0; z-index: -1; object-fit: cover; opacity:0.5;}


.blok-tresc { display:flex; justify-content:space-between; align-items: stretch; }
.blok-tresc .box:only-child { width: 100%;}
.blok-tresc:has(> .box:nth-child(2):not(:nth-child(3))) .box { width: 49%;}
.blok-tresc:has(> .box:nth-child(3):not(:nth-child(4))) .box { width: 32.3%;}
.blok-tresc:has(> .box:nth-child(4):not(:nth-child(5))) .box { width: 24%;}
.blok-tresc:has(> .box:nth-child(5):not(:nth-child(6))) .box { width: 18%;}

.all-sekcja > .blok-tresc:has(~ .blok-tresc) { margin-bottom: 1.8%;}


.E-poszer1 { width:100%}
.E-poszer2 { width:90%}
.E-poszer3 { width:80%}
.E-poszer4 { width:70%}
.E-poszer5 { width:60%}

.E-sro { margin:0 auto; }
.E-lew { margin:0 auto 0 0;}
.E-pra { margin:0 0 0 auto;}

.E-pro0 .box { width:100%;}
.E-pro1 .box:nth-child(1) { width:60% !important;}
.E-pro1 .box:nth-child(2) { width:38% !important;}
.E-pro2 .box:nth-child(1) { width:70% !important;}
.E-pro2 .box:nth-child(2) { width:28% !important;}
.E-pro3 .box:nth-child(1) { width:28% !important;}
.E-pro3 .box:nth-child(2) { width:70% !important;}
.E-pro4 .box:nth-child(1) { width:38% !important;}
.E-pro4 .box:nth-child(2) { width:60% !important;}

.E-mid { align-items:center;}
.E-top { align-items:flex-start;}
.E-bot{ align-items:flex-end;}

.box .lista h1:first-of-type , .box .lista h2:first-of-type , .box .lista h3:first-of-type , .box .lista h4:first-of-type , .box .lista h5:first-of-type , .box .lista h6:first-of-type 
{ padding:0 0 2rem 0;}

.blok-tresc .box img { width:100% !important; height:auto !important; display:block;}

.bobbg1 { background:#e3ebf8; padding:var(--p3); height: auto; align-self: stretch;}
.bobbg2 { background:#fdf2ea; padding:var(--p3); height: auto; align-self: stretch;}
.bobbg3 { background:#FFF; padding:var(--p3); height: auto; align-self: stretch;}

.blok-tresc .box .lista:has(> p:only-child > img:only-child) p {margin-bottom: 0;}

@media only screen and (max-width: 1200px) {

.box { margin-bottom:var(--p2);}
.E-mob { order:-1;}
.blok-tresc { flex-wrap:wrap;}
.blok-tresc:has(> .box:nth-child(2):not(:nth-child(3))) .box { width: 100%;}
.blok-tresc:has(> .box:nth-child(3):not(:nth-child(4))) .box { width: 100%;}
.blok-tresc:has(> .box:nth-child(4):not(:nth-child(5))) .box { width: 100%;}
.blok-tresc:has(> .box:nth-child(5):not(:nth-child(6))) .box { width: 100%;}
.E-poszer2 { width:100% !important;}
.E-poszer3 { width:100%  !important;}
.E-poszer4 { width:100%  !important;}
.E-poszer5 { width:100%  !important;}
.E-szer2 { width:90%; margin:0 var(--p5) var(--p2) var(--p5);}
.E-szer3 { width:90%; margin:0 var(--p5) var(--p2) var(--p5);}
.E-szer4 { width:90%; margin:0 var(--p5) var(--p2) var(--p5);}
.E-szer5 { width:90%; margin:0 var(--p5) var(--p2) var(--p5);}
.E-pro1 .box:nth-child(1) { width:100% !important;}
.E-pro1 .box:nth-child(2) { width:100% !important;}
.E-pro2 .box:nth-child(1) { width:100% !important;}
.E-pro2 .box:nth-child(2) { width:100% !important;}
.E-pro3 .box:nth-child(1) { width:100% !important;}
.E-pro3 .box:nth-child(2) { width:100% !important;}
.E-pro4 .box:nth-child(1) { width:100% !important;}
.E-pro4 .box:nth-child(2) { width:100% !important;}
.blok-tresc .box img { margin-bottom:var(--p2);}
}

/* ------------------------- END sekcje  ----------------------------- */


/* Kontrast WCAG – czytelność dla osób słabowidzących */
.tyt5, .tyt6 { color: #70768b; }                  
#inforek a:nth-child(1) { color: #007aa8; }       
#inforek a:nth-child(2) { background: #007aa8; }  



/* Lista*/

.lista { width:100%; position:relative; }
.lista img { max-width:100% !important; height:auto !important;}
.lista p { margin-bottom:2rem;}
.lista a  {  color:#002450; background-image: linear-gradient(#fabea1, #fabea1); background-size:100% 0.1rem; background-repeat:no-repeat; background-position:100% 100%; transition: background-size .7s, background-position .5s ease-in-out;}
.lista a:hover { background-size: 100% 100%; background-position: 0% 100%; transition: background-position .7s, background-size .5s ease-in-out;}

.lista ul { list-style:none; padding:0 0 0 2rem; display: table; }
.lista > ul , .lista > ol { padding-bottom:2rem;}
.lista ul > li { background:url(../graf/li1.svg) no-repeat 0 0.9rem; padding-left:3rem; text-align:left; background-size:1.2rem;}
.lista ul > li > ul > li {background:url(../graf/li1.svg) no-repeat 0 1.5rem; background-size:0.8rem;}
.lista > ul > li:last-child { padding:0 0 2rem 3rem;}

.lista ol {padding:0 0 0 2rem; display: table; list-style-position: outside; }
.lista ol > li {padding-left:1rem; text-align:left; }
.lista ol > li > ol { padding-left:4rem;}
.lista ol > li > ol > li { list-style:lower-alpha;}
.lista ol > li > ol > li > ol > li { list-style:upper-roman;}
.lista ol > li > ol > li > ol > li > ol > li { list-style:upper-alpha; }
.lista ol > li > ol > li > ol > li > ol > li > ol > li { list-style:lower-alpha; }
.lista > ol > li:last-child { padding:0 0 2rem 1rem;}

.lista h1 , .lista h2 , .lista h3 , .lista h4 , .lista h5, .lista h6 { text-align:left; font-size:2.2rem; line-height:2.5rem; padding:2rem 0 1rem 0; color:var(--k3);}

/* END Lista*/


/*page navi*/
.wp-pagenavi { padding:var(--p5) 0 var(--p2) 0; width:100%; display: flex; justify-content:center;  }
.wp-pagenavi .pages { color:#fff; margin-right:1rem; background:var(--k1);  }
.wp-pagenavi a { color:#fff; margin-right:0.5rem; background:var(--k1); }
.wp-pagenavi .current , .wp-pagenavi a:hover {  background:var(--k2); margin-right:0.5rem; color:#fff;  }	
.wp-pagenavi span , .wp-pagenavi a , .wp-pagenavi span.current  { width:4rem; height:4rem; line-height:4rem; text-align: center !important; display:inline-block; }
.wp-pagenavi span.pages { padding:0 2rem; width:auto;  height:4rem; line-height:4rem; }

#page-kontakt { width:100%; padding:var(--p3) var(--p10);}
#kontaktpage { width:100%; display:flex; justify-content:space-between;}
#kontaktpage .box:nth-child(1) { width:30%;}
#kontaktpage .box:nth-child(2) { width:65%;}

/*formularz*/

.formularz { width:100%; padding:0; display: flex; justify-content: space-between; flex-wrap: wrap; align-content: center; }
.formularz p { margin-bottom:0; width:100%;}
.formularz span { width:100%; position:relative; display:block;}

.formularz input , .formularz textarea , .formularz select { width:100%; height:5rem; line-height:5rem; border: none; padding:0 1rem; box-shadow: 0 0 0 0.1rem #ccc; background:none; font-family: "Inter", sans-serif; font-size:1.6rem; margin-bottom:1.4rem;}
.formularz input:hover, .formularz textarea:hover, .formularz select:hover { box-shadow: 0 0 0 0.1rem var(--k1);  }
.formularz input:focus, .formularz textarea:focus, .formularz select:focus  { box-shadow: 0 0 0 0.1rem var(--k1); }
.formularz textarea { height:10rem; padding:0 1rem;}

.formularz span.wpcf7-not-valid-tip { position:absolute; z-index:4; right:1rem; top:-3.5rem; background:var(--k1); color:#fff; padding:0 1rem; width:auto; line-height:3rem; font-size:1.1rem;}
.formularz span.wpcf7-not-valid-tip:after {content: ''; height: 1rem; width:1rem; background-color: var(--k1); display: block; position:absolute; bottom:-0.5rem; left:2rem; transform: rotate(45deg); }

.formularz .f1 { width:100%; }
.formularz .f2 { width:49%; }
.formularz .f3 { width:32.5%; }

.wpcf7 form.sent .wpcf7-response-output , .wpcf7 form.invalid .wpcf7-response-output { width:100%; padding:5%; text-align:center; margin:0; border:0; font-size:1.6rem;}

.formularz input.wpcf7-submit { width:40rem; line-height:5rem; display:block; margin:4rem auto 0 0; text-align:center; font-size:1.4rem; color:#fff; background:var(--k1); border:none; cursor:pointer; box-shadow: none;}
.formularz input.wpcf7-submit { background-image: linear-gradient(to right, var(--k1) 0%, var(--k1) 50%, var(--k2)  100%);}
.formularz input.wpcf7-submit { transition: 0.8s; background-size: 200% auto;}
.formularz input:hover.wpcf7-submit:hover { background-position: right center; }

.wpcf7-list-item label { display:flex; justify-content:space-between; align-items:flex-start;}
.wpcf7-list-item input { width:2rem; margin-right:1rem;}
.wpcf7-list-item-label { font-size:1rem; line-height:1.5rem;}



.formularz input[type=checkbox],
.formularz input[type=radio] {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  flex: 0 0 2rem;
  line-height: normal;
  padding: 0;
  margin: 0 1.2rem 0 0;
  box-shadow: none;
  border-radius: .4rem;
  accent-color: var(--k1);   /* zaznaczenie w kolorze strony */
  cursor: pointer;
}
.formularz .wpcf7-list-item { margin: 0; }
.formularz .wpcf7-list-item label { justify-content: flex-start; cursor: pointer; }

/* end formularz */

.podstrona #map { width:80%; height:50rem; display:block; margin:0  auto var(--p3) auto;  }


ul.opinie { width:102%; margin-left:-1%; display:flex; justify-content:center; flex-wrap:wrap;}
ul.opinie li { display:flex; justify-content:space-between; position:relative; margin:0 1% 2% 1%; width:48%;}
ul.opinie li .ico { width:40%; overflow:hidden;}
ul.opinie li .ico img { width:100% !important; height:auto !important; display:block;}
ul.opinie li .txt { width:57%; padding-right:var(--p5);}
ul.opinie li:hover .txt h2 { color:var(--k2);}

#page-opinie { width:100%; padding:var(--p3) var(--p5); display:flex; justify-content:space-between; align-items:center; overflow:hidden;}
#page-opinie .box {flex-shrink: 0;}
#page-opinie .box:nth-child(1) { width:50%; position:relative; z-index:1;}
#page-opinie .box:nth-child(2) { width:55%; padding:var(--p3); background: #E3EBF8; background: linear-gradient(149deg, rgba(227, 235, 248, 1) 0%, rgba(255, 255, 255, 1) 100%); position:relative; z-index:2; margin-left:-5%;}
#page-opinie .box img { width: auto !important; height:auto !important; display:block; margin:0 auto; max-width:100%;}
#page-opinie .box:nth-child(2) .lista p:first-of-type { font-size:1.9rem;}


ul.oferta { width:102%; margin-left:-1%; display:flex; justify-content:center; flex-wrap:wrap; flex-wrap:wrap;}
ul.oferta li { width:23%; margin:0 1% 3% 1%; position:relative;}
ul.oferta li .ico { width:100%; margin-bottom:2rem; }
ul.oferta li .ico img { width:100% !important; height:auto !important; display:block; }
ul.oferta li .txt .bela { margin:0 auto; }
ul.oferta li:hover .txt .bela { width:70%;}
ul.oferta li .txt h2 { font-size:2rem; text-align:center; margin-top:2rem;}

ul.oferta li .ico {
  position: relative;
  display: inline-block;
  line-height: 0;
}

ul.oferta li .ico img {
  display: block;
  position: relative;
  z-index: 1;
}

/* cień pod ikoną */
ul.oferta li .ico::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -1rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

ul.oferta li:hover .ico img {
  animation: podskok 0.8s ease;
}

ul.oferta li:hover .ico::before {
  animation: cien 0.8s ease;
}

@keyframes podskok {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-1.6rem); }
  65%      { transform: translateY(0); }
  80%      { transform: translateY(-0.5rem); }
}

@keyframes cien {
  0%, 100% { transform: scale(1);    opacity: 1; }
  40%      { transform: scale(0.6);  opacity: 0.5; }
  65%      { transform: scale(1);    opacity: 1; }
  80%      { transform: scale(0.85); opacity: 0.8; }
}


#page-oferta { width:100%; padding:var(--p3) var(--p10); display:flex; justify-content:space-between; align-items:center; overflow:hidden;}
#page-oferta .box:nth-child(1) { width:55%;}
#page-oferta .box:nth-child(2) { width:42%;}
#page-oferta .box img { width: auto !important; height:auto !important; display:block; margin:0 auto; max-width:100%;}
#page-oferta .box:nth-child(1) .lista p:first-of-type { font-size:1.9rem;}


#szuk { width:100%; height:100%; background:rgba(255,255,255,0.7); position:fixed; z-index:2222; left:0; top:0; display:none; }
#szuk > fieldset { width:100%; padding:5% 10%; background:#fff; margin:0; border: none; position:relative; left:0; top: 50%;  transform: translate(0, -50%) }
.lista fieldset { width:100%; padding:0; margin:4rem 0 0 0; border: none;}
fieldset form {width:100%; display:flex; justify-content:space-between;}
fieldset .txt { width:70%; padding:0 2rem; border: none; line-height:5rem; box-shadow: 0 0 0 0.1rem var(--k1); font-family: "Inter", sans-serif; font-size:1.6rem; }
fieldset .txt:hover , #szuk fieldset .txt:focus {box-shadow: 0 0 0 0.1rem var(--k2);}
fieldset .guz { width:29%; height:5rem;  color:#fff; text-align:center; border:none; cursor:pointer; font-size:1.6rem; background:var(--k1); }
fieldset .guz:hover {background:var(--k2);  }

img#exit { position:absolute; z-index:22; right:5%; top:2rem; cursor:pointer; width:auto; height:4rem;  }
img#exit:hover { opacity:0.5;}

.poka { display:block !important;}

.wpis { width:100%; display:flex; justify-content:space-between; align-items:center;}
.wpis img { width:50% !important; height:auto !important; display:block; margin-right:2%;}


/* menu */
.nav-top, .nav-drill, .nav-overlay { display:none; }

@media only screen and (max-width: 1100px) {

.nav-top { display:flex; align-items:center; margin-left:20px; margin-right:3rem; }

.hamburger { display:flex; align-items:center; gap:8px; padding:0; border:0; background:none; font:inherit; font-size:18px; text-transform:uppercase; color:#fff; cursor:pointer;  }
.hamburger::after { content:'\2630'; }
.nav-is-toggled .hamburger::after { content:'\2715'; }

/* panel */
.nav-drill { display:block; position:fixed; z-index:5500; top:0; left:0; width:280px; max-width:85vw; height:100vh; height:100dvh; background:#fff; overflow-y:auto; overflow-x:hidden; overflow-x:clip; overscroll-behavior:contain; transform:translateX(-100%); visibility:hidden; transition:transform .35s ease, visibility 0s .35s; }
.nav-is-toggled .nav-drill { transform:none; visibility:visible; transition:transform .35s ease; }

/* tło */
.nav-overlay { display:block; position:fixed; inset:0; z-index:5400; background:rgba(0,0,0,.4); opacity:0; visibility:hidden; transition:opacity .35s, visibility 0s .35s; }
.nav-is-toggled .nav-overlay { opacity:1; visibility:visible; transition:opacity .35s; cursor:pointer; }
body.nav-is-toggled { overflow:hidden; }

/* linki */
.nav-drill ul { list-style:none; margin:0; padding:0; width:100%; }
.nav-drill .nav-link { display:flex; align-items:center; width:100%; padding:20px 1em; border:0; border-bottom:1px solid #eee; background-color:#fff; color:#222; font:inherit; font-size:16px; line-height:20px; text-align:left; cursor:pointer; }
.nav-drill .nav-link img { width:auto !important; height:30px !important; padding-right:10px; }
.nav-drill .nav-link:focus-visible { outline:2px solid var(--k2); outline-offset:-2px; }
.menu-image-title-after.menu-image-title { padding-left:0; }

/* podmenu */
.nav-drill .nav-expand-content { position:absolute; inset:0; background:#fff; overflow-y:auto; transform:translateX(100%); visibility:hidden; transition:transform .3s, visibility 0s .3s; }
.nav-drill .nav-expand.active > .nav-expand-content { transform:none; visibility:visible; transition:transform .3s; }

/* strzałki */
.nav-drill .nav-expand > .nav-link { padding-right:3em; background:#fff url(../graf/prawa.svg) no-repeat right 1em center / 15px; }
.nav-drill .nav-back-link { padding-left:2.8em; background:var(--k1) url(../graf/lewa2.svg) no-repeat 1em center / 15px; color:#fff; }
.nav-drill .nav-parent-link { font-weight:700; }

/* hover tylko tam, gdzie jest mysz */
@media (hover:hover) {
  .nav-drill .nav-link:hover { background-color:var(--k2); color:#fff; }
  .nav-drill .nav-expand > .nav-link:hover { background-image:url(../graf/prawa2.svg); }
}

}
/* END menu */


