/* Resetowanie stylów podstawowych */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: 'Michroma', sans-serif;
	min-height: 100vh;
	overflow-x: hidden;
	width: 100%;
}

/* Nagłówek */
.header {
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	background-color: transparent;
	height: 80px;
}
.logo img {
	max-height: 60px;
}
.menu {
	display: flex;
	justify-content: center;
	flex: 1;
}
.menu ul {
	display: flex;
	gap: 20px;
	list-style: none;
}
.menu ul li a {
	text-decoration: none;
	font-weight: bold;
	color: #fff;
	font-size: 18px;
	padding: 5px;
	position: relative;
}
.menu ul li a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -7px;
	width: 0;
	height: 3px;
	background-color: rgb(255, 253, 253);
	transition: width 0.3s ease;
}
.menu ul li a:hover::after {
	width: 100%;
}

/* Menu hamburgerowe */
.hamburger {
	display: none;
	align-items: center;
	cursor: pointer;
}
.hamburger-icon {
	display: flex;
	flex-direction: column;
}
.hamburger-icon span {
	height: 3px;
	width: 25px;
	background: #fff;
	margin-bottom: 5px;
	border-radius: 5px;
}
.hamburger-text {
	color: #fff;
	padding-left: 10px;
}

/* Aktywny stan hamburgera */
.hamburger.active .hamburger-icon span:nth-child(1) {
	transform: rotate(45deg);
	position: relative;
	top: 8px;
}
.hamburger.active .hamburger-icon span:nth-child(2) {
	opacity: 0;
}
.hamburger.active .hamburger-icon span:nth-child(3) {
	transform: rotate(-45deg);
	position: relative;
	top: -8px;
}

/* Sekcja hero */
.hero-section {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}
.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}
.hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.hero-content h1 {
	font-size: 2rem;
	margin: 50px auto;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	max-width: 1800px;
}
.hero-content p {
	font-size: 1.3rem;
	line-height: 1.6;
	max-width: 1000px;
	margin: 0 auto 20px auto;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
	margin-bottom: 50px;
}
.hero-btn {
	font-weight: 600;
	background-color: white;
	color: black;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	text-decoration: none;
}
.hero-btn:hover {
	background-color: rgb(180, 14, 16);
	color: white;
}
.logo-name {
	color: rgb(180, 14, 16);
}

/* Tło wideo */
.background-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(0px);
}

/* Sekcja usług */

.services-section {
	text-align: center;
	padding: 100px 0 120px 0;
}
.services-section h2 {
	font-size: 40px;
	letter-spacing: 2px;
	color: rgb(180, 14, 16);
	margin-bottom: 20px;
}
.services-p {
	padding-top: 30px;
	padding-bottom: 100px;
	font-weight: 600;
	font-size: 24px;
}
.services-wrapper {
	display: flex;
	justify-content: center;
	gap: 100px;
	align-items: center;
	width: 80%;
	margin: 0 auto;
}
.services-column {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}
.services-item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin: 30px;
	cursor: pointer;
}
.services-item img {
	width: 70px;
	margin-right: 20px;
}
.services-column-right .services-item {
	justify-content: flex-end;
}
.services-column-right .services-item img {
	order: 2;
	margin-left: 20px;
	margin-right: 0;
}
.service-description {
	font-size: 16px;
	font-weight: bold;
}
.center-image {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 30px;
}
.center-image img {
	max-width: 400px;
}
.bounce {
	-webkit-animation-name: bounce;
	animation-name: bounce;
	-webkit-transform-origin: center bottom;
	transform-origin: center bottom;
}

@-webkit-keyframes bounce {
	from,
	20%,
	53%,
	80%,
	to {
		-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
		animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}

	40%,
	43% {
		-webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
		animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
		-webkit-transform: translate3d(0, -30px, 0);
		transform: translate3d(0, -30px, 0);
	}

	70% {
		-webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
		animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
		-webkit-transform: translate3d(0, -15px, 0);
		transform: translate3d(0, -15px, 0);
	}

	90% {
		-webkit-transform: translate3d(0, -4px, 0);
		transform: translate3d(0, -4px, 0);
	}
}

@keyframes bounce {
	from,
	20%,
	53%,
	80%,
	to {
		-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
		animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}

	40%,
	43% {
		-webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
		animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
		-webkit-transform: translate3d(0, -30px, 0);
		transform: translate3d(0, -30px, 0);
	}

	70% {
		-webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
		animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
		-webkit-transform: translate3d(0, -15px, 0);
		transform: translate3d(0, -15px, 0);
	}

	90% {
		-webkit-transform: translate3d(0, -4px, 0);
		transform: translate3d(0, -4px, 0);
	}
}

/* Popup */
.popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	background-color: #fff;
	padding: 30px;
	box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.6);
	border-radius: 10px;
	z-index: 1000;
	width: 100%;
	max-width: 800px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s ease;
}

.popup.active {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease;
}

.popup-overlay.active {
	opacity: 1;
	visibility: visible;
}
.popup-tit,
.popup-des {
	margin: 0;
	padding: 0;
}

.popup-tit {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 10px;
	text-align: center;
}

.popup-des {
	font-size: 1.2rem;
	font-weight: bold;
	padding: 40px 0;
	line-height: 1.4;
	text-align: justify;
}

.popup-btn {
	font-size: 1.2em;
	font-weight: 600;
	padding: 10px 20px;
	background-color: #007bff;
	border-radius: 9999px;
	color: white;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.popup-btn:hover {
	background-color: rgb(111, 10, 10);
}

/* Sekcja "Jak pracujemy" */
.howWeWork {
	justify-self: center;
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 50px;
	color: black;
	text-align: center;
}
.howWeWork-p {
	font-size: 1.1em;
	max-width: 1300px;
	margin-bottom: 50px;
	text-align: center;
	font-weight: bold;
	text-align: center;
}
.timeLine-bg {
	background: linear-gradient(to bottom, white 0%, #f3e4e4 50%, white 100%);
}

.timeline {
	/* margin: 0 auto; */
	max-width: 1000px;
	padding: 25px;
	display: grid;
	grid-template-columns: 1fr 5px 1fr;
	font-family: 'Fira Sans', sans-serif;
	color: black;
}
.timeline__component {
	margin: 0 30px 30px 30px;
	max-width: 800px;
}
.timeline__component--bg {
	padding: 2em;
	background-color: white;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	border-radius: 10px;
}
.timeline__component--bottom {
	margin-bottom: 0;
}
.timeline__middle {
	position: relative;
	background: black;
	width: 4px;
}
.timeline__point {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 20px;
	background: red;
	border-radius: 50%;
	box-shadow: 0 0 0 rgba(0, 0, 0, 0.4);
	animation: pulse 1.5s infinite;
}
@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
}
.timeline__point--bottom {
	top: initial;
	bottom: 0;
}
.timeline__date--right {
	text-align: right;
}
.timeline__title {
	margin: 0 0 10px 0;
	font-size: 1.5em;
	font-weight: bold;
}
.timeline__paragraph {
	line-height: 1.5;
	font-size: 1em;
}
.timeline__component {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timeline__component.timeline__component--visible {
	opacity: 1;
	transform: translateY(0);
}
.timeline__component--bg:hover {
	transform: scale(1.05);
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline__date {
	font-weight: bold;
	font-size: 1.2em;
}

/* Sekcja ofert */
.services {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 100px;
}
.oferta {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 150px 20px 100px 20px;
	position: relative;
	text-align: center;
	margin: 0 auto;
	max-width: 1400px;
	z-index: 2;
}
/* .oferta::before {
	content: '';
	position: absolute;
	width: 600px;
	height: 400px;
	background-image: linear-gradient(70deg, #881404, #ff1212);
	border-radius: 20% 30% 80% 10%;
	filter: blur(100px);
	top: 50%;
	left: 0;
	transform: translate(-10%, -50%);
	z-index: -1;
	transition: 1s;
} */
.aboutOfer {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 1.5rem;
	color: var(--color-three, #333);
	z-index: 2;
}
.ofer {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 20px;
}
.oferParagraf {
	width: 100%;
	max-width: 1100px;
	font-weight: bold;
	margin-bottom: 50px;
	padding: 0 20px;
}
.slider {
	width: 100%;
	max-height: 700px;
	max-width: 1000px;
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	object-fit: cover;
}
.slider-box {
	display: flex;
	transition: transform 0.6s ease-in-out;
}
.slider-img {
	min-width: 100%;
	max-height: 500px;
	object-fit: cover;
}

/* Sekcja "Dlaczego my" */
.why-choose-us {
	padding: 40px 20px;
	width: 100%;
	margin: 100px 0 100px 0;
	position: relative;
	background: linear-gradient(-75deg, rgb(112, 0, 0) 40%, black 60%);
	display: flex;
	justify-content: center;
}

.containerF {
	display: flex;
	max-width: 1300px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.text-content {
	flex: 1;
	color: rgb(246, 244, 244);
	position: relative;
	z-index: 2;
	background: transparent;
}

.section-title {
	font-size: 2.3em;
	font-weight: bold;
	margin-bottom: 30px; /* Większa przestrzeń poniżej tytułu */
}

.main-title {
	font-size: 1.3em;
	margin-bottom: 20px;
}

.description {
	font-size: 1.1em;
	line-height: 1.6;
	margin-bottom: 30px;
}

.features {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.feature-item {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.icon {
	font-size: 30px;
	color: #ff4d4d;
	margin-right: 15px;
}

.feature-text {
	font-size: 20px;
	font-weight: bold;
}

.image-content {
	flex: 1;
	text-align: right;
	z-index: 2;
}

.image-content img {
	max-width: 100%;
	height: auto;
	position: relative;
	z-index: 2;
}

.footer-section {
	background: linear-gradient(45deg, black, rgb(107, 55, 55), rgb(111, 10, 10));
	background-size: 300% 300%;
	animation: color 12s ease-in-out infinite;
	color: #fff;
	margin-top: 120px;
}
.map-container {
	position: relative;
	width: 100%;
	height: 400px;
}
.footer-content {
	padding: 40px 20px;
}
.footer-container {
	display: flex;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	flex-wrap: wrap;
}
.footer-column {
	flex: 1;
	min-width: 300px;
	margin: 20px 10px;
	gap: 10px;
}
.footer-column h3 {
	font-size: 20px;
	margin-bottom: 20px;
	color: #fff;
}
.footer-column p,
.footer-column ul {
	margin-bottom: 10px;
	font-size: 16px;
}
.footer-column i {
	margin-right: 10px;
}
.opening-hours {
	list-style: none;
	padding: 0;
}
.portfolio-button-container {
	margin-bottom: 60px;
}
.opening-hours li {
	margin-bottom: 8px;
}
.contact-form {
	display: flex;
	flex-direction: column;
}
.contact-form input,
.contact-form textarea {
	padding: 10px;
	margin-bottom: 10px;
	border: none;
	border-radius: 4px;
	outline: none;
}
.contact-form button {
	padding: 12px 20px;
	border: none;
	outline: none;
	background-color: transparent;
	color: #fff;
	border-radius: 4px;
	border: 2px solid white;
	cursor: pointer;
	font-size: 1em;
	font-weight: bold;
}
.contact-form button:hover {
	background-color: white;
	color: black;
}
.footer-bottom {
	background-color: #222;
	text-align: center;
	padding: 15px 0;
	color: #aaa;
}
@keyframes color {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* Media Queries */
/* Max-width: 1024px */
@media (max-width: 1024px) {
	.services-wrapper {
		flex-direction: column;
	}
	.center-image {
		margin: 30px 0;
	}
	.popup {
		width: 80%;
	}
	.timeline {
		max-width: 700px;
	}

	.howWeWork {
		font-size: 2.5rem;
	}

	.timeline__component {
		margin: 0 15px 15px 15px;
	}

	.timeline__component--bg {
		padding: 1.2em;
	}

	.timeline__title {
		font-size: 1.1em;
	}

	.timeline__point {
		width: 13px;
		height: 13px;
	}
}
#back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background-color: black;
	color: white;
	padding: 0 20px 20px;
	border-radius: 2000px;
	text-decoration: none;
	font-size: 2.5rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	z-index: 1000px;
	font-weight: bold;
}

#back-to-top:hover {
	background-color: rgb(111, 10, 10);
}

/* Max-width: 768px */
@media (max-width: 768px) {
	body {
		overflow-x: hidden;
	}
	/* Nagłówek */
	.menu {
		display: none;
		position: absolute;
		top: 80px;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: white;
		flex-direction: column;
		align-items: center;
		border-bottom: 1px solid #ddd;
		z-index: 9999;
	}
	.hero-section {
		z-index: 1;
	}
	.menu ul {
		flex-direction: column;
		gap: 40px;
	}
	.menu ul li a {
		color: black;
		font-size: 1.5em;
		border-bottom: 1px solid black;
	}
	.hamburger {
		display: flex;
	}
	.menu.active {
		display: flex;
	}
	.hamburger-text {
		padding-left: 10px;
	}

	/* Hero Section */
	.hero-content h1 {
		font-size: 1.5rem;
		margin-top: 60px;
	}
	.hero-content p {
		font-size: 0.9rem;
		margin: 0 10px 40px 10px;
	}
	.header {
		margin-bottom: 20px;
	}

	/* Sekcja usług */
	.services-item {
		justify-content: center;
	}

	.services-p {
		width: 80%;
		margin: 0 auto;
	}
	.services-item img {
		margin: 0 10px;
	}
	.services-column-right .services-item img {
		order: 1;
		margin-right: 10px;
		margin-left: 0;
	}
	.popup {
		width: 90%;
		padding: 15px;
	}
	.popup h3 {
		font-size: 20px;
	}
	.popup p {
		font-size: 16px;
	}
	.howWeWork {
		margin: 0 10px 20px 10px;
		align-self: center;
	}

	/* Sekcja ofert */
	.ofer {
		font-size: 2.5rem;
	}
	.oferParagraf {
		font-size: 1rem;
	}

	/* Sekcja "Dlaczego my" */
	.containerF {
		flex-direction: column;
		align-items: center;
	}
	.text-content {
		text-align: center;
		padding: 0 20px;
	}
	.image-content {
		text-align: center;
		margin-top: 20px;
	}
	.image-content img {
		width: 80%;
	}
	.features {
		align-items: center;
	}

	/* Stopka */
	.footer-container {
		flex-direction: column;
		align-items: center;
	}
	.footer-column {
		text-align: center;
	}
	.contact-form {
		width: 100%;
		padding: 0 20px;
	}
	.features {
		margin: o auto;
	}
	.timeline {
		max-width: 600px;
	}

	.howWeWork {
		font-size: 2rem;
	}

	.timeline__component {
		margin: 0 10px 10px 10px;
	}

	.timeline__component--bg {
		padding: 1em;
	}

	.timeline__title {
		font-size: 1em;
	}

	.timeline__paragraph {
		font-size: 0.95em;
	}

	.timeline__point {
		width: 11px;
		height: 11px;
	}
	#back-to-top {
		display: none; /* Ukrywa przycisk */
	}
}

/* Max-width: 480px */
@media (max-width: 480px) {
	body {
		overflow-x: hidden;
	}
	.header {
		margin-bottom: 20px;
		z-index: 50;
	}
	/* Sekcja usług */
	.services-wrapper {
		width: 90%;
		gap: 0;
	}
	.services-section h2 {
		font-size: 28px;
		margin-bottom: 30px;
	}
	.services-item {
		flex-direction: column;
		margin: 10px 0;
	}
	.services-item img {
		margin: 0 0 10px 0;
	}
	.services-item .service-description {
		text-align: center;
	}
	.popup {
		width: 95%;
		padding: 10px;
	}
	.popup h3 {
		font-size: 1.2em;
	}
	.popup p {
		font-size: 0.9em;
	}

	/* Sekcja ofert */
	.ofer {
		font-size: 2rem;
	}
	.oferParagraf {
		font-size: 0.9rem;
	}
	.popup {
		max-width: 90%;
	}
	.features {
		margin-left: 20px;
	}
	.timeline {
		max-width: 100%;
		padding: 15px;
	}

	.howWeWork {
		font-size: 1.5rem;
	}

	.timeline__component {
		margin: 0 5px 10px 5px;
	}

	.timeline__component--bg {
		padding: 0.8em;
	}

	.timeline__title {
		font-size: 0.9em;
	}

	.timeline__paragraph {
		font-size: 0.85em;
	}

	.timeline__point {
		width: 9px;
		height: 9px;
	}
	#back-to-top {
		display: none; /* Ukrywa przycisk */
	}
}
