:root {
	--primary: #1976d2;
	--accent: #ffb300;
	--bg-main: #f9fcff;
	--bg-card: #fff;
	--text-main: #222;
	--radius: 1.25em;
	--shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	--shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.14);
	--transition: 0.5s cubic-bezier(0.25, 0.1, 0.35, 1.7);
	--header-height: 60px; /* Approximate header height */
}

*,
*::after,
*::before {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	font-family: 'Segoe UI', sans-serif;
	background: var(--bg-main);
	color: var(--text-main);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
/* Class to prevent scrolling when mobile menu is open */
body.no-scroll {
	overflow: hidden;
}
a {
	color: var(--primary);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 2em; /* Adjusted padding for consistent height */
	height: var(--header-height);
	background: #fff;
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}
.logo {
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-weight: bold;
	font-size: 1.3em;
	color: var(--primary);
	letter-spacing: 0.03em;
}

.logo img {
	height: 30px;
	width: auto;
}

nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.2em;
	margin: 0;
	padding: 0;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
	display: none; /* Hidden by default, shown in media query */
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 10px; /* Clickable area */
	z-index: 1002; /* Above nav, below potential modal */
	order: 1; /* Ensure it's on the right */
}

.hamburger-icon {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-main);
	position: relative;
	transition: background-color 0.2s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--text-main);
	transition: transform 0.2s ease-in-out, top 0.2s ease-in-out;
}

.hamburger-icon::before {
	top: -8px;
}

.hamburger-icon::after {
	top: 8px;
}

/* Styles for "X" close icon when menu is open */
.menu-toggle[aria-expanded='true'] .hamburger-icon {
	background-color: transparent;
}

.menu-toggle[aria-expanded='true'] .hamburger-icon::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .hamburger-icon::after {
	top: 0;
	transform: rotate(-45deg);
}

.section {
	opacity: 0.9;
	transform: scale(0.95);
	background: var(--bg-card);
	margin: 2em auto;
	max-width: 1240px;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 2.5em 1.75em;
	transition: opacity var(--transition), transform var(--transition);
	will-change: opacity, transform;
}
.section-content {
	display: flex;
	align-items: center;
	gap: 2.5em;
	flex-wrap: wrap;
}
.section img,
.card img {
	max-width: 400px;
	width: 100%;
	border-radius: 1em;
	box-shadow: var(--shadow);
	height: auto;
	display: block;
}
.section h1,
.section h2 {
	margin-top: 0;
	color: var(--primary);
}
.section h2 {
	margin-bottom: 0.5em;
}
.cards {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
	justify-content: center;
	margin-top: 1.5em;
}
.card {
	background: var(--bg-main);
	border-radius: 1em;
	box-shadow: var(--shadow);
	padding: 1.25em 1em;
	width: 300px;
	transition: box-shadow 0.25s;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 420px;
}
.card:hover {
	box-shadow: var(--shadow-hover);
}
.card img {
	width: 110px;
	margin-top: 0.5em;
	margin-bottom: 1em;
}
.emojis {
	font-size: 3em;
	display: flex;
	gap: 0.5em;
}
.section .emojis {
	align-items: center;
}
blockquote {
	border-left: 4px solid var(--accent);
	padding-left: 1em;
	color: #444;
	background: #f4f7fa;
	border-radius: 6px;
	margin: 1.2em 0;
	font-style: italic;
}
.faq-list {
	margin-top: 2em;
	display: flex;
	flex-direction: column;
	gap: 1.1em;
}
.faq-item h3 {
	margin: 0 0 0.5em 0;
	color: var(--primary);
}
.faq-item p {
	margin: 0;
}
#contact {
	background: #f0faff;
	border: 2px solid #e1ecfa;
}
.contact-flex {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5em;
	justify-content: space-between;
}
#contact-form {
	display: flex;
	flex-direction: column;
	gap: 0.8em;
	width: 320px;
	max-width: 100%;
}
#contact-form input,
#contact-form textarea {
	border-radius: 0.7em;
	border: 1px solid #bbb;
	padding: 0.6em;
	font-size: 1em;
	background: #fff;
}
#contact-form button {
	background: var(--primary);
	color: #fff;
	padding: 0.7em;
	font-size: 1em;
	border: none;
	border-radius: 0.7em;
	cursor: pointer;
	transition: background 0.2s;
}
#contact-form button:hover {
	background: #155fa0;
}
.form-feedback {
	font-size: 1em;
	color: var(--primary);
	display: none;
	margin-top: 0.5em;
}
.links-legal {
	margin-top: 1.2em;
	font-size: 1em;
	opacity: 0.6;
}
footer {
	background: #eee;
	color: #222;
	padding: 1.5em 0 0 0;
	text-align: center;
	margin-top: auto;
}
.footer-grid {
	max-width: 1240px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	gap: 3em;
	flex-wrap: wrap;
	padding: 1.5em 2em;
	text-align: left;
}
.footer-contacts ul,
.footer-links ul {
	list-style: none;
	padding-left: 0;
	margin: 0 0 0.8em 0;
}
.footer-contacts li,
.footer-links li {
	font-size: 1em;
	margin: 0 0 0.5em 0;
	color: #333;
}
.footer-contacts h4,
.footer-links h4,
.footer-mainlinks h4 {
	margin-top: 0;
	margin-bottom: 0.7em;
	color: var(--primary);
	font-size: 1.1em;
	font-weight: 600;
}
.footer-links a,
.footer-mainlinks a {
	color: var(--primary);
	text-decoration: none;
}
.footer-links a:hover,
.footer-mainlinks a:hover {
	text-decoration: underline;
	color: var(--accent);
}
.footer-copy {
	font-size: 0.98em;
	padding: 1em 0 0.5em 0;
	opacity: 0.75;
	background: #eee;
	text-align: center;
}
.footer-mainlinks {
	margin-bottom: 1em;
}
.footer-mainlinks ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}
.footer-mainlinks li {
	font-size: 1.08em;
	margin-bottom: 0.6em;
}
.cookie-modal {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	background: rgba(14, 24, 42, 0.48);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4000;
	animation: fadeIn 0.4s;
}
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.cookie-modal-content {
	background: #fff;
	border-radius: 1em;
	padding: 2.5em 2em;
	max-width: 360px;
	box-shadow: var(--shadow-hover);
	text-align: center;
}
.cookie-modal button {
	margin: 1.1em 0.5em 0 0;
	padding: 0.7em 1.6em;
	border-radius: 2em;
	border: none;
	font-size: 1em;
	background: var(--primary);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s;
}
.cookie-modal button#decline-cookies {
	background: #aaa;
}
.cookie-modal button:hover {
	background: var(--accent);
	color: #222;
}
.btn-cta {
	display: inline-block;
	background: var(--accent);
	color: #222;
	padding: 0.7em 1.5em;
	font-size: 1em;
	font-weight: 500;
	border: none;
	border-radius: 0.7em;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
	text-decoration: none;
	margin-top: 1em;
	box-shadow: var(--shadow);
}
.btn-cta:hover {
	background: #ffc107;
	transform: translateY(-2px);
	text-decoration: none;
	color: #000;
	box-shadow: var(--shadow-hover);
}
@media (max-width: 820px) {
	.section-content,
	.contact-flex,
	.cards {
		flex-direction: column;
		gap: 1.2em;
		align-items: stretch;
	}
	header {
		padding: 0 1em; /* Adjusted padding for mobile header */
	}

	.menu-toggle {
		display: block; /* Show hamburger button */
	}

	header nav#main-nav {
		display: none; /* Hidden by default */
		position: absolute;
		top: var(--header-height); /* Position below the header */
		left: 0;
		width: 100%;
		background-color: #fff;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Softer shadow for dropdown */
		z-index: 999; /* Below header but above content */
		padding: 0.5em 0;
		border-top: 1px solid #eee;
	}

	header nav#main-nav.active {
		display: block; /* Show when active */
	}

	header nav#main-nav ul {
		flex-direction: column;
		align-items: stretch; /* Stretch items to full width */
		gap: 0; /* Remove gap for full-width items */
		width: 100%;
	}

	header nav#main-nav ul li {
		width: 100%;
		text-align: left; /* Align text to the left for a cleaner look */
		border-bottom: 1px solid #f0f0f0;
	}
	header nav#main-nav ul li:last-child {
		border-bottom: none;
	}

	header nav#main-nav ul li a {
		display: block;
		padding: 0.8em 1.5em; /* Padding for touch targets */
		width: 100%;
		box-sizing: border-box;
		color: var(--text-main);
	}
	header nav#main-nav ul li a:hover {
		background-color: var(--bg-main);
		color: var(--primary);
		text-decoration: none;
	}

	.section {
		padding: 1.5em 0.5em;
	}
	.card {
		width: 96%;
		min-width: 0;
	}
	.footer-grid {
		flex-direction: column;

		gap: 0.6em;
		text-align: left;
	}
	.footer-mainlinks {
		margin-bottom: 0.4em;
	}
}
@media (max-width: 600px) {
	.section,
	.card {
		margin: 1.1em 0.2em;
		border-radius: 0.6em;
	}
	.section img,
	.card img {
		max-width: 100%;
	}
	.cookie-modal-content {
		padding: 1.3em 0.7em;
	}
	.footer-grid {
	}
}
.scale-on-scroll {
	opacity: 0.2;
	transform: scale(0.92);
	transition: opacity var(--transition), transform var(--transition);
}
.scale-on-scroll.visible {
	opacity: 1;
	transform: scale(1);
	z-index: 1;
}
