@font-face {
	font-family: "Roboto";
	src: url("fonts/Roboto-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Zmienne kolorów - tryb jasny i ciemny */
:root {
	--bg: #ffffff;
	--text: #222222;
	--accent: #2b8a3e;
	--secondary-bg: #f7f7f7;
	--button-bg: #2b8a3e;
	--button-text: #ffffff;
	--border-color: #e0e0e0;
}

/* Reset stylów i podstawowa typografia */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: "Roboto", Arial, sans-serif;
	font-weight: 700;
	line-height: 1.6;
	background-color: var(--bg);
	color: var(--text);
	transition: background-color 0.3s, color 0.3s;
}

/* Tryb ciemny ręcznie przełączany */
body.dark-mode {
	--bg: #121212;
	--text: #f0f0f0;
	--accent: #7bd67b;
	--secondary-bg: #1e1e1e;
	--button-bg: #7bd67b;
	--button-text: #121212;
	--border-color: #333333;
}

/* Layout sekcji */
section {
	padding: 4rem 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem;
}

.banner {
	background: var(--secondary-bg);
	text-align: center;
	padding: 5rem 1rem;
}

.banner .content {
	max-width: 600px;
	margin: auto;
}

.banner h1 {
	font-size: 2.5rem;
	color: var(--accent);
	margin-bottom: 0.5rem;
}

.banner p.major {
	font-size: 1.25rem;
	margin-bottom: 2rem;
}

.banner .button {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	background: var(--button-bg);
	color: var(--button-text);
	border-radius: 2rem;
	text-decoration: none;
	font-size: 1rem;
	transition: background 0.3s, transform 0.2s;
}

.banner .button:hover {
	background: var(--accent);
	transform: scale(1.05);
}

/* Obrazki */
.image img {
	max-width: 100%;
	height: auto;
	border-radius: 1rem;
}

/* Sekcja treści */
#first .content {
	flex: 1;
	min-width: 280px;
}

#first .image {
	flex: 1;
	min-width: 280px;
	text-align: center;
}

#first ul {
	margin-top: 1rem;
	padding-left: 1.2rem;
	list-style: disc;
}

/* Galeria */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.gallery article {
	background: var(--secondary-bg);
	border: 1px solid var(--border-color);
	border-radius: 1rem;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}

.gallery article:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.gallery img {
	width: 100%;
	display: block;
}

.gallery .caption {
	padding: 1rem;
}

/* Sekcja funkcji */
.wrapper {
	background: var(--secondary-bg);
}

.wrapper .inner {
	max-width: 1000px;
	margin: auto;
	text-align: center;
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
	text-align: left;
}

.features section {
	background: var(--bg);
	padding: 1.5rem;
	border-radius: 1rem;
	border: 1px solid var(--border-color);
	transition: box-shadow 0.3s;
}

.features section:hover {
	box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.icon {
	font-size: 2rem;
	color: var(--accent);
	margin-bottom: 0.5rem;
	display: inline-block;
}

/* Stopka */
footer {
	text-align: center;
	padding: 2rem 1rem;
	background: var(--bg);
	border-top: 1px solid var(--border-color);
}

footer ul.icons {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

footer a {
	color: var(--accent);
	font-size: 1.5rem;
	text-decoration: none;
}

footer a:hover {
	opacity: 0.8;
}

/* Przycisk zmiany trybu */
.theme-toggle {
	position: fixed;
	top: 1rem;
	right: 1rem;
	background: var(--button-bg);
	color: var(--button-text);
	border: none;
	border-radius: 50%;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.3s, transform 0.2s;
	z-index: 999;
}

.theme-toggle:hover {
	transform: rotate(15deg);
	background: var(--accent);
}

/* Responsywność */
@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}
	section {
		padding: 2rem 1rem;
	}
}

.icon .label {
	font-family: "Roboto", Arial, sans-serif;
	font-weight: 700;
	font-size: 1rem;
	margin-left: 0.5rem;
	vertical-align: middle;
}
