/* ======== 0. ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ ======== */

/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@700;800&display=swap');

/* Переменные */
:root {
	--font-body: 'Inter', sans-serif;
	--font-heading: 'Manrope', sans-serif;

	--bg-primary: #f9fafb;
	--bg-secondary: #ffffff;
	--text-primary: #111827;
	--text-secondary: #6b7280;
	--accent-primary: #4f46e5;
	--accent-hover: #4338ca;
	--border-color: #e5e7eb;

	--container-width: 1200px;
	--container-padding: 1.5rem;

	--header-height: 70px;

	/* Переменные для форм-сообщений */
	--color-success-bg: #d1fae5;
	--color-success-text: #065f46;
	--color-error-bg: #fee2e2;
	--color-error-text: #991b1b;
}

/* Базовый сброс */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--text-primary);
	line-height: 1.3;
}

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

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

ul {
	list-style: none;
}

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

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

/* Утилитарный класс */
.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* ======== 1. ХЕДЕР (HEADER) ======== */

.header {
	width: 100%;
	height: var(--header-height);
	background-color: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
}

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

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--accent-primary);
	text-decoration: none;
}

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

.logo__text {
	color: var(--text-primary);
}

.header__toggle {
	display: none; /* Скрыт на десктопе */
	color: var(--text-primary);
	padding: 0.5rem;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.nav__link {
	font-family: var(--font-body);
	font-weight: 500;
	color: var(--text-secondary);
	padding: 0.5rem 0;
	position: relative;
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--accent-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.nav__link:hover::after,
.nav__link:focus::after {
	transform: scaleX(1);
}

.nav__link:hover,
.nav__link:focus {
	color: var(--text-primary);
}

.nav__link--button {
	background-color: var(--accent-primary);
	color: var(--bg-secondary);
	padding: 0.6rem 1.2rem;
	border-radius: 8px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav__link--button:hover {
	background-color: var(--accent-hover);
	color: var(--bg-secondary);
	transform: translateY(-2px);
}

.nav__link--button::after {
	display: none; /* Убираем подчеркивание у кнопки */
}

/* Адаптивность хедера (Mobile-first) */
@media (max-width: 768px) {
	.header__toggle {
		display: block;
		z-index: 101; /* Поверх навигации */
	}

	.nav {
		position: fixed;
		top: 0;
		left: -100%; /* Скрыто за экраном */
		width: 100%;
		height: 100vh;
		background-color: var(--bg-secondary);
		padding-top: var(--header-height);
		transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
		z-index: 100;
	}

	.nav--open {
		left: 0; /* Показываем меню */
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		padding-top: 3rem;
		gap: 2rem;
	}

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

/* ======== 2. ФУТЕР (FOOTER) ======== */

.footer {
	background-color: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
	padding: 4rem 0 0 0;
	color: var(--text-secondary);
	margin-top: 5rem; /* Отступ от контента */
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(1, 1fr); /* 1 колонка на мобильных */
	gap: 2.5rem;
}

.footer__column--info {
	max-width: 350px;
}

.footer__description {
	margin-top: 1rem;
	line-height: 1.7;
}

.footer__title {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

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

.footer__link {
	color: var(--text-secondary);
	transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__link:hover {
	color: var(--accent-primary);
	padding-left: 5px; /* Небольшой сдвиг при ховере */
}

.footer__list--contact .footer__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.footer__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 4px; /* Выравнивание иконки */
	color: var(--accent-primary);
}

.footer__note {
	font-size: 0.8rem;
	margin-top: 1rem;
	font-style: italic;
}

.footer__copyright {
	border-top: 1px solid var(--border-color);
	text-align: center;
	padding: 1.5rem 0;
	margin-top: 3rem;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

/* Адаптивность футера */
@media (min-width: 640px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
	}
}

@media (min-width: 1024px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1.5fr 1.5fr; /* 4 колонки на десктопе */
	}
}

/* ======== 3. ГЕРОЙ (HERO) ======== */

/* Добавляем отступ сверху, равный высоте хедера */
.main {
	padding-top: var(--header-height);
}

.hero {
	padding: 4rem 0;
	background-color: var(--bg-secondary);
	overflow: hidden; /* Для анимаций */
}

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

.hero__content {
	text-align: center;
	/* Анимация появления контента */
	opacity: 0;
	transform: translateY(20px);
	animation: content-fade-in 1s ease 0.5s forwards;
}

@keyframes content-fade-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero__title {
	font-size: 2.5rem; /* 40px */
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 1.5rem;
	color: var(--text-primary);
	min-height: 80px; /* Резервируем место, пока JS анимирует текст */
}

/* Стили для JS-анимации текста */
.hero__title .char {
	display: inline-block;
	opacity: 0;
	transform: translateY(20px) rotate(5deg);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero__description {
	font-size: 1.125rem; /* 18px */
	color: var(--text-secondary);
	margin-bottom: 2.5rem;
	line-height: 1.7;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero__description b {
	color: var(--text-primary);
	font-weight: 600;
}

.hero__actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Общие стили для кнопок (будут использоваться и в других секциях) */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1rem;
	padding: 0.8rem 1.75rem;
	border-radius: 8px;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	text-decoration: none;
	cursor: pointer;
}

.button i {
	width: 20px;
	height: 20px;
}

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

.button--primary:hover {
	background-color: var(--accent-hover);
	color: var(--bg-secondary);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.4);
}

.button--secondary {
	background-color: transparent;
	color: var(--text-primary);
	border-color: var(--border-color);
}

.button--secondary:hover {
	background-color: var(--bg-primary);
	border-color: #d1d5db;
	color: var(--text-primary);
	transform: translateY(-3px);
}

.hero__visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__image-wrapper {
	position: relative;
	max-width: 450px;
	width: 100%;
}

.hero__image {
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
	/* Анимация плавного "всплытия" */
	animation: image-float 4s ease-in-out infinite;
}

@keyframes image-float {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
	100% {
		transform: translateY(0);
	}
}

.hero__spark {
	position: absolute;
	padding: 0.75rem;
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	border-radius: 50%;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
	color: var(--accent-primary);
	opacity: 0;
	/* Анимация появления иконок */
	animation: spark-fade-in 0.8s ease forwards;
}

.hero__spark i {
	width: 24px;
	height: 24px;
}

.hero__spark--1 {
	top: 10%;
	left: -5%;
	animation-delay: 1.2s;
}

.hero__spark--2 {
	bottom: 15%;
	right: -10%;
	animation-delay: 1.5s;
}

.hero__spark--3 {
	top: 50%;
	left: -15%;
	animation-delay: 1.8s;
}

@keyframes spark-fade-in {
	from {
		opacity: 0;
		transform: scale(0.5);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Адаптивность Hero */
@media (min-width: 768px) {
	.hero {
		padding: 6rem 0;
	}

	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}

	.hero__content {
		text-align: left;
	}

	.hero__title {
		font-size: 3rem; /* 48px */
		min-height: 144px; /* Адаптируем высоту под текст */
	}

	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}

	.hero__actions {
		justify-content: flex-start;
	}
}

@media (min-width: 1024px) {
	.hero__title {
		font-size: 3.75rem; /* 60px */
		min-height: 180px; /* Адаптируем высоту под текст */
	}
}

/* ======== 4. КАК ЭТО РАБОТАЕТ (HOW IT WORKS) ======== */

/* Общий стиль для заголовков секций (будет использоваться повторно) */
.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3.5rem auto;
}

.section-header__subtitle {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background-color: rgba(79, 70, 229, 0.1);
	color: var(--accent-primary);
	font-weight: 600;
	font-size: 0.9rem;
	border-radius: 99px;
	margin-bottom: 0.75rem;
	font-family: var(--font-body);
}

.section-header__title {
	font-size: 2.25rem; /* 36px */
	font-weight: 800;
	margin-bottom: 1rem;
}

.section-header__description {
	font-size: 1.125rem; /* 18px */
	color: var(--text-secondary);
	line-height: 1.7;
}

.how-it-works {
	padding: 5rem 0;
	background-color: var(--bg-primary); /* Слегка отличается от hero */
}

.how-it-works__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	position: relative;
}

/* Линии-разделители (только на десктопе) */
.how-it-works__grid::before {
	content: '';
	display: none; /* Скрыто на мобильных */
	position: absolute;
	top: 50px; /* На уровне иконок */
	left: 10%;
	right: 10%;
	height: 2px;
	background-image: linear-gradient(
		to right,
		var(--border-color) 50%,
		transparent 50%
	);
	background-size: 20px 2px;
	background-repeat: repeat-x;
	z-index: 0;
}

.how-it-works__step {
	background-color: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 4px 10px -5px rgba(0, 0, 0, 0.03);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	z-index: 1; /* Чтобы были над линией */
}

.how-it-works__step:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
}

.how-it-works__icon-wrapper {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--accent-primary);
	color: var(--bg-secondary);
	margin-bottom: 1.5rem;
	box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.how-it-works__icon-wrapper i {
	width: 28px;
	height: 28px;
}

.how-it-works__title {
	font-size: 1.5rem; /* 24px */
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.how-it-works__text {
	color: var(--text-secondary);
	line-height: 1.6;
}

.how-it-works__link {
	font-weight: 600;
}

/* Адаптивность How It Works */
@media (min-width: 768px) {
	.how-it-works__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.how-it-works__grid::before {
		display: block; /* Показываем линию-разделитель */
	}

	.section-header__title {
		font-size: 2.5rem; /* 40px */
	}
}

/* ======== 5. ПРИМЕРЫ (EXAMPLES TABS) ======== */

.examples-section {
	padding: 5rem 0;
	background-color: var(--bg-secondary);
}

.tabs-example__nav {
	display: flex;
	flex-wrap: wrap; /* Для мобильных */
	justify-content: center;
	gap: 1rem;
	margin-bottom: 3rem;
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 1rem;
}

.tabs-example__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-secondary);
	border: 2px solid transparent;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.tabs-example__button i {
	width: 20px;
	height: 20px;
}

.tabs-example__button:hover {
	background-color: var(--bg-primary);
	color: var(--text-primary);
}

.tabs-example__button--active {
	color: var(--accent-primary);
	background-color: rgba(79, 70, 229, 0.1);
	border-color: var(--accent-primary);
}

.tabs-example__button--active:hover {
	color: var(--accent-primary);
	background-color: rgba(79, 70, 229, 0.15);
}

/* Анимация появления контента таба */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tabs-example__panel {
	display: none; /* Скрыты по умолчанию */
}

.tabs-example__panel--active {
	display: block; /* Показываем активный */
	animation: fadeIn 0.5s ease;
}

.tabs-example__panel-inner {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобильных */
	gap: 3rem;
	align-items: center;
}

.tabs-example__title {
	font-size: 1.75rem; /* 28px */
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.tabs-example__description {
	font-size: 1.1rem;
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 2rem;
}

.tabs-example__visual {
	order: -1; /* Изображение сверху на мобильных */
}

.tabs-example__image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Адаптивность Tabs */
@media (min-width: 768px) {
	.tabs-example__nav {
		flex-wrap: nowrap; /* В один ряд на десктопе */
		overflow-x: auto; /* Если не влезут, можно скроллить */
		padding-bottom: 0;
		border-bottom: none;
		justify-content: center; /* Центрируем, если влезают */

		/* Стилизация скроллбара (опционально) */
		-ms-overflow-style: none; /* IE, Edge */
		scrollbar-width: none; /* Firefox */
	}

	.tabs-example__nav::-webkit-scrollbar {
		display: none; /* Chrome, Safari */
	}

	.tabs-example__panel-inner {
		grid-template-columns: 1fr 1fr; /* 2 колонки */
	}

	.tabs-example__visual {
		order: 1; /* Изображение справа на десктопе */
	}
}

/* ======== 6. ИНСТРУМЕНТЫ (TOOLS) ======== */

.tools-section {
	padding: 5rem 0;
	background-color: var(--bg-primary);
}

.tools-grid {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка */
	gap: 1.5rem;
}

.tool-card {
	background-color: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tool-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08),
		0 10px 10px -5px rgba(0, 0, 0, 0.02);
	border-color: var(--accent-primary);
}

.tool-card__icon-wrapper {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	border-radius: 10px;
	background-color: rgba(79, 70, 229, 0.1);
	color: var(--accent-primary);
	margin-bottom: 1.5rem;
}

.tool-card__icon-wrapper i {
	width: 24px;
	height: 24px;
}

.tool-card__title {
	font-size: 1.35rem; /* 22px */
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.tool-card__description {
	color: var(--text-secondary);
	line-height: 1.6;
}

/* Выделенная карта */
.tool-card--highlight {
	background: linear-gradient(
		135deg,
		var(--accent-primary) 0%,
		var(--accent-hover) 100%
	);
	color: var(--bg-secondary);
	box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.tool-card--highlight:hover {
	box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.5);
	border-color: var(--bg-secondary);
}

.tool-card--highlight .tool-card__title,
.tool-card--highlight .tool-card__description {
	color: var(--bg-secondary);
}

.tool-card--highlight .tool-card__icon-wrapper {
	background-color: var(--bg-secondary);
	color: var(--accent-primary);
}

.tool-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--bg-secondary);
	font-weight: 600;
	margin-top: 1rem;
	text-decoration: none;
	transition: gap 0.3s ease;
}

.tool-card__link i {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.tool-card__link:hover i {
	transform: translateX(4px);
}
.tool-card__link:hover {
	gap: 0.5rem;
}

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

@media (min-width: 1024px) {
	/* На десктопе делаем 3 колонки, а выделенную карту растягиваем */
	.tools-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.tool-card--highlight {
		/* На десктопе она будет в новом ряду и растянется */
		grid-column: 1 / -1; /* Растянуть на всю ширину сетки (3 колонки) */
		text-align: center;
	}

	.tool-card--highlight .tool-card__icon-wrapper {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ======== 7. FAQ (ACCORDION) ======== */

.faq-section {
	padding: 5rem 0;
	background-color: var(--bg-secondary);
}

.faq-accordion {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden; /* Для скругления углов у дочерних элементов */
}

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

.faq__item:last-child {
	border-bottom: none;
}

.faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 1.5rem;
	font-size: 1.125rem; /* 18px */
	font-weight: 600;
	font-family: var(--font-heading);
	color: var(--text-primary);
	text-align: left;
	background-color: var(--bg-secondary);
	transition: background-color 0.3s ease;
}

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

.faq__icon {
	width: 24px;
	height: 24px;
	color: var(--accent-primary);
	transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	flex-shrink: 0;
	margin-left: 1rem;
}

.faq__answer {
	/* Скрываем ответ */
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), padding 0.3s ease;
	background-color: var(--bg-primary);
}

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

/* Стили для активного элемента */
.faq__item--active .faq__question {
	background-color: var(--bg-primary);
}

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

.faq__item--active .faq__answer {
	/* Раскрываем ответ. 9999px - "магическое число" */
	max-height: 9999px;
}

/* ======== 8. КОНТАКТНАЯ ФОРМА (CONTACT) ======== */

.contact-section {
	padding: 5rem 0;
	background-color: var(--bg-primary);
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

.contact__info {
	text-align: center;
}

.contact__title {
	font-size: 2.5rem; /* 40px */
	font-weight: 800;
	margin-bottom: 1.5rem;
}

.contact__description {
	font-size: 1.125rem; /* 18px */
	color: var(--text-secondary);
	line-height: 1.7;
	max-width: 500px;
	margin: 0 auto 2rem auto;
}

.contact__image-wrapper {
	max-width: 400px;
	margin: 0 auto;
}

.contact__image {
	width: 100%;
	border-radius: 12px;
}

.contact__form-wrapper {
	background-color: var(--bg-secondary);
	border-radius: 12px;
	padding: 2rem;
	border: 1px solid var(--border-color);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.contact-form__title {
	font-size: 1.75rem; /* 28px */
	font-weight: 700;
	margin-bottom: 2rem;
	text-align: center;
}

.form-group {
	margin-bottom: 1.25rem;
}

.form-group__label {
	display: block;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.form-group__input-wrapper {
	position: relative;
}

.form-group__icon {
	position: absolute;
	left: 0.8rem;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: var(--text-secondary);
	pointer-events: none; /* Иконка не должна мешать клику */
}

.form-group__input {
	width: 100%;
	padding: 0.8rem 0.8rem 0.8rem 2.5rem; /* Отступ слева для иконки */
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 1rem;
	font-family: var(--font-body);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input::placeholder {
	color: var(--text-secondary);
	opacity: 0.7;
}

.form-group__input:focus {
	outline: none;
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Стили для чекбокса */
.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.form-group__checkbox {
	width: 1.25em;
	height: 1.25em;
	margin-top: 0.15rem; /* Выравнивание */
	flex-shrink: 0;
	accent-color: var(--accent-primary);
}

.form-group__label--checkbox {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin: 0;
	font-weight: 400;
	line-height: 1.5;
}

.form-group__label--checkbox a {
	font-weight: 500;
	text-decoration: underline;
}

/* Кнопка */
.contact-form__button {
	width: 100%;
	margin-top: 1.5rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
	font-size: 1.1rem;
}

/* Кнопка в состоянии загрузки */
.contact-form__button:disabled {
	background-color: var(--accent-hover);
	opacity: 0.8;
	cursor: not-allowed;
}

/* Анимация спиннера */
@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.icon-spin {
	animation: spin 1s linear infinite;
}

/* Сообщения об успехе/ошибке */
.form-message {
	display: none; /* Скрыты по умолчанию */
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	text-align: center;
}

.form-message--success {
	background-color: var(--color-success-bg);
	color: var(--color-success-text);
}

.form-message--success i {
	width: 40px;
	height: 40px;
	margin-bottom: 1rem;
}

.form-message--success h4 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	color: var(--color-success-text);
}

.form-message--error {
	background-color: var(--color-error-bg);
	color: var(--color-error-text);
	font-weight: 500;
}

.form-message--show {
	display: block; /* JS будет добавлять этот класс */
	animation: fadeIn 0.3s ease; /* Используем @keyframes fadeIn из секции Tabs */
}

/* Адаптивность Contact */
@media (min-width: 768px) {
	.contact__info {
		text-align: left;
	}
	.contact__description {
		margin: 0 0 2rem 0;
	}
	.contact__image-wrapper {
		margin: 0;
	}
}

@media (min-width: 1024px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
		align-items: center;
	}

	.contact__form-wrapper {
		padding: 3rem;
	}
}


/* ======== 9. COOKIE POPUP ======== */

.cookie-popup {
    position: fixed;
    bottom: -100%; /* Скрыто по умолчанию */
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    z-index: 150;
    transition: bottom 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-popup--show {
    bottom: 0; /* Показываем */
}

.cookie-popup__container {
    display: flex;
    flex-direction: column; /* На мобильных */
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.cookie-popup__text a {
    font-weight: 500;
    text-decoration: underline;
}

.cookie-popup__button {
    padding: 0.6rem 1.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-popup__container {
        flex-direction: row; /* В ряд на десктопе */
    }
    .cookie-popup__text {
        text-align: left;
    }
}


/* ======== 10. СТИЛИ СТРАНИЦ ПОЛИТИК (.pages) ======== */

/* Эти стили будут применяться к вашим privacy.html, terms.html и т.д., 
    если вы обернете их контент в <main><section class="pages">...
*/

.pages {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.pages .container {
    max-width: 800px; /* Узкий контейнер для читабельности */
    background-color: var(--bg-secondary);
}

.pages h1 {
    font-size: 1.5rem; /* 40px */
    font-weight: 800;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.5rem; /* 28px */
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.pages a {
    font-weight: 500;
    text-decoration: underline;
}

.pages a:hover {
    text-decoration: none;
}

.pages ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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