/* ЭТАП 0: ГЛОБАЛЬНЫЕ СТИЛИ */
:root {
	--font-primary: 'Manrope', sans-serif;
	--font-secondary: 'Roboto', sans-serif;

	--color-bg: #f7fafc;
	--color-text: #2d3748;
	--color-text-secondary: #4a5568;
	--color-primary: #38b2ac;
	--color-primary-dark: #2c7a7b;
	--color-white: #ffffff;
	--color-border: #e2e8f0;
}

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

html {
	scroll-behavior: smooth;
}

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

.container {
	max-width: 1200px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

h1,
h2,
h3 {
	font-family: var(--font-primary);
	font-weight: 800;
}

ul {
	list-style: none;
}

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

.btn {
	display: inline-block;
	padding: 12px 28px;
	background-color: var(--color-primary);
	color: var(--color-white);
	border-radius: 8px;
	font-weight: 600;
	font-family: var(--font-primary);
	text-align: center;
	border: 2px solid var(--color-primary);
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
	background-color: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	transform: translateY(-2px);
}

body.no-scroll {
	overflow: hidden;
}

/* ЭТАП 1: ХЕДЕР */
.header {
	background-color: var(--color-bg);
	padding: 15px 0;
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	background-color: rgba(247, 250, 252, 0.8);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-primary);
	font-weight: 800;
	font-size: 24px;
	color: var(--color-text);
}

.logo__svg {
	width: 32px;
	height: 32px;
}

.logo__svg path {
	transition: fill 0.3s ease;
}

.logo:hover .logo__svg path {
	fill: var(--color-primary);
}

.header__nav {
	display: none; /* Скрыто на мобильных устройствах */
}

.header__list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.header__link {
	font-weight: 500;
	position: relative;
	padding: 5px 0;
}

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

.header__link:hover::after {
	width: 100%;
}

.header__button {
	display: none; /* Скрыто на мобильных по умолчанию */
}

.header__burger-btn {
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1001;
}

.header__burger-btn i {
	color: var(--color-text);
	width: 28px;
	height: 28px;
}

/* Адаптивность хедера */
@media (min-width: 992px) {
	.header__nav {
		display: block;
	}

	.header__button {
		display: inline-block;
	}

	.header__burger-btn {
		display: none;
	}
}

/* Стили для мобильного меню */
@media (max-width: 991.98px) {
	.header__nav {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		position: fixed;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--color-bg);
		transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
	}
	.header__nav--mobile-active {
		left: 0;
	}
	.header__list {
		flex-direction: column;
		gap: 40px;
	}
	.header__link {
		font-size: 24px;
	}
}

/* ЭТАП 2: ФУТЕР */
.footer {
	background-color: var(--color-text);
	color: var(--color-bg);
	padding-top: 60px;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	padding-bottom: 60px;
}

.footer__col--logo .logo__text--footer {
	color: var(--color-white);
}

.footer__tagline {
	margin-top: 15px;
	color: var(--color-border);
	font-size: 14px;
}

.footer__title {
	font-size: 18px;
	margin-bottom: 20px;
	color: var(--color-white);
}

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

.footer__list--contacts {
	gap: 15px;
}

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

.footer__list--contacts i {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--color-primary);
}

.footer__link {
	color: var(--color-border);
	transition: color 0.3s ease;
}

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

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

/* Адаптивность футера */
@media (max-width: 991.98px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 50px;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__list--contacts li {
		justify-content: center;
		text-align: left;
	}
	.logo {
		justify-content: center;
	}
}

/* ЭТАП 3.1: СЕКЦИЯ HERO */
.hero {
	padding: 80px 0;
	overflow: hidden; /* Чтобы анимации не выходили за пределы блока */
}

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

.hero__content {
	text-align: center;
	opacity: 0; /* Начальное состояние для анимации */
	animation: fadeIn 1s ease-out forwards;
}

.hero__title {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 20px;
	min-height: 100px; /* Резервируем место под заголовок */
}

/* Эффект курсора для печатающейся машинки */
.hero__title::after {
	content: '|';
	animation: blink 0.7s infinite;
	font-weight: 400;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hero__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	max-width: 650px;
	margin: 0 auto 30px;
}

.hero__actions {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 40px;
}

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

.btn--secondary {
	background-color: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
	background-color: var(--color-primary-dark);
	color: var(--color-white);
}

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

.hero__feature-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--color-text-secondary);
	font-size: 15px;
}

.hero__feature-item i {
	color: var(--color-primary);
	width: 20px;
	height: 20px;
}

.hero__image-wrapper {
	opacity: 0;
	animation: slideInRight 1s ease-out 0.5s forwards;
}

.hero__image {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Анимации */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Адаптивность Hero */
@media (min-width: 992px) {
	.hero {
		padding: 100px 0;
	}
	.hero__container {
		grid-template-columns: 1.2fr 1fr; /* Текст занимает больше места */
		gap: 80px;
	}
	.hero__content {
		text-align: left;
	}
	.hero__title {
		font-size: 2rem;
	}
	.hero__subtitle {
		margin: 0 0 40px 0;
	}
	.hero__actions,
	.hero__features {
		justify-content: flex-start;
	}
}

@media (max-width: 576px) {
	.hero__title {
		font-size: 1.5rem;
		min-height: 58px;
	}
	.hero__actions {
		flex-direction: column;
	}
}

/* ЭТАП 3.2: СЕКЦИЯ "О ПЛАТФОРМЕ" */
.about {
	padding: 80px 0;
	background-color: var(--color-white);
}

.about__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 50px;
	align-items: center;
}

.about__image {
	width: 100%;
	border-radius: 12px;
	object-fit: cover;
}

.about__title {
	font-size: 36px;
	margin-bottom: 20px;
}

.about__description {
	color: var(--color-text-secondary);
	margin-bottom: 40px;
	font-size: 17px;
	line-height: 1.7;
}

.about__features-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.about__feature-item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.about__feature-item i {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	color: var(--color-primary);
	margin-top: 5px;
}

.about__feature-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 5px;
}

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

/* Анимация появления */
.fade-in-element {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Адаптивность */
@media (min-width: 992px) {
	.about {
		padding: 120px 0;
	}
	.about__container {
		grid-template-columns: 1fr 1.1fr; /* Текст чуть больше картинки */
		gap: 80px;
	}
	.about__title {
		font-size: 2rem;
	}
	.fade-in-element:nth-child(2) {
		transition-delay: 0.2s;
	}
}

/* ЭТАП 3.3: СЕКЦИЯ "ВОЗМОЖНОСТИ" */
.features {
	padding: 80px 0;
	background-color: var(--color-bg); /* Такой же как у body */
}

.features__header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 750px;
	margin-left: auto;
	margin-right: auto;
}

.features__title {
	font-size: 36px;
	margin-bottom: 15px;
}

.features__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

.features__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.feature-card {
	background-color: var(--color-white);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid var(--color-border);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	/* Используем переменную для задержки анимации */
	transition-delay: var(--delay, 0s);
}

.feature-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(45, 55, 72, 0.1);
}

.feature-card__icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #e6fffa; /* Светлый оттенок основного цвета */
	margin-bottom: 20px;
}

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

.feature-card__title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 10px;
}

.feature-card__text {
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* Адаптивность */
@media (min-width: 768px) {
	.features__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.features {
		padding: 120px 0;
	}
	.features__title {
		font-size: 42px;
	}
	.features__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ЭТАП 3.4: СЕКЦИЯ "КАК НАЧАТЬ" */
.steps {
	padding: 80px 0;
	background-color: var(--color-white);
}

.steps__header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 750px;
	margin-left: auto;
	margin-right: auto;
}

.steps__title {
	font-size: 36px;
	margin-bottom: 15px;
}

.steps__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

.steps__wrapper {
	display: flex;
	flex-direction: column;
	gap: 40px;
	position: relative;
}

.step-item {
	text-align: center;
	padding: 20px;
	position: relative;
	/* Используем переменную для задержки анимации */
	transition-delay: var(--delay, 0s);
}

.step-item__number {
	font-size: 64px;
	font-weight: 800;
	color: #e2e8f0; /* Очень светлый серый */
	position: absolute;
	top: 0;
	left: 35%;
	transform: translateX(-50%);
	z-index: 1;
}

.step-item__icon {
	position: relative;
	z-index: 2;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background-color: var(--color-white);
	border: 2px solid var(--color-primary);
	margin-bottom: 20px;
}

.step-item__icon i {
	width: 32px;
	height: 32px;
	color: var(--color-primary);
}

.step-item__title {
	position: relative;
	z-index: 2;
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 10px;
}

.step-item__text {
	position: relative;
	z-index: 2;
	color: var(--color-text-secondary);
	max-width: 300px;
	margin: 0 auto;
}

.steps__footer {
	text-align: center;
	margin-top: 60px;
	transition-delay: var(--delay, 0s);
}

/* Адаптивность */
@media (min-width: 992px) {
	.steps {
		padding: 120px 0;
	}
	.steps__title {
		font-size: 42px;
	}
	.steps__wrapper {
		flex-direction: row;
		justify-content: space-between;
		gap: 50px;
	}
	.step-item {
		flex: 1;
	}
	/* Линия-соединитель для десктопа */
	.steps__wrapper::before {
		content: '';
		position: absolute;
		top: 55px; /* На уровне центра иконок */
		left: 15%;
		right: 15%;
		height: 2px;
		background-image: linear-gradient(
			to right,
			var(--color-border) 50%,
			transparent 50%
		);
		background-size: 10px 2px;
		z-index: 0;
	}
}

/* ЭТАП 3.5: СЕКЦИЯ FAQ */
.faq {
	padding: 80px 0;
	background-color: var(--color-bg);
}

.faq__header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 750px;
	margin-left: auto;
	margin-right: auto;
}

.faq__title {
	font-size: 36px;
	margin-bottom: 15px;
}

.faq__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

.faq__accordion {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.faq__item {
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
	transition-delay: var(--delay, 0s);
}

.faq__question {
	width: 100%;
	background-color: transparent;
	border: none;
	padding: 20px 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-primary);
	font-weight: 600;
	font-size: 18px;
	color: var(--color-text);
}

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

.faq__icon {
	flex-shrink: 0;
	margin-left: 15px;
	transition: transform 0.3s ease;
}

/* Стили для активного состояния */
.faq__question.active .faq__icon {
	transform: rotate(180deg);
}
.faq__question.active {
	color: var(--color-primary);
}

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
		padding 0.4s ease;
}

.faq__answer p {
	padding: 0 25px 25px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* Адаптивность */
@media (min-width: 992px) {
	.faq {
		padding: 120px 0;
	}
	.faq__title {
		font-size: 42px;
	}
}

/* ЭТАП 4: СЕКЦИЯ КОНТАКТОВ */
.contact {
	padding: 80px 0;
	background-color: var(--color-white);
}

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

.contact__title {
	font-size: 36px;
	margin-bottom: 20px;
}

.contact__text {
	font-size: 17px;
	color: var(--color-text-secondary);
	line-height: 1.7;
	margin-bottom: 30px;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact__details li {
	display: flex;
	align-items: center;
	gap: 15px;
}

.contact__details i {
	color: var(--color-primary);
	width: 22px;
	height: 22px;
}

.contact__form-wrapper {
	background-color: var(--color-bg);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--color-border);
	transition-delay: var(--delay, 0s);
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form__group {
	display: flex;
	flex-direction: column;
}

.form__label {
	margin-bottom: 8px;
	font-weight: 500;
	font-size: 14px;
}

.form__input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-size: 16px;
	font-family: var(--font-secondary);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.2);
}

.form__group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	margin-top: 5px;
}

.form__checkbox {
	margin-top: 5px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.form__checkbox-label {
	font-size: 14px;
	color: var(--color-text-secondary);
}

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

.form__button {
	width: 100%;
	padding: 15px;
	font-size: 16px;
	margin-top: 10px;
}

.form__success-message {
	display: none; /* Скрыто по умолчанию */
	text-align: center;
	padding: 40px;
	border: 2px dashed var(--color-primary);
	border-radius: 12px;
	background-color: #e6fffa;
}

.form__success-message h3 {
	font-size: 24px;
	margin-bottom: 10px;
	color: var(--color-primary-dark);
}

/* Адаптивность */
@media (min-width: 992px) {
	.contact {
		padding: 120px 0;
	}
	.contact__container {
		grid-template-columns: 1fr 1fr;
	}
	.contact__title {
		font-size: 42px;
	}
}

/* ЭТАП 5.1: COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Начальное положение скрыто */
	left: 0;
	width: 100%;
	background-color: var(--color-text);
	color: var(--color-white);
	padding: 20px;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	z-index: 2000;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
	bottom: 0;
}

.cookie-popup__text {
	text-align: center;
}

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

.btn--cookie {
	padding: 8px 20px;
	flex-shrink: 0;
	background-color: var(--color-primary);
}

@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		padding: 15px;
	}
}

/* ЭТАП 5.2: СТИЛИ ДЛЯ СТРАНИЦ ПОЛИТИК */
.pages {
	padding: 60px 0;
}

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

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

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

.pages p,
.pages li {
	color: var(--color-text-secondary);
	line-height: 1.8;
	margin-bottom: 20px;
}

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

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

.pages ul {
	list-style: disc;
	padding-left: 20px;
}

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