/* ==========================================================================
   Hero
   ========================================================================== */

.home-page {
	position: relative;
	padding: 1.6rem;
	padding-top: calc(var(--menu-height));
}

.home-page .section-box {
	position: relative;
	background-color: var(--bg-1-dark);
	border-radius: var(--radius-6);
	overflow: hidden;
}

.hero-image {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	object-fit: contain;
	max-height: 100%;
}

.hero-image:after {
	position: absolute;
	content: "";
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background: linear-gradient( to right, var(--bg-1-dark) 0%, rgba(0, 0, 0, 0) 100% );
	z-index: 1;
}

.hero-image img {
	height: 100%;
	width: auto;
	object-fit: contain;
	max-height: 100%;
	max-width: unset;
}

.home-page__content {
	position: relative;
	z-index: 2;
	padding-bottom: 8rem;
}

.home-page__content .title-1 {
	margin-bottom: 4rem;
	color: var(--white-1);
}

.home-page__content .flex {
	display: flex;
	flex-wrap: wrap;
	gap: 1.6rem 3.2rem;
}

/* ==========================================================================
   Oferta
   ========================================================================== */

.home-offer {
	position: relative;
	z-index: 1;
}

.home-offer a {
	color: var(--font-color-2);
}

.home-offer .container {
	position: relative;
	z-index: 1;
	transform: translateY(-8rem);
}

.home-offer__card {
	position: relative;
	padding: 3.2rem 4rem;
	background-color: var(--white-1);
	border-radius: var(--radius-5);
	height: 100%;
	cursor: pointer;
	transition: .3s ease;
}
.home-offer__card:hover {
	transform: translateY(-8px);
}

.home-offer__card .number {
	color: var(--color-1);
	line-height: 1;
}

.home-offer__card .title-6 {
	margin: 3.2rem 0 1.6rem 0;
	transition: .3s ease;
}
.home-offer__card:hover .title-6 {
	color: var(--color-1);
}

.home-offer__card .text {
	
}


.button-card {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 5.8rem; 
	height: 5.8rem;	
	background-color: var(--bg-1);
	border-top-left-radius: 2rem;
	display: flex;
	align-items: end;
	justify-content: end;
	cursor: pointer;
}

.button-card .box {
	height: 5rem;
	width: 5rem;
	border-radius: 1.6rem;
	background-color: var(--color-1);
	
	display: flex;
	align-items: center;
	justify-content: center;
	
	transition: var(--btn-transition);
}

.button-card:hover .box {
	background-color: var(--color-1_hover);
}

.corner--right-top,
.corner--left-bottom {
	position: absolute;
	width: 16px;
	height: 16px;
	background-color: var(--bg-1);
	pointer-events: none;
}

.corner--right-top::after,
.corner--left-bottom::after {
	content: "";
	position: absolute;
	width: 32px;
	height: 32px;
	background-color: var(--white-1);
	border-radius: 50%;
}

.corner--right-top {
	right: 0;
	bottom: 100%;
}

.corner--right-top::after {
	top: -16px;
	left: -16px;
}

.corner--left-bottom {
	bottom: 0;
	right: 100%;
}

.corner--left-bottom::after {
	top: -16px;
	left: -16px;
}

.button-card svg {
	height: 2rem;
	fill: transparent;
}

.button-card svg path {
	stroke: var(--white-1);
}

/* ==========================================================================
   Specjalization
   ========================================================================== */

.home-specialization {
	position: relative;
	padding: 8rem 0;
	background-color: var(--bg-1);
}

.home-specialization__image {
	height: 100%;
}

.home-specialization__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-5);
}

.home-specialization .title-2 {
	margin-bottom: 3.2rem;
}


.home-specialization .text {
	margin-bottom: 3.2rem;
}

.home-specialization .text p {
	margin-bottom: 1.6rem;
}

.home-specialization .text p:last-child {
	margin-bottom: 0;
}

.home-specialization .specialization-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.home-specialization .specialization-list li {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	margin-bottom: 1.6rem;
	color: var(--font-color-1);
}

.home-specialization .specialization-list li:last-child {
	margin-bottom: 0;
}

.home-specialization .specialization-list .icon svg {
	height: 2rem;
	fill: transparent;
}

.home-specialization .specialization-list .icon svg path {
	stroke: var(--color-1);
}

.home-specialization__content .button {
	margin-top: 4rem;
}

@media (max-width: 991.98px) {
	
	.home-specialization .row {
		flex-direction: column-reverse;
	}
}

/* ==========================================================================
   Features
   ========================================================================== */

.home-features {
	padding: 0 1.6rem;
}

.home-features .section-box {
	background-color: var(--bg-2);
	border-radius: var(--radius-6);
}

.home-features .title-5 {
	margin-bottom: 0.8rem;
}

.home-features .text-s {
	color: var(--font-color-2);
}

@media (max-width: 991.98px) {
	.home-features .item {
		margin-bottom: 2.4rem;
	}
	
	.home-features .row > div:last-child .item,
	.home-features .row > div:nth-last-child(2) .item {
		margin-bottom: 0;
	}
}

@media (max-width: 575.98px) {
	.home-features .row > div:nth-last-child(2) .item {
		margin-bottom: 2.4rem;
	}
}

/* ==========================================================================
   Usługi (Services)
   ========================================================================== */

.home-services {
	padding: 8rem 0;
}

.home-services .accent {
	margin-bottom: 2.4rem;
}

.home-services .color-1 {
	color: var(--color-1);
}

.home-services__header-right {
	text-align: right;
}

.home-services__header-right .text {
	margin-bottom: 2.4rem;
}

.home-services__grid {
	margin-top: 6.4rem;
}

.home-services .service-card {
	position: relative;
	padding-top: 3.2rem;
	border-top: 1px solid var(--bg-1-border);
}

.home-services .service-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	width: 6.4rem;
	height: 2px;
	background-color: var(--color-1);
}

.home-services .service-card .title-5 {
	margin-bottom: 1.6rem;
}

@media (max-width: 991.98px) {
	.home-services__header-right {
		text-align: left;
		margin-top: 3.2rem;
	}

	.home-services__grid {
		margin-top: 4.8rem;
	}
	
	.home-services .service-card {
		margin-top: 4rem;
	}
	.home-services__grid div:nth-child(1) .service-card {
		margin-top: 0;
	}
}

/* ==========================================================================
   Realizacje (Slider)
   ========================================================================== */

.home-realizations {
	padding: 0 1.6rem;
}

.home-realizations .section-box {
	background-color: var(--bg-2);
	border-radius: var(--radius-6);
	overflow: hidden;
}

.home-realizations__header {
	margin-bottom: 6.4rem;
}

.home-realizations .accent {
	margin-bottom: 2.4rem;
}

.home-realizations__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 3.2rem;
}

.home-realizations__nav {
	display: flex;
	align-items: center;
	gap: 1.6rem;
}

.home-realizations__nav .nav-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.8rem;
	height: 4.8rem;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
}

.home-realizations__nav .nav-arrow svg {
	width: 2.4rem;
	height: 2.4rem;
	transition: all 0.3s ease;
}

/* --- Strzałki --- */
.home-realizations__nav .nav-arrow {
	background-color: var(--white-1);
}

.home-realizations__nav .nav-arrow svg path {
	fill: var(--color-1);
}

.home-realizations__nav .nav-arrow:hover {
	background-color: var(--color-1_hover);
}

.home-realizations__nav .nav-arrow:hover svg path {
	fill: var(--white-1);
}

.home-realizations__nav .nav-arrow.swiper-button-disabled {
	opacity: 0.4;
	pointer-events: none; 
}

/* --- Karty w Sliderze --- */

.home-realizations .realization-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.home-realizations .realization-card__image {
	margin-bottom: 2.4rem;
}

.home-realizations .realization-card__image img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	border-radius: var(--radius-5);
}

.home-realizations .realization-card .title-6 {
	margin-bottom: 0.8rem;
	color: var(--font-color-1);
	transition: color 0.3s ease;
}

.home-realizations .realization-card:hover .title-6 {
	color: var(--color-1);
}

.home-realizations .realization-card .text-s {
	color: var(--font-color-2);
}

@media (max-width: 991.98px) {
	.home-realizations__controls {
		justify-content: flex-start;
		margin-top: 3.2rem;
	}
}

@media (max-width: 575.98px) {
	.home-realizations__controls {
		flex-direction: column;
		align-items: flex-start;
		gap: 2.4rem;
	}
}

/* ==========================================================================
   Galeria
   ========================================================================== */

/* .home-gallery {
	overflow: hidden;
}

.home-gallery__header {
	text-align: center;
	margin-bottom: 6.4rem;
}

.home-gallery__header .accent {
	margin-bottom: 2.4rem;
}

.home-gallery__header .title-2 {
	margin-bottom: 1.6rem;
}

.home-gallery__slider-wrapper {
	position: relative;
	max-width: 100%;
	margin: 0 auto;
}

.home-gallery__slider .swiper-slide {
	width: 240px;
}

@media (min-width: 768px) {
	.home-gallery__slider .swiper-slide {
		width: 400px;
	}
}

@media (min-width: 1200px) {
	.home-gallery__slider .swiper-slide {
		width: 560px;
	}
}

.home-gallery__item {
	display: block;
	position: relative;
	border-radius: var(--radius-5);
	overflow: hidden;
	aspect-ratio: 4/3;
}

.home-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.home-gallery__item:hover img {
	transform: scale(1.05);
}

.home-gallery__zoom {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.8);
	width: 6.4rem;
	height: 6.4rem;
	background-color: var(--color-1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.3s ease;
	z-index: 10;
}

.home-gallery__zoom svg {
	fill: var(--white-1);
	height: 3.2rem;
}

.home-gallery__slider .swiper-slide-active .home-gallery__item:hover .home-gallery__zoom {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.home-gallery__slider-wrapper .nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 5.6rem;
	height: 5.6rem;
	background-color: var(--white-1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 50;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.home-gallery__slider-wrapper .nav-arrow svg {
	width: 2.4rem;
	height: 2.4rem;
}

.home-gallery__slider-wrapper .nav-arrow svg path {
	fill: var(--color-1);
}

.home-gallery__slider-wrapper .nav-arrow:hover {
	background-color: var(--color-1);
}

.home-gallery__slider-wrapper .nav-arrow:hover svg path {
	fill: var(--white-1);
}

.home-gallery__slider-wrapper .gallery-prev {
	left: 3.2rem;
}

.home-gallery__slider-wrapper .gallery-next {
	right: 3.2rem;
}

@media (max-width: 767.98px) {
	.home-gallery__slider-wrapper .gallery-prev {
		left: 1.6rem;
	}
	.home-gallery__slider-wrapper .gallery-next {
		right: 1.6rem;
	}
} */

.home-gallery {
	overflow: hidden;
	padding: 30px 0 56px;
	background-color: var(--gallery-background, #f2f7fa);
}

.home-gallery__header {
	margin-bottom: 24px;
	text-align: center;
}

.home-gallery__header .accent {
	margin-bottom: 16px;
}

.home-gallery__header .title-2 {
	margin-bottom: 8px;
}

.home-gallery__slider-wrapper {
	position: relative;
	width: 100%;
}

.home-gallery__slider {
	overflow: visible;
}

.home-gallery__slider .swiper-wrapper {
	align-items: center;
}

.home-gallery .home-gallery__slider .swiper-slide {
	--gallery-scale: 1;

	display: flex;
	align-items: center;
	width: min(312px, calc(100vw - 80px));
	height: auto;
	opacity: 1;
	transition: opacity 0.45s ease;
	will-change: transform;
}

.home-gallery .home-gallery__item {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 13 / 20;
	overflow: hidden;
	border: 2px solid var(--white-1);
	border-radius: var(--radius-5);
	background: var(--white-1);
	box-shadow: 0 16px 24px rgba(19, 37, 50, 0.22);
	transform: scale(var(--gallery-scale));
	transform-origin: center;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
	will-change: transform;
}

.home-gallery__slider .swiper-slide-active .home-gallery__item {
	box-shadow: 0 18px 28px rgba(19, 37, 50, 0.28);
}

.home-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.home-gallery__item:hover img {
	transform: scale(1.04);
}

.home-gallery__zoom {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: var(--color-1);
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.8);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.home-gallery__zoom svg {
	width: 32px;
	height: 32px;
	fill: var(--white-1);
}

.home-gallery__slider .swiper-slide-active .home-gallery__item:hover .home-gallery__zoom,
.home-gallery__slider .swiper-slide-active .home-gallery__item:focus-visible .home-gallery__zoom {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.home-gallery .home-gallery__slider-wrapper .nav-arrow {
	position: absolute;
	top: 50%;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--color-1);
	box-shadow: none;
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.home-gallery__slider-wrapper .nav-arrow svg {
	width: 18px;
	height: 18px;
}

.home-gallery__slider-wrapper .nav-arrow svg path {
	fill: var(--white-1);
}

.home-gallery__slider-wrapper .nav-arrow:hover {
	background-color: var(--color-2, var(--color-1));
	transform: translateY(-50%) scale(1.08);
}

.home-gallery__slider-wrapper .nav-arrow:focus-visible {
	outline: 2px solid var(--color-1);
	outline-offset: 3px;
}

.home-gallery__slider-wrapper .nav-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.home-gallery .home-gallery__slider-wrapper .gallery-prev {
	left: max(16px, calc(50% - 560px));
}

.home-gallery .home-gallery__slider-wrapper .gallery-next {
	right: max(16px, calc(50% - 560px));
}

.home-gallery__actions {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.home-gallery__open {
	border: 0;
	cursor: pointer;
}

@media (max-width: 767.98px) {
	.home-gallery {
		padding: 48px 0;
	}

	.home-gallery__header {
		margin-bottom: 20px;
	}

	.home-gallery .home-gallery__slider .swiper-slide {
		width: min(260px, calc(100vw - 80px));
	}

	.home-gallery .home-gallery__slider-wrapper .nav-arrow {
		width: 38px;
		height: 38px;
	}

	.home-gallery .home-gallery__slider-wrapper .gallery-prev {
		left: 12px;
	}

	.home-gallery .home-gallery__slider-wrapper .gallery-next {
		right: 12px;
	}

	.home-gallery__actions {
		margin-top: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-gallery__slider .swiper-slide,
	.home-gallery__item,
	.home-gallery__item img,
	.home-gallery__zoom,
	.home-gallery__slider-wrapper .nav-arrow {
		transition-duration: 0.01ms;
	}
}


/* ==========================================================================
   Proces
   ========================================================================== */

.home-process__header {
	margin-bottom: 6.4rem;
}

.home-process .accent {
	margin-bottom: 2.4rem;
}

.home-process__header-right {
	text-align: right;
}

.home-process__header-right .text {
	margin-bottom: 2.4rem;
}

.home-process .process-card {
	position: relative;
	background-color: var(--white-1);
	border-radius: var(--radius-5);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.home-process .process-card__number {
	position: absolute;
	left: 3.2rem;
	top: 3.2rem;
	z-index: 2;
	color: var(--color-1);
	line-height: 1;
	transition: .3s ease;
}
.process-card:hover .process-card__number {
	color: var(--color-1);
}

.home-process .process-card__image {
	position: relative;
	height: 16rem;
	opacity: 1;
	transition: .3s ease;
}

.process-card:hover .process-card__image {
	opacity: 1;
}

.home-process .process-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-5);
	transition: .3s ease;
	transform-origin: top;
	transform: scaleY(1);
}
.process-card:hover .process-card__image img {
	transform: scaleY(1);
}

.home-process .process-card__image::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 70%;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--white-1) 100%);
	z-index: 1;
}

.home-process .process-card__content {
	padding: 1.6rem 3.2rem 3.2rem 3.2rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.home-process .process-card__icon {
	width: 4.2rem;
	height: 4.2rem;
	background-color: var(--bg-1);
	border-radius: var(--radius-3);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2.4rem;
}

.home-process .process-card__icon svg {
	height: 2.2rem;
	fill: transparent;
}

.home-process .process-card__icon svg path {
	stroke: var(--font-color-1);
	stroke-linecap: round;
    stroke-linejoin: round;
}

.home-process .process-card .title-6 {
	margin-bottom: 1.6rem;
}

@media (max-width: 991.98px) {
	.home-process__header-right {
		text-align: left;
		margin-top: 3.2rem;
	}
}









