/* CZCIONKI */
@font-face {
	font-family: 'Source Sans 3 VF';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/files/fonts/SourceSans3VF-Upright.otf.woff2') format('woff2');
}

@font-face {
	font-family: 'Source Sans 3 VF';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('/files/fonts/SourceSans3VF-Italic.otf.woff2') format('woff2');
}

@font-face {
	font-family: 'Source Serif 4 VF';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('/files/fonts/SourceSerif4Variable-Roman.otf.woff2') format('woff2');
}

@font-face {
	font-family: 'Source Serif 4 VF';
	font-style: italic;
	font-weight: 200 900;
	font-display: swap;
	src: url('/files/fonts/SourceSerif4Variable-Italic.otf.woff2') format('woff2');
}

@font-face {
	font-family: 'Anta Regular';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/files/fonts/Anta-Regular.woff2') format('woff2');
}

/* ZMIENNE */
:root {
	--primary-color: rgb(80 99 81);
	--secondary-color: rgb(163, 184, 164);
	--background-color: #f8f9fa;
	--text-color: #212529;
	--nav-bg: white;
	--footer-bg: rgb(45 50 44);
	--dropdown-bg: #fff;
	--dropdown-border: #eee;
}

[data-theme='dark'] {
	--primary-color: #54ac71;
	--secondary-color: #3d8b58;
	--background-color: #1a1e1b;
	--text-color: #e6f0e8;
	--nav-bg: #242a25;
	--footer-bg: #141714;
	--dropdown-bg: #2d332e;
	--dropdown-border: #3a413c;
}

/* RESET I BAZOWE STYLE */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
	tap-highlight-color: transparent;
}

html {
	font-size: 62.5%;
	scroll-behavior: smooth;
}

body {
	font-family:
		'Source Sans 3 VF',
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		Roboto,
		Arial,
		sans-serif;
	font-size: 1.6rem;
	line-height: 1.6;
	background-color: var(--background-color);
	color: var(--text-color);
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

a.classic {
	display: inline;
}

a:hover span {
	text-decoration: wavy underline;
	text-decoration-color: var(--secondary-color);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* LAYOUT */
#wrapper {
	max-width: 120rem;
	min-height: 100vh;
	margin: 0 auto;
	padding: 0 2rem;
	animation: slideUpFade 400ms ease-out 200ms both;
}

#main-content {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 5vw;
	flex-grow: 1;
	padding: 2rem 0;
}

/* PASEK INFORMACYJNY */
#info-bar {
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 0.8rem;
	background-color: rgb(80 99 81);
	color: whitesmoke;
	font-weight: 500;
}

[data-theme='dark'] #info-bar {
	background-color: #2d5a3d;
}

.info-bar-container {
	flex: 0 1 auto;
	text-align: center;
	font-size: 1.15rem;
}

.info-bar-container:first-child {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.info-bar-container:last-child {
	display: flex;
	gap: 1rem;
}

#info-bar a {
	color: inherit;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.4rem 0.8rem;
	border-radius: 0.4rem;
	transition: all 0.3s ease;
	background-color: rgba(255, 255, 255, 0.1);
}

#info-bar a:hover {
	background-color: color-mix(in srgb, rgb(80 99 81) 70%, whitesmoke 30%);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

[data-theme='dark'] #info-bar a:hover {
	background-color: color-mix(in srgb, #2d5a3d 70%, #e6f0e8 30%);
}

/* NAWIGACJA */
#nav {
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 0.5rem;
	background-color: var(--nav-bg);
	box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 120rem;
	margin: 0 auto;
	padding: 1rem 2rem;
	gap: 2rem;
}

.nav-logo img {
	height: 6vh;
	width: auto;
	object-fit: contain;
	transition: transform 0.2s ease;
}

.nav-logo:hover img {
	transform: scale(1.05);
}

.nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
	flex: 1;
	justify-content: flex-end;
}

.nav-links li a {
	color: var(--text-color);
	padding: 1rem 1.5rem;
	border-radius: 0.4rem;
	position: relative;
	transition: color 0.3s ease;
}

[data-theme='dark'] .nav-links li a {
	color: #e6f0e8;
}

.nav-links li a:hover {
	color: var(--primary-color);
	background-color: var(--background-color);
}

[data-theme='dark'] .nav-links li a:hover {
	background-color: #2d332e;
}

.nav-links li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 0.2rem;
	background: var(--primary-color);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.nav-links li a:hover::after {
	width: 70%;
}

.nav-links li#active {
	background-color: var(--primary-color);
	border-radius: 0.4rem;
}

[data-theme='dark'] .nav-links li#active {
	background-color: #3d8b58;
}

.nav-links li#active a {
	color: whitesmoke;
}

.nav-links li#active a:hover {
	color: var(--primary-color);
}

/* DROPDOWN - DESKTOP */
@media (min-width: 768px) {
	.nav-links .dropdown {
		position: relative;
	}

	.dropdown-menu {
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		min-width: 25rem;
		background-color: var(--dropdown-bg);
		border: 0.1rem solid var(--dropdown-border);
		border-radius: 0.4rem;
		box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
		list-style: none;
		padding: 1rem 0;
		z-index: 1000;
	}

	[data-theme='dark'] .dropdown-menu {
		border: 1px solid #3a413c;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	}

	.dropdown-menu li a {
		padding: 1rem 2rem;
		font-size: 1.4rem;
		color: var(--text-color);
		white-space: nowrap;
		transition: all 0.2s ease;
	}

	[data-theme='dark'] .dropdown-menu li a {
		color: #e6f0e8;
	}

	.dropdown-menu li a:hover {
		background-color: #f8f9fa;
		color: var(--primary-color);
	}

	[data-theme='dark'] .dropdown-menu li a:hover {
		background-color: #353c36;
		color: #54ac71;
	}

	.nav-links .dropdown:hover .dropdown-menu {
		display: block;
	}
}

/* KONTROLE NAWIGACJI */
.nav-controls {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: 0 0 auto;
}

/* PRZYCISK MOTYWU */
.theme-toggle {
	position: relative;
	width: 5rem;
	height: 2.5rem;
	border: none;
	border-radius: 2.5rem;
	background: none;
	cursor: pointer;
	padding: 0;
	overflow: hidden;
}

.theme-toggle-track {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--secondary-color);
	border-radius: 2.5rem;
	transition: background-color 0.3s ease;
}

[data-theme='dark'] .theme-toggle-track {
	background-color: #3d8b58;
}

.theme-toggle i {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	transition: all 0.3s ease;
	color: white;
	z-index: 2;
}

.theme-toggle .bx-sun {
	left: 0.6rem;
	opacity: 1;
}

.theme-toggle .bx-moon {
	right: 0.6rem;
	opacity: 0;
}

[data-theme='dark'] .theme-toggle .bx-sun {
	opacity: 0;
}

[data-theme='dark'] .theme-toggle .bx-moon {
	opacity: 1;
}

.theme-toggle:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* HAMBURGER */
.hamburger {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 3rem;
	height: 2rem;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	position: relative;
	z-index: 1001;
}

.hamburger .bar {
	width: 100%;
	height: 0.3rem;
	background-color: #333;
	border-radius: 0.3rem;
	transition: 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
	transform: translateY(8.25px) rotate(45deg); /* 8.25px = połowa wysokości kontenera minus połowa grubości paska */
	transform-origin: center;
}

.hamburger.active .bar:nth-child(2) {
	opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
	transform: translateY(-8.25px) rotate(-45deg);
	transform-origin: center;
}

[data-theme='dark'] .hamburger .bar {
	background-color: #54ac71;
}

/* HEADER */
.header {
	position: relative;
	height: 40vh;
	max-height: 40vh;
	margin: 2rem;
	margin-bottom: 1rem;
	border-radius: 2rem;
	overflow: hidden;
}

.background-color {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgb(45, 50, 44);
	z-index: -1;
}

.landing {
	position: absolute;
	width: 100%;
	height: 100%;
	background-image: url('/files/img/bg1.jpg');
	background-position: 100% 22%;
	background-size: 130%;
	filter: blur(5px);
	opacity: 0.4;
}

.landing.cennik {
	background-image: url(/files/img/LW3.jpg);
	background-position: 0% 18%;
	background-size: 120%;
}

.landing.o-mnie {
	background-image: url('/files/img/_DSC1943.jpg');
	background-position: 50% 30%;
	background-size: cover;
}

#header-wrapper {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.header-container {
	width: 50%;
	height: 100%;
	padding: 0 2rem;
	color: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.header-container h1 {
	font-family: 'Anta Regular', sans-serif;
	font-size: clamp(2.4rem, 4vw + 1rem, 4rem);
	margin-bottom: 2rem;
	line-height: 1.2;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
}

.header-container p {
	font-size: clamp(1.4rem, 1.5vw + 0.8rem, 1.8rem);
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* STOPKA */
footer {
	background-color: var(--footer-bg);
	padding: 2rem 0;
	margin-top: 3rem;
	border-top: 0.1rem solid #dee2e61f;
}

.footer-container {
	max-width: 120rem;
	margin: 0 auto;
	padding: 0 2rem;
	text-align: center;
	font-size: 1.4rem;
	color: whitesmoke;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}

.footer-box {
	display: flex;
	flex-direction: column;
}

.footer-box p {
	margin: 0.5rem 0;
}

.footer-container a {
	color: color-mix(in srgb, rgb(163, 184, 164) 80%, whitesmoke 20%);
}

[data-theme='dark'] .footer-container a {
	color: #76b88e;
}

.footer-container a:hover {
	text-decoration: wavy underline;
}

[data-theme='dark'] .footer-container a:hover {
	color: #9dccab;
	text-decoration-color: #9dccab;
}

.footer-contact {
	background-color: var(--footer-bg);
	color: whitesmoke;
	padding: 4rem 0 2rem;
	margin-top: 4rem;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 3rem 2rem;
	margin-bottom: 3rem;
}

.footer-col h4 {
	font-size: 1.7rem;
	margin-bottom: 1.6rem;
	color: #fff;
	font-weight: 600;
}

.footer-col ul {
	list-style: none;
}

.footer-col ul li {
	margin-bottom: 1rem;
}

.footer-col a {
	color: #c3d8c8;
	transition: color 0.2s;
}

.footer-col a:hover {
	color: #fff;
}

.footer-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.footer-contact-list i {
	font-size: 2rem;
	color: var(--primary-color);
	margin-top: 0.3rem;
}

.footer-certificates {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

.footer-certificates span {
	background: rgba(255, 255, 255, 0.12);
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-size: 1.3rem;
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 1.4rem;
}

.footer-note {
	margin-top: 0.6rem;
	opacity: 0.8;
	font-size: 1.3rem;
}

.footer-logo img {
	height: 5rem;
	margin-bottom: 1.5rem;
}

/* Mobile */
@media (max-width: 767px) {
	.footer-columns {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer-contact-list li {
		justify-content: center;
	}

	.footer-certificates {
		justify-content: center;
	}
}

/* ANIMACJE */
@keyframes slideUpFade {
	from {
		opacity: 0;
		transform: translateY(1rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* KLASY POMOCNICZE */
.reset-margin {
	margin: 0;
	padding: 0;
}

.sans-serif {
	font-family: 'Source Sans 3 VF', sans-serif;
}

.serif {
	font-family: 'Source Serif 4 VF', serif;
}

.anta {
	font-family: 'Anta Regular', sans-serif;
}

.mobile-hidden {
	display: none;
}

/* DODATKOWE DARK MODE STYLE */
[data-theme='dark'] body {
	background-color: var(--background-color);
	color: var(--text-color);
}

[data-theme='dark'] a {
	color: #68b983;
}

[data-theme='dark'] a.classic:hover {
	color: #8bcba1;
}

[data-theme='dark'] a span:hover {
	text-decoration-color: #76b88e;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
	.header-container {
		width: 70%;
	}

	.header-container h1 {
		font-size: clamp(2.2rem, 3.5vw + 1rem, 3.5rem);
	}
}

@media (max-width: 767px) {
	.dropdown-menu.open {
		max-height: 500px !important;
	}

	#nav {
		min-height: 70px;
		padding: 0;
	}

	.nav-container {
		min-height: 70px;
		padding: 0 1.5rem;
		align-items: center;
		gap: 1rem;
	}

	.nav-controls {
		order: 2;
		gap: 1.5rem;
	}

	.nav-logo img {
		height: 50px;
		min-height: 50px;
	}

	.hamburger {
		display: flex;
		width: 40px;
		height: 30px;
	}

	.hamburger .bar {
		height: 3.5px;
		border-radius: 3px;
	}

	.theme-toggle {
		width: 50px;
		height: 28px;
	}

	.theme-toggle i {
		font-size: 1.4rem;
	}

	.theme-toggle .bx-sun {
		left: 0.5rem;
	}

	.theme-toggle .bx-moon {
		right: 0.5rem;
	}

	/* PŁYNNA ANIMACJA MENU */
	.nav-links {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		flex-direction: column;
		gap: 0;
		background-color: var(--nav-bg);
		box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition:
			max-height 0.3s ease-out,
			opacity 0.25s ease-out;
	}

	.nav-links.active {
		max-height: 80vh;
		opacity: 1;
		overflow-y: auto;
	}

	[data-theme='dark'] .nav-links {
		background-color: #242a25;
		border: 1px solid #3a413c;
		border-top: none;
	}

	.nav-links li {
		width: 100%;
		border-bottom: 0.1rem solid #eee;
	}

	[data-theme='dark'] .nav-links li {
		border-bottom: 1px solid #2d332e;
	}

	.nav-links li a {
		padding: 2rem 2.5rem;
		font-size: 1.7rem;
		min-height: 60px;
		display: flex;
		align-items: center;
		border-radius: 0;
	}

	/* POPRAWNY DROPDOWN NA MOBILE */
	.dropdown-menu {
		position: static !important;
		display: block !important;
		width: 100% !important;
		max-height: 0;
		overflow: hidden;
		transition:
			max-height 0.4s ease-in-out,
			opacity 0.3s ease-in-out; /* dłuższy i smoother timing */
		opacity: 0;
		background-color: var(--background-color) !important;
		border: none !important;
		box-shadow: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.dropdown-menu.open {
		max-height: 1000px; /* duża wartość – zawsze wystarczy na całą zawartość */
		opacity: 1;
	}

	[data-theme='dark'] .dropdown-menu {
		background-color: #1e231f !important;
	}

	.dropdown-menu li {
		border-bottom: 1px solid var(--border-color);
	}

	[data-theme='dark'] .dropdown-menu li {
		border-bottom: 1px solid #2d332e;
	}

	.dropdown-menu li:last-child {
		border-bottom: none;
	}

	.dropdown-menu li a {
		padding: 1.6rem 3.5rem !important;
		font-size: 1.5rem !important;
		border-left: 4px solid transparent;
		transition: all 0.2s ease;
	}

	.dropdown-menu li a:hover {
		background-color: rgba(var(--primary-color-rgb), 0.05);
		border-left-color: var(--primary-color);
	}

	[data-theme='dark'] .dropdown-menu li a:hover {
		background-color: rgba(84, 172, 113, 0.1);
		border-left-color: #54ac71;
	}

	.nav-links li#active {
		border-radius: 0;
	}

	.nav-links li#active a {
		font-weight: 600;
		position: relative;
	}

	.nav-links li#active a::after {
		content: '';
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		width: 5px;
	}

	[data-theme='dark'] .nav-links li#active {
		background-color: #54ac71;
	}

	/* INNE ELEMENTY RESPONSYWNE */
	#info-bar {
		display: none;
	}

	#wrapper {
		padding: 0 1rem;
	}

	#main-content {
		padding: 1rem 0;
	}

	.header,
	header {
		height: 50vh;
		margin: 1rem;
	}

	.header-container {
		width: 90%;
		padding: 0 1rem;
	}

	.header-container h1 {
		font-size: clamp(2rem, 4vw + 1rem, 2.8rem);
		margin-bottom: 1.5rem;
	}

	.header-container p {
		font-size: clamp(1.3rem, 2vw + 0.8rem, 1.6rem);
	}

	html,
	body {
		overflow-x: hidden;
	}

	#wrapper {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
	}
}

@media (max-width: 480px) {
	.nav-container {
		padding: 0 1.2rem;
	}

	.nav-logo img {
		height: 45px;
	}

	.nav-links li a {
		padding: 1.8rem 2rem;
		font-size: 1.6rem;
	}

	.dropdown-menu li a {
		padding: 1.4rem 3rem !important;
	}

	.header,
	header {
		height: 40vh;
		margin: 0.5rem;
	}

	#main-content {
		padding: 0.5rem 0;
	}

	.header-container {
		width: 95%;
		padding: 0 0.5rem;
	}

	.header-container h1 {
		font-size: clamp(1.8rem, 3.5vw + 1rem, 2.4rem);
		margin-bottom: 1rem;
	}

	.header-container p {
		font-size: clamp(1.2rem, 1.8vw + 0.8rem, 1.4rem);
	}
}

@media (min-width: 1920px) {
	body {
		font-size: clamp(1.6rem, 1vw + 1rem, 1.8rem);
	}

	.nav-container,
	#wrapper,
	.footer-container {
		max-width: 140rem;
	}
}

/* DOSTĘPNOŚĆ */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}
}

/* Logo w stopce – wymuszone białe */
.footer-logo-img.white-logo {
	filter: brightness(0) invert(1); /* zamienia dowolny kolor na biały (#FFFFFF) */
	/* Alternatywa jeśli filter nie działa idealnie: */
	/* mix-blend-mode: difference; */ /* czasem lepszy efekt, ale testuj */
}

.footer-logo-img {
	height: 5rem;
	margin-bottom: 1.5rem;
}

/* Dolna linia – zawsze jedna, wycentrowana */
.footer-bottom {
	text-align: center;
	padding-top: 2.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	margin-top: 2rem;
}

.footer-bottom p {
	margin: 0;
	font-size: 1.4rem;
}

.footer-note {
	opacity: 0.75;
	font-size: 1.35rem;
}

/* Upewniamy się, że kolumny nie rozjeżdżają footer-bottom */
.footer-columns {
	margin-bottom: 0; /* usuwamy ewentualny duży odstęp pod kolumnami */
}

.footer-contact {
	background-color: var(--footer-bg); /* Twój ciemny kolor, np. #141714 */
	color: #e6f0e8;
	padding: 5rem 0 3rem;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 4rem 3rem;
	max-width: 120rem;
	margin: 0 auto;
	padding: 0 2rem;
}

.footer-col h4 {
	color: #ffffff;
	font-size: 1.8rem;
	margin-bottom: 1.8rem;
	font-weight: 600;
}

.footer-col ul {
	list-style: none;
	padding: 0;
}

.footer-col ul li {
	margin-bottom: 1.2rem;
	font-size: 1.5rem;
}

.footer-col a {
	color: #c3d8c8;
	transition: color 0.2s;
}

.footer-col a:hover {
	color: #ffffff;
}

.footer-contact-list i,
.footer-brand i {
	color: var(--primary-color); /* Twój zielony akcent, np. #54ac71 */
	font-size: 2rem;
	margin-right: 1rem;
	vertical-align: middle;
}

.footer-logo-img {
	height: 7rem; /* Dostosuj rozmiar */
	margin-bottom: 2rem;
	display: block;
}

.white-logo {
	filter: brightness(0) invert(1); /* Zmienia na czysty biały #FFFFFF */
	/* Jeśli chcesz lepszą kontrolę nad kontrastem: filter: brightness(0) invert(1) brightness(10); */
}

.footer-certificates {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

.footer-certificates span {
	background: rgba(255, 255, 255, 0.1);
	padding: 0.6rem 1.2rem;
	border-radius: 6px;
	font-size: 1.4rem;
	border: 1px solid rgba(84, 172, 113, 0.3); /* lekki zielony akcent */
}

.footer-bottom {
	text-align: center;
	margin-top: 4rem;
	padding-top: 2.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 1.45rem;
}

.footer-note {
	opacity: 0.8;
	font-size: 1.4rem;
}

/* Mobile – wszystko w pionie, wycentrowane */
@media (max-width: 767px) {
	.footer-columns {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 3.5rem;
	}

	.footer-contact-list li,
	.footer-col ul li {
		justify-content: center;
	}

	.footer-logo-img {
		margin: 0 auto 2rem;
	}

	.footer-certificates {
		justify-content: center;
	}
}

/* --- NOWY LAYOUT STRONY GŁÓWNEJ --- */

/* Naprawa głównego kontenera, żeby sekcje były pod sobą */
#main-content {
	flex-direction: column !important; /* Nadpisujemy 'row' z linii 103 */
	gap: 4rem;
	width: 100%;
}

/* Siatka dla 3 głównych kafelków */
.home-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
	gap: 3rem;
	width: 100%;
}

/* Wygląd pojedynczego kafla */
.big-card {
	background-color: var(--nav-bg);
	border: 1px solid var(--dropdown-border);
	border-radius: 1.2rem;
	overflow: hidden; /* Żeby zdjęcie nie wystawało */
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.big-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	border-color: var(--secondary-color);
}

[data-theme='dark'] .big-card {
	background-color: #242a25; /* Dopasowane do Twojego dark mode */
}

/* Miejsce na zdjęcia w kafelkach */
.card-img {
	height: 20rem;
	width: 100%;
	background-color: var(--secondary-color); /* Kolor zastępczy */
	background-size: cover;
	background-position: center;
	position: relative;
}

/* Tutaj podmień URL na swoje zdjęcia */
.service-img {
	background-image: url('/files/img/bg1.jpg');
}
.training-img {
	background-image: url('/files/img/LW3.jpg');
}
.pricing-img {
	background-color: var(--primary-color);
	opacity: 0.8;
}

/* Treść w środku kafla */
.card-body {
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.card-body h3 {
	font-family: 'Anta Regular', sans-serif;
	font-size: 2.4rem;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

.card-intro {
	font-weight: 600;
	margin-bottom: 1.5rem;
	font-size: 1.7rem;
}

.card-list {
	list-style: none;
	margin-bottom: 2.5rem;
	padding-left: 0.5rem;
	flex-grow: 1; /* Popycha przycisk na sam dół */
}

.card-list li {
	margin-bottom: 0.8rem;
	font-size: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.8rem;
	opacity: 0.9;
}

.card-list li::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	background-color: var(--primary-color);
	border-radius: 50%;
}

/* Przycisk w kafelku */
.btn-card {
	align-self: flex-start;
	padding: 1rem 2rem;
	border: 2px solid var(--primary-color);
	border-radius: 3rem;
	font-weight: 600;
	font-size: 1.5rem;
	transition: all 0.3s ease;
	width: 100%;
	justify-content: center;
}

.btn-card:hover {
	background-color: var(--primary-color);
	color: white !important;
	text-decoration: none;
}

/* --- DUŻY PASEK KONTAKTOWY NA DOLE --- */
.contact-strip {
	background-color: var(--primary-color);
	color: white;
	padding: 4rem 3rem;
	border-radius: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 3rem;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	margin-bottom: 2rem;
}

.contact-content h3 {
	font-family: 'Anta Regular', sans-serif;
	font-size: 2.6rem;
	margin-bottom: 0.5rem;
	color: white;
}

.contact-content p {
	font-size: 1.7rem;
	opacity: 0.9;
	margin: 0;
}

.btn-cta {
	background-color: white;
	color: var(--primary-color) !important;
	padding: 1.2rem 3.5rem;
	border-radius: 3rem;
	font-weight: bold;
	font-size: 1.6rem;
	white-space: nowrap;
	transition: transform 0.2s;
}

.btn-cta:hover {
	transform: scale(1.05);
	background-color: #f0f0f0;
	text-decoration: none;
}

/* Poprawka na telefony */
@media (max-width: 900px) {
	.contact-strip {
		flex-direction: column;
		text-align: center;
	}

	.home-grid {
		grid-template-columns: 1fr; /* Jeden pod drugim */
	}
}
