/* Hero */

.hero {
	padding-top: var(--space-5);
}

@media (min-width: 1024px) {
	.hero {
		padding-top: var(--space-6);
	}
}

.hero__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-7);
}

.hero__content {
	max-width: 520px;
}

.hero__heading {
	font-size: var(--text-3xl);
}

.hero__heading-dark {
	color: var(--color-navy-dark);
}

.hero__heading-coral {
	color: var(--color-coral);
}

.hero__heading-navy {
	color: var(--color-navy);
}

.hero__description {
	font-size: var(--text-lg);
	margin-top: var(--space-4);
	margin-bottom: var(--space-6);
}

.hero__media img {
	width: 100%;
	filter: drop-shadow(0 16px 28px rgba(45, 58, 85, 0.14));
}

@media (min-width: 1024px) {
	.hero__inner {
		flex-direction: row;
		align-items: center;
		gap: var(--space-9);
	}

	.hero__content {
		flex: 1;
	}

	.hero__media {
		flex: 1.3;
	}

	.hero__heading {
		font-size: var(--text-4xl);
	}
}

/* Kategorie */

.categories-section {
	padding-top: var(--space-5);
}

@media (min-width: 1024px) {
	.categories-section {
		padding-top: var(--space-6);
	}
}

.category-card-media {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-4);
	background: var(--color-neutral-light);
}

.category-card-media img {
	width: clamp(150px, 68%, 250px);
	height: auto;
	object-fit: contain;
	transition: transform 0.2s ease;
}

/* Bardzo jasne, indywidualne tinty tła pod grafiką każdej kategorii startowej.
   Nowe kategorie dodane później dostają domyślne --color-neutral-light,
   dopóki nie dopiszemy dla nich osobnego tintu. */
.category-tint-jezyk {
	background: #EAF7F5;
}

.category-tint-matematyka {
	background: #FFF2E7;
}

.category-tint-swiat-wokol-nas {
	background: #EEF8EC;
}

.category-tint-gry-i-zabawy {
	background: #F2F0FC;
}

.category-tint-tworcze-zabawy {
	background: #FFF3E9;
}

.category-tint-rozwoj-i-samodzielnosc {
	background: #EDF8F2;
}

.grid-categories .card-title {
	overflow-wrap: break-word;
}

.grid-categories .card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

.grid-categories .card:hover .category-card-media img {
	transform: scale(1.03);
}

.categories-see-all {
	text-align: center;
	margin-top: var(--space-7);
}

/* Newsletter */

.newsletter {
	background: var(--color-navy);
	color: #fff;
	padding-block: var(--space-6);
}

@media (min-width: 1024px) {
	.newsletter {
		padding-block: var(--space-7);
	}
}

.newsletter h2 {
	color: #fff;
}

.newsletter__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	align-items: center;
	text-align: center;
}

.newsletter__content {
	max-width: 480px;
}

.newsletter__form {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin-top: var(--space-5);
}

.newsletter__form .form-field {
	text-align: left;
}

.newsletter__media img {
	max-width: 360px;
	width: 100%;
}

.newsletter__message {
	margin-top: var(--space-4);
	font-weight: 600;
}

.newsletter__message--error {
	color: var(--color-yellow);
}

@media (min-width: 768px) {
	.newsletter__form {
		flex-direction: row;
		align-items: flex-start;
	}

	.newsletter__form .form-field {
		flex: 1;
	}
}

@media (min-width: 1024px) {
	.newsletter__inner {
		flex-direction: row;
		text-align: left;
		justify-content: space-between;
	}

	.newsletter__content {
		text-align: left;
	}
}
