:root {
	--bg-main: #ffffff;
	--bg-secondary: #f9fafb;
	--text-main: #111827;
	--text-muted: #6b7280;
	--border-color: #e5e7eb;
	--accent-blue: #0066ff;
	--accent-blue-hover: #0052cc;
	--text-danger: #e11d48;
	--font-main: 'Nunito', sans-serif;
}

.dark-theme {
	--bg-main: #000000;
	--bg-secondary: #060504;
	--text-main: #eee7d8;
	--text-muted: #948d7f;
	--border-color: #1a1814;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html {
	scroll-behavior: smooth;
}
body {
	background-color: var(--bg-main);
	color: var(--text-main);
	font-family: var(--font-main);
	line-height: 1.5;
}
body.no-scroll {
	overflow: hidden;
}

ul {
	margin: 0;
	padding: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}

img {
	max-width: 100%;
}

.container {
	padding: 0px 40px;
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
}

.footer-container {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 5%;
}

.hidden {
	display: none !important;
}

.text-center {
	text-align: center;
}
.text-danger {
	color: var(--text-danger) !important;
}
.full-width {
	width: 100%;
}

/* Навигация и Профиль */
.header {
	border-bottom: 1px solid var(--border-color);
	background-color: var(--bg-secondary);
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 15px 0;
	display: flex;
	justify-content: center;
}
.header-nav {
	width: 95%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	column-gap: 5px;
}
.logo {
	display: flex;
	align-items: center;
	column-gap: 5px;
	text-decoration: none;
	color: var(--text-main);
	font-size: 20px;
	font-weight: bold;
	letter-spacing: -0.5px;
}
.logo-img {
	height: 25px;
	width: 25px;
}

.logo-img-wrap {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 15px;
}
.nav-link {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s;
}
.nav-link:hover {
	color: var(--text-main);
}
.nav-actions {
	display: flex;
	align-items: center;
	column-gap: 10px;
}

/* Обновленный профиль с новыми отступами */
.user-profile {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--bg-secondary);
	padding: 5px 10px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
}
.profile-avatar {
	color: var(--text-muted);
	display: flex;
	align-items: center;
}
#profile-email {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-main);
}
.btn-sm {
	padding: 6px 12px;
	font-size: 12px;
	border-radius: 6px;
}

.btn-logout {
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	padding: 4px;
	transition: color 0.2s;
	margin-left: 4px;
}
.btn-logout:hover {
	color: var(--accent-blue);
}

/* Кнопки */
.btn {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	border-radius: 6px;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}
.btn-primary {
	background-color: var(--accent-blue);
	color: #fff;
}
.btn-primary:hover {
	background-color: var(--accent-blue-hover);
	transform: translateY(-2px);
}
.btn-primary:disabled {
	background-color: #93c5fd;
	cursor: not-allowed;
	transform: none;
}
.btn-outline {
	background-color: var(--bg-main);
	border-color: var(--border-color);
	color: var(--text-main);
}
.btn-outline:hover {
	background-color: var(--bg-secondary);
}
.btn-large {
	font-size: 16px;
	padding: 16px 32px;
}

#theme-btn {
	border-radius: 50%;
	height: 45px;
	width: 45px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0px;
}

/* Hero */
.hero {
	padding: 80px 0;
	text-align: center;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-blend-mode: multiply;
	color: var(--text-main);
}

html.dark-theme .hero {
	background-image: url(/img/hero-bg-black.jpeg);
	background-color: rgba(0, 0, 0, 0.8);
}

.hero-content {
	max-width: 850px;
}
.tag {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: var(--accent-blue);
	background-color: var(--bg-secondary);
	padding: 8px 16px;
	border-radius: 20px;
	margin-bottom: 24px;
	border: 1px solid var(--border-color);
}
.hero-title {
	color: var(--text-main);
	font-size: 48px;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 24px;
	letter-spacing: -1px;
}
.subtitle {
	font-size: 18px;
	color: var(--text-muted);
	margin-bottom: 40px;
}

.hero-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

.social-proof {
	margin-top: 30px;
	font-size: 13px;
	color: var(--text-muted);
	font-weight: 500;
}

/* Блок Боли */
.pain-section {
	padding: 80px 0;
	background-color: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}
.pain-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 40px;
	align-items: center;
}
.pain-text h2 {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 16px;
	letter-spacing: -0.5px;
}
.pain-text p {
	font-size: 16px;
	margin-bottom: 16px;
	line-height: 1.6;
}
.pain-list {
	margin-left: 20px;
	color: var(--text-muted);
}
.pain-list li {
	margin-bottom: 10px;
}
.pain-list b {
	color: var(--text-main);
}
.stat-card {
	background-color: var(--bg-main);
	padding: 40px 30px;
	border-radius: 16px;
	border: 1px solid var(--border-color);
	text-align: center;
}
.stat-num {
	font-size: 64px;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 10px;
}
.stat-desc {
	font-size: 14px;
	color: var(--text-muted);
}

/* Фичи */
.features-section {
	padding: 80px 0;
	background-color: var(--bg-main);
	border-bottom: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	row-gap: 90px;
}
.section-header {
	text-align: center;
	/* max-width: 600px; */
	margin-left: auto;
	margin-right: auto;
	padding: 20px;
}
.section-header h2 {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 12px;
	letter-spacing: -0.5px;
}
.section-header p {
	font-size: 16px;
	color: var(--text-muted);
}
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}
.feature-card {
	background-color: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 32px;
	transition: transform 0.3s ease;
}
.feature-card:hover {
	transform: scale(1.02) translateY(-5px);
}
.feature-icon {
	color: var(--accent-blue);
	margin-bottom: 20px;
}
.feature-card h3 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
}
.feature-card p {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.6;
}

/* Прайсы */
.pricing-section {
	padding: 80px 0;
	background-color: var(--bg-main);
	display: flex;
	flex-direction: column;
	row-gap: 90px;
}
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}
.price-card {
	background-color: var(--bg-main);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 40px 24px;
	text-align: center;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease;
}
.price-card:hover {
	transform: scale(1.03) translateY(-5px);
	z-index: 10;
}
.price-card.popular {
	border-color: var(--accent-blue);
}
.popular-tag {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--accent-blue);
	color: white;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
	white-space: nowrap;
}
.price-card h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 5px;
}
.price-desc {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 20px;
}
.price-container {
	margin-bottom: 32px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 70px;
}
.price {
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -1px;
}
.price-old {
	font-size: 16px;
	color: var(--text-muted);
	text-decoration: line-through;
	display: block;
	margin-bottom: 4px;
}
.price-new {
	color: var(--text-main);
}
.btn-buy {
	color: var(--text-main);
	width: 100%;
	border: 1px solid var(--border-color);
	background: transparent;
}
.btn-buy:hover {
	background-color: var(--bg-secondary);
}
.price-card.popular .btn-buy {
	background-color: var(--accent-blue);
	color: #fff;
	border-color: var(--accent-blue);
}
.price-card.popular .btn-buy:hover {
	background-color: var(--accent-blue-hover);
}

/* Футер */
.footer {
	border-top: 1px solid var(--border-color);
	padding: 60px 0 30px;
	background-color: var(--bg-main);
}
.footer-flex {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 40px;
	margin-bottom: 40px;
}
.footer-brand {
	max-width: 400px;
	display: flex;
	flex-direction: column;
	row-gap: 10px;
}
.footer-brand p {
	margin-top: 12px;
	color: var(--text-muted);
	font-size: 14px;
}

.footer-data {
	font-size: 14px;
}

.footer-data-item {
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.footer-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}
.footer-links a:hover {
	color: var(--text-main);
}
.footer-bottom {
	border-top: 1px solid var(--border-color);
	padding-top: 24px;
	color: #9ca3af;
	font-size: 13px;
}

/* Плавающая кнопка квиза */
@keyframes float-jump {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}
.floating-badge {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background-color: var(--text-main);
	color: var(--bg-main);
	padding: 14px 24px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	z-index: 90;
	animation: float-jump 3s ease-in-out infinite;
	transition: background-color 0.2s;
}
.floating-badge:hover {
	animation: none;
	transform: scale(1.05);
}

/* Модалки */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(17, 24, 39, 0.6);
	backdrop-filter: blur(4px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}
.modal.active {
	opacity: 1;
	pointer-events: auto;
}
.modal-content {
	background-color: var(--bg-main);
	border-radius: 16px;
	padding: 32px;
	width: 90%;
	max-width: 480px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.modal-header h3 {
	font-size: 22px;
	font-weight: 700;
}
.close {
	font-size: 24px;
	cursor: pointer;
	color: var(--text-muted);
	transition: color 0.2s;
}
.close:hover {
	color: var(--text-main);
}
.progress-bar {
	width: 100%;
	height: 6px;
	background-color: var(--bg-secondary);
	border-radius: 3px;
	margin-bottom: 24px;
	overflow: hidden;
}
.progress-fill {
	height: 100%;
	background-color: var(--accent-blue);
	width: 0%;
	transition: width 0.3s;
}
.quiz-q {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 20px;
	line-height: 1.4;
}
.quiz-answers-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.btn-answer {
	background: var(--bg-secondary);
	color: var(--text-main);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 14px 16px;
	text-align: left;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}
.btn-answer:hover {
	color: var(--text-main);
	background-color: var(--bg-main);
	border-color: var(--border-color);
}

/* --- Cookie Banner --- */
.toast-notification {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: var(--text-main);
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	z-index: 10000;
}
.toast-notification p {
	font-size: 13px;
	color: var(--bg-main);
	margin: 0;
	flex: 1;
}

.tour-section {
	padding: 80px 0;
	background-color: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	row-gap: 90px;
}
.tour-row {
	display: flex;
	align-items: center;
	column-gap: 60px;
}

.tour-row.reverse {
	flex-direction: row-reverse;
}

.tour-text {
	flex: 1;
}
.tour-text h3 {
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 16px;
	letter-spacing: -0.5px;
}
.tour-text p {
	font-size: 16px;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 24px;
}

/* Визуал (Скриншоты) */
.tour-visual {
	flex: 1;
	position: relative;
	width: 100%;
}
.img-wrapper {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	background: var(--bg-secondary);
}
.product-screenshot {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.img-wrapper:hover .product-screenshot {
	transform: scale(1.01);
}

/* Бейджи для фичи "Настройка" */
.badges-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.mt-2 {
	margin-top: 12px;
}

.badge {
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid var(--border-color);
	background-color: var(--bg-secondary);
	color: var(--text-main);
	cursor: default;
}
.badge-grade {
	border-color: var(--accent-blue);
	color: var(--accent-blue);
	background: transparent;
}
.badge-mode {
	background-color: var(--bg-secondary);
}

/* Фейковое окно (когда нет скриншота настройки) */
.fake-window {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 40px 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.setup-mock {
	display: flex;
	flex-direction: column;
	gap: 15px;
}
.mock-line {
	height: 14px;
	border-radius: 6px;
	background: var(--border-color);
}
.w-70 {
	width: 70%;
}
.w-50 {
	width: 50%;
}
.mock-btn {
	text-align: center;
	margin-top: 20px;
	font-size: 14px;
	font-weight: bold;
	opacity: 0.8;
}

/* --- Секция "Кого мы готовим" --- */
.target-audience-section {
	padding: 80px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.audience-grid {
	display: flex;
	gap: 24px;
	justify-content: center;
	flex-wrap: wrap;
	width: 100%;
	max-width: 900px;
}
.audience-card {
	flex: 1;
	min-width: 280px;
	background-color: var(--bg-main);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 32px;
	text-align: center;
	position: relative;
	transition: transform 0.3s ease;
}
.audience-card:hover {
	transform: translateY(-5px);
}
.audience-card.active-niche {
	border-color: var(--accent-blue);
	box-shadow: 0 10px 30px rgba(0, 102, 255, 0.05);
}
.audience-card.future-niche {
	opacity: 0.7;
	background-color: var(--bg-secondary);
}
.audience-card h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 12px;
}
.audience-card p {
	font-size: 14px;
	color: var(--text-muted);
	margin-bottom: 20px;
}
.status-badge {
	background-color: var(--accent-blue);
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
}

/* --- Секция FAQ --- */
.faq-section {
	padding: 80px 0;
	background-color: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
}
.faq-container {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.faq-item {
	background-color: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
}
.faq-question {
	padding: 20px 24px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	position: relative;
	list-style: none; /* Убираем стандартный треугольник в Chrome */
	color: var(--text-main);
	transition: background-color 0.2s;
}
.faq-question::-webkit-details-marker {
	display: none; /* Убираем стандартный треугольник в Safari */
}
.faq-question:hover {
	background-color: var(--bg-main);
}
.faq-question::after {
	content: '+';
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	color: var(--accent-blue);
	transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
	transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
	padding: 0 24px 24px 24px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-muted);
}

@media (max-width: 1000px) {
	#add-profession {
		display: none;
	}
}

/* Адаптив для телефонов и планшетов */
@media (max-width: 900px) {
	.pain-grid {
		grid-template-columns: 1fr;
	}
	.tour-row,
	.tour-row.reverse {
		flex-direction: column;
		gap: 30px;
		text-align: center;
	}
	.badges-wrap {
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.navbar {
		padding: 12px 0;
	}
	.nav-container {
		display: flex;
		justify-content: space-between;
		flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
		align-items: center;
		column-gap: 5px;
	}

	.logo {
		font-size: 18px;
	}

	.nav-links {
		display: none;
	}

	/* 3. Делаем кнопку предложения профессии миниатюрной */
	.nav-actions .btn {
		text-align: center;
		padding: 6px 10px;
		font-size: 11px;
		margin-right: 8px !important;
	}

	/* Уплотняем Hero-секцию */
	.hero {
		padding: 40px 0 60px;
	}
	.hero-title {
		font-size: 32px;
		margin-bottom: 16px;
		line-height: 1.1;
	}
	.subtitle {
		font-size: 15px;
		margin-bottom: 30px;
	}
	.tag {
		font-size: 11px;
		padding: 6px 12px;
		margin-bottom: 20px;
	}
	.hero-actions .btn-large {
		width: 100%;
		font-size: 15px;
		padding: 14px;
	}

	.toast-notification {
		flex-direction: column;
		text-align: center;
		padding: 15px;
	}
	.toast-notification button {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0px 20px;
	}
	.features-section {
		padding: 50px 0px;
	}
	.pricing-section {
		padding: 50px 0px;
	}
	/* Для самых узких экранов (iPhone SE) */
	.logo {
		font-size: 16px;
	}

	/* Еще сильнее ужимаем кнопки в шапке, чтобы точно влезли */
	.nav-actions .btn-outline {
		padding: 5px 8px;
		font-size: 10px;
		margin-right: 5px !important;
	}
}
