@font-face {
  font-family: 'Dancing Script Fallback';
  src: local('Times New Roman'); 
  size-adjust: 125.00%;
  ascent-override: 80%;
  descent-override: 20%;
  line-gap-override: 0%;
}


@font-face {
  font-family: 'Merriweather Fallback';
  src: local('Georgia'); 
  size-adjust: 104.00%;
  ascent-override: 95%;
  descent-override: 23%;
  line-gap-override: 0%;
}


@font-face {
  font-family: 'Poppins Fallback';
  src: local('Arial');
  size-adjust: 108.00%;
  ascent-override: 89%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
	--primary-color: #ffd700;
	--primary-color-dark: #326647;
	--text-dark: #12110f;
	--text-light: #6b7280;
	--extra-light: #fff69b;
	--white: #ffffff;
	--max-width: 1200px;
	--header-font: 'Merriweather', 'Merriweather Fallback', serif;
	--item-height: 65vh;
	--item-width: calc(var(--item-height) / 1.5);
}

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	text-decoration: none;
	border: none;
	outline: none;
}

.section__container {
	max-width: var(--max-width);
	margin: auto;
	padding: 5rem 1rem;
}

.section__container img {
	width: 10vw;
	margin: 0 auto;
}

.section__header {
	margin-bottom: 0.5rem;
	font-size: 2.5rem;
	font-weight: 600;
	text-align: center;
}

.section__description {
	font-weight: 500;
	font-family: var(--header-font);
	color: var(--text-dark);
	text-align: center;
}

.logo {
	font-size: 2.5rem;
	font-weight: bolder;
	color: var(--primary-color-dark);
	display: flex;
	gap: 10px;
	position: relative;
}

.star__one,
.star__two,
.star__three {
	position: absolute;
	font-size: 15px;
	bottom: 24px;
	transform: translate(-50%);
	z-index: 100;
}

.star__one {
	left: 37.5%;
}

.star__two {
	left: 95%;
}

.star__three {
	left: 99.5%;
}

.logo span {
	color: var(--text-dark);
}

.logo:hover {
	transform: scale(1.1);
}

img {
	display: block;
    max-width: 100%;
    height: auto;
}

a {
	text-decoration: none;
	transition: 0.3s;
}

ul {
	list-style: none;
}

html,
body {
	scroll-behavior: smooth;
	font-size: 110%;
}

body {
	font-family: 'Dancing Script', 'Dancing Script Fallback', sans-serif;
	background-color: var(--extra-light);
}

nav {
	position: fixed;
	isolation: isolate;
	width: 100%;
	max-width: var(--max-width);
	margin-inline: auto;
	z-index: 9;
}

.nav__header {
	padding: 0.5rem;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: var(--extra-light);
	border-bottom: 1px solid var(--text-light);
}

.nav__menu__btn {
	font-size: 2.5rem;
	color: var(--primary-color-dark);
	cursor: pointer;
}

.nav__links {
	position: absolute;
	top: 65px;
	left: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 2rem;
	padding: 2rem;
	background-color: var(--extra-light);
	border-bottom: 1px solid var(--text-light);
	transition: 0.5s;
	z-index: -1;
	transform: translateY(-100%);
}

.nav__links.open {
	transform: translateY(0);
}

.nav__links a {
	font-family: var(--header-font);
	font-weight: 800;
	white-space: nowrap;
	color: var(--primary-color-dark);
}

.nav__links a:hover {
	color: var(--primary-color);
}

.header {
	padding-block: 5rem;
	background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url('assets/header.avif');
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}

.header__container h1 {
	margin-bottom: 1rem;
	font-size: 4rem;
	font-weight: 600;
	color: var(--white);
	line-height: 5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.header__container h1 span {
	color: var(--primary-color);
}

.header__container p {
	margin-bottom: 4rem;
	font-size: 1.5rem;
	font-family: var(--header-font);
	font-weight: bold;
	color: var(--white);
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.header__container .btn {
	font-weight: 500;
	width: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	font-size: 24px;
	border-radius: 100px;
	text-align: center;
	font-family: var(--header-font);
	color: var(--text-dark);
}

.about_me h2 {
	margin-bottom: 2rem;
}

.about_me p {
	font-size: 18px;
}

.item::before {
	position: absolute;
	content: '';
	width: 104%;
	height: 103%;
	border-radius: 8px;
	background-image: linear-gradient(var(--rotate), #ffd700, #326647, #fff69b);
	position: absolute;
	z-index: -1;
	top: -1%;
	left: -2%;
	animation: spin 5s linear infinite;
}

@keyframes spin {
	0% {
		--rotate: 0deg;
	}
	100% {
		--rotate: 360deg;
	}
}

.banner {
	width: 100%;
	height: 120vh;
	text-align: center;
	overflow: hidden;
	position: relative;
	background-color: var(--primary-color-dark);
}

.banner__header {
	margin-top: 30px;
	font-size: 3.5rem;
	font-weight: 500;
	color: #fff;
	text-align: center;
}

.banner .slider {
	position: absolute;
	width: 200px;
	height: 350px;
	display: flex;
	top: 20%;
	left: calc(50% - 100px);
	transform-style: preserve-3d;
	transform: perspective(1000px);
	animation: autoRun 40s linear infinite;
}

@keyframes autoRun {
	from {
		transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
	}
	to {
		transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
	}
}

.banner .slider .item {
	position: relative;
	inset: 0 0 0 0;
	transform: rotateY(
			calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
		)
		translateZ(550px);
	transition: all 0.3s;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px; /* Przeniesione z definicji animacji dla porządku */
    cursor: pointer;
}

.item img:hover ~ .question {
	clip-path: circle(120% at 50% 90%);
}

.question {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	background-color: var(--primary-color);
	color: var(--primary-color-dark);
	clip-path: circle(0 at 50% 90%);
	transition: clip-path 0.8s;
	font-size: 14px;
	font-weight: bold;
	font-family: var(--header-font);
}

.banner .slider:hover {
	animation-play-state: paused;
}

@keyframes autoRun {
	from {
		transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
	}
	to {
		transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
	}
}

.banner .slider .item {
	position: absolute;
	inset: 0 0 0 0;
	transform: rotateY(
			calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
		)
		translateZ(550px);
}

.banner .slider .item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media screen and (max-width: 1024px) {
	.banner {
		height: 700px;
	}
	.banner .slider {
		margin-top: 5%;
		width: 150px;
		height: 300px;
		left: calc(50% - 80px);
	}
	.banner .slider .item {
		transform: rotateY(
				calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
			)
			translateZ(300px);
	}
	.question {
		font-size: 10px;
	}
}

@media screen and (max-width: 768px) {
	.banner {
		height: 500px;
	}

	.banner .slider {
		width: 100px;
		height: 200px;
		left: calc(50% - 50px);
		top: 25%;
	}

	.banner .slider .item {
		transform: rotateY(
				calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
			)
			translateZ(180px);
	}
	.question {
		font-size: 12px;
	}
}

.swiper {
	width: 100%;
	padding-block: 4rem;
	margin: 0;
}

.swiper-slide {
    width: 80%;
	max-width: calc((var(--max-width) / 3) - 1.5rem);
}

.swiper-slide p {
	font-size: 16px;
	font-family: 'Poppins', 'Poppins Fallback', sans-serif;
}

.client__card {
	padding: 2rem 1rem;
	text-align: center;
	background-color: var(--primary-color);
	box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.05);
}

.client__card img {
	max-width: 80px;
	margin-inline: auto;
	margin-bottom: 1rem;
	border-radius: 100%;
	box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.client__card span {
	display: inline-block;
	margin-bottom: 1rem;
	font-size: 3rem;
	color: var(--primary-color-dark);
}

.client__card p {
	margin-bottom: 2rem;
	color: var(--text-dark); 
	line-height: 1.5rem;
}

.client__card h3 {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-dark);
}

.client__card h4 {
	font-size: 1rem;
	font-weight: 500;
	font-family: var(--header-font);
	color: var(--text-light);
}

.subscribe {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-block: 5rem;
	background-color: var(--primary-color-dark);
}

.field::placeholder {
	color: var(--text-dark);
}

.subscribe .btn {
	color: var(--text-dark);
}

.footer__logo {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 2rem;
}

.footer-img img {
	width: 10vw;
	margin: 0 auto;
	border-radius: 100%;
	transition: 0.4s ease-in-out;
}

.footer p {
	margin: 1rem;
	width: 50vw;
}

.footer__bar {
	font-size: 1rem;
	color: var(--text-dark); 
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.footer__bar .mail {
	font-weight: bold;
	font-size: 18px;
	font-family: var(--header-font);
}

.footer__bar .copyright {
	font-weight: bold;
}

.footer__bar .copyright a {
    color: var(--text-dark);
    text-decoration: underline; 
    text-decoration-thickness: 1px; 
}

.footer__bar .info {
	width: 80vw;
}

@media (width > 768px) {
	nav {
		position: static;
		padding: 2rem 1rem;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 2rem;
	}

	.nav__header {
		padding: 0;
		background-color: transparent;
		border: none;
	}

	.nav__menu__btn {
		display: none;
	}

	.nav__links {
		position: static;
		padding: 0;
		flex-direction: row;
		justify-content: flex-end;
		gap: 3rem;
		background-color: transparent;
		transform: none;
		border: none;
	}
}

.contact-box {
	width: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-color: #fff;
	box-shadow: 0px 0px 19px 5px rgba(0, 0, 0, 0.19);
}

.right {
	padding: 25px 40px;
	border: 2px solid var(--primary-color);
}

h2 {
	position: relative;
	padding: 0 0 10px;
	margin-bottom: 10px;
}

h2:after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	height: 4px;
	width: 50px;
	border-radius: 2px;
	background-color: var(--primary-color-dark);
}

.banner__header:after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	height: 4px;
	width: 50px;
	border-radius: 2px;
	background-color: var(--primary-color);
}

.field {
	width: 100%;
	border: 2px solid rgba(0, 0, 0, 0);
	outline: none;
	background-color: rgba(230, 230, 230, 0.6);
	padding: 0.5rem 1rem;
	font-size: 1.1rem;
	margin-bottom: 22px;
	transition: 0.3s;
	font-family: var(--header-font);
}

.field:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

textarea {
	min-height: 150px;
}

.btn {
	width: 100%;
	padding: 0.5rem 1rem;
	background-color: var(--primary-color);
	color: var(--extra-light);
	font-size: 1.1rem;
	border: none;
	outline: none;
	cursor: pointer;
	transition: 0.3s;
}

.btn:hover {
	background-color: var(--text-dark);
	color: var(--primary-color);
}

.field:focus {
	border: 2px solid rgba(30, 85, 250, 0.47);
	background-color: #fff;
}

@media (width < 415px) {
	html {
		overflow-x: hidden;
	}

	.logo {
		font-size: 2rem;
	}

	.star__one,
	.star__two,
	.star__three {
		font-size: 12px;
		margin-bottom: -4px;
	}

	.header__container h1 {
		font-size: 2.5rem;
		line-height: 3rem;
	}

	.header__container p {
		font-size: 1rem;
	}

	.header__container .btn {
		font-size: 1rem;
		font-weight: 900;
		width: 80vw;
	}

	.banner {
		height: 400px;
	}

	.banner__header {
		font-size: 2.5rem;
	}

	.banner .slider {
		width: 100px;
		height: 180px;
		left: calc(50% - 50px);
		margin-top: 20%;
	}

	.slider__box {
		transform: scale(0.8);
	}

	.contact-box {
		width: 100vw;
	}

	.contact-box input,
	.contact-box textarea {
		font-size: 14px;
		font-weight: bold;
	}

	.footer-img img {
		width: 30vw;
	}

	.footer__bar .mail {
		font-size: 0.9rem;
	}

	.footer__bar .mail, .footer__bar .copyright {
		width: 100vw;
	}

	.footer__bar .info {
		width: 80vw;
	}

	.footer__bar .copyright, .footer__bar .info {
		font-size: 0.8rem;
	}
}

.swiper-pagination-bullet {
    width: 14px !important;    /* Większa średnica */
    height: 14px !important;
    margin: 0 10px !important; /* Większy odstęp między kropkami (zamiast 4px) */
    opacity: 0.5;              /* Upewniamy się, że nieaktywne są widoczne */
    background: var(--primary-color-dark) !important;
}

/* Wersja aktywna */
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1;
    transform: scale(1.2); /* Lekkie powiększenie aktywnej */
}

/* Opcjonalnie: powiększenie obszaru klikalności bez zmiany wyglądu kropki (trik) */
.swiper-pagination-bullet {
    position: relative;
}
.swiper-pagination-bullet::after {
    content: "";
    position: absolute;
    top: -10px; right: -10px; bottom: -10px; left: -10px; /* Obszar +20px dookoła */
    background: transparent;
}