:root {
	--color-bg: #264653;
	--color-text: #e0e0e0;
	--color-header-bg: #2a9d8f;
	--color-brand-text: #e9c46a;
	--color-button-bg: #f4a261;
	--color-button-bg-hover: #e76f51;
	--color-feature-bg: #264653;
	--color-footer-bg: #2a9d8f;
	--color-faq-bg: #fff;
	--color-faq-text: #333;
	--color-faq-question-bg: #f4a261;
	--color-faq-question-hover: #e76f51;
	--color-container-bg: #2a9d8f;
	--transition-duration: 0.3s;
	--box-radius: 5px;
	--font-family-main: 'Spline Sans', 'Segoe UI', Tahoma, Geneva, Verdana,
		sans-serif;
	--font-family-heading: 'Outfit', Arial, sans-serif;
}

/* RESET I PODSTAWA */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-family-main);
	background: var(--color-bg);
	color: var(--color-text);
	line-height: 1.6;
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: inherit;
}

/* HEADER */
.header {
	background: var(--color-header-bg);
	padding: 20px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.brand {
	display: flex;
	align-items: center;
	font-family: var(--font-family-heading);
	font-size: 1.8rem;
	font-weight: bold;
	color: var(--color-brand-text);
}

.brand img {
	height: 50px;
	margin-right: 10px;
}

.navigation a {
	margin-right: 20px;
	font-weight: 500;
	color: var(--color-text);
}
.navigation a:last-child {
	margin-right: 0;
}

/* Globalne style dla nagłówków */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-heading);
}

/* UNIWERSALNE ODSTĘPY DLA NAGŁÓWKÓW I PARAGRAFÓW */
h2 {
	font-size: 2rem;
	margin-top: 2rem; /* większy odstęp od poprzedniej sekcji */
	margin-bottom: 1rem; /* odstęp pod nagłówkiem */
	color: var(--color-brand-text);
}

p {
	margin-bottom: 1.5rem; /* większy odstęp między akapitami */
	line-height: 1.6;
}

/* STYLE LIST */
ul,
ol {
	margin: 1rem 0; /* odstęp przed i po liście */
	padding-left: 1.5rem; /* odstęp wewnętrzny dla wypunktowania */
	list-style-position: outside;
}

li {
	margin-bottom: 0.5rem; /* odstęp między elementami listy */
	line-height: 1.5;
}

ul li a,
ol li a {
	color: var(--color-button-bg);
	transition: color var(--transition-duration);
}

ul li a:hover,
ol li a:hover {
	color: var(--color-button-bg-hover);
}

/* HERO (STRONA GŁÓWNA) */
.hero {
	text-align: center;
	padding: 40px 20px;
	background: var(--color-bg);
}

.hero h1,
.container h1 {
	font-family: var(--font-family-heading);
	font-size: 2.5rem;
	margin-bottom: 20px;
	color: var(--color-brand-text);
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 40px;
}

.cta-buttons {
	display: inline-flex;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: center;
}

.cta-buttons a {
	background: var(--color-button-bg);
	padding: 15px 30px;
	border-radius: var(--box-radius);
	font-size: 1rem;
	color: #fff;
	transition: background var(--transition-duration);
}
.cta-buttons a:hover {
	background: var(--color-button-bg-hover);
}

/* ANIMACJA - KOMPONENT W ADRES-BAR */
#animation-component {
	margin: 100px auto;
	max-width: 600px;
	position: relative;
}

.address-bar {
	background: #fff;
	border: 2px solid #ccc;
	border-radius: 5px;
	padding: 12px 15px;
	font-size: 1.5rem;
	width: 70%;
	max-width: 600px;
	display: inline-block;
	position: relative;
	min-height: 40px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	color: #333;
	text-align: left;
}

.cursor {
	display: inline-block;
	background: #333;
	width: 2px;
	height: 1.2em;
	vertical-align: middle;
	margin-left: 0;
	animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
	0%,
	50% {
		opacity: 1;
	}
	51%,
	100% {
		opacity: 0;
	}
}

.url-bubble {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 8px;
	width: 100%;
	height: 64px;
	background: linear-gradient(
		to bottom,
		#fbfbfb 0%,
		#c7c7c7 50%,
		rgba(38, 70, 83, 1) 100%
	);
	border-radius: 4px;
	padding: 8px 12px;
	font-size: 1rem;
	display: none;
	animation: fadeIn 0.5s ease-in-out forwards;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px) translateX(-50%);
	}
	to {
		opacity: 1;
		transform: translateY(0) translateX(-50%);
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translateY(0) translateX(-50%);
	}
	to {
		opacity: 0;
		transform: translateY(-10px) translateX(-50%);
	}
}

.window-buttons {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	gap: 6px;
}

.window-buttons .button {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.window-buttons .button.red {
	background: #ff5f57;
}

.window-buttons .button.yellow {
	background: #ffbd2e;
}

.window-buttons .button.green {
	background: #28c940;
}

.url-content {
	text-align: center;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: -8px;
}

@media (max-width: 600px) {
	.url-content {
		margin-left: 53px;
		text-align: left;
	}
}

/* FEATURES (STRONA GŁÓWNA) */
.features {
	padding: 40px 20px 120px 20px;
	background: var(--color-header-bg);
	color: #fff;
	text-align: center;
}

.features h2 {
	font-family: var(--font-family-heading);
	font-size: 2rem;
	margin-bottom: 20px;
}

.features p {
	max-width: 800px;
	margin: 0 auto 40px auto;
	font-size: 1.1rem;
	line-height: 1.8;
}

.feature-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.feature-item {
	background: var(--color-feature-bg);
	padding: 20px;
	border-radius: 8px;
	width: 280px;
	transition: transform 0.3s;
}
.feature-item:hover {
	transform: translateY(-5px);
}
.feature-item h3 {
	font-family: var(--font-family-heading);
	margin-bottom: 10px;
	font-size: 1.2rem;
	color: var(--color-brand-text);
}
.feature-item p {
	font-size: 0.95rem;
}

/* SUBPAGE LINK (STRONA GŁÓWNA) */
.subpage-link {
	text-align: center;
	padding: 80px 20px;
	background: var(--color-bg);
}
.subpage-link a {
	background: var(--color-button-bg);
	padding: 12px 24px;
	border-radius: var(--box-radius);
	font-size: 1rem;
	color: #fff;
	transition: background var(--transition-duration);
}
.subpage-link a:hover {
	background: var(--color-button-bg-hover);
}

/* FOOTER */
.footer {
	background: var(--color-footer-bg);
	padding: 20px;
	text-align: center;
	font-size: 0.9rem;
	color: var(--color-brand-text);
}

/* PODSTRONY – PODSTAWOWY UKŁAD KONTENERA */
.container {
	max-width: 900px;
	margin: 40px auto;
	background: var(--color-container-bg);
	border-radius: 8px;
	padding: 30px 40px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* FAQ – STYL AKORDEONU */
.faq-container {
	background: var(--color-faq-bg);
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	color: var(--color-faq-text);
}
.faq-item {
	border-bottom: 1px solid #ddd;
}
.faq-item:last-child {
	border-bottom: none;
}
.faq-question {
	padding: 15px;
	cursor: pointer;
	position: relative;
	font-weight: 600;
	transition: background var(--transition-duration);
	background: var(--color-faq-question-bg);
	color: var(--color-bg);
	border-radius: 4px;
	margin-bottom: 5px;
}
.faq-question:hover {
	background: var(--color-faq-question-hover);
	color: #fff;
}
.faq-question::after {
	content: '+';
	font-size: 1.2rem;
	position: absolute;
	right: 20px;
	transition: transform var(--transition-duration);
}
.faq-question.active::after {
	content: '-';
	transform: rotate(180deg);
}
.faq-answer {
	max-height: 0;
	overflow: hidden;
	padding: 0 15px;
	background: #fafafa;
	transition: max-height 0.4s ease;
	border-radius: 4px;
}
.faq-answer p {
	padding: 15px 0;
	color: #333;
}

/* FEEDBACK (LINK DO OPINII) */
.feedback {
	text-align: center;
	margin-top: 20px;
}
.feedback a {
	color: var(--color-brand-text);
	text-decoration: none;
	font-size: 1rem;
	transition: text-decoration var(--transition-duration);
}
.feedback a:hover {
	text-decoration: underline;
}

/* MEDIA QUERIES */
@media (max-width: 600px) {
	.hero h1 {
		font-size: 2rem;
	}

	.feature-item {
		width: 100%;
	}

	.address-bar {
		font-size: 1.2rem;
		padding: 15px 10px;
	}

	.container {
		padding: 15px;
	}

	.faq-question,
	.faq-answer {
		padding: 10px;
	}
}
/* --- Desktop by default --- */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.hamburger {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-text);
	position: relative;
}
.hamburger::before,
.hamburger::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 2px;
	background: var(--color-text);
	left: 0;
}
.hamburger::before {
	top: -6px;
}
.hamburger::after {
	top: 6px;
}

/* shrink support button */
.support img {
	height: 40px !important;
	width: auto !important;
}

/* --- Mobile styles --- */
@media (max-width: 768px) {
	.header {
		flex-wrap: wrap;
		position: relative;
	}

	/* show hamburger, hide nav links */
	.nav-toggle {
		display: block;
	}
	.navigation {
		display: none;
		flex-direction: column;
		width: 100%;
		background: var(--color-header-bg);
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 10;
	}
	.navigation.open {
		display: flex;
	}
	.navigation a {
		padding: 12px 20px;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}

	/* make support button a bit smaller and inline */
	.support {
		display: block;
		margin: 10px auto 0;
		padding: 5px;
	}
}
