﻿:root {
	--primary: #2c3e50;
	--secondary: #86191c;
	--light: #f8f9fa;
	--dark: #212529;
	--gray: #6c757d;
	--transition: all 0.3s ease;
	--shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	--shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Montserrat', sans-serif;
	line-height: 1.6;
	color: var(--dark);
	background-color: var(--light);
	overflow-x: hidden;
}

h1,
h2,
h3 {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--primary);
}

h1 {
	font-size: 3.5rem;
	line-height: 1.2;
}

h2 {
	font-size: 2.5rem;
	position: relative;
	padding-bottom: 15px;
}

h2:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 80px;
	height: 3px;
	background: var(--secondary);
}

.text-center h2:after {
	left: 50%;
	transform: translateX(-50%);
}

p {
	margin-bottom: 1rem;
}

a {
	text-decoration: none;
	color: var(--primary);
	transition: var(--transition);
}

a:hover {
	color: var(--secondary);
}

.btn:hover {
	background: #c19b2e;
	color: white;
	transform: translateY(-3px);
	box-shadow: var(--shadow-hover);
}

.btn-outline:hover {
	background: var(--secondary);
	color: white;
}

section {
	padding: 80px 0;
}

.text-center {
	text-align: center;
}

.mb-4 {
	margin-bottom: 1.5rem;
}

.mb-5 {
	margin-bottom: 3rem;
}

/* Header */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: var(--transition);
}

header.scrolled {
	background: white;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	padding: 10px 0;
}

.logo {
	display: flex;
	align-items: center;
}

.logo img {
	height: 50px;
	margin-right: 10px;
}

.logo-text {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--primary);
}

.logo-text span {
	color: var(--secondary);
}

nav ul {
	display: flex;
	list-style: none;
}

nav ul li {
	margin-left: 30px;
}

nav ul li a {
	font-weight: 600;
	position: relative;
	padding: 5px 0;
}

nav ul li a:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--secondary);
	transition: var(--transition);
}

nav ul li a:hover:after {
	width: 100%;
}

.mobile-toggle {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
}

/* Hero Section */
.hero {
	height: 100vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	color: white;
	text-align: center;
	padding-top: 80px;
	background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://mebin.polfirms.pl/etna-01-mobile.webp') no-repeat center center/cover;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}

.hero h1 {
	color: white;
	margin-bottom: 20px;
	font-size: 3.5rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-btns {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 30px;
}

/* About Section */
.about {
	background: white;
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}

.about-img {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.about-img img {
	width: 100%;
	height: auto;
	display: block;
	transition: var(--transition);
}

.about-img:hover img {
	transform: scale(1.05);
}

.about-text h2 {
	margin-bottom: 20px;
}

.features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 30px;
}

.feature {
	display: flex;
	align-items: flex-start;
}

.feature i {
	color: var(--secondary);
	font-size: 1.5rem;
	margin-right: 15px;
	margin-top: 5px;
}

/* Products Section */
.products {
	background: #f8f9fa;
}

.section-header {
	max-width: 700px;
	margin: 0 auto 50px;
	text-align: center;
}

.product-filters {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 40px;
}

.filter-btn {
	padding: 8px 20px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 30px;
	cursor: pointer;
	transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
	background: var(--secondary);
	color: white;
	border-color: var(--secondary);
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.product-card {
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-card.hidden {
	display: none;
}

.product-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-hover);
}

.product-img {
	height: 250px;
	overflow: hidden;
}

.product-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.product-card:hover .product-img img {
	transform: scale(1.1);
}

.product-info {
	padding: 20px;
	display: flex;
	/* Również używamy flexbox */
	flex-direction: column;
	/* Ustawiamy kierunek na kolumnowy */
	flex-grow: 1;
	/* Pozwalamy tej sekcji rosnąć, aby zajęła dostępną przestrzeń */
}

.product-info p {
	flex-grow: 1;
	/* Paragraf z opisem może rosnąć, aby wypełnić przestrzeń */
	margin-bottom: 10px;
	/* Dodajemy mały margines, żeby oddzielić od przycisku */
}

.product-info .btn {
	margin-top: auto;
	/* To jest kluczowe! Pchnie przycisk na sam dół */
}

.product-info h3 {
	margin-bottom: 10px;
	font-size: 1.4rem;
}

.product-category {
	display: inline-block;
	background: #e9ecef;
	color: #343a40;
	font-size: 0.85rem;
	padding: 3px 10px;
	border-radius: 30px;
	margin-bottom: 10px;
}

.product-price {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--primary);
	margin: 10px 0;
}

/* Gallery */
.gallery {
	background: white;
}

.gallery-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.gallery-item {
	border-radius: 10px;
	overflow: hidden;
	height: 300px;
	position: relative;
	cursor: pointer;
	box-shadow: var(--shadow);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.gallery-item:hover img {
	transform: scale(1.1);
}

.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

.gallery-overlay i {
	color: white;
	font-size: 2.5rem;
}

/* Contact Section */
.contact {
	color: white;
		background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://mebin.polfirms.pl/etna-01-mobile.webp') no-repeat center center/cover;
}

.contact h2 {
	color: white;
}

.contact h2:after {
	background: var(--secondary);
}

.contact-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 50px;
}

.contact-info h3 {
	color: white;
	margin-bottom: 20px;
	font-size: 1.8rem;
}

.contact-details {
	margin-bottom: 30px;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 20px;
}

.contact-item i {
	color: var(--secondary);
	font-size: 1.2rem;
	margin-right: 15px;
	margin-top: 5px;
}

.social-links {
	display: flex;
	gap: 15px;
}

.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	border-radius: 50%;
	transition: var(--transition);
}

.social-links a:hover {
	background: var(--secondary);
	transform: translateY(-5px);
}

.contact-form .form-group {
	margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 12px 15px;
	border: none;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	font-family: 'Montserrat', sans-serif;
	transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.contact-form textarea {
	min-height: 150px;
	resize: vertical;
}

/* Footer */
footer {
	background: var(--primary);
	color: white;
	padding: 60px 0 30px;
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-col h4 {
	color: white;
	margin-bottom: 20px;
	font-size: 1.3rem;
	position: relative;
	padding-bottom: 10px;
}

.footer-col h4:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 2px;
	background: var(--secondary);
}

.footer-links {
	list-style: none;
}

.footer-links li {
	margin-bottom: 10px;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.7);
	transition: var(--transition);
}

.footer-links a:hover {
	color: var(--secondary);
	padding-left: 5px;
}

.copyright {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: var(--transition);
}

.lightbox.active {
	opacity: 1;
	pointer-events: all;
}

.lightbox-content {
	max-width: 90%;
	max-height: 90%;
	position: relative;
}

.lightbox-content img {
	max-width: 100%;
	max-height: 80vh;
	display: block;
	margin: 0 auto;
	border-radius: 5px;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	color: white;
	font-size: 2rem;
	cursor: pointer;
	transition: var(--transition);
}

.lightbox-close:hover {
	color: var(--secondary);
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
}

.lightbox-prev,
.lightbox-next {
	color: white;
	font-size: 2.5rem;
	cursor: pointer;
	transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
	color: var(--secondary);
}

/* Responsive */
@media (max-width: 992px) {
	h1 {
		font-size: 3rem;
	}

	h2 {
		font-size: 2.2rem;
	}

	h4 {
		color: #FFFFFF;
	}

	.about-content {
		grid-template-columns: 1fr;
	}

	.about-img {
		max-width: 600px;
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
	.mobile-toggle {
		display: block;
	}

	nav ul {
		position: fixed;
		top: 80px;
		left: 0;
		width: 100%;
		background: white;
		flex-direction: column;
		align-items: center;
		padding: 20px 0;
		box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
		transform: translateY(-150%);
		transition: var(--transition);
		display: flex;
	}

	nav ul.active {
		transform: translateY(0);
	}

	nav ul li {
		margin: 15px 0;
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.hero-btns {
		flex-direction: column;
		gap: 10px;
	}

	.features {
		grid-template-columns: 1fr;
	}

	section {
		padding: 60px 0;
	}
}

@media (max-width: 576px) {
	h1 {
		font-size: 2.2rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	.logo-text {
		font-size: 1.5rem;
	}
}