/**
 * ============================================
 * ВСЕ СТИЛИ САЙТА - ЕДИНЫЙ ФАЙЛ
 * ============================================
 * 
 * ВСЕ изменения стилей и внешнего вида сайта
 * делаются ТОЛЬКО в этом файле!
 * 
 * Файл: wp-content/themes/finance-assistant/assets/css/custom.css
 * 
 * После изменения этого файла:
 * 1. Загрузите файл на сервер через FTP
 * 2. Очистите кэш браузера (Ctrl+F5)
 * 3. Версия файла обновляется автоматически для сброса кэша
 * 
 * ============================================
 */

:root {
	/* Основные цвета из приложения Finance Assistant */
	--fa-primary-color: #1B3A57;
	--fa-primary-dark: #041424;
	--fa-primary-light: #0066D4;
	--fa-secondary-color: #64748b;
	--fa-accent-color: #00D4FF;
	--fa-gradient-primary: linear-gradient(135deg, #00D4FF 0%, #1B3A57 100%);
	
	/* Текст */
	--fa-text-primary: #0f172a;
	--fa-text-secondary: #475569;
	--fa-text-muted: #64748b;
	
	/* Фоны */
	--fa-bg-primary: #ffffff;
	--fa-bg-secondary: #f8fafc;
	--fa-bg-tertiary: #f1f5f9;
	--fa-bg-card: #ffffff;
	
	/* Границы и тени */
	--fa-border-color: #e2e8f0;
	--fa-border-light: #f1f5f9;
	--fa-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
	--fa-card-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
	
	/* Акцентные цвета для карточек */
	--fa-card-accent-1: #eff6ff;
	--fa-card-accent-2: #f0fdf4;
	--fa-card-accent-3: #fffbeb;
	--fa-card-accent-4: #fef2f2;
}

* {
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--fa-text-primary);
	line-height: 1.6;
	margin: 0;
	padding: 0;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.site-header {
	background: #041424;
	border-bottom: none;
	padding: 0.75rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-logo-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex-shrink: 0;
}

.site-logo {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-logo__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.site-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: #FFFFFF;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.site-logo-link:hover .site-title {
	opacity: 0.9;
}

.site-logo-link:hover .site-logo svg {
	opacity: 0.9;
	transform: scale(1.05);
	transition: all 0.2s ease;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2rem;
}

.main-navigation a {
	color: #FFFFFF;
	text-decoration: none;
	font-weight: 500;
	transition: opacity 0.3s;
}

.main-navigation a:hover {
	color: #FFFFFF;
	opacity: 0.8;
}

/* Hero Section */
section.hero-section,
.hero-section,
#page .hero-section,
.site .hero-section {
	background: linear-gradient(135deg, #16a34a 0%, #1c7c54 50%, #2A9D6F 100%) !important;
	background-color: #16a34a !important;
	color: white !important;
	padding: 100px 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}


.hero-section h1 {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.2;
	color: white;
}

.hero-section p {
	font-size: 1.25rem;
	margin-bottom: 2rem;
	color: rgba(255, 255, 255, 0.95);
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	display: inline-block;
	padding: 1rem 2rem;
	border-radius: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.btn-primary {
	background: white;
	color: #1c7c54;
	border: 2px solid white;
	font-weight: 600;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	background: rgba(255, 255, 255, 0.95);
	border-color: rgba(255, 255, 255, 0.95);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.15);
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	font-weight: 600;
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.5);
	color: white;
	transform: translateY(-2px);
}

/* Stats - удалено по требованию */

/* Dark Spacer Section After Hero */
.section-dark-spacer {
	background: #041424;
	padding: 0;
	height: 60px;
}

/* Sections */
.section {
	padding: 80px 0;
}

.section-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-align: center;
	color: var(--fa-text-primary);
	line-height: 1.2;
}

.section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background: var(--fa-gradient-primary);
	margin: 1rem auto 0;
	border-radius: 2px;
}

.section-subtitle {
	font-size: 1.25rem;
	color: var(--fa-text-secondary);
	text-align: center;
	margin-bottom: 3rem;
}

.bg-tertiary {
	background: var(--fa-bg-tertiary);
}

/* Чередование фонов для контраста между секциями (менее яркие чем hero) */
.section {
	background: #E8ECF0;
}

/* Секция "Почему важно вести учет" - приглушенный светло-зеленый */
.section.bg-light {
	background: linear-gradient(135deg, rgba(22, 163, 74, 0.05) 0%, rgba(28, 124, 84, 0.08) 50%, rgba(42, 157, 111, 0.05) 100%);
	background-color: #F8FAFC;
}

/* Секция "Возможности" - светло-серый (как фон приложения) */
#features.section {
	background: #E8ECF0;
}

/* Секция "Почему выбирают" - приглушенный светло-зеленый */
#benefits.section {
	background: linear-gradient(135deg, rgba(22, 163, 74, 0.05) 0%, rgba(28, 124, 84, 0.08) 50%, rgba(42, 157, 111, 0.05) 100%);
	background-color: #F8FAFC;
}

/* Секция с ботом - светло-серый (как фон приложения) */
#bot-link.section {
	background: #E8ECF0;
}

/* Улучшенная видимость карточек на разных фонах */
.section:not(.bg-light) .card {
	border-color: var(--fa-border-color);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
}

.section.bg-light .card {
	border-color: var(--fa-border-color);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
	background: var(--fa-bg-primary);
}

/* Cards */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
}

.card {
	background: var(--fa-bg-card);
	padding: 2rem;
	border-radius: 0.75rem;
	border: 1.5px solid var(--fa-border-color);
	box-shadow: var(--fa-card-shadow);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

/* Цветная полоска слева для выделения карточек */
.card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--fa-gradient-primary);
	transition: width 0.3s ease;
}

.card:hover::before {
	width: 5px;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--fa-card-shadow-hover);
	border-color: var(--fa-primary-color);
	background: var(--fa-bg-primary);
}

.card:hover::before {
	width: 5px;
}

.card h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--fa-text-primary);
}

.card p {
	color: var(--fa-text-secondary);
	line-height: 1.8;
}

.card ul {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0 0;
}

.card ul li {
	padding: 0.5rem 0;
	color: var(--fa-text-secondary);
	padding-left: 1.5rem;
	position: relative;
}

.card ul li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--fa-secondary-color);
	font-weight: 700;
}

/* Footer */
.site-footer {
	background: var(--fa-text-primary);
	color: white;
	padding: 3rem 0 1rem;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
	margin-bottom: 1rem;
}

.footer-section p {
	opacity: 0.8;
}

.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-menu li {
	margin-bottom: 0.5rem;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.3s;
}

.footer-menu a:hover {
	color: white;
}

.site-info {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
	.hero-section h1 {
		font-size: 2rem;
	}
	
	.section-title {
		font-size: 2rem;
	}
	
	.hero-buttons {
		flex-direction: column;
	}
	
	.btn {
		width: 100%;
		text-align: center;
	}
	
	.main-navigation ul {
		flex-direction: column;
		gap: 1rem;
	}
}

