:root {
	--main-color: #383837;
	--accent-color: #c0a080;
	--light-gray: #f5f5f5;
	--gray: #e0e0e0;
	--font-main: 'Montessori', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-main);
	color: var(--main-color);
}

.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 10px;
	border-radius: 3px;
	position: fixed;
	top: 1rem; /* lub 1.5rem */
	right: 1rem; /* lub 1.5rem */
	background-color: white;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	z-index: 1100;
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hamburger.open {
	box-shadow: none; /* Znika cień, ale pozycja się nie zmienia */
}
/* LINES */
.hamburger span {
	width: 25px;
	height: 3px;
	background-color: var(--main-color);
	display: block;
	transition: all 0.3s ease;
}

/* NAVIGATION */

nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	background: transparent;
	z-index: 1000;
	font-size: 16px;
	transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.scrolled {
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(6px);
}

.nav-left {
	display: flex;
	align-items: center;
	transform: translateX(10%);
}

.nav-links {
	display: flex;
	gap: 4rem;
	transform: translateX(-40%);
}

.nav-links a {
	text-decoration: none;
	color: var(--main-color);
	font-weight: 500;
	transition: color 0.3s;
	font-family: var(--font-main);
	letter-spacing: 2px;

	padding: 0.5rem 0;
}

.nav-links a:hover {
	color: var(--accent-color);
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 2rem;

	font-family: var(--font-main);
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 2px;
}

.instagram-wrapper {
	display: flex;
	align-items: center;
	gap: 4rem;
}

.instagram-wrapper a {
	text-decoration: none;
	color: var(--main-color);
	font-weight: 500;
	transition: color 0.3s;
}

.instagram-wrapper a:hover {
	color: var(--accent-color);
}

.mobile-contact {
	display: none;
}
/* HEADER */

header {
	position: relative;
	height: 100vh;
	background: url('images/ola1.png') no-repeat center center/cover;
	filter: grayscale(5%) contrast(0.95);
}

.header-content {
	position: absolute;
	top: 50%;
	left: 10%;
	transform: translateY(-50%);
	color: white;
}

.header-content h1 {
	font-family: var(--font-main);
	font-size: 3rem;
	margin-bottom: 1rem;
	letter-spacing: 2px;
}

.header-content h3 {
	font-weight: 400;
	font-size: 1.5rem;
	letter-spacing: 2px;
}

.header-content p {
	margin-top: 1rem;
	font-size: 1.1rem;
	font-style: italic;
	letter-spacing: 0.5px;
}

/* SECTIONS */

section {
	padding: 2rem 2rem;
	scroll-margin-top: 100px;
}

/* OMNIE */
.omnie {
	padding: 0;
	margin: 0;
	background-color: #f1f1f1;
}

.omnie-container {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
}

.omnie-image {
	flex: 1;
	display: flex;
}

.omnie-image img {
	width: 95%;
	height: auto;
	object-fit: contain;
	display: block;
	align-self: stretch;
	border-radius: 3px;
}

.omnie-text {
	flex: 1;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	background-color: #f1f1f1;
}

.omnie-text h3 {
	font-family: var(--font-main);
	font-weight: 500;
	font-size: 18px;
	color: var(--main-color);
	margin-bottom: 1rem;
	text-align: center;
	width: 100%;
	letter-spacing: 2px;
}

.omnie-text p {
	line-height: 1.6;
	text-align: justify;
	max-width: 80%;
	margin: 0 auto;
	padding-top: 0.5rem;
	letter-spacing: 0.5px;
	hyphens: auto;
}

/* SERVICES */
.services {
	background-color: #f1f1f1;
}

.services .service-cards {
	display: flex;
	gap: 2rem;
	justify-content: center;
	flex-wrap: wrap;
	margin: 2rem 0;
}

.service-card {
	background-color: var(--light-gray);
	padding: 2rem;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
	max-width: 600px;
	text-align: center;
	border-radius: 3px;
}

.service-card:hover {
	transform: translateY(-5px);
}

.service-card img {
	max-width: 100%;
	max-height: 350px;
	width: auto;
	height: auto;

	margin-bottom: 1.5rem; /* większy i równy odstęp pod obrazkiem */
	display: block;
	margin-left: auto;
	margin-right: auto;
	border-radius: 3px;
}

.services h3 {
	font-family: var(--font-main);
	font-weight: 500;
	font-size: 16px;
	color: var(--main-color);
	margin-bottom: 1.5rem; /* równa odległość od tekstu pod spodem */
	letter-spacing: 2px;
}

.service-card p {
	line-height: 1.6;
	text-align: justify;
	max-width: 80%;
	margin: 0 auto;
	padding-top: 0; /* usuń padding */
	letter-spacing: 0.5px;
	hyphens: auto;
}

/* ABOUT */

.about {
	padding: 0;
	margin: 0;
	background-color: #f1f1f1;
}

.about-container {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
}

.about-image {
	flex: 1;
	display: flex;
}

.about-image img {
	width: 90%;
	height: auto;
	object-fit: contain;
	display: block;
	align-self: stretch;
	border-radius: 3px;
}

.about-text {
	flex: 1;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	background-color: #f1f1f1;
}

.about-text h3 {
	font-family: var(--font-main);
	font-weight: 500;
	font-size: 18px;
	color: var(--main-color);
	margin-bottom: 1rem;
	text-align: center;
	width: 100%;
	letter-spacing: 2px;
}

.about-text p {
	line-height: 1.6;
	text-align: justify;
	max-width: 80%;
	margin: 0 auto;
	padding-top: 0.5rem;
	letter-spacing: 0.5px;
	hyphens: auto;
}

/* FOOTER */

footer {
	background-color: var(--light-gray);
	padding: 2rem;
	font-size: 0.9rem;
	color: #666;
	display: flex;
	justify-content: space-between;
	align-items: center;
	letter-spacing: 2px;
	flex-wrap: wrap;
	letter-spacing: 2px;
}

.footer-left,
.footer-right {
	flex: 1;
}

.footer-left {
	text-align: left;
	padding-left: 1rem;
}

.footer-right {
	text-align: right;
	padding-right: 1rem;
}

/* ANIMATIONS */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-40px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(40px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* RESPONSIVE */

@media (max-width: 768px), (max-width: 1024px) {
	/* NAVIGATION */

	.nav-left {
		transform: none;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		background: white;
		position: absolute;
		top: 70px;
		right: 1rem;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		padding: 1.5rem 1rem;
		border-radius: 3px;
		min-width: 180px;
		z-index: 1001;
		gap: 1rem;
		transform: none; /* <- to dodaj! */
	}

	.nav-links.active {
		display: flex;
	}

	.mobile-contact {
		display: block;
	}

	.nav-right {
		display: none;
	}

	.hamburger {
		display: flex;
	}

	/* ABOUT */

	.about-container {
		flex-direction: column;
		text-align: center;
		align-items: center;
		padding: 0 0 1.5rem;
	}

	.about-image {
		height: auto;
		overflow: hidden;
	}

	.about-image img {
		max-width: 100%;
		width: 90%;
		height: auto;
		margin: 0 auto 1rem auto;
		display: block;
		object-fit: contain;
	}

	.about-text {
		width: 100%;
		align-items: center;
		padding: 1.5rem 1rem;
		text-align: center;
		margin-top: 0;
		margin-bottom: 0;
		box-sizing: border-box;
	}

	.about-text p {
		width: 80%;
		max-width: 100%;
		margin: 0 auto;
		text-align: justify;
		hyphens: auto;
		padding: 0.5rem 0;
	}

	.about-text h3 {
		line-height: 1.6;
		text-align: center;
		width: 100%;
	}

	/* OMNIE */

	.omnie-container {
		flex-direction: column;
		height: auto;
	}
	.omnie-image {
		display: none;
	}
	.omnie-text {
		width: 100%;
		align-items: center;
		padding: 1.5rem 1rem;
		text-align: center;
		margin-top: 0;
		margin-bottom: 0;
	}

	/* SERVICES */

	section.services {
		padding-top: 1rem;
	}

	.service-card p {
		max-width: 95%;
		width: 100%;
		margin: 0 auto;
		text-align: justify;
		hyphens: auto;
	}
	.services .service-cards {
		margin: 0 0; /* mniejsze marginesy na mobile */
		padding: 0;
	}

	/* FOOTER */

	.footer-container {
		align-items: center;
		gap: 0.5rem;
		text-align: center;
		padding: 1rem 1.5rem;
	}

	footer {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 0.5rem;
		padding: 2rem 1rem;
	}

	.footer-left,
	.footer-right {
		width: 100%;
		text-align: center;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 0.85rem;
	}
}

@media (max-width: 900px) {
	header {
		height: 75vh;
		background: url('images/logomobilne2.png') no-repeat center top;
		background-size: cover;
		filter: grayscale(5%) contrast(0.95);
	}
}

@media (max-width: 768px) {
	header {
		position: relative;
		background: url('images/logomobilne3.png') no-repeat center center/cover;
		aspect-ratio: 3 / 4; /* zachowuje proporcje pionowego obrazu */
		width: 100%;
		background-position: center center;
		filter: grayscale(5%) contrast(0.95);
	}
}

@media (max-width: 768px) and (orientation: landscape) {
	header {
		height: auto;

		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
	}

	@media (max-width: 1024px) and (orientation: landscape) {
		header {
			height: auto;
			aspect-ratio: 16 / 9;
			background-size: contain;
			background-repeat: no-repeat;
			background-position: center center;
			filter: grayscale(5%) contrast(0.95);
		}
		nav {
			flex-direction: column;
			align-items: center;
			padding: 1rem;
		}
		.nav-left,
		.nav-right {
			transform: none;
		}
		.nav-links {
			transform: none;
		}
	}
}
