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

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--bg-color: #0d1117;
	--bg-secondary-color: #21262d;
	--primary-color: #2f81f7;
	--primary-color-hover: #4c9bff;
	--text-color: #e6edf3;
	--text-color-muted: #8b949e;

	/* Fonts */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Poppins', sans-serif;
	--h1-font-size: 2.5rem;
	--h2-font-size: 1.75rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Other */
	--header-height: 5rem;
	--border-radius: 0.5rem;
	--transition: all 0.3s ease;
}

/*=============== BASE ===============*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--bg-color);
	color: var(--text-color);
}

h1,
h2,
h3 {
	font-family: var(--title-font);
	font-weight: 700;
}

ul {
	list-style: none;
}

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

img {
	max-width: 100%;
	height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
	max-width: 1200px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(13, 17, 23, 0.8);
	backdrop-filter: blur(10px);
	z-index: 100;
	transition: var(--transition);
	border-bottom: 1px solid var(--bg-secondary-color);
}

.header__container {
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--text-color);
	transition: var(--transition);
}

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

.header__logo-icon {
	width: 32px;
	height: 32px;
}

.header__toggle {
	color: var(--text-color);
	font-size: 1.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	background: none;
	border: none;
}

@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--bg-color);
		padding: 2rem;
		transition: right 0.4s ease;
	}
}

.header__nav-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.header__nav-link {
	color: var(--text-color-muted);
	font-weight: 500;
	transition: var(--transition);
}

.header__nav-link:hover {
	color: var(--primary-color);
}

.header__nav-link--button {
	background-color: var(--primary-color);
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: var(--border-radius);
}

.header__nav-link--button:hover {
	background-color: var(--primary-color-hover);
	color: white;
}

/* Show menu */
.header__nav--show {
	right: 0;
}

/*=============== FOOTER ===============*/
.footer {
	background-color: var(--bg-secondary-color);
	padding-top: 4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	padding-bottom: 3rem;
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.footer__logo-icon {
	width: 32px;
	height: 32px;
}

.footer__description {
	color: var(--text-color-muted);
	font-size: var(--small-font-size);
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1.5rem;
}

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

.footer__link {
	color: var(--text-color-muted);
	font-size: var(--small-font-size);
	transition: var(--transition);
}

.footer__link:hover {
	color: var(--primary-color);
	padding-left: 0.25rem;
}

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text-color-muted);
	font-size: var(--small-font-size);
}

.footer__list--contact i {
	color: var(--primary-color);
	width: 20px;
}

.footer__bottom {
	padding: 1.5rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.footer__copyright {
	color: var(--text-color-muted);
	font-size: var(--small-font-size);
}

/*=============== MEDIA QUERIES ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.header__toggle {
		display: none;
	}

	.header__nav-list {
		flex-direction: row;
		gap: 2.5rem;
	}

	.header__nav-item:last-child {
		margin-left: 2rem;
	}
}

/* For large devices */
@media screen and (min-width: 1224px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}
/*=============== HERO ===============*/
.hero {
	position: relative;
	padding: 8rem 0 4rem;
	min-height: 100vh;
	display: flex;
	align-items: center;
	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;
	text-align: center;
}

.hero__content {
	max-width: 900px;
	margin: 0 auto;
}

.hero__title {
	font-size: var(--h1-font-size);
	margin-bottom: 1.5rem;
	line-height: 1.3;
}

.hero__description {
	color: var(--text-color-muted);
	margin-bottom: 2.5rem;
	font-size: 1.125rem;
	line-height: 1.6;
}

.hero__button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 1rem 2.5rem;
	border-radius: var(--border-radius);
	font-weight: 600;
	font-family: var(--title-font);
	transition: var(--transition);
	box-shadow: 0 4px 15px rgba(47, 129, 247, 0.3);
}

.hero__button:hover {
	background-color: var(--primary-color-hover);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(47, 129, 247, 0.4);
}

/*=============== MEDIA QUERIES (Hero) ===============*/
@media screen and (min-width: 768px) {
	.hero {
		padding: 10rem 0 6rem;
	}
	:root {
		--h1-font-size: 3.5rem;
	}
}

/*=============== REUSABLE CSS CLASSES (add this with the other reusable classes) ===============*/
.section {
	padding: 6rem 0 2rem;
}

.section__title,
.section__subtitle {
	text-align: center;
}

.section__title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.section__subtitle {
	color: var(--text-color-muted);
	max-width: 600px;
	margin: 0 auto 3rem;
	line-height: 1.6;
}

/*=============== HOW IT WORKS ===============*/
.steps__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

.steps__card {
	background-color: var(--bg-secondary-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	border: 1px solid transparent;
	transition: var(--transition);
	text-align: center;
}

.steps__card:hover {
	transform: translateY(-5px);
	border-color: var(--primary-color);
}

.steps__icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: rgba(47, 129, 247, 0.1);
}

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

.steps__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

.steps__card-description {
	color: var(--text-color-muted);
	font-size: var(--small-font-size);
	line-height: 1.7;
}

/*=============== MEDIA QUERIES (How it works) ===============*/
@media screen and (min-width: 768px) {
	.steps__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (min-width: 1224px) {
	.section {
		padding: 8rem 0 4rem;
	}
}

/*=============== FEATURES ===============*/
.features__container {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.features__image img {
	border-radius: var(--border-radius);
}

.features__title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.features__description {
	color: var(--text-color-muted);
	margin-bottom: 2rem;
	line-height: 1.6;
}

.features__list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.features__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.features__item i {
	color: var(--primary-color);
	width: 24px;
	height: 24px;
	margin-top: 0.25rem;
	flex-shrink: 0;
}

.features__item span strong {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--text-color);
}

.features__item span {
	color: var(--text-color-muted);
}

/*=============== MEDIA QUERIES (Features) ===============*/
@media screen and (min-width: 768px) {
	.features__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/*=============== BENEFITS ===============*/
.benefits {
	background-color: var(--bg-secondary-color);
}

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

.benefits__card {
	background-color: var(--bg-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	text-align: left;
	transition: var(--transition);
}

.benefits__card:hover {
	transform: scale(1.03);
}

.benefits__icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--border-radius);
	background-color: rgba(47, 129, 247, 0.1);
	margin-bottom: 1.5rem;
}

.benefits__icon i {
	color: var(--primary-color);
	width: 24px;
	height: 24px;
}

.benefits__card-title {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.benefits__card-description {
	color: var(--text-color-muted);
	font-size: var(--small-font-size);
	line-height: 1.6;
}

/*=============== MEDIA QUERIES (Benefits) ===============*/
@media screen and (min-width: 576px) {
	.benefits__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.benefits__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/*=============== FAQ ===============*/
.faq__container {
	max-width: 700px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.faq__item {
	background-color: var(--bg-secondary-color);
	border-radius: var(--border-radius);
	border: 1px solid transparent;
	transition: var(--transition);
}

.faq__item--open {
	border-color: var(--primary-color);
}

.faq__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	cursor: pointer;
}

.faq__question {
	font-size: 1.1rem;
	font-family: var(--body-font);
	font-weight: 500;
}

.faq__icon {
	transition: transform 0.3s ease;
}

.faq__item--open .faq__icon {
	transform: rotate(180deg);
	color: var(--primary-color);
}

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

.faq__answer {
	padding: 0 1.5rem 1.5rem;
	color: var(--text-color-muted);
	line-height: 1.7;
	border-top: 1px solid var(--bg-color);
	padding-top: 1.5rem;
}

/*=============== CONTACT ===============*/
.contact__container {
	max-width: 600px;
	margin: 0 auto;
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact__form-group {
	position: relative;
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--bg-secondary-color);
	border-radius: var(--border-radius);
	background-color: var(--bg-secondary-color);
	color: var(--text-color);
	font-size: var(--normal-font-size);
	outline: none;
	transition: var(--transition);
}

.contact__form-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: var(--text-color-muted);
	pointer-events: none;
	transition: var(--transition);
}

.contact__form-input:focus {
	border-color: var(--primary-color);
}

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

.contact__form-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.contact__form-checkbox-input {
	width: 1rem;
	height: 1rem;
	accent-color: var(--primary-color);
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	color: var(--text-color-muted);
}

.contact__form-checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

.contact__form-button {
	background-color: var(--primary-color);
	color: #fff;
	padding: 1rem;
	border: none;
	border-radius: var(--border-radius);
	font-weight: 600;
	font-family: var(--title-font);
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 4px 15px rgba(47, 129, 247, 0.3);
}

.contact__form-button:hover {
	background-color: var(--primary-color-hover);
	transform: translateY(-3px);
}

.contact__message {
	text-align: center;
	font-size: var(--small-font-size);
	display: none; /* Initially hidden */
}

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	width: 500px;
	background-color: var(--bg-secondary-color);
	padding: 1.5rem;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup--show {
	bottom: 1.5rem;
}

.cookie-popup__text {
	font-size: var(--small-font-size);
	color: var(--text-color-muted);
}

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

.cookie-popup__button {
	background-color: var(--primary-color);
	color: #fff;
	padding: 0.5rem 1rem;
	border: none;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition);
	white-space: nowrap;
}

.cookie-popup__button:hover {
	background-color: var(--primary-color-hover);
}

@media screen and (max-width: 500px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/*=============== STYLES FOR POLICY PAGES ===============*/
.pages {
	padding: 8rem 0 4rem;
}

.pages .container {
	max-width: 800px;
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

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

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

.pages ul {
	list-style-type: disc;
	padding-left: 2rem;
	margin-bottom: 1.5rem;
	color: var(--text-color-muted);
}

.pages li {
	margin-bottom: 0.75rem;
	line-height: 1.8;
}

.pages a {
	color: var(--primary-color);
	text-decoration: underline;
	transition: var(--transition);
}

.pages a:hover {
	color: var(--primary-color-hover);
}

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