@charset "UTF-8";

:root,
[data-bs-theme=light] {
	--font: 'Baloo 2', sans-serif;
	--font2: 'Titan One', sans-serif;

	--primary-color: hsl(46 99% 65%);
	--primary-color-light: hsl(46 99% 75%);
	--primary-color-dark: hsl(46 99% 55%);

	--xxl: 5rem;
	--xl: 3rem;

	--bs-primary: var(--primary-color);
	--bs-primary-rgb: 254, 213, 77;

	--bs-secondary: hsl(355 100% 67%);
	--bs-secondary-rgb: 255, 88, 103;

	--bs-light: hsl(53, 22%, 92%);
	--bs-light-rgb: 239, 237, 229;

	--bs-dark: hsl(48 24% 14%);
	--bs-dark-rgb: 42, 40, 33;

	--bs-link-color: hsl(355 100% 67%);
	--bs-link-color-rgb: 255, 87, 101;
	--bs-link-hover-color: hsl(355, 100%, 42%);
	--bs-link-hover-color-rgb: 214, 0, 18;

	--bs-body-color: var(--bs-dark);

	--h1: clamp(2.75rem, 5vw, 4.29375rem);
	--h2: clamp(2.2rem, 3.5vw, 3.43125rem);
	--h3: clamp(1.75rem, 3vw, 2.75rem);
	--h4: clamp(1.4rem, 2.5vw, 2.2rem);
	--h5: clamp(1.25rem, 2vw, 1.75625rem);
	--h6: clamp(1.15rem, 1.5vw, 1.40625rem);
	--lead: var(--h6);
	--text: clamp(1rem, 2vw, 1.125rem);

	--affix-height: 80px;
}

[x-cloak] {
	display: none !important;
}

:focus-visible {
	outline: 2px dashed var(--primary-color);
	outline-offset: 2px;
}

.bg-primary :focus-visible {
	outline: 2px dashed var(--bs-dark);
}

html {
	scrollbar-gutter: stable;
	scroll-behavior: smooth;
	scroll-padding-top: var(--affix-height);
}

body {
	font-family: var(--font);
	font-size: var(--text);
	line-height: 1.44;
}

.baloo2 {
	font-family: var(--font);
}

.titanone {
	font-family: var(--font2);
}

.font-size-12px {
	font-size: .75rem;
}

.font-size-14px {
	font-size: .875rem;
}

.font-size-16px {
	font-size: 1rem;
}

.font-size-18px {
	font-size: 1.125rem;
}

.font-size-20px {
	font-size: 1.25rem;
}

.font-size-22px {
	font-size: 1.375rem;
}

.font-size-24px {
	font-size: 1.5rem;
}

.font-size-26px {
	font-size: 1.625rem;
}

.font-size-28px {
	font-size: 1.75rem;
}

.font-size-30px {
	font-size: 1.875rem;
}

.font-size-32px {
	font-size: 2rem;
}

.font-size-34px {
	font-size: 2.125rem;
}

.font-size-36px {
	font-size: 2.25rem;
}

.font-size-38px {
	font-size: 2.375rem;
}

.font-size-40px {
	font-size: 2.5rem;
}

.font-size-42px {
	font-size: 2.625rem;
}

.font-size-44px {
	font-size: 2.75rem;
}

.font-size-46px {
	font-size: 2.875rem;
}

.font-size-48px {
	font-size: 3rem;
}

.font-size-50px {
	font-size: 3.125rem;
}

.icon {
	width: var(--icon-size, 72px);
}

.icon-72px,
[src*="_72px"] {
	width: 72px;
}

.icon-48px,
[src*="_48px"] {
	width: 48px;
}

.icon-32px,
[src*="_32px"] {
	width: 32px;
}

.icon-16px,
[src*="_16px"] {
	width: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
	font-family: var(--font2);
	margin-bottom: 1rem;
	font-weight: normal;
}

h1 em,
h2 em,
h3 em,
h4 em,
h5 em,
h6 em,
.h1 em,
.h2 em,
.h3 em,
.h4 em,
.h5 em,
.h6 em {
	font-style: normal;
	color: var(--primary-color);
}

h1,
.h1 {
	font-size: var(--h1) !important;
	text-wrap: balance;
}

h2,
.h2 {
	font-size: var(--h2) !important;
}

h3,
.h3 {
	font-size: var(--h3) !important;
}

h4,
.h4 {
	font-size: var(--h4) !important;
}

h5,
.h5 {
	font-size: var(--h5) !important;
}

h6,
.h6 {
	font-size: var(--h6) !important;
}

.lead {
	font-size: var(--lead);
}

.lead,
p {
	text-wrap: pretty;
}

.container-fluid {
	padding-inline: 3vw;
}

@media (min-width: 1536px) {
	.container {
		max-width: 1470px;
	}
}

.inset-0 {
	inset: 0;
}

.p-xxl {
	padding: var(--xxl);
}

.p-xl {
	padding: var(--xl);
}

.px-xxl {
	padding-inline: var(--xxl)
}

.px-xl {
	padding-inline: var(--xl)
}

.pt-xxl {
	padding-top: var(--xxl);
}

.pb-xxl {
	padding-bottom: var(--xxl);
}

.py-xxl {
	padding-top: var(--xxl);
	padding-bottom: var(--xxl);
}

.mt-xxl {
	margin-top: var(--xxl);
}

.mb-xxl {
	margin-bottom: var(--xxl);
}

.my-xxl {
	margin-top: var(--xxl);
	margin-bottom: var(--xxl);
}

.pt-xl {
	padding-top: var(--xl);
}

.pb-xl {
	padding-bottom: var(--xl);
}

.py-xl {
	padding-top: var(--xl);
	padding-bottom: var(--xl);
}

.mt-xl {
	margin-top: var(--xl);
}

.mb-xl {
	margin-bottom: var(--xl);
}

.my-xl {
	margin-top: var(--xl);
	margin-bottom: var(--xl);
}

#main ol li ul {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

#main ol li+li {
	margin-top: .5rem;
}

/*  MARK: navbar  */

.navbar {
	--bs-navbar-padding-x: 0;
	--bs-navbar-padding-y: 1.875rem;
	--bs-navbar-nav-link-padding-x: 1rem;
	transition: padding 200ms, box-shadow 200ms;
	display: none;
}

.navbar.affix {
	--bs-navbar-padding-y: .5rem;
	box-shadow: 0 0 2rem hsl(0 0% 0% / .15);
}

.navbar-brand {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.herb,
.navbar-brand-image {
	height: 124px;
	transition: height 200ms;
}

.navbar-brand-text {
	font-family: var(--font2);
	font-size: var(--h6);
	line-height: 1.5;
}

.affix .navbar-brand-image {
	height: 60px;
}


.dropdown-menu {
	border: 0;
	padding: .75rem 1rem;
	border-radius: 0;
	box-shadow: 0 1rem 2.5rem -.5rem hsl(0 0% 0% / .25);
	background-color: hsl(0 0% 100% / .8);
}

.dropdown-item {
	padding: 0.25rem 0;
	transition: color 200ms, border-color 200ms;
	border-bottom: 1px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
	color: var(--primary-color);
	background-color: transparent;
	border-bottom-color: var(--primary-color);
}

/*  MARK: header  */

header {
	height: 320px;
	background-color: var(--primary-color);
	/* background-image: url(../img/topbg.svg);
	background-size: cover;
	background-position: center; */
	position: relative;
	overflow: hidden;

	& .animated-bg {
		height: 100%;

		&::before,
		&::after {
			content: "";
			display: block;
			position: absolute;
			z-index: 1;
		}

		&::before {
			width: 45%;
			aspect-ratio: 851/453;
			background-image: url(../img/head-before.svg);
			background-repeat: no-repeat;
			background-size: contain;

			top: -5%;
			left: -5%;
			transform: translate(0, 0);

			animation: floatInHeader 30s linear infinite forwards;
		}

		&::after {
			width: 55%;
			aspect-ratio: 1044/448;
			background-image: url(../img/head-after.svg);
			background-repeat: no-repeat;
			background-size: contain;

			top: 0;
			right: 0;
			transform: translate(0, 0);
			animation: floatInHeader 30s linear infinite backwards reverse;
		}
	}

	& .container {
		height: 100%;
		position: relative;
		z-index: 2;
	}

	& img.object-fit-contain {
		width: 50%;
		margin-top: 14%;
	}

	&:after {
		content: "";
		position: absolute;
		z-index: 3;
		inset: auto 0 0;
		height: 20px;
		background-image: url(../img/wave_white.svg);
		background-repeat: repeat-x;
		background-size: auto 20px;
	}
}

@keyframes floatInHeader {
	0% {
		transform: translate(0%, -2%);
	}

	10% {
		transform: translate(1.5%, -1.5%);
	}

	20% {
		transform: translate(2%, 0%);
	}

	30% {
		transform: translate(1.5%, 1.5%);
	}

	40% {
		transform: translate(0%, 2%);
	}

	50% {
		transform: translate(-1.5%, 1.5%);
	}

	60% {
		transform: translate(-2%, 0%);
	}

	70% {
		transform: translate(-1.5%, -1.5%);
	}

	80% {
		transform: translate(0%, -2%);
	}

	90% {
		transform: translate(0.75%, -1.75%);
	}

	100% {
		transform: translate(0%, -2%);
	}
}

/*  MARK: main content */

.btn {
	--bs-btn-padding-x: 1.875rem;
	--bs-btn-padding-y: 1.25rem;
	--bs-btn-font-size: 1rem;
	--bs-btn-font-weight: 400;
	--bs-btn-line-height: 1.5;
	--bs-btn-border-radius: 5rem;
	font-family: var(--font2);
}

.btn-primary {
	color: var(--bs-body-color) !important;
	--bs-btn-bg: var(--primary-color);
	--bs-btn-border-color: var(--primary-color);
	--bs-btn-hover-bg: var(--primary-color-light);
	--bs-btn-hover-border-color: var(--primary-color-light);
	--bs-btn-active-bg: var(--primary-color-dark);
	--bs-btn-active-border-color: var(--primary-color-dark);
}

.btn-outline-primary {
	--bs-btn-color: var(--primary-color);
	--bs-btn-border-color: var(--primary-color);
	--bs-btn-hover-bg: var(--primary-color);
	--bs-btn-hover-border-color: var(--primary-color);
	--bs-btn-active-bg: var(--primary-color);
	--bs-btn-active-border-color: var(--primary-color);
}

aside .list-unstyled a {
	display: block;
	font-size: var(--text);
	text-decoration: none;
	color: var(--bs-dark);
	font-family: var(--font2);

	transition: color 200ms, transform 200ms;

	&:hover,
	&:focus {
		color: var(--bs-body-color);
		opacity: .7;
		transform: translateX(3px);
	}

	&.active {
		color: var(--primary-color-dark);

	}
}

aside+article {
	border-left: 1px solid var(--bs-border-color);
}

#nasze-grupy a {
	text-decoration: none;
	color: var(--bs-dark);
	transition: color 200ms;

	& img {
		transition: transform 200ms;
	}

	&:hover,
	&:focus {
		color: var(--primary-color-dark);

		& img {
			transform: scale(1.05);
		}
	}
}

.card-title-link {
	text-decoration: none;
	color: var(--bs-dark);
	transition: color 200ms;

	&:hover,
	&:focus {
		color: var(--primary-color-dark);
	}
}

.card {
	border-radius: 0;
	border: 0;
	position: relative;

	padding-top: calc(3rem + 27px) !important;

	&::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 27px;
		background-image: url(../img/shapes.svg);

	}
}

.date-box {
	transition: transform 200ms, box-shadow 200ms;
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	flex-direction: column;
}

.date-box small {
	font-size: 16px;
}

.card[x-data] {
	cursor: pointer;

	&:hover,
	&:focus {
		& .card-title-link {
			color: var(--primary-color);
		}

		& .date-box {
			transform: translateY(-3px);
			box-shadow: 0 1rem 1rem -0.5rem hsl(0 0% 0% / .15);
		}
	}
}

.wave-to-light {
	background-image: url(../img/wave_efede5.svg);
	background-repeat: repeat-x;
	background-position: bottom;
	background-size: auto 20px;

	padding-bottom: calc(var(--xxl) + 20px);
}

#przedszkole {
	background-image: url(../img/wave_ff5867.svg);
	background-size: auto 20px;
	background-repeat: repeat-x;
	background-position: bottom;
	padding-bottom: calc(var(--xxl) + 20px) !important;
}

main img:not([src*=".svg"]) {
	border-radius: 1.5rem;
	max-width: 100%;
	height: auto;
}

#info {
	padding-bottom: calc(3rem + 20px);

	a {
		text-decoration: none;
		color: white;
		font-family: var(--font2);
		font-size: var(--h5);
	}
}

#info .swiper-wrapper {
	transition-timing-function: linear;
}

#info .swiper-slide {
	width: auto;
}

/*  MARK: stopka */

footer {
	position: relative;

	&::before {
		content: '';
		display: block;
		width: 100%;
		height: 20px;
		position: absolute;
		left: 0;
		top: -20px;
		z-index: 2;

		background-image: url(../img/wave_fed54d.svg);
		background-size: auto 20px;
		background-repeat: repeat-x;
		background-position: top;
	}
}

.sub footer {
	margin-top: calc(var(--xxl) + 20px);
}

footer a {
	text-decoration: none;
	color: var(--bs-body-color);
	transition: color 200ms;
}

footer a:hover,
footer a:focus {
	color: var(--bs-dark);
	text-decoration: underline;
}

.list-unstyled li+li {
	margin-top: 0.75em;
}

.madeby {
	display: flex;
	align-items: center;
}

.madeby small {
	font-size: 0.625rem;
	margin: 0.2em 0.2em 0 0;
}

/*  MARK: sub content  */

.sub .swiper__image {
	height: 600px;
}

main:has(#sub-pages:last-of-type) {
	padding-bottom: 0;
}

/* .gallery {
	--gap: 10px;
	column-count: 3;
	column-gap: var(--gap);
} */

.gallery a {
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 1.35rem;
}

.gallery a img {
	width: 100%;
	display: block;
	transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery a:hover img {
	transform: scale(1.1);
}

.downloads a {
	text-decoration: none;
	color: black;
	border: 1px solid hsl(0 0% 90%);
	border-radius: .25rem;
	transition: color 200ms, border-color 200ms;

	& .h5 {
		font-size: var(--text) !important;
		font-weight: normal !important;
		font-family: var(--font) !important;
	}
}

.downloads a:hover {
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.form-control {
	border-radius: .25rem;
}

.form-control.error {
	border-color: red;
}

.error-msg {
	color: red;
}

/* kadra */

.staff #main ul {
	list-style: none;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.staff #main li {
	background: var(--bs-light);
	border-radius: 8px;
	padding: 24px;
	line-height: 1.7;
	border-radius: 8px !important
}

.staff #main li strong {
	font-size: 1.15rem;
	color: var(--bs-body-color);
	display: block;
	margin-bottom: 4px;
}

.staff #main li {
	font-style: normal;
	font-size: 1rem;
	color: #3a3a3a;
	display: block;
	line-height: 1.29;
}

/*  MARK: paginator  */

.pagination {
	display: flex;
}

.pagination li {
	display: none;
}

.pagination .active,
.pagination .insertPage,
.pagination li:first-child,
.pagination li:last-child {
	display: block;
}

.pagination a,
.pagination input {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 5px;
	padding: 0;
	text-align: center;
	color: #000;
	border: 1px solid #c1c1c1;
	text-decoration: none;
	transition: all .2s;
}

.pagination a:focus,
.pagination a:hover,
.pagination input:focus,
.pagination input:hover {
	border: 1px solid #000;
}

.pagination input::placeholder {
	color: #bbb;
	font-size: 16px;
	font-weight: 500;
}

.pagination .active a {
	border: 1px solid var(--primary-color);
	background: var(--primary-color);
	color: #000;
	cursor: text;
}

.pagination .insertPage+.insertPage {
	display: none;
}

aside .sticky {
	top: var(--affix-height);
	bottom: 30px;
	position: sticky;
}

/* MARK: Tomek */

.table>:not(caption)>*>* {
	padding: 1rem;
}




/*  MARK: RWD  */


@media (width < 1300px) {
	main a {
		word-break: break-all;
	}
}


@media (width < 1399px) {
	.grupa {
		flex-basis: 30%;
	}
}

@media (width < 1200px) {

	.herb,
	.herb img,
	.navbar-brand-image {
		height: 80px;
	}

	.navbar-brand-text {
		font-size: .875rem;
		line-height: 1.2;
	}
}

@media (width < 992px) {
	aside+article {
		border-left: 0;
	}

	footer {
		text-align: center;

		p.d-flex {
			flex-direction: column;
			align-items: center;
			gap: .25rem !important;
		}
	}

	header .container .d-flex:has(.herb) {
		display: none !important;
	}

	header .container {
		justify-content: center !important;
	}

	.navbar {
		display: flex;

		.navbar-brand {
			margin: 0;
			padding: 0;
		}
	}

	.navbar-toggler {
		background-color: var(--primary-color);
	}

	.affix {
		background-color: white;
		box-shadow: 0 0 1rem hsl(0 0% 0% / .15);
	}

	main {
		overflow: hidden;
	}

	.sub h1 {font-size: var(--h2) !important;}
}


@media (width < 576px) {

	.herb,
	.herb img,
	.navbar-brand-image {
		height: 50px;
	}

	.navbar-brand-text {
		font-size: .75rem;
		line-height: 1.1;
	}

	.navbar-brand,
	.d-flex.gap-3:has(.herb) {
		gap: 0.5rem !important;
	}

	header {
		& img.object-fit-contain {
			width: 70%;
			margin-top: 26%;
		}
	}

	header {
		& .animated-bg {

			&::before {
				width: 155%;
			}

			&::after {
				display: none;
			}
		}
	}

	.navbar {
		--bs-navbar-padding-y: 1rem;
	}

	.grupa span {
		text-wrap: nowrap;
	}

	.card-title-link {
		word-break: normal;
	}
}

@media (width < 500px) {
	.navbar-brand-text {
		font-size: .66rem;
		line-height: 1.1;
		font-family: var(--font);
	}
}