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

/* --- CSS Variables --- */
:root {
	--color-dark-blue: #0d1b2a;
	--color-mid-blue: #1b263b;
	--color-slate-blue: #778da9;
	--color-platinum: #e0e1dd;
	--color-accent: #00b4d8;

	--font-primary: 'Roboto', sans-serif;
	--font-secondary: 'Poppins', sans-serif;

	--header-height: 70px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--color-dark-blue);
	color: var(--color-platinum);
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

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

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

ul {
	list-style: none;
}

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

/* --- Header --- */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(13, 27, 42, 0.8);
	backdrop-filter: blur(10px);
	z-index: 100;
	border-bottom: 1px solid var(--color-mid-blue);
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-secondary);
	font-weight: 500;
	font-size: 20px;
	color: var(--color-platinum);
}

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

.header__nav {
	display: none;
}

.header__nav-list {
	display: flex;
	gap: 30px;
}

.header__nav-link {
	color: var(--color-platinum);
	font-weight: 500;
	position: relative;
	padding: 5px 0;
}

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

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

.header__burger {
	background: none;
	border: none;
	color: var(--color-platinum);
	cursor: pointer;
	padding: 5px;
}

/* --- Mobile Menu --- */
.mobile-menu {
	position: fixed;
	top: 0;
	left: -100%;
	width: 80%;
	max-width: 320px;
	height: 100vh;
	background-color: var(--color-mid-blue);
	z-index: 101;
	transition: left 0.4s ease-in-out;
	display: flex;
	flex-direction: column;
	padding: 60px 30px 30px;
}

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

.mobile-menu__close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	color: var(--color-platinum);
	cursor: pointer;
}

.mobile-menu__list {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.mobile-menu__link {
	color: var(--color-platinum);
	font-size: 20px;
	font-family: var(--font-secondary);
}

/* --- Main Content Placeholder --- */
.main {
	padding-top: var(--header-height);
	min-height: 100vh; /* Для наглядности, чтобы футер не прилипал */
}

/* --- Footer --- */
.footer {
	background-color: var(--color-mid-blue);
	padding: 60px 0 20px;
	border-top: 1px solid var(--color-slate-blue);
}

.footer__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-secondary);
	font-weight: 500;
	font-size: 20px;
	color: var(--color-platinum);
	margin-bottom: 15px;
}

.footer__tagline {
	color: var(--color-slate-blue);
	font-size: 14px;
}

.footer__title {
	font-family: var(--font-secondary);
	font-size: 18px;
	margin-bottom: 15px;
	color: var(--color-platinum);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer__link {
	color: var(--color-slate-blue);
}
.footer__link:hover {
	color: var(--color-accent);
}

.footer__address {
	color: var(--color-slate-blue);
	font-style: normal;
	line-height: 1.5;
}

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
}

.footer__bottom {
	text-align: center;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--color-slate-blue);
	color: var(--color-slate-blue);
	font-size: 14px;
}

/* --- Media Queries (Mobile-first) --- */
@media (min-width: 768px) {
	.header__nav {
		display: block;
	}

	.header__burger {
		display: none;
	}

	.footer__container {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 30px;
	}
}

/* assets/css/style.css */

/* --- Hero Section --- */
.hero {
	position: relative;
	height: calc(100vh - var(--header-height));
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-align: center;
	padding-top: var(--header-height); /* Компенсация высоты хедера */
}

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

.hero__container {
	position: relative;
	z-index: 2;
}

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

.hero__title {
	font-family: var(--font-secondary);
	font-size: 3rem; /* 48px */
	line-height: 1.2;
	margin-bottom: 20px;
	font-weight: 700;
}

.hero__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--color-slate-blue);
	margin-bottom: 40px;
	line-height: 1.7;
}

.hero__cta {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-dark-blue);
	padding: 15px 35px;
	border-radius: 50px;
	font-weight: 700;
	font-family: var(--font-secondary);
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: transform 0.3s ease, background-color 0.3s ease;
	border: 2px solid var(--color-accent);
}

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

/* --- Media Queries for Hero --- */
@media (max-width: 768px) {
	.hero {
		min-height: 500px;
		height: auto;
		padding: 120px 0;
	}

	.hero__title {
		font-size: 2.25rem; /* 36px */
	}

	.hero__subtitle {
		font-size: 1rem; /* 16px */
	}
}

/* assets/css/style.css */

/* --- Section Header (Reusable) --- */
.section-header {
	text-align: center;
	max-width: 650px;
	margin: 0 auto 60px;
}

.section-header__title {
	font-family: var(--font-secondary);
	font-size: 2.5rem; /* 40px */
	font-weight: 700;
	margin-bottom: 15px;
}

.section-header__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--color-slate-blue);
	line-height: 1.7;
}

/* --- How It Works Section --- */
.how-works {
	padding: 100px 0;
	background-color: var(--color-mid-blue);
}

.how-works__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.how-works__item {
	background-color: var(--color-dark-blue);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--color-slate-blue);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-works__item:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(0, 180, 216, 0.1);
}

.how-works__icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 20px;
	background-color: var(--color-mid-blue);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-accent);
}

.how-works__icon svg {
	width: 30px;
	height: 30px;
}

.how-works__step-number {
	display: block;
	color: var(--color-slate-blue);
	font-size: 0.875rem; /* 14px */
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 10px;
}

.how-works__item-title {
	font-family: var(--font-secondary);
	font-size: 1.5rem; /* 24px */
	margin-bottom: 15px;
	color: var(--color-platinum);
}

.how-works__item-text {
	color: var(--color-slate-blue);
	line-height: 1.6;
}

/* Media Queries */
@media (max-width: 768px) {
	.section-header__title {
		font-size: 2rem; /* 32px */
	}
	.section-header__subtitle {
		font-size: 1rem; /* 16px */
	}
	.how-works {
		padding: 80px 0;
	}
}

/* --- Topics Section --- */
.topics {
	padding: 100px 0;
}

.topics__nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 50px;
}

.topics__nav-btn {
	background-color: var(--color-mid-blue);
	color: var(--color-platinum);
	border: 1px solid var(--color-slate-blue);
	padding: 12px 25px;
	border-radius: 50px;
	cursor: pointer;
	font-family: var(--font-primary);
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.3s ease;
}

.topics__nav-btn:hover {
	background-color: var(--color-slate-blue);
	border-color: var(--color-accent);
}

.topics__nav-btn--active {
	background-color: var(--color-accent);
	color: var(--color-dark-blue);
	border-color: var(--color-accent);
	font-weight: 700;
}

.topics__panel {
	display: none;
	animation: fadeIn 0.5s ease-in-out;
}

.topics__panel--active {
	display: block;
}

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

.topics__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.topic-card {
	background-color: var(--color-mid-blue);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--color-slate-blue);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.topic-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.topic-card__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.topic-card__body {
	padding: 25px;
	flex-grow: 1;
}

.topic-card__title {
	font-family: var(--font-secondary);
	font-size: 1.25rem; /* 20px */
	margin-bottom: 10px;
}

.topic-card__text {
	color: var(--color-slate-blue);
	font-size: 0.9rem; /* 14.4px */
	line-height: 1.6;
}

/* Media Queries */
@media (max-width: 768px) {
	.topics {
		padding: 80px 0;
	}
}

.experts {
	padding: 100px 0;
	background-color: var(--color-mid-blue);
}

.experts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	align-items: start;
}

.expert-card {
	background-color: var(--color-dark-blue);
	border: 1px solid var(--color-slate-blue);
	border-radius: 12px;
	text-align: center;
	padding: 30px;
	position: relative;
}

.expert-card__image {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	margin: -80px auto 20px; /* Pulls the image up */
	border: 4px solid var(--color-mid-blue);
	background-color: var(--color-mid-blue);
}

.expert-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.expert-card__name {
	font-family: var(--font-secondary);
	font-size: 1.5rem; /* 24px */
	color: var(--color-platinum);
	margin-bottom: 5px;
}

.expert-card__role {
	display: block;
	color: var(--color-accent);
	font-weight: 500;
	margin-bottom: 15px;
}

.expert-card__bio {
	color: var(--color-slate-blue);
	font-size: 0.9rem; /* 14.4px */
	line-height: 1.6;
	margin-bottom: 20px;
}

.expert-card__socials {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.expert-card__socials a {
	color: var(--color-slate-blue);
	transition: color 0.3s ease, transform 0.3s ease;
}

.expert-card__socials a:hover {
	color: var(--color-accent);
	transform: scale(1.1);
}

/* Media Queries */
@media (max-width: 768px) {
	.experts {
		padding: 120px 0 80px; /* More top padding to account for avatar */
	}
	.experts__grid {
		gap: 60px; /* More gap to prevent avatars from overlapping content */
	}
}

.faq {
	padding: 100px 0;
}

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

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

.faq__question {
	width: 100%;
	background: none;
	border: none;
	padding: 25px 0;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-size: 1.25rem; /* 20px */
	font-family: var(--font-secondary);
	color: var(--color-platinum);
}

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

.faq__icon {
	transition: transform 0.3s ease;
	flex-shrink: 0; /* Prevents icon from shrinking */
	margin-left: 20px;
}

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

.faq__answer p {
	color: var(--color-slate-blue);
	line-height: 1.7;
	padding: 0 5px; /* Optional padding for better text alignment */
}

/* Active state for accordion */
.faq__item.faq__item--active .faq__question {
	color: var(--color-accent);
}

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

.faq__item.faq__item--active .faq__answer {
	padding-bottom: 25px; /* This will be animated along with max-height */
}

/* Media Queries */
@media (max-width: 768px) {
	.faq {
		padding: 80px 0;
	}
	.faq__question {
		font-size: 1.1rem; /* 18px */
	}
}

/* assets/css/style.css */

/* --- Contact Section --- */
.contact {
	padding: 100px 0;
	background-color: var(--color-mid-blue);
}

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 60px;
	align-items: center;
}

.contact__info-title {
	font-family: var(--font-secondary);
	font-size: 2rem; /* 32px */
	margin-bottom: 20px;
}

.contact__info-text {
	color: var(--color-slate-blue);
	line-height: 1.8;
	margin-bottom: 20px;
}

.contact__form-wrapper {
	position: relative;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 25px;
	transition: opacity 0.5s ease;
}

.contact-form__group {
	position: relative;
}

.contact-form__input {
	width: 100%;
	padding: 15px;
	background-color: var(--color-dark-blue);
	border: 1px solid var(--color-slate-blue);
	border-radius: 8px;
	color: var(--color-platinum);
	font-size: 1rem;
	font-family: var(--font-primary);
	transition: border-color 0.3s ease;
}

.contact-form__input:focus {
	outline: none;
	border-color: var(--color-accent);
}

.contact-form__label {
	display: none;
	position: absolute;
	top: 15px;
	left: 15px;
	color: var(--color-slate-blue);
	pointer-events: none;
	transition: all 0.3s ease;
}

.contact-form__input:focus ~ .contact-form__label,
.contact-form__input:not(:placeholder-shown) ~ .contact-form__label {
	top: -10px;
	left: 10px;
	font-size: 0.8rem;
	background-color: var(--color-mid-blue);
	padding: 0 5px;
}

.contact-form__checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.contact-form__checkbox-group label {
	font-size: 0.875rem; /* 14px */
	color: var(--color-slate-blue);
}
.contact-form__checkbox-group a {
	text-decoration: underline;
}

.contact-form__submit {
	background-color: var(--color-accent);
	color: var(--color-dark-blue);
	padding: 15px 35px;
	border-radius: 50px;
	font-weight: 700;
	font-family: var(--font-secondary);
	border: none;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form__submit:hover {
	background-color: #009cbf; /* Darker accent */
	transform: translateY(-2px);
}

.contact-form__submit:disabled {
	background-color: var(--color-slate-blue);
	cursor: not-allowed;
}

.form-success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 40px;
	animation: fadeIn 0.5s ease;
}

.form-success-message--visible {
	display: block;
}

.form-success-message__icon {
	color: var(--color-accent);
	margin-bottom: 20px;
}

.form-success-message__icon svg {
	width: 60px;
	height: 60px;
}

.form-success-message__title {
	font-family: var(--font-secondary);
	font-size: 1.75rem; /* 28px */
	margin-bottom: 10px;
}

.form-success-message__text {
	color: var(--color-slate-blue);
}

/* Media Queries */
@media (max-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.contact__info {
		text-align: center;
	}
}

/* assets/css/style.css */

/* --- Cookie Pop-up --- */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-mid-blue);
	border-top: 1px solid var(--color-slate-blue);
	padding: 20px 0;
	z-index: 200;
	transform: translateY(0);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup--hidden {
	transform: translateY(100%);
}

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.cookie-popup__text {
	color: var(--color-slate-blue);
	font-size: 0.9rem; /* 14.4px */
}

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

.cookie-popup__btn {
	background-color: var(--color-accent);
	color: var(--color-dark-blue);
	border: none;
	padding: 10px 25px;
	border-radius: 50px;
	cursor: pointer;
	font-weight: 500;
	white-space: nowrap; /* Prevents button text from wrapping */
	transition: background-color 0.3s ease;
}

.cookie-popup__btn:hover {
	background-color: #009cbf;
}

/* Media Queries for Cookie Pop-up */
@media (max-width: 768px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
	}
}

/* assets/css/style.css */

/* --- Generic Pages Styling (privacy, terms, etc.) --- */
.pages {
	padding: 120px 0; /* More padding for pages without a hero section */
}

.pages .container {
	max-width: 800px; /* Optimal width for readability */
}

.pages h1,
.pages h2 {
	font-family: var(--font-secondary);
	color: var(--color-platinum);
	line-height: 1.3;
}

.pages h1 {
	font-size: 1.5rem; /* 40px */
	margin-bottom: 30px;
	border-bottom: 1px solid var(--color-slate-blue);
	padding-bottom: 20px;
}

.pages h2 {
	font-size: 1.5rem; /* 28px */
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p {
	color: var(--color-slate-blue);
	line-height: 1.8;
	margin-bottom: 20px;
}

.pages a {
	color: var(--color-accent);
	text-decoration: underline;
	transition: color 0.3s ease;
}

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

.pages ul,
.pages ol {
	color: var(--color-slate-blue);
	margin-bottom: 20px;
	padding-left: 25px;
}

.pages li {
	margin-bottom: 10px;
	line-height: 1.8;
}

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