@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	color: #1f2937;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;

	/* Tło powtarzające się */
	background-image: url('../templates/chat.png');
	background-repeat: repeat; /* powtarza w poziomie i pionie */
	background-position: top left; /* start powtarzania w lewym górnym rogu */
	background-size: auto; /* zachowaj naturalny rozmiar obrazka */
	background-color: #f4f6f8; /* fallback jeśli obrazek się nie wczyta */
}

.wrapper {
	flex: 1;
}

.menu {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	padding: 10px;
	max-width: 1200px;
	margin: 20px auto;
	border-radius: 20px;
	font-size: 25px;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.menu ul {
	display: flex;
	justify-content: center;
	list-style: none;
	flex-wrap: wrap;
}

.menu li {
	border-right: 1px solid rgba(255, 255, 255, 0.85);
}

.menu li:last-child {
	border-right: none;
}

.menu a {
	display: block;
	padding: 15px 40px;
	color: #00547e;
	text-decoration: none;
	transition: 0.3s ease;
}

.menu a:hover {
	background-color: #0284c7;
	color: #ffffff;
	border-radius: 20px;
}

.menu img {
	display: block;
	width: 210px;
	height: 62px;
}

@media (max-width: 600px) {
	.menu ul {
		flex-direction: column;
		align-items: center;
	}

	.menu li:first-child {
		margin-bottom: 10px;
	}

	.menu ul li:not(:first-child) {
		display: inline-block;
	}

	.menu ul {
		row-gap: 8px;
	}

	.menu ul li:not(:first-child) a {
		padding: 8px 12px;
		font-size: 14px;
	}
}

.content {
	max-width: 900px;
	margin: 60px auto;
	padding: 0 20px;
	text-align: center;
}

.card {
	background: rgba(255, 255, 255, 0.95);
	color: #1f2937;
	border-radius: 20px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(6px);
	transition: all 0.3s ease;
}

.card h1,
.card h2,
.card h3 {
	color: #00547e;
	font-weight: 500;
	margin-bottom: 20px;
}

.card p,
.card li {
	color: #1f2937;
	font-size: 18px;
	line-height: 1.6;
	list-style-type: none;
}

.card a {
	color: #0284c7;
	transition: 0.2s ease;
	text-decoration: none;
}

.card a:hover {
	color: #00547e;
}

.cards-row {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

.cards-row .card {
	flex: 1 1 300px;
	max-width: 350px;
	max-height: 200px;
	overflow: hidden;
	cursor: pointer;
	transition:
		max-height 0.5s ease,
		box-shadow 0.3s ease;
}

.cards-row .card:hover {
	max-height: 1000px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.footer {
	background-color: #f4f6f8;
	padding: 20px;
	color: #1f2937;
	border-top: 1px solid #e2e8f0;
}

.footer-content {
	max-width: 900px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
}

.footer-card {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 20px;
	padding: 15px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.footer-card h2,
.footer-card h3 {
	color: #00547e;
	font-weight: 500;
	margin-bottom: 10px;
}

.footer-card p,
.footer-card li {
	font-size: 14px;
	line-height: 1.5;
	color: #1f2937;
}

.footer-card ul {
	list-style: none;
	padding: 0;
}

.footer-card ul li {
	margin-bottom: 6px;
}

.footer-card a {
	color: #0284c7;
	text-decoration: none;
	transition: 0.2s ease;
}

.footer-card a:hover {
	color: #00547e;
}

.footer-bottom {
	margin-top: 20px;
	padding-top: 10px;
	border-top: 1px solid #e2e8f0;
	text-align: center;
	font-size: 13px;
	color: #1f2937;
}

@media (max-width: 600px) {
	.menu a {
		padding: 10px 15px;
		font-size: 15px;
	}

	.content,
	.wrapper {
		padding: 0 10px;
	}

	.card {
		padding: 15px;
	}

	.footer-card {
		padding: 10px;
	}

	.footer-content {
		grid-template-columns: 1fr;
	}
}
