@charset "UTF-8";

:root,
[data-bs-theme=light] {
	--font: 'Sora', system-ui, sans-serif;

	--primary-color: hsl(85, 23%, 55%);
	--primary-color-light: hsl(85, 23%, 65%);
	--primary-color-dark: hsl(85, 23%, 45%);

	--xxl: 7.5rem;
	--xl: 3.75rem;

	--bs-primary: hsl(85, 23%, 55%);
	--bs-primary-rgb: 145, 167, 114;

	--bs-light: hsl(0, 0%, 92%);
	--bs-light-rgb: 240, 240, 240;

	--bs-dark: hsl(220, 53%, 15%);
	--bs-dark-rgb: 18, 32, 59;

	--bs-body-color: hsl(220, 53%, 15%);

	--bs-link-color: hsl(85, 23%, 55%);
	--bs-link-color-rgb: 145, 167, 114;
	--bs-link-hover-color: hsl(85, 23%, 45%);
	--bs-link-hover-color-rgb: 119, 141, 88;

	--h1: clamp(2.9625rem, 5vw, 5.2625rem);
	--h2: clamp(2.21875rem, 4vw, 3.95rem);
	--h3: clamp(1.66875rem, 3vw, 2.9625rem);
	--h4: clamp(1.25rem, 2.2vw, 2.21875rem);
	--h5: clamp(1.15rem, 1.6vw, 1.66875rem);
	--h6: clamp(1.1rem, 1.25vw, 1.25rem);
	--lead: var(--h5);
}

body {
	font-family: var(--font);
}

.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(--font);
	margin-bottom: 1rem;
	font-weight: bold;

	em {
		font-style: normal;
		color: var(--primary-color);
	}
}

b,
strong {
	font-weight: bold;
}

h1,
.h1 {
	font-size: var(--h1);
}

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

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

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

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

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

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

.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);
}


/*  navbar  */

.navbar {
	--bs-navbar-padding-x: 0;
	--bs-navbar-padding-y: 0;
	--bs-navbar-active-color: white;
	--bs-navbar-nav-link-padding-x: 1rem;
	--bs-navbar-brand-padding-y: 0;
	--bs-navbar-brand-margin-end: 0;

	transition: top 200ms, box-shadow 200ms, background-color 200ms;

	&.affix {
		top: -43px;
		box-shadow: 0 0 2rem hsl(0 0% 0% / .15);
		background-color: #fff;

		.navbar-bottom {
			--p: .5rem;
		}
	}
}

.navbar-top a {
	color: white;
	text-decoration: none;

	&:hover {
		text-decoration: underline;
	}
}

.navbar-bottom {
	--p: 1.25rem;
	transition: padding 200ms;

	padding-top: var(--p);
	padding-bottom: var(--p);
}

.navbar-brand-image {
	height: 68px;
	transition: height 200ms;
}

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

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

.dropdown-item {
	border-radius: .25rem;
	padding: 0.25rem .65rem;
	transition: color 200ms, background-color 200ms;

	&:hover,
	&:focus,
	&.active {
		color: var(--primary-color);
		background-color: var(--bs-light);
	}
}

.navbar-nav .nav-link {

	&:hover,
	&:focus,
	&.show,
	&.open,
	&.active {
		color: var(--primary-color);
	}
}


/*  header  */

.slogan {
	--gap: 0.3125rem;
	padding-top: 140px;
}

.home header .position-absolute {
	background-image: linear-gradient(to right, hsl(208, 90%, 96%) 26%, transparent 60%);
}

.header__h2 {
	border-left: 6px solid var(--primary-color);
	padding: .5rem 0 .5rem 1em;
}

.swiper__image {
	height: 100vh;
	object-position: right;
}


/*  main content */

.btn {
	--bs-btn-padding-x: 1.875rem;
	--bs-btn-padding-y: 1.25rem;
	--bs-btn-font-size: 1rem;
	--bs-btn-font-weight: 700;
	--bs-btn-line-height: 1.5;
	border-radius: 0;
}

.btn-sm {
	--bs-btn-padding-x: .875rem;
	--bs-btn-padding-y: .25rem;
	--bs-btn-font-weight: 400;
}

.btn-primary {
	--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);
}

#osiedle {

	img.col-lg-4:nth-child(2) {margin-top: 57px;}

	ul {
		list-style: none;
		padding: 0;
		margin-bottom: 1.25rem;
		display: grid;
		gap: 1rem;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}

	li {
		display: block;
		position: relative;
		padding-left: 2.25em;

		&::before {
			content: '';
			display: block;
			background-image: url(../img/check.svg);
			background-repeat: no-repeat;
			background-size: contain;

			width: 24px;
			height: 24px;

			position: absolute;
			top: 0;
			left: 0;

		}
	}
}

.tags .btn {
	pointer-events: none;
}

#finansowanie {
	background-image: url(../img/info-bg.svg);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: right 12vw center;
}

.woman {
	margin-top: -60px;
}

#mapa {
	iframe {
		display: block;
		border: 0;
		width: 100%;
		height: 600px;
	}
}


/*  stopka  */

footer a {
	text-decoration: none;
	color: white;
	transition: color 200ms;

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

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

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

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


/*  sub content  */

.sub {
	padding-top: 140px;
}

/* tabele */

table {
	width: 100%;
	padding: 0px;
	overflow: hidden;
	border: 20px solid #dedee8;
	line-height: 1.25;
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0px;
	background: #dedee8;
	margin: 30px 0;
}

table th {
	text-align: left;
}

table small {
	line-height: 1;
}

table tr {
	background: white;
	border: none;
	border-bottom: 1px solid #dedee8;
}

table tr:last-of-type {
	border-bottom: none;
}

table tr th,
table tr td {
	border: none;
}

table tr th,
table tr td {
	border-bottom: 1px solid #efeff5;
}

table tr,
table tr th,
table tr td {
	padding: 1.5rem;
	transition: 2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

table tr:hover td {
	background-color: #efeff5;
}

table thead tr th:first-child {
	border-top-left-radius: 12px;
}

table thead tr th:last-child {
	border-top-right-radius: 12px;
}

table tr:last-child td:first-child {
	border-bottom-left-radius: 12px;
}

table tr:last-child td:last-child {
	border-bottom-right-radius: 12px;
}

table p {
	margin-top: 5px;
	font-size: 0.875rem;
}

table a {
	text-decoration: none;
}

table a::before {
	content: "";
	display: block;
	float: left;
	margin-right: 6px;
	height: 24px;
	width: 24px;
	background: url(../img/download.svg);
	background-size: cover;
}

table td span {
	padding: 0.25rem 0.5rem;
	font-size: 0.725rem;
	font-weight: 700;
	border-radius: 0.375rem;
}


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

.gallery a {
	display: block;
	width: 100%;
	overflow: hidden;

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

	&: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;

	&:hover {
		color: var(--primary-color);
		border-color: var(--primary-color);
	}
}

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

	&.error {
		border-color: red;
	}
}

.error-msg {
	color: red;
}



/*  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: 30px;
	height: 30px;
	margin: 0 5px;
	padding: 0;
	text-align: center;
	color: #bbb;
	border: 1px solid #e1e1e1;
	text-decoration: none;
	transition: all .2s
}

.pagination a:focus,
.pagination a:hover,
.pagination input:focus,
.pagination input:hover {
	color: var(--primary-color);
	border: 1px solid var(--primary-color)
}

.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: #fff;
	cursor: text
}

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

.table th {
	color: white;
	background-color: var(--primary-color);
}





/*  media query  */

@media (max-height: 666px) and (min-width: 1200px) {
	.home header {
		min-height: 666px;

		.swiper-slide img {
			min-height: 666px;
		}
	}
}


@media (max-width: 1399px) {
	.tags .btn {
		font-size: .8rem;
	}

	main {
		overflow: hidden;
	}

	table {
		width: 100%;
		display: block;
		overflow-x: auto;

		th, td {min-width: 100% !important;}
	}
}

@media (max-width: 1299px) {
	.navbar {
		background-image: linear-gradient(white, transparent);
	}

	#mapa iframe {
		max-height: 70vh;
	}
}


@media (max-width: 1199px) {

	.navbar-bottom .container {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.offcanvas-body {
		display: flex;

		flex-direction: column;
		align-items: flex-start;
		justify-content: space-between;
		height: 100%;
	}

	.navbar-nav {
		width: 100%;
		align-items: flex-start;
	}

	.navbar-nav .nav-link {
		text-align: left;
	}

	.tags .btn {
		background-color: hsl(0 0% 100% / .5);
	}
}


@media (max-width: 991.98px) {

	.navbar {
		background-image: none;
	}

	.affix, .sub .navbar {
		background-color: hsl(220 53% 15%) !important;
	}

	.navbar-toggler {
		filter: invert(1);
	}

	.navbar-top a span {display: none;}

	.navbar-top .gap-5 {
		gap: 1rem !important;
	}

	.navbar-top a {
		gap: 0;
	}

	.home header .position-absolute {
		background-image: none;
		background-color: hsl(220 53% 15% / .7);
	}

	.slogan {
		color: white;
	}

	.tags .btn {
		background-color: transparent;
		border-color: white;
		color: white;
	}

	#osiedle .col-lg-8 .d-flex {
		gap: 0 !important;
		margin-top: 1rem;

		img {
			max-width: 30%;
		}
	}

	#finansowanie {
		padding-top: var(--xxl);
		background-size: 100% auto;
		background-position: center bottom;

		img {
			margin-top: var(--xl);
			max-height: 80dvh;
		}
	}

}


@media (max-width: 767px) {

	.home header {
		.swiper-slide img {
			object-position: right -80vw bottom 0;
		}
	}

	.info-row .col-md-6 {
		position: relative;
		padding-left: 90px;

		+ .col-md-6 {margin-top: 2.5rem !important;}

		.h6 {margin-top: 0 !important;}

		img {
			position: absolute;
			top: 0;
			left: 0;
		}
	}
}

@media (max-width: 575px) {
	:root {
		--xxl: 3rem;
		--xl: 1.5rem;
	}
	.info-row .col-md-6 {
		padding-left: 100px;

		img {
			left: 30px;
			width: 50px;
		}
	}

	#osiedle .btn {
		width: 100%;
		justify-content: center;
	}

	

	.d-flex.justify-content-between:has(h4) {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 0.5rem;

		.btn {
			margin-left: 0 !important;
		}
	}
}