@charset "UTF-8";

:root,
[data-bs-theme=light] {
	--font: 'Host Grotesk', sans-serif;

	--primary-color: hsl(23 100% 54%);
	--primary-color-light: hsl(23 100% 64%);
	--primary-color-dark: hsl(23 100% 44%);

	--xxl: 5rem;
	--xl: 3.75rem;

	--bs-primary: hsl(23 100% 54%);
	--bs-primary-rgb: 255, 110, 20;

	--bs-primary-bg-subtle: #ff601f33;

	--bs-light: hsl(240 4% 95%);
	--bs-light-rgb: 243, 243, 244;

	--bs-dark: hsl(0 0% 7%);
	--bs-dark-rgb: 17, 17, 17;

	--bs-body-color: hsl(0 0% 7%);

	--bs-link-color: var(--primary-color);
	--bs-link-color-rgb: var(--bs-primary-rgb);
	--bs-link-decoration: underline;
	--bs-link-hover-color: hsl(23 100% 64%);
	--bs-link-hover-color-rgb: 255, 142, 71;

	--h1: clamp(2.5rem, 4vw, 3.8125rem);
	--h2: clamp(2rem, 3vw, 3.05rem);
	--h3: clamp(1.6rem, 2.5vw, 2.44375rem);
	--h4: clamp(1.3rem, 2vw, 1.95625rem);
	--h5: clamp(1.25rem, 1.5vw, 1.5625rem);
	--h6: clamp(1.1rem, 1.2vw, 1.25rem);
	--lead: var(--h6);

	--affix-height: 80px;
	--letter-spacing: .15em;
}

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

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

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

body {
	font-family: var(--font);
	line-height: 1.6;
	letter-spacing: 0.025em;
	text-wrap-style: pretty;

	small {
		line-height: 1.5;
		display: inline-block;
	}
}

.text-loose {
	letter-spacing: var(--letter-spacing);
}

strong,
b {
	font-weight: bold;
}

.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(--font);
	margin-bottom: 1rem;
	font-weight: 500;
	line-height: 1.1;
}

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-style: balance;
}

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

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

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

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

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

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

section h2:first-child {
	margin-bottom: 1.875rem;
}

h1,
h2,
.h1,
.h2,
h3,
.h3 {
	small {
		text-transform: uppercase;
		display: block;
		margin-bottom: 25px;
		letter-spacing: var(--letter-spacing);
		color: var(--primary-color);
		font-size: .875rem;
		font-weight: bold;
	}
}

.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: 1rem;
}

main:has(.text-bg-dark:last-child) {
	padding-bottom: 0;
}

/*  MARK: navbar  */

.navbar {
	--bs-navbar-padding-x: 0;
	--bs-navbar-padding-y: 1.875rem;
	--bs-navbar-active-color: var(--primary-color);
	--bs-navbar-nav-link-padding-x: 1.5rem;
	transition: padding 200ms, background-color 200ms;
}

.navbar.affix {
	--bs-navbar-padding-y: .5rem;
	background-color: hsl(0 0% 0% / .9);
}

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

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

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

.navbar-nav .nav-link {
	color: white;
	transition: color 200ms;

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

.dropdown-toggle::after {
	display: inline-block;
	margin-left: .255em;
	vertical-align: .255em;
	content: "";
	border: 0;
	width: 0.4rem;
	height: 0.4rem;
	border-right: 1px solid white;
	border-bottom: 1px solid white;
	transform: rotate(45deg);
}

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

.affix .dropdown-menu {
	background-color: var(--bs-dark);
}

.dropdown-item {
	color: var(--primary-color);
	padding: 0.25rem .75rem;
	border-radius: 3rem;
	transition: color 200ms, background-color 200ms;
}

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

/*  MARK: header  */

header {
	background-color: var(--bs-dark);
	color: white;
	padding-top: 126px;

	h1 {
		margin-bottom: 30px;
	}

	a.d-flex {
		color: white;
		text-decoration: none;
		font-size: var(--h6);

		small {
			display: block;
			font-size: .75rem;
			font-weight: normal;
		}

		strong {
			font-weight: 500;
		}
	}
}

.malwina {
	height: calc(100vh - 126px);
	filter: drop-shadow(0 0 12rem hsl(0 0% 100% / .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: 500;
	--bs-btn-line-height: 1.5;
	--bs-btn-border-radius: .25rem;
	transition: color 300ms, border-color 300ms, background-color 300ms;

	img {
		transition: transform 300ms ease;
	}

	&:hover,
	&:focus {
		img {
			transform: translateX(3px);
		}
	}
}

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

header .btn-outline-primary {
	--bs-btn-color: white
}

p:last-child {
	margin-bottom: 0;
}

#omnie .row .row {
	margin-top: -2rem;

	img {
		margin-bottom: 1rem;
	}
}

.card-img-top {
	display: block;
	overflow: hidden;
	position: relative;

	.badge {
		text-transform: uppercase;
		letter-spacing: var(--letter-spacing);
		color: white;
		background-color: hsl(0 0% 0% / .2);
		backdrop-filter: blur(1rem);
		border-radius: 1rem;
		font-weight: normal;
		padding: 0.5rem 0.75rem;

		position: absolute;
		top: 0.5rem;
		left: 0.5rem;
		z-index: 10;
	}

	img {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 342/228;
		transition: transform 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
	}
}

.card[x-data] {
	cursor: pointer;
	box-shadow: 0 .5rem 1.25rem -0.5rem hsl(0 0% 0% / .15);

	h3 small {
		margin-bottom: .5rem;
	}

	ul {
		padding-left: 0;

		li {
			list-style: none;
			display: inline-flex;
			gap: .5rem;
			align-items: center;

			&::before {
				content: '';
				display: block;
				background-color: currentColor;
				width: 0.35rem;
				height: 0.35rem;
				border-radius: 50%;
			}
		}

		li:first-child::before {
			display: none;
		}
	}

	&:hover {
		.card-img-top img {
			transform: scale(1.1);
		}
	}
}

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

	transition: color 300ms;

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

#ubezpieczenia {
	background-image: url(../img/umbrella-bg.webp);
	background-repeat: no-repeat;
	background-position: right top;

	.bg-white {
		cursor: pointer;
		box-shadow: 0 .5rem 1.25rem -0.5rem hsl(0 0% 0% / .15);
		transition: transform 300ms, box-shadow 300ms;

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

		&:hover {
			transform: translateY(-2px);
			box-shadow: 0 .65rem 1rem -0.5rem hsl(0 0% 0% / .2);
		}
	}
}

#ubezpieczenia .bg-white:hover a,
#ubezpieczenia .bg-white a:hover,
#ubezpieczenia .bg-white a:focus {
	color: var(--primary-color);
}

#pytania a:not(.btn) {
	color: white;
	text-decoration: none;
	transition: color 200ms;

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

/* MARK: Ubezpieczenia */
#intro .bg-primary-subtle {
	position: relative;
	overflow: hidden;
}

#intro .bg-primary-subtle .content {
	z-index: 2;
	position: relative;
}

#intro .bg-primary-subtle .bg-icon {
	position: absolute;
	height: 120%;
	width: auto;
	right: -10%;
	top: -10%;
	opacity: .5;
	z-index: 1;
	filter: brightness(0) invert(1);
}

#intro .bg-primary-subtle ul {
	list-style-type: none;
	padding-left: 0;
	margin-bottom: 0;
}

#intro .bg-primary-subtle ul li {
	display: flex;
	gap: .5rem;
	margin-bottom: .5rem;
}

#intro .bg-primary-subtle ul li:last-child {
	margin-bottom: 0;
}

#intro .bg-primary-subtle ul li::before {
	content: "✓";
	color: var(--primary-color);
	font-weight: bold;
	flex-shrink: 0;
}

#zakres ul {
	list-style-type: none;
	padding-left: 0;
	margin-bottom: 0;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	#zakres ul {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	#zakres ul {
		grid-template-columns: repeat(4, 1fr);
	}
}

#zakres ul li {
	background-color: #fff;
	border-radius: 0.375rem;
	box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
	padding: 2rem;
	color: #6c757d;
	display: flex;
	flex-direction: column;
}

#zakres ul li strong {
	display: block;
	font-size: calc(1.275rem + 0.3vw);
	font-weight: 500;
	color: var(--bs-body-color);
	margin-bottom: 0.5rem;
	line-height: 1.1;
}

#zakres ul li br {
	display: none;
}

#dlaczego ol {
	list-style-type: none;
	padding-left: 0;
	margin-bottom: 0;
	counter-reset: my-awesome-counter;
}

#dlaczego ol li {
	position: relative;
	padding-left: 3.5rem;
	margin-bottom: 1.5rem;
	color: #6c757d;
	line-height: 1.5;
}

#dlaczego ol li:last-child {
	margin-bottom: 0;
}

#dlaczego ol li::before {
	counter-increment: my-awesome-counter;
	content: counter(my-awesome-counter, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	font-size: calc(1.3rem + 0.6vw);
	color: var(--primary-color);
	line-height: 1;
	font-weight: 400;
}

#dlaczego ol li strong {
	display: block;
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--bs-body-color);
	;
	margin-bottom: 0;
	line-height: 1.1;
}

#dlaczego ol li br {
	display: none;
}

.index-box {
	transition: color 200ms, background-color 200ms, transform 300ms;

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

	&:active {
		transform: scale(0.9);
	}
}

#kategoria {
	width: 200px !important;
}


/*  MARK: stopka */

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

footer a:hover,
footer a:focus {
	color: var(--primary-color);
}

.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 {
	padding-top: 126px;
}

.sub .navbar-light {
	background-color: white;
	transition: padding 200ms, box-shadow 200ms;

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

	.navbar-nav .nav-link {
		color: var(--bs-body-color);

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

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


.swiper.gallery {
	padding-bottom: var(--xl) !important;

	.swiper-slide a img {
		aspect-ratio: 4/3;
		object-fit: cover;
	}
}

.swiper.gallery .swiper-pagination {
	bottom: 0;
}

.swiper.gallery .swiper-pagination-bullet {
	width: 1.5rem;
	height: 5px;
	border-radius: .25rem;
	background-color: var(--primary-color);
	transition: width 200ms, background-color 200ms;
	opacity: 1;
	background-color: var(--bs-body-color);
}

.swiper.gallery .swiper-pagination-bullet-active {
	width: 2.5rem;
	background-color: var(--primary-color);
}

.swiper.gallery .swiper-button-prev,
.swiper.gallery .swiper-button-next {
	width: 55px;
	height: 55px;
	background-color: white;
	display: block;
	margin-top: calc(-1*var(--xl));
	background-repeat: no-repeat;
	background-size: 50%;
	background-position: center;
	transition: transform 300ms;

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

	&:active {
		transform: scale(.8);
	}
}

.swiper.gallery .swiper-button-prev {
	left: 0;
	border-radius: 0 1rem 1rem 0;
	transform-origin: left center;
	background-image: url(../img/arrow-prev.svg);
}

.swiper.gallery .swiper-button-next {
	background-image: url(../img/arrow.svg);
	right: 0;
	border-radius: 1rem 0 0 1rem;
	transform-origin: right center;
}


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

.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: var(--bs-dark);
	border: 1px solid var(--bs-border-color);
	border-radius: .5rem;
	transition: color 200ms, border-color 200ms;

	.h5 {
		font-weight: normal;
		font-size: 1rem !important;
	}
}

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

.form-control,
.form-select {
	border-radius: .5rem;
	padding: .75rem 1rem;
	transition: border-color 200ms, color 200ms, box-shadow 200ms, background-color 200ms;

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

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

.error-msg {
	color: red;
}

#filtry {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

#filtry .btn {
	border-color: var(--bs-border-color);
}

#filtry .btn:hover,
#filtry .btn:focus {
	background-color: var(--bs-light);
}

#filtry .btn.active {
	border-color: var(--bs-dark);
	background-color: white;
}

/* MARK: paginator */

.d-flex:has(.pagination) {
	justify-content: flex-start !important;
}

.pagination {
	display: flex;
	gap: .25rem;
}

.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;
	border-radius: .25rem;
	padding: 0;
	text-align: center;
	font-size: 1.125rem;
	color: var(--bs-body-color);
	border: 1px solid var(--bs-border-color);
	transition: all .2s;
	text-decoration: none;
}

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

.pagination input::placeholder {
	color: var(--bs-body-color);
	font-size: 16px;
	font-weight: 500
}

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

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


.filter-form .btn-outline-dark {
	--bs-btn-border-color: var(--bs-border-color);
	background-color: white !important;
	color: var(--bs-dark);
}

.filter-form label:has(:checked) {
	--bs-btn-border-color: var(--bs-dark) !important;
}



/*  MARK: RWD  */

@media (width < 1200px) {
	.offcanvas {
		height: 100vh;
	}

	.offcanvas-body {
		display: flex;
		flex-direction: column;
		justify-content: space-between;

		.btn {
			justify-content: center;
		}
	}

	.navbar-nav .nav-link {
		color: white !important;
		width: 100%;
		text-align: center;
	}

	.dropdown-menu {
		background-color: transparent;
	}

	.dropdown-item {
		text-align: center;
	}

	.navbar-dark,
	.navbar[data-bs-theme=dark] {
		--bs-navbar-toggler-border-color: rgba(255, 255, 255, 1);
		--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
	}

	.malwina {
		transform: translateX(-6vw);
	}

	#omnie .overflow-hidden img {
		aspect-ratio: 4/3;
		object-fit: cover;
		object-position: top;
	}

	#ubezpieczenia {
		background-size: 77%;
	}

	footer .border-start {
		border: 0 !important;
	}
}


@media (width < 992px) {
	.col-lg-6:has(.malwina) {
		padding-bottom: 300px;
	}

	.malwina {
		transform: none;
		position: absolute;
		bottom: 0;
		right: -60px;
		z-index: -1;
		height: 590px;
		pointer-events: none;
	}

	#omnie .col {
		display: grid;
		gap: 1rem;

		grid-template-columns: 27px 1fr;

		img {
			grid-column: 1;
			grid-row: span 2;
		}

		h3 {
			margin-bottom: 0;
		}
	}

	footer {
		text-align: center;

		div:has(>.footer-logo),
		a[target] {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
		}

		a[target] {
			gap: .25rem !important;
		}
	}

	#filtry .btn {
		padding: .75rem 1.25rem;
	}

	#pytania {text-align: center;}
}

@media (width < 768px) {
	.col-lg-6:has(.malwina) {
		padding-bottom: 200px;
	}

	.malwina {
		transform: none;
		position: absolute;
		bottom: 0;
		right: -80px;
		z-index: -1;
		height: 480px;
		pointer-events: none;
	}

	#ubezpieczenia {
		background-size: 58%;
	}

	main,
	footer {
		overflow: hidden;
	}
}

@media (width <=575px) {
	:root {
		--xxl: 3rem;
		--xl: 2rem;
	}
	.col-lg-6:has(.malwina) {
		padding-bottom: 10vh;
	}

	.malwina {
		transform: none;
		position: absolute;
		bottom: 0;
		right: -8vw;
		z-index: -1;
		height: 43vh;
		pointer-events: none;
	}

	#ubezpieczenia {
		background-size: 100%;
	}

	#filtry {gap: 5px}

	#filtry .btn {
		flex: 1;
		padding: .5rem 1rem;
	}
}

@media (width <=450px) {
	.col-lg-6:has(.malwina) {
		padding-bottom: 6vw;
	}

	.malwina {
		transform: none;
		position: absolute;
		bottom: 0;
		right: -10%;
		z-index: -1;
		height: auto;
		pointer-events: none;
		width: 65vw;
	}
}