body {
	margin: 0;
	font-family: Arial, sans-serif;
	background-image: url(gradient.png);
	position: relative;
}

header {
	text-align: center;
	padding: 10px;
	background-color: #c9bab0;
}

.logo {
	height: 30vh;
	width: 35%;
	max-width: 400px;
	max-height: 400px;
	object-fit: contain;
}

.nav-menu {
	display: flex;
	justify-content: center;
	gap: 20px;
	padding: 20px;
}

.nav-item {
	border-radius: 8px;
	padding: 15px;
	text-align: center;
	transition: transform 0.3s ease, border 0.3s ease;
	width: 150px;
}

.nav-item:hover {
	transform: scale(1.05);
	border: 2px solid #e8c565;
	box-shadow: 3px 3px 7px gray;
}

.nav-item a {
	text-decoration: none;
	display: block;
}

.image-container {
	position: relative;
	width: 100%;
	height: 50px;
	transition: height 0.3s ease, background-color 0.3s ease;
	border-radius: 5px;
	cursor: pointer;
}

.content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 18px;
	color: #d4af37;
}

.hamburger {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 20px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	position: absolute;
	top: 20px;
	right: 20px;
}

.bar {
	width: 100%;
	height: 3px;
	background-color: #d4af37;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(2) {
	opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
	.nav-menu {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 60px;
		left: 0;
		width: 100%;
		padding: 10px 0;
		background-color: #e8e2d0;
	}

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

	.nav-item {
		width: 90%;
		margin: 10px auto;
	}

	.hamburger {
		display: flex;
	}

	.image-container {
		width: 100%;
	}

	.logo {
		height: 25vh;
		width: 50%;
		max-width: 300px;
	}
}

@media (max-width: 480px) {
	.logo {
		height: 20vh;
		width: 70%;
		max-width: 250px;
	}
}

#o_salonie {
	font-family: 'Newsreader', serif;
	font-style: normal;
	text-align: center;
	margin: 50px 15% 0;
	font-size: 25px;
	padding: 20px;
	border-radius: 8px;
	color: #c9bab0;
}

@media (max-width: 768px) {
	#o_salonie {
		margin: 30px 5% 0;
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	#o_salonie {
		margin: 20px 2% 0;
		font-size: 18px;
	}
}

.back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background-color: #333;
	border: 1px solid #d4af37;
	border-radius: 50%;
	color: #d4af37;
	font-size: 20px;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
	z-index: 1000;
}

.back-to-top::after {
	content: '↑';
}

.back-to-top:hover {
	background-color: #d4af37;
	color: #fff;
	transform: scale(1.1);
}

.back-to-top.show {
	display: flex;
}

#salon {
	position: relative;
	padding: 20px;
	min-height: 400px;
	text-align: center; /* Wyśrodkowanie całego bloku */
}

.salon-content {
	margin-top: 40px;
	position: relative;
	width: 70%;
	height: 60vh;
	display: inline-block; /* Wyśrodkowanie bloku w poziomie */
	left: 35%; /* Pozycjonowanie w poziomie */
	transform: translateX(-50%); /* Korekta wyśrodkowania */
}

#salon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.salon-content button {
	position: relative;
	z-index: 2;
	color: #fff;
	text-align: center;
	padding: 10px;
}

.salon-content button {
	position: absolute;
	bottom: 40px; /* Położenie na dole */
	left: 43%; /* Wyśrodkowanie poziome */
	border-radius: 8px;
	padding: 10px;
	text-align: center;
	transition: transform 0.3s ease, border 0.3s ease;
	width: 220px;
	height: 60px;
	background-color: transparent;
	border: 1px solid #d4af37;
	cursor: pointer;
}

.salon-content button a {
	color: #d4af37;
	text-decoration: none;
	font-weight: bold;
	display: block;
}

.salon-content button:hover {
	transform: scale(1.05);
	box-shadow: 3px 3px 7px rgb(0, 0, 0);
}

.salon-content button:hover a {
	color: #d4af37;
}

@media (max-width: 768px) {
	#salon {
		min-height: 300px;
	}

	.salon-content {
		width: 80%;
		height: 50vh;
	}

	.salon-content button {
		width: 90%;
		padding: 12px;
		bottom: 15px; /* Mniejszy odstęp na tabletach */
	}
}

@media (max-width: 480px) {
	#salon {
		min-height: 200px;
	}

	.salon-content {
		width: 90%;
		height: 40vh;
	}

	.salon-content button {
		width: 90%;
		padding: 10px;
		bottom: 10px; /* Mniejszy odstęp na telefonach */
	}
}

/* Styl dla sekcji galerii */
#galeria {
	padding: 40px 20px;
	text-align: center;
	margin: 0 auto; /* Wyśrodkowanie sekcji */
	max-width: 1200px; /* Ograniczenie szerokości */
}

#galeria h2 {
	font-family: 'Newsreader', serif;
	font-size: 2.5em;
	color: #d4af37;
	margin-bottom: 20px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* 3 zdjęcia w rzędzie */
	grid-template-rows: repeat(2, 1fr); /* 2 rzędy */
	gap: 15px;
	max-width: 100%;
	margin: 0 auto; /* Wyśrodkowanie siatki */
}

.gallery-image {
	width: 100%;
	height: 150px; /* Stała wysokość dla spójności */
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #d4af37;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
	transform: scale(1.05);
	box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.5);
}

.gallery-overlay {
	display: none; /* Ukryty domyślnie */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9); /* Ciemne tło z przezroczystością */
	z-index: 2000; /* Nad innymi elementami */
	justify-content: center; /* Wyśrodkowanie poziome */
	align-items: center; /* Wyśrodkowanie pionowe */
}

.gallery-overlay.active {
	display: flex; /* Pokaż overlay, gdy aktywny */
}

/* Styl dla powiększonego zdjęcia */
.gallery-full-image {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	border-radius: 8px;
	border: 2px solid #d4af37;
	margin: 0 auto; /* Dodatkowe wyśrodkowanie */
}

/* Styl dla przycisku zamykania */
.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 30px;
	height: 30px;
	background-color: transparent;
	color: #d4af37;
	border: 1px solid #d4af37;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

.close-btn:hover {
	transform: scale(1.05);
	transition: transform 0.3s ease;
}

/* Styl dla strzałek */
.prev-btn,
.next-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background-color: transparent;
	color: #d4af37;
	border: 1px solid #d4af37;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

.prev-btn {
	left: 20px;
}

.next-btn {
	right: 20px;
}

@media (max-width: 768px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr); /* 2 zdjęcia w rzędzie na tabletach */
		grid-template-rows: auto; /* Rzędy dostosują się automatycznie */
		gap: 10px;
	}

	.gallery-image {
		height: 120px; /* Zmniejszona wysokość na tabletach */
	}

	#galeria h2 {
		font-size: 2em;
	}

	.close-btn {
		width: 25px;
		height: 25px;
		font-size: 16px;
	}

	.prev-btn,
	.next-btn {
		width: 35px;
		height: 35px;
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.gallery-grid {
		grid-template-columns: 1fr; /* 1 zdjęcie w rzędzie na telefonach */
		grid-template-rows: auto; /* Rzędy dostosują się automatycznie */
		gap: 8px;
	}

	.gallery-image {
		height: 100px; /* Zmniejszona wysokość na telefonach */
	}

	#galeria h2 {
		font-size: 1.5em;
	}

	.close-btn {
		width: 20px;
		height: 20px;
		font-size: 14px;
	}

	.prev-btn,
	.next-btn {
		width: 30px;
		height: 30px;
		font-size: 16px;
	}
}

#uslugi {
	padding: 40px 20px;
	text-align: center;
	margin: 0 auto;
	max-width: 1200px;
	min-width: 800px; /* Minimalna szerokość, aby bloki były obok siebie */
	overflow: hidden;
}

#hairtlak2 {
	width: 48%;
	height: 600px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #d4af37;
	cursor: pointer;
	margin-right: 3%;
	float: left;
}

#uslugitext {
	width: 48%;
	height: 600px;
	border-radius: 8px;
	border: 1px solid #d4af37;
	cursor: pointer;
	box-shadow: 1px 1px 10px gray;
	position: relative;
	background-image: url(gradient.png);
	background-size: cover;
	background-position: center;
	float: left;
}

.uslugi-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	width: 90%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 80%;
}

.text-background {
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 20px;
	flex-grow: 1;
}

.uslugi-content p {
	color: #c9bab0;
	font-family: 'Newsreader', serif;
	font-size: 16px;
	margin: 0;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#btn-uslugi {
	text-align: center;
	border-radius: 8px;
	padding: 12px;
	transition: transform 0.3s ease, border 0.3s ease;
	width: 200px;
	height: 40px;
	background-color: transparent;
	border: 1px solid #d4af37;
	cursor: pointer;
	color: #d4af37;
	font-size: 14px;
	align-self: center;
	margin-top: auto;
}

#btn-uslugi a {
	color: #d4af37;
	text-decoration: none;
	font-weight: bold;
	display: block;
}

#btn-uslugi:hover {
	transform: scale(1.05);
	box-shadow: 3px 3px 7px rgb(0, 0, 0);
}

#btn-uslugi:hover a {
	color: #d4af37;
}

#uslugi h2 {
	font-family: 'Newsreader', serif;
	font-size: 2.5em;
	color: #d4af37;
	margin-bottom: 20px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	text-align: center;
	font-style: italic;
}

@media (max-width: 800px) {
	#uslugi {
		min-width: 0;
	}

	#hairtlak2 {
		width: 100%;
		height: 500px;
		margin: 0 auto 20px;
		float: none;
	}

	#uslugitext {
		width: 100%;
		height: 500px;
		margin: 0 auto;
		float: none;
	}

	.uslugi-content p {
		font-size: 14px;
	}

	#btn-uslugi {
		width: 180px;
		height: 35px;
		font-size: 13px;
	}
}
footer {
	background-color: #c9bab096;
	padding: 40px 20px;
	display: flex; /* Układ flex dla wyrównania sekcji */
	align-items: flex-start; /* Wyrównanie sekcji u góry */
	flex-wrap: wrap; /* Zawijanie na mniejszych ekranach */
	margin: 0 auto; /* Wyśrodkowanie */
	text-align: center;
}

#socialmedia {
	flex: 1; /* Równy podział przestrzeni */
	margin: 0 20px; /* Marginesy dla odstępu */
}

#socialmedia h2 {
	font-family: 'Newsreader', serif;
	font-size: 2em;
	color: #d4af37;
	margin-bottom: 20px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	font-style: italic;
	text-align: left;
	text-align: center;
}

#socialmedia a {
	display: inline-block;
	margin: 0 15px 10px 0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#socialmedia img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	padding: 5px;
	border-radius: 8px;
}

#socialmedia a:hover img {
	transform: scale(1.1);
	box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.5);
}

#kontakt {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	flex: 2; /* Zajmuje pozostałą przestrzeń, ale dostosuje się do równych części */
	gap: 20px;
}

#contact-form,
#map {
	flex: 1; /* Równy podział przestrzeni w #kontakt */
}

#contact-form h2,
#map h2 {
	font-family: 'Newsreader', serif;
	font-size: 2em;
	color: #d4af37;
	margin-bottom: 20px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	font-style: italic;
}

#contact-form label {
	font-family: 'Newsreader', serif;
	color: #d4af37;
	font-size: 1.2em;
	display: block;
	margin-bottom: 1px;
}

#contact-form input,
#contact-form textarea {
	width: 65%;
	padding: 10px;
	margin-bottom: 1px;
	border: 1px solid #d4af37;
	border-radius: 5px;
	background-color: rgba(255, 255, 255, 0.7);
	font-family: Arial, sans-serif;
	font-size: 1em;
}

#contact-form textarea {
	resize: vertical;
	min-height: 100px;
}

#contact-form button {
	padding: 10px 20px;
	background-color: transparent;
	border: 1px solid #d4af37;
	border-radius: 8px;
	color: #d4af37;
	font-size: 1em;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-form button:hover {
	transform: scale(1.05);
	box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.5);
}

/* Responsywność */
@media (max-width: 768px) {
	footer {
		flex-direction: column; /* Układ pionowy na tabletach */
		align-items: center; /* Wyśrodkowanie */
	}

	#socialmedia {
		margin: 0 0 30px 0; /* Odstęp na dole */
		text-align: center; /* Wyśrodkowanie ikon */
	}

	#socialmedia h2 {
		font-size: 1.8em;
		text-align: center; /* Wyśrodkowanie nagłówka */
	}

	#socialmedia img {
		width: 55px;
		height: 55px;
	}

	#socialmedia a {
		margin: 0 12px 8px 0;
	}

	#contact-form h2,
	#map h2 {
		font-size: 1.8em;
	}

	#map iframe {
		height: 300px;
	}
}

@media (max-width: 480px) {
	#socialmedia h2 {
		font-size: 1.5em;
	}

	#socialmedia img {
		width: 50px;
		height: 50px;
	}

	#socialmedia a {
		margin: 0 10px 6px 0;
	}

	#contact-form h2,
	#map h2 {
		font-size: 1.5em;
	}

	#map iframe {
		height: 250px;
	}

	#contact-form input,
	#contact-form textarea {
		font-size: 0.9em;
	}

	#contact-form button {
		font-size: 0.9em;
	}
}
