@charset "UTF-8";

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

	--primary-color: hsl(125 49% 35%);
	--primary-color-light: hsl(125 49% 45%);
	--primary-color-dark: hsl(125 49% 25%);

	--xxl: 7.5rem;
	--xl: calc(var(--xxl)/2);

	--bs-primary: hsl(125 49% 35%);
	--bs-primary-rgb: 46, 133, 53;

	--bs-light: hsl(125 49% 90%);
	--bs-light-rgb: 217, 242, 219;

	--bs-dark: hsl(345 7% 11%);
	--bs-dark-rgb: 31, 27, 28;

	--bs-body-color: hsl(345 7% 11%);

	--h1: 	clamp(3.53125rem, 5vw, 7.06875rem);
	--h2: 	clamp(2.2rem, 4vw, 4.99375rem);
	--h3: 	clamp(1.76875rem, 3.5vw, 3.53125rem);
	--h4: 	clamp(1.5rem, 2.2rem, 2.5rem);
	--h5: 	clamp(1.3rem, 2vw, 1.76875rem);
	--h6: 	clamp(1.1rem, 1.7vw, 1.25rem);
	--lead: clamp(1.1rem, 1.5vw, 1.66875rem);
}

body {
	font-family: var(--font);
	font-size: clamp(1rem, 1.5vw, 1.25rem);
}

b, strong {font-weight: bold !important;}

.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: 400;

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

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


/*  MARK: navbar  */

.navbar {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 1.25rem;
    --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: padding 200ms, background-color 200ms;

	&.affix {
		--bs-navbar-padding-y: .5rem;
		background-color: var(--primary-color);
	}

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

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

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

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

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

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

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

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

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


/*  MARK: header  */

header {
	isolation: isolate;
	&::before,
	&::after {
		content: '';
		display: block;
		position: absolute;
	}

	&::before {
		top: 0;
		left: 0;
		width: 100%;
		height: 33%;
		z-index: 2;
		background-image: linear-gradient(hsl(0 0% 0% / .7), transparent);
	}

	&::after {
		inset: 0;
		z-index: 2;
		background-image: linear-gradient(to right, hsl(0 0% 0% / .7), transparent 50%);
	}
}

.slogan {
	color: white;
	padding-top: 200px;
	z-index: 10;
	position: relative;
}

.header__swiper {
	position: relative;
	z-index: 1;
}

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


/*  MARK: main content */

.btn {
    --bs-btn-padding-x: 1.875rem;
    --bs-btn-padding-y: 1.25rem;
    --bs-btn-font-size: clamp(1rem, 1.5vw, 1.25rem);
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
		border-radius: 0;

		img {
			transition: transform 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
		}

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

.btn:is(:only-of-type) {margin-top: 1rem;}


#firma {
	&::after {
		content: '';
		display: block;
		background-color: var(--primary-color);
		position: absolute;
		z-index: -1;
		inset: 0 0 0 70%;
	}
}

.box {
	position: relative;

	.overflow-hidden {
		transition: transform 600ms cubic-bezier(0.075, 0.82, 0.165, 1);
	}

	&:hover {
		.overflow-hidden {
			transform: scale(1.1);
		}
	}

	h2 small {
		font-size: 1.25rem;
		margin-bottom: 1rem;
	}

	&::before {
		content: '';
		display: block;
		position: absolute;
		inset: 0;
		z-index: 2;
		background-image: linear-gradient(to right, hsl(0 0% 0% / .7), transparent);
	}
}

#zaufali {
	.col-lg-2 {
		padding-top: 2rem;
		padding-bottom: 2rem;
		border-right: 1px solid var(--bs-border-color);
	}

	img {
		width: 100%;
		height: 180px;
		object-position: center;
	}
}

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


/*  MARK: stopka */

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

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

footer .opacity-50 {
	font-size: 1rem;
}

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


/*  MARK: sub content  */

.sub .swiper__image {
	height: 533px;
}

ul.tick {
	margin-bottom: 1.5rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 30px;
	row-gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));

	li {
		position: relative;
		padding-left: 34px;
		background-image: url(../img/tick.svg);
		background-repeat: no-repeat;
		background-size: 24px;
		background-position: left center;
	}
}

.sub #oferta .col {
	border-right: 1px solid #B5E0B9;
	border-bottom: 1px solid #B5E0B9;
	cursor: pointer;
	flex-basis: 20%;
	transition: background-color 200ms;

	&:hover {
		background-color: hsl(0 0% 0% / .02);
	}

	&:nth-child(5n) {
		border-right: 0;
	}

	&:nth-last-child(1),
	&:nth-last-child(2),
	&:nth-last-child(3),
	&:nth-last-child(4),
	&:nth-last-child(5) {
		border-bottom: 0;
	}

	.icon {
		aspect-ratio: 1;
	}

	.d-flex {
		aspect-ratio: 1;
	}
}

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

	a {
		height: 100%;
	}

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

	&:hover img {
		transform: scale(1.1);
	}
}

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

	.h5, strong {
		font-size: var(--h6);
		font-weight: normal !important;
	}

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

.form-control {
	border-radius: 0;

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

.error-msg {color: red;}

.popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.popup-wrapper {
	z-index: 9999;
	position: relative;
	width: min(500px, 90vw);
	padding: 2rem;
	background-color: white;
	box-shadow: 0 1.5rem 3rem -.5rem hsl(0 0% 0% / .1);


	p:last-of-type {margin-bottom: 0;}
}

.popup-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background-color: hsl(0 0% 0% / .2);
}

.popup-close {
	position: absolute;
	top: 0;
	right: 0;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: white;
	font-family: monospace;
	font-size: 1.5rem;
	background-color: var(--primary-color);
	transition: font-size 200ms;

	&:hover {
		font-size: 1.8rem;
	}
}

.sub section:first-child {margin-top: 0 !important;}

.sub #main a {
	text-decoration: none;
	color: var(--primary-color);
	transition: color 200ms;

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


/*  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: 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
}



/*  MARK: RWD  */


@media (max-width: 1199px) {
	.navbar-brand-image {
    height: 111px;
	}

	.navbar {
		--bs-navbar-toggler-border-color: white;
    --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);
	}

	.navbar-toggler {
    color: white;
	}

	.swiper__image {
		min-height: 500px;
	}
}


@media (max-width: 991px) {
	#firma::after {display: none;}

	#firma .img-fluid {
		margin-top: 2rem;
		height: auto;
		width: 100%;
		aspect-ratio: 1;
		object-fit: cover;
	}

	#oferta .col-lg-6 + .col-lg-6 {
		margin-top: 2rem;
	}

	#zaufali .col-lg-2 {
    padding-top: 0;
    padding-bottom: 0;
    border-right: 0;

		p {
			font-size: var(--h4);
		}
	}

	footer p.d-flex {
		flex-direction: column;
		margin-top: 2rem;
	}

	.madeby {margin-top: 0.5rem;}

	.sub .swiper__image {
    height: 333px;
	}

	.sub .swiper__image {
    min-height: 100px;
	}

	.sub #oferta .col {
    flex-basis: 40%;
		max-width: 50%;
		border-right: 1px solid #B5E0B9 !important;
    border-bottom: 1px solid #B5E0B9 !important;
	}

	.sub #oferta .col:nth-child(even) {
		border-right: 0 !important;
	}

	.sub #oferta .col:nth-last-child(2),
	.sub #oferta .col:last-child {
		border-bottom: 0 !important;
	}
}

@media (max-width: 767px) {
	.box-img {
		aspect-ratio: 1;
	}
}

@media (max-width: 480px) {
	.home .slogan {padding-bottom: 2rem; padding-top: 100px;}

	.swiper__image {min-height: 800px;}

	.sub .swiper__image {
    min-height: 380px;
	}

}