/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Manrope:wght@600;700&display=swap');

/* CSS Variables */
:root {
	--bg-color: #0d1b2a;
	--text-color: #e0e1dd;
	--primary-accent-color: #00a8e8;
	--secondary-bg-color: #1b263b;
	--secondary-text-color: #778da9;
	--font-heading: 'Manrope', sans-serif;
	--font-body: 'Inter', sans-serif;
}

/* Global Styles & Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
	font-size: 16px;
}

.container {
	max-width: 1200px;
	width: 90%;
	margin: 0 auto;
}

a {
	color: var(--primary-accent-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--text-color);
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	display: block;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	color: var(--text-color);
	font-weight: 700;
}

/* Header */
.header {
	background-color: rgba(13, 27, 42, 0.8);
	backdrop-filter: blur(10px);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--secondary-bg-color);
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--text-color);
}

.header__nav {
	display: none;
}

.header__nav-list {
	display: flex;
	gap: 2rem;
}

.header__nav-link {
	color: var(--text-color);
	font-weight: 500;
	position: relative;
	padding: 0.25rem 0;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-accent-color);
	transition: width 0.3s ease-in-out;
}

.header__nav-link:hover::after {
	width: 100%;
}

.header__burger-btn {
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	display: block;
}

/* Mobile Navigation */
.mobile-nav {
	position: fixed;
	top: 0;
	left: -100%;
	width: 80%;
	max-width: 300px;
	height: 100%;
	background-color: var(--secondary-bg-color);
	z-index: 101;
	transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	padding: 2rem;
	display: flex;
	flex-direction: column;
}

.mobile-nav--open {
	left: 0;
}

.mobile-nav__close-btn {
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
}

.mobile-nav__list {
	margin-top: 3rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.mobile-nav__link {
	color: var(--text-color);
	font-size: 1.25rem;
}

/* Footer */
.footer {
	background-color: var(--secondary-bg-color);
	padding: 4rem 0 2rem;
	border-top: 1px solid var(--secondary-text-color);
}

.footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	margin-bottom: 3rem;
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--text-color);
	margin-bottom: 1rem;
}

.footer__tagline {
	color: var(--secondary-text-color);
	max-width: 250px;
}

.footer__heading {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	color: var(--text-color);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__link,
.footer__address {
	color: var(--secondary-text-color);
}
.footer__link:hover {
	color: var(--primary-accent-color);
}

.footer__bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid var(--secondary-text-color);
	color: var(--secondary-text-color);
	font-size: 0.9rem;
}

/* Responsive Styles */
@media (min-width: 768px) {
	.footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.header__nav {
		display: block;
	}
	.header__burger-btn {
		display: none;
	}
	.footer__grid {
		grid-template-columns: 3fr 2fr 2fr 3fr;
	}
}

/* --- Hero Section --- */
.hero {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4rem 0;
	overflow: hidden; /* Важливо для canvas */
}

.hero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__container {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero__title {
	font-size: 2.5rem;
	line-height: 1.2;
	max-width: 800px;
	margin-bottom: 1.5rem;
}

.hero__subtitle {
	font-size: 1.1rem;
	color: var(--secondary-text-color);
	max-width: 600px;
	margin-bottom: 2.5rem;
}

.btn {
	display: inline-block;
	padding: 0.8rem 2.5rem;
	border-radius: 50px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1rem;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.btn--primary {
	background-color: var(--primary-accent-color);
	color: var(--bg-color);
}

.btn--primary:hover {
	background-color: transparent;
	border-color: var(--primary-accent-color);
	color: var(--primary-accent-color);
	transform: translateY(-3px);
}

/* Responsive for Hero */
@media (min-width: 768px) {
	.hero__title {
		font-size: 3.5rem;
	}

	.hero__subtitle {
		font-size: 1.25rem;
	}
}

/* --- Global Section Styles --- */
.section {
	padding: 5rem 0;
}

.section__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3.5rem;
}

.section__title {
	font-size: 2.2rem;
	margin-bottom: 1rem;
}

.section__subtitle {
	font-size: 1.1rem;
	color: var(--secondary-text-color);
	line-height: 1.7;
}

/* --- About Section --- */
.about {
	background-color: var(--secondary-bg-color);
}

.about__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.about__card {
	background-color: var(--bg-color);
	padding: 2.5rem 2rem;
	border-radius: 12px;
	border: 1px solid transparent;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.about__card:hover {
	transform: translateY(-8px);
	border-color: var(--primary-accent-color);
}

.about__icon-wrapper {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(0, 168, 232, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.about__icon-wrapper i {
	color: var(--primary-accent-color);
	width: 28px;
	height: 28px;
}

.about__card-title {
	font-size: 1.4rem;
	margin-bottom: 0.75rem;
}

.about__card-text {
	color: var(--secondary-text-color);
}

/* Responsive for About Section */
@media (min-width: 768px) {
	.about__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.section__title {
		font-size: 2.8rem;
	}
}

/* --- Features Section --- */
.features {
	padding: 5rem 0;
}

.features__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

.features__grid:not(:last-child) {
	margin-bottom: 4rem;
}

.features__image-wrapper {
	border-radius: 12px;
	overflow: hidden;
}

.features__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.features__title {
	font-size: 1.8rem;
	margin-bottom: 1rem;
}

.features__text {
	color: var(--secondary-text-color);
	margin-bottom: 1.5rem;
	line-height: 1.7;
}

.features__list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.features__list-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.features__list-item i {
	color: var(--primary-accent-color);
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

/* Responsive for Features Section */
@media (min-width: 992px) {
	.features__grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}

	/* Reverse order for the second feature block */
	.features__grid:nth-child(3) .features__image-wrapper {
		order: 2;
	}
}

/* --- FAQ Section --- */
.faq {
	background-color: var(--secondary-bg-color);
}

.faq__accordion {
	max-width: 800px;
	margin: 0 auto;
	border-top: 1px solid var(--secondary-text-color);
}

.faq__item {
	border-bottom: 1px solid var(--secondary-text-color);
}

.faq__question {
	width: 100%;
	background: none;
	border: none;
	padding: 1.5rem 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
	cursor: pointer;
	font-family: var(--font-heading);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-color);
}

.faq__question:hover {
	color: var(--primary-accent-color);
}

.faq__icon {
	flex-shrink: 0;
	transition: transform 0.3s ease-in-out;
}

.faq__question.active .faq__icon {
	transform: rotate(180deg);
}

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out;
}

.faq__answer p {
	padding-bottom: 1.5rem;
	color: var(--secondary-text-color);
	line-height: 1.7;
}

/* --- Contact Section --- */
.contact {
	padding: 5rem 0;
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	background-color: var(--secondary-bg-color);
	padding: 2rem;
	border-radius: 12px;
}

.contact__title {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.contact__text {
	color: var(--secondary-text-color);
	margin-bottom: 2rem;
	line-height: 1.7;
}

.contact__notice {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background-color: rgba(0, 168, 232, 0.1);
	padding: 1rem;
	border-radius: 8px;
	color: var(--text-color);
}

.contact__notice i {
	color: var(--primary-accent-color);
	flex-shrink: 0;
}

/* Form Styles */
.form-group {
	position: relative;
	margin-bottom: 1.5rem;
}

.form-input {
	width: 100%;
	padding: 1rem;
	background-color: var(--bg-color);
	border: 1px solid var(--secondary-text-color);
	border-radius: 8px;
	color: var(--text-color);
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--primary-accent-color);
}

.form-input::placeholder {
	color: transparent;
}

.form-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: var(--secondary-text-color);
	pointer-events: none;
	transition: all 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
	top: -0.7rem;
	left: 0.8rem;
	font-size: 0.8rem;
	background-color: var(--secondary-bg-color);
	padding: 0 0.25rem;
}

.form-checkbox-wrapper {
	margin-bottom: 1.5rem;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.form-checkbox {
	margin-top: 0.25rem;
	accent-color: var(--primary-accent-color);
	width: 1rem;
	height: 1rem;
}

.form-checkbox-label {
	color: var(--secondary-text-color);
	font-size: 0.9rem;
}

.form-checkbox-label a {
	text-decoration: underline;
}

.btn--full-width {
	width: 100%;
	font-size: 1.1rem;
}

/* Success Message */
.contact__success-message {
	display: none; /* Hidden by default */
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	border: 1px solid var(--primary-accent-color);
	border-radius: 8px;
	background-color: var(--bg-color);
}

.contact__success-message.active {
	display: flex; /* Shown via JS */
}

.contact__success-icon {
	color: var(--primary-accent-color);
	margin-bottom: 1rem;
}

.contact__success-icon i {
	width: 48px;
	height: 48px;
}

.contact__success-title {
	font-size: 1.8rem;
	margin-bottom: 0.5rem;
}

.contact__success-text {
	color: var(--secondary-text-color);
}

@media (min-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr 1fr;
		padding: 4rem;
		gap: 4rem;
	}
}

/* --- Additional Button Styles --- */
.btn--small {
	padding: 0.5rem 1.5rem;
	font-size: 0.9rem;
}

/* --- Cookie Pop-up --- */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--secondary-bg-color);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	padding: 1.5rem 0;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.active {
	bottom: 0; /* Shown via JS */
}

.cookie-popup__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	max-width: 1200px;
	width: 90%;
	margin: 0 auto;
}

.cookie-popup__text {
	color: var(--secondary-text-color);
	text-align: center;
}

.cookie-popup__text a {
	color: var(--primary-accent-color);
	text-decoration: underline;
}

@media (min-width: 768px) {
	.cookie-popup__content {
		flex-direction: row;
	}
	.cookie-popup__text {
		text-align: left;
	}
}

/* --- Policy & Static Pages Styles --- */
.pages {
	padding: 4rem 0;
	min-height: 70vh; /* Щоб футер не підстрибував на коротких сторінках */
}

.pages .container {
	max-width: 800px; /* Обмежуємо ширину рядка для кращої читабельності */
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--secondary-bg-color);
	padding-bottom: 1rem;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 1.2rem;
}

.pages p {
	color: var(--secondary-text-color);
	margin-bottom: 1.5rem;
	line-height: 1.8;
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 1.5rem;
	color: var(--secondary-text-color);
}

.pages li {
	margin-bottom: 0.75rem;
	padding-left: 5px;
}

.pages a {
	color: var(--primary-accent-color);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: all 0.2s ease;
}

.pages a:hover {
	color: var(--text-color);
	text-decoration: none;
}

.pages strong {
	color: var(--text-color);
	font-weight: 500;
}

@media (min-width: 768px) {
	.pages h1 {
		font-size: 2.8rem;
	}
}
