/*
Theme Name:   Kadence Child Theme
Theme URI:    https://egorsokolov.ru
Description:  Child theme for Kadence theme - egorsokolov.ru
Author:       Egor Sokolov
Author URI:   https://egorsokolov.ru
Template:     kadence
Version:      1.3.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  kadence-child
*/

/*
 * Кастомные стили для egorsokolov.ru
 *
 * Примечание: Большинство стилей настраивается через Customizer.
 * Этот файл используется только для специфических CSS переопределений.
 */

/* ============================================
   Global Fixes
   ============================================ */

/* Prevent horizontal scroll on iOS (rubber-band effect) */
/* Note: clip instead of hidden — hidden breaks position:sticky */
html, body {
	overflow-x: clip;
	overscroll-behavior-x: none;
}
html {
	scrollbar-gutter: stable;
}

/* ============================================
   Кастомные стили
   ============================================ */

/* Наследование цвета для strong/em внутри ссылок
   Более специфичный селектор чтобы перебить .single .entry-content strong */
.single .entry-content a strong,
.single .entry-content a em,
.single .entry-content a b,
.single .entry-content a i,
.entry-content a strong,
.entry-content a em,
.entry-content a b,
.entry-content a i {
	color: inherit;
}

/* ============================================
   Header — Brand, Logo, Section Tags
   ============================================ */

/* Kadence HTML widget wrapper reset */
.header-html .header-html-inner,
.header-html .header-html-inner p {
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Nav brand link — override Kadence underline */
.nav-brand,
.nav-brand:hover,
.nav-brand:focus,
.nav-brand:visited,
.header-html a.nav-brand,
.header-html a.nav-brand:hover {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
  text-decoration: none !important;
  color: inherit;
  border: none;
  box-shadow: none;
}

/* Inline SVG logo */
.header-logo-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-logo-svg svg {
  width: 60px;
  height: auto;
}

/* Two-color logo: brackets = section color, ruble = finance green */
/* Default (neutral): brackets blue, ruble green */
.logo-ruble {
  fill: var(--global-palette1);
  transition: fill var(--duration-normal) ease;
}
body.color-switch-dark .logo-bracket {
  fill: #60A5FA;
  transition: fill var(--duration-normal) ease;
}
body.color-switch-light .logo-bracket {
  fill: #3B82F6;
  transition: fill var(--duration-normal) ease;
}
/* Finance: all green */
body.category-finance .logo-bracket {
  fill: var(--global-palette1);
}
/* AI: all blue */
body.color-switch-dark.category-ai .logo-ruble {
  fill: #60A5FA;
}
body.color-switch-light.category-ai .logo-ruble {
  fill: #3B82F6;
}

/* Title block */
.site-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px !important;
  margin-top: -2px;
}
/* Reset wpautop <p> wrapping pills */
.site-titles p {
  margin: 0;
  padding: 0;
  line-height: 1;
}
/* Pills row — keeps both pills on one line, shifts left for optical alignment */
.pills-row {
  display: inline-flex;
  gap: 0;
  margin-left: -4px;
}

.site-title {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: var(--global-palette3);
  margin: 0;
  transition: color var(--duration-normal) ease;
}

/* Section tags — pill under the name */
/* Both tags always in DOM; default = hidden but space-reserving via visibility */
.section-tag {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 7px;
  border-radius: 100px;
  width: fit-content;
  color: var(--section-accent);
  background: var(--section-accent-dim);
  transition: all var(--duration-normal) var(--ease-out-quart);
}

/* Default (neutral pages): show BOTH pills inline */
.section-tag--finance {
  display: inline-block;
  visibility: visible;
  color: var(--global-palette1);
  background: var(--section-accent-dim);
  margin-right: 4px;
}
.section-tag--ai {
  display: inline-block;
  visibility: visible;
  background: var(--section-accent-dim);
}

/* Dark theme AI tag color */
body.color-switch-dark .section-tag--ai {
  color: #60A5FA;
}
/* Light theme AI tag color */
body.color-switch-light .section-tag--ai {
  color: #3B82F6;
}

/* Finance pages: only finance pill */
body.category-finance .section-tag--ai {
  display: none;
}
body.category-finance .section-tag--finance {
  margin-right: 0;
}

/* AI pages: only AI pill */
body.category-ai .section-tag--finance {
  display: none;
}

/* Nav active link — section-aware colors */
body.category-finance .primary-menu-container .current-menu-item > a,
body.category-finance .primary-menu-container a[href*="/finance/"] {
  color: var(--section-accent) !important;
  background: var(--section-accent-dim) !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  
}
body.category-ai .primary-menu-container .current-menu-item > a,
body.category-ai .primary-menu-container a[href*="/ai/"] {
  color: var(--section-accent) !important;
  background: var(--section-accent-dim) !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;

}

/* Mobile header adjustments */
@media (max-width: 767px) {
  .header-logo-svg svg {
    width: 54px;
    height: auto;
  }
  .nav-brand {
    gap: 10px;
  }
  .site-title {
    font-size: 15px;
  }
  .section-tag {
    font-size: 10px;
    padding: 2px 5px;
    letter-spacing: 0.5px;
  }
  .pills-row {
    margin-left: -2px;
    gap: 0;
  }
  .site-titles {
    gap: 2px;
  }
  /* Reduce mobile header height */
  .site-header-row-container .site-header-row-layout-standard {
    padding-top: 4px;
    padding-bottom: 4px;
    min-height: 0;
  }
}

/* Burger button — section-aware color */
.menu-toggle-icon {
  color: var(--section-accent);
}

/* ============================================
   Burger Menu — Dark Drawer + Section Dots + TG Links
   ============================================ */

/* Dark theme drawer */
body.color-switch-dark .drawer-inner {
  background: #0F172A !important;
}
body.color-switch-dark .mobile-navigation ul li > a {
  color: #CBD5E1;
  border-bottom-color: rgba(148, 163, 184, 0.12);
}
body.color-switch-dark .mobile-navigation ul li.current-menu-item > a {
  color: var(--section-accent);
}

/* Section color dots in menu items */
.menu-section-finance > a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00D97E;
  margin-right: 10px;
  vertical-align: middle;
}
.menu-section-ai > a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60A5FA;
  margin-right: 10px;
  vertical-align: middle;
}

/* Light theme dot variants */
body.color-switch-light .menu-section-finance > a::before {
  background: #059669;
}
body.color-switch-light .menu-section-ai > a::before {
  background: #3B82F6;
}

/* Burger TG channel links */
.mobile-tg-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 10px;
  margin-top: 10px;
}
.mobile-tg-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.mobile-tg-link:hover {
  opacity: 0.85;
  text-decoration: none !important;
}
.mobile-tg-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.mobile-tg-link__arrow {
  margin-left: auto;
  font-size: 16px;
  opacity: 0.5;
}

/* Finance TG link */
.mobile-tg-link--finance {
  border-left: 3px solid #00D97E;
  color: var(--global-palette3) !important;
  background: rgba(0, 217, 126, 0.06);
}
body.color-switch-light .mobile-tg-link--finance {
  border-left-color: #059669;
  background: rgba(5, 150, 105, 0.06);
}

/* AI TG link */
.mobile-tg-link--ai {
  border-left: 3px solid #60A5FA;
  color: var(--global-palette3) !important;
  background: rgba(96, 165, 250, 0.06);
}
body.color-switch-light .mobile-tg-link--ai {
  border-left-color: #3B82F6;
  background: rgba(59, 130, 246, 0.06);
}

/* Header TG button */
.header-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  color: var(--global-palette9) !important;
  background: var(--section-accent);
  transition: box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
  line-height: 1;
  
  justify-content: center;
  width: 216px;
  box-sizing: border-box;
}
.header-tg-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px var(--section-accent-glow);
  text-decoration: none !important;
  color: var(--global-palette9) !important;
}
.header-tg-btn svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.header-html2 .header-html-inner,
.header-html2 .header-html-inner p {
  margin: 0;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* ============================================
   Color Palette Variables (Light & Dark Themes)
   ============================================ */

/* Light Theme (default) */
body.color-switch-light {
	--blog-heading-color: var(--global-palette3);  /* Strongest Text */
	--blog-text-color: var(--global-palette5);     /* Medium Text */
	--blog-link-color: var(--global-palette1);     /* Accent */
	--blog-link-hover: var(--global-palette2);     /* Accent Alt */
	--blog-border-color: rgba(5, 150, 105, 0.2);
	--blog-accent-color: var(--global-palette1);   /* Accent */
	--blog-bg-card: var(--global-palette9);        /* White/Off-white */
	--blog-bg-quote: rgba(15, 23, 42, 0.03);
	--blog-bg-code: rgba(5, 150, 105, 0.08);
	--blog-stripe-row: rgba(148, 163, 184, 0.07);
	--tag-color: #7C3AED;                          /* Purple for tags/categories */
}

/* Dark Theme */
body.color-switch-dark {
	--blog-heading-color: var(--global-palette3);  /* Strongest Text */
	--blog-text-color: var(--global-palette4);     /* Strong Text */
	--blog-link-color: var(--global-palette1);     /* Accent */
	--blog-link-hover: var(--global-palette2);     /* Accent Alt */
	--blog-border-color: rgba(0, 217, 126, 0.2);
	--blog-accent-color: var(--global-palette1);   /* Accent */
	--blog-bg-card: var(--global-palette7);        /* Subtle Background */
	--blog-bg-quote: rgba(30, 41, 59, 0.5);
	--blog-bg-code: rgba(0, 217, 126, 0.1);
	--blog-stripe-row: rgba(148, 163, 184, 0.1);
	--tag-color: #7C3AED;                          /* Purple for tags/categories */
}

/* ============================================
   Section Color System (Finance / AI)
   ============================================ */

/*
 * Section-aware accent colors for dual-topic site.
 * Finance = green (palette1), AI = blue (palette12).
 * Uses RGB triplets for alpha variants (dim/mid/glow).
 *
 * Usage in CSS:
 *   color: var(--section-accent);
 *   background: var(--section-accent-dim);
 *   border-color: var(--section-accent-mid);
 *   box-shadow: 0 16px 48px var(--section-accent-glow);
 *
 * WP body classes used:
 *   .category-finance, .category-ai          — archive pages
 *   .single-post.category-finance/ai         — single posts
 */

/* Dark theme — Finance (default) */
body.color-switch-dark {
	--section-accent: var(--global-palette1);
	--section-accent-rgb: 0, 217, 126;
	--section-accent-dim: rgba(0, 217, 126, 0.08);
	--section-accent-mid: rgba(0, 217, 126, 0.2);
	--section-accent-glow: rgba(0, 217, 126, 0.12);
}

/* Dark theme — AI override */
body.color-switch-dark.category-ai,
body.color-switch-dark.single-post.category-ai {
	--section-accent: #60A5FA;
	--section-accent-rgb: 96, 165, 250;
	--section-accent-dim: rgba(96, 165, 250, 0.08);
	--section-accent-mid: rgba(96, 165, 250, 0.2);
	--section-accent-glow: rgba(96, 165, 250, 0.12);
}

/* Light theme — Finance (default) */
body.color-switch-light {
	--section-accent: var(--global-palette1);
	--section-accent-rgb: 5, 150, 105;
	--section-accent-dim: rgba(5, 150, 105, 0.08);
	--section-accent-mid: rgba(5, 150, 105, 0.2);
	--section-accent-glow: rgba(5, 150, 105, 0.12);
}

/* Light theme — AI override */
body.color-switch-light.category-ai,
body.color-switch-light.single-post.category-ai {
	--section-accent: #3B82F6;
	--section-accent-rgb: 59, 130, 246;
	--section-accent-dim: rgba(59, 130, 246, 0.08);
	--section-accent-mid: rgba(59, 130, 246, 0.2);
	--section-accent-glow: rgba(59, 130, 246, 0.12);
}

/* Fallback for pages without theme class */
:root {
	--section-accent: var(--global-palette1);
	--section-accent-dim: rgba(0, 217, 126, 0.08);
	--section-accent-mid: rgba(0, 217, 126, 0.2);
	--section-accent-glow: rgba(0, 217, 126, 0.12);
	/* Motion System */
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
	--ease-premium: cubic-bezier(0.32, 0.72, 0, 1);
	--duration-fast: 150ms;
	--duration-normal: 300ms;
	--duration-slow: 500ms;
	--duration-slower: 800ms;
}
/* ============================================
   Blog Post Design (Single Post)
   ============================================ */

/* Article container */
.single .entry-content-wrap {
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

/* Post Title */
.single .entry-title {
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 700;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--blog-heading-color) !important;
	margin-bottom: 1.5rem;
}

/* Text shadow for better readability on "Behind" style */
.single .entry-hero.entry-hero-layout-behind .entry-title {
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3), 0 4px 40px rgba(0, 0, 0, 0.2);
}

/* Light theme - stronger shadow for readability */
body.color-switch-light .entry-hero.entry-hero-layout-behind .entry-title {
	text-shadow:
		0 2px 10px rgba(255, 255, 255, 0.8),
		0 4px 20px rgba(255, 255, 255, 0.6),
		0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Post meta (date, author, categories) */
.single .entry-meta {
	font-size: 1rem;
	color: var(--blog-text-color) !important;
	opacity: 0.8;
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid var(--blog-border-color) !important;
}

.single .entry-meta a {
	color: var(--blog-link-color) !important;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.single .entry-meta a:hover {
	color: var(--blog-link-hover) !important;
}

/* Content Typography */
.single .entry-content,
.single .single-content {
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 1.1875rem !important;
	line-height: 1.55 !important;
	color: var(--blog-text-color) !important;
}

/* Headings in content - размеры управляются через Customizer */
.single .entry-content h2,
.single .single-content h2 {
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var(--blog-heading-color) !important;
	margin-top: 3rem !important;
	margin-bottom: 1.25rem !important;
	padding-bottom: 0.75rem !important;
	border-bottom: 3px solid var(--blog-accent-color) !important;
}

.single .entry-content h3,
.single .single-content h3 {
	font-weight: 700 !important;
	line-height: 1.4 !important;
	color: var(--blog-heading-color) !important;
	margin-top: 2.5rem !important;
	margin-bottom: 1rem !important;
}

.single .entry-content h4,
.single .single-content h4 {
	font-weight: 600 !important;
	line-height: 1.5 !important;
	color: var(--blog-heading-color) !important;
	margin-top: 2rem !important;
	margin-bottom: 0.875rem !important;
}

/* Paragraphs */
.single .entry-content p,
.single .single-content p {
	margin-bottom: 1.25rem !important;
	color: var(--blog-text-color) !important;
}

.single .entry-content p:last-child,
.single .single-content p:last-child {
	margin-bottom: 0 !important;
}

/* Links in content */
.single .entry-content a:not(.kb-tooltips),
.single .single-content a:not(.kb-tooltips) {
	color: var(--blog-link-color) !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	border-bottom: 2px solid transparent !important;
	transition: all 0.2s ease !important;
}

.single .entry-content a:not(.kb-tooltips):hover,
.single .single-content a:not(.kb-tooltips):hover {
	color: var(--blog-link-hover) !important;
	border-bottom-color: var(--blog-link-color) !important;
}

/* Lists */
.single .entry-content ul,
.single .entry-content ol {
	margin: 1.25rem 0;
	padding-left: 1.75rem;
	color: var(--blog-text-color);
}

.single .entry-content li {
	margin-bottom: 0.5rem;
	line-height: 1.45;
}

.single .entry-content li::marker {
	color: var(--blog-accent-color);
	font-weight: 600;
}

/* Blockquotes */
.single .entry-content blockquote {
	background: var(--blog-bg-quote);
	border-left: 4px solid var(--blog-accent-color);
	padding: 1.25rem 1.5rem;
	margin: 1.75rem 0;
	border-radius: 8px;
	font-style: italic;
	color: var(--blog-heading-color);
}

.single .entry-content blockquote p {
	margin-bottom: 0.5rem;
	font-size: 1.125rem;
}

.single .entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.single .entry-content blockquote cite {
	display: block;
	margin-top: 1rem;
	font-size: 1rem;
	color: var(--blog-accent-color);
	font-style: normal;
	font-weight: 600;
}

/* Code blocks */
.single .entry-content code {
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.9em;
	background: var(--blog-bg-code);
	color: var(--blog-accent-color);
	padding: 0.2em 0.5em;
	border-radius: 4px;
}

.single .entry-content pre {
	background: var(--blog-bg-card);
	border: 1px solid var(--blog-border-color);
	border-radius: 8px;
	padding: 1.25rem;
	margin: 1.75rem 0;
	overflow-x: auto;
}

.single .entry-content pre code {
	background: none;
	padding: 0;
	color: var(--blog-text-color);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Images */
.single .entry-content img {
	border-radius: 12px;
	margin: 2rem 0;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.single .entry-content figure {
	margin: 2rem 0;
}

.single .entry-content figcaption {
	margin-top: 1rem;
	text-align: center;
	font-size: 1rem;
	color: var(--blog-text-color);
	opacity: 0.8;
	font-style: italic;
}

/* Tables */
.single .entry-content figure.wp-block-table {
	overflow: visible;
}
@media (max-width: 767px) {
	.single .entry-content figure.wp-block-table {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

.single .entry-content table {
	width: 100%;
	min-width: 480px;
	margin: 1.75rem auto;
	font-size: 1rem;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 12px;
	overflow: hidden;
}

.single .entry-content th,
.single .entry-content td {
	border: none;
	white-space: normal;
	word-break: normal;
}

.single .entry-content th {
	color: var(--blog-accent-color);
	font-weight: 600;
	padding: 0.75rem 0.625rem;
	text-align: left;
	border-bottom: 2px solid var(--blog-accent-color);
	font-size: 0.875em;
}
.single .entry-content th.has-text-align-center {
	text-align: center;
}

.single .entry-content td {
	padding: 0.75rem 0.625rem;
	color: var(--blog-text-color);
	border-bottom: 1px solid var(--blog-border-color);
}
/* Horizontal rule */
.single .entry-content hr {
	margin: 2.5rem 0;
	border: none;
	height: 2px;
	background: linear-gradient(to right, transparent, var(--blog-accent-color), transparent);
}

/* Strong/Bold text */
.single .entry-content strong,
.single .entry-content b {
	font-weight: 700;
	color: var(--blog-heading-color);
}

/* Emphasis/Italic */
.single .entry-content em,
.single .entry-content i {
	font-style: italic;
	color: var(--blog-heading-color);
}

/* =================================================================
   КНОПКИ В КОНТЕНТЕ
   Гибкая система стилизации кнопок с поддержкой разных типов
   Используем CSS переменные темы для автоматической адаптации под светлую/тёмную тему
   ================================================================= */

/* ===== БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕХ КНОПОК ===== */
.single .entry-content .kb-button,
.single .single-content .kb-button,
.single .entry-content .wp-block-button__link,
.single .single-content .wp-block-button__link {
	display: inline-block;
	padding: 0.875rem 2rem;
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	text-align: center;
	border-radius: 12px;
	transition: all var(--duration-slow) var(--ease-premium);
	cursor: pointer;
}

/* ===== FILL КНОПКИ (kb-btn-global-fill) ===== */
/* Основные кнопки с заливкой - используют palette1/palette2 */
.single .entry-content .kb-btn-global-fill,
.single .single-content .kb-btn-global-fill {
	color: var(--global-palette9) !important;
	background: var(--global-palette1) !important;
	border: none !important;
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.single .entry-content .kb-btn-global-fill .kt-btn-inner-text,
.single .single-content .kb-btn-global-fill .kt-btn-inner-text {
	color: var(--global-palette9) !important;
}

.single .entry-content .kb-btn-global-fill:hover,
.single .single-content .kb-btn-global-fill:hover {
	color: var(--global-palette9) !important;
	background: var(--global-palette2) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.single .entry-content .kb-btn-global-fill:active,
.single .single-content .kb-btn-global-fill:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* ===== OUTLINE КНОПКИ (kb-btn-global-outline) ===== */
/* Кнопки с обводкой - используют palette4/palette1 */
.single .entry-content .kb-btn-global-outline,
.single .single-content .kb-btn-global-outline {
	color: var(--global-palette4) !important;
	background: transparent !important;
	border: 2px solid var(--global-palette6) !important;
	box-shadow: none;
}

.single .entry-content .kb-btn-global-outline .kt-btn-inner-text,
.single .single-content .kb-btn-global-outline .kt-btn-inner-text {
	color: var(--global-palette4) !important;
}

.single .entry-content .kb-btn-global-outline:hover,
.single .single-content .kb-btn-global-outline:hover {
	color: var(--global-palette1) !important;
	border-color: var(--global-palette1) !important;
	background: transparent !important;
	transform: translateY(-2px);
}

.single .entry-content .kb-btn-global-outline:hover .kt-btn-inner-text,
.single .single-content .kb-btn-global-outline:hover .kt-btn-inner-text {
	color: var(--global-palette1) !important;
}

.single .entry-content .kb-btn-global-outline:active,
.single .single-content .kb-btn-global-outline:active {
	transform: translateY(0);
}

/* ===== THEME BASE КНОПКИ (kb-btn-global-inherit БЕЗ button-style-secondary) ===== */
/* Наследуют основную тему - palette1/palette2 */
.single .entry-content .kb-btn-global-inherit:not(.button-style-secondary),
.single .single-content .kb-btn-global-inherit:not(.button-style-secondary) {
	color: var(--global-palette9) !important;
	background: var(--global-palette1) !important;
	border: none !important;
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.single .entry-content .kb-btn-global-inherit:not(.button-style-secondary) .kt-btn-inner-text,
.single .single-content .kb-btn-global-inherit:not(.button-style-secondary) .kt-btn-inner-text {
	color: var(--global-palette9) !important;
}

.single .entry-content .kb-btn-global-inherit:not(.button-style-secondary):hover,
.single .single-content .kb-btn-global-inherit:not(.button-style-secondary):hover {
	background: var(--global-palette2) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.single .entry-content .kb-btn-global-inherit:not(.button-style-secondary):active,
.single .single-content .kb-btn-global-inherit:not(.button-style-secondary):active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* ===== THEME SECONDARY КНОПКИ (button-style-secondary) ===== */
/* Вторичные кнопки - используют palette10 (фиолетовый) */
.single .entry-content .button-style-secondary,
.single .single-content .button-style-secondary {
	color: var(--global-palette9) !important;
	background: var(--global-palette10) !important;
	border: none !important;
	box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.single .entry-content .button-style-secondary .kt-btn-inner-text,
.single .single-content .button-style-secondary .kt-btn-inner-text {
	color: var(--global-palette9) !important;
}

.single .entry-content .button-style-secondary:hover,
.single .single-content .button-style-secondary:hover {
	background: var(--global-palette10) !important;
	filter: brightness(1.1);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(109, 40, 217, 0.4);
}

.single .entry-content .button-style-secondary:hover .kt-btn-inner-text,
.single .single-content .button-style-secondary:hover .kt-btn-inner-text {
	color: var(--global-palette9) !important;
}

.single .entry-content .button-style-secondary:active,
.single .single-content .button-style-secondary:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3);
}

/* ===== СТАРЫЕ WordPress БЛОЧНЫЕ КНОПКИ (FALLBACK) ===== */
/* Для совместимости со старыми кнопками WordPress блоков */
.single .entry-content .wp-block-button__link:not([class*="kb-btn-global"]):not(.button-style-secondary),
.single .single-content .wp-block-button__link:not([class*="kb-btn-global"]):not(.button-style-secondary) {
	color: var(--global-palette9);
	background: var(--global-palette1);
	border: none;
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.single .entry-content .wp-block-button__link:not([class*="kb-btn-global"]):not(.button-style-secondary):hover,
.single .single-content .wp-block-button__link:not([class*="kb-btn-global"]):not(.button-style-secondary):hover {
	background: var(--global-palette2);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.single .entry-content .wp-block-button__link:not([class*="kb-btn-global"]):not(.button-style-secondary):active,
.single .single-content .wp-block-button__link:not([class*="kb-btn-global"]):not(.button-style-secondary):active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* Featured Image - only for non-Behind layouts */
.single .entry-hero:not(.entry-hero-layout-behind) .post-thumbnail {
	margin-bottom: 2.5rem;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Featured Image - for Behind layout */
.post-thumbnail.kadence-thumbnail-position-behind {
	border-radius: 16px 16px 0 0 !important;
	overflow: hidden !important;
	position: relative !important;
}

.post-thumbnail.kadence-thumbnail-position-behind .post-thumbnail-inner {
	border-radius: 16px 16px 0 0 !important;
	overflow: hidden !important;
	position: relative !important;
}

.post-thumbnail.kadence-thumbnail-position-behind img {
	border-radius: 16px 16px 0 0 !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
}

/* Закругление углов для картинок на странице блога (архивной) */
.loop-entry .post-thumbnail img,
.archive .post-thumbnail img,
.blog .post-thumbnail img {
	border-radius: 16px !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
}

/* Мягкий градиент для Behind layout - переопределяем Kadence */
.content-style-unboxed .kadence-thumbnail-position-behind:after {
	background: linear-gradient(
		0deg,
		var(--global-palette9) 5%,
		rgba(var(--global-palette9rgb), 0.25) 20%,
		rgba(var(--global-palette9rgb), 0) 35%
	) !important;
}

/* Заголовок поверх градиента */
.entry-hero.entry-hero-layout-behind .entry-header {
	position: relative !important;
	z-index: 2 !important;
}

/* Navigation between posts */
.single .post-navigation {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 2px solid var(--blog-border-color);
}

.single .post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	align-items: stretch;
}

.single .post-navigation a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: var(--blog-bg-code);
	border: 2px solid var(--blog-accent-color);
	border-radius: 8px;
	color: var(--blog-accent-color);
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	transition: all 0.3s ease;
	line-height: 1.4;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.single .post-navigation a:hover {
	background: var(--blog-accent-color);
	color: var(--blog-bg-card);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Если есть только одна кнопка (первый или последний пост) */
.single .post-navigation .nav-links > *:only-child {
	grid-column: 1 / -1;
}

/* Responsive для мобильных */
@media (max-width: 768px) {
	.single .post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.single .post-navigation a {
		padding: 1.25rem;
	}
}

/* Tags and Categories */
.single .entry-taxonomies {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid var(--blog-border-color);
}

.single .entry-taxonomies a {
	display: inline-block;
	margin: 0.5rem 0.5rem 0.5rem 0;
	padding: 0.5rem 1rem;
	background: color-mix(in srgb, var(--tag-color) 10%, transparent);
	border: 1px solid var(--tag-color);
	border-radius: 6px;
	color: var(--tag-color);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.single .entry-taxonomies a:hover {
	background: var(--tag-color);
	color: var(--blog-heading-color);
	transform: translateY(-2px);
}

/* ============================================
   Sidebar Design
   ============================================ */

/* Sidebar container */
.primary-sidebar.widget-area {
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Widget styling */
.primary-sidebar.widget-area .widget {
	background: var(--blog-bg-card);
	padding: 1.5rem;
	border-radius: 12px;
	margin-bottom: 1.5rem;
	border: 1px solid var(--blog-border-color);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Hide sidebar widget when its only content is a Kadence block with visibility settings.
   Kadence uses kvs-*-false classes: lg=desktop, md=tablet, sm=mobile.
   The :only-of-type selector ignores <style> tags since they're a different element type.
   Media queries match Kadence's breakpoints exactly. */
@media screen and (min-width: 1025px) {
	.primary-sidebar.widget-area .widget:has(> div.kvs-lg-false:only-of-type) {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.primary-sidebar.widget-area .widget:has(> div.kvs-md-false:only-of-type) {
		display: none;
	}
}

@media (max-width: 767px) {
	.primary-sidebar.widget-area .widget:has(> div.kvs-sm-false:only-of-type) {
		display: none;
	}
}

/* Widget title */
.primary-sidebar.widget-area .widget-title {
	font-weight: 700 !important;
	font-size: 1.125rem !important;
	line-height: 1.4 !important;
	color: var(--blog-heading-color) !important;
	margin-bottom: 1rem !important;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--blog-accent-color);
}

/* Widget links */
.primary-sidebar.widget-area .widget a {
	color: var(--blog-link-color);
	text-decoration: none;
	transition: color 0.2s ease;
}

.primary-sidebar.widget-area .widget a:hover {
	color: var(--blog-link-hover);
}

/* Widget lists */
.primary-sidebar.widget-area .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.primary-sidebar.widget-area .widget ul li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--blog-border-color);
}

.primary-sidebar.widget-area .widget ul li:last-child {
	border-bottom: none;
}

/* Recent posts in sidebar */
.primary-sidebar.widget-area .loop-entry {
	background: transparent;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1rem;
	border: none !important;
	box-shadow: none !important;
}

.primary-sidebar.widget-area .loop-entry .entry-content-wrap {
	padding: 0 !important;
}

/* Entry titles in sidebar */
.primary-sidebar.widget-area .loop-entry .entry-title {
	font-size: 1rem !important;
	line-height: 1.4 !important;
	margin-bottom: 0.5rem !important;
	font-weight: 600 !important;
}

.primary-sidebar.widget-area .loop-entry .entry-title a {
	color: var(--blog-heading-color) !important;
	text-decoration: none;
}

.primary-sidebar.widget-area .loop-entry .entry-title a:hover {
	color: var(--blog-link-color) !important;
}

/* Entry meta in sidebar */
.primary-sidebar.widget-area .loop-entry .entry-meta {
	font-size: 0.8rem !important;
	color: var(--blog-text-color) !important;
	opacity: 0.7;
	margin-bottom: 0 !important;
	border: none !important;
	padding: 0 !important;
}

/* Sidebar thumbnails */
.primary-sidebar.widget-area .post-thumbnail {
	margin-bottom: 0.75rem;
	border-radius: 8px;
	overflow: hidden;
}

/* ============================================
   Responsive overrides
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
	.single .entry-content-wrap {
		padding: 1.5rem 1.25rem;
	}

	.single .entry-content {
		font-size: 1.125rem;
		line-height: 1.5;
	}

	/* Размеры заголовков h2/h3 управляются через Customizer */
}

/* Mobile */
@media (max-width: 768px) {
  .site-titles {
    margin-left: 4px;
  }

  .site-title {
    font-size: 18px;
  }

  .site-tagline {
    font-size: 11px;
  }

	/* Уменьшаем отступ от хедера до картинки на 2/3 */
	.single .entry-hero {
		margin-top: 1rem;
	}

	.single .entry-content-wrap {
		padding: 1rem 1rem;
	}

	.single .entry-title {
		margin-bottom: 1rem;
		padding-top: 1.5rem;
	}

	/* На мобилке опускаем заголовок ниже для Behind layout */
	.single .entry-hero.entry-hero-layout-behind .entry-title {
		padding-top: 2rem;
	}

	.single .entry-meta {
		font-size: 0.85rem;
		margin-bottom: 1.5rem;
	}

	.single .entry-content {
		font-size: 1.0625rem;
		line-height: 1.5;
	}

	.single .entry-content h2 {
		margin-top: 2rem;
	}

	.single .entry-content h3 {
		margin-top: 1.75rem;
	}

	.single .entry-content h4 {
		/* размер управляется через Customizer */
	}

	.single .entry-content blockquote {
		padding: 1rem 1.25rem;
		margin: 1.25rem 0;
	}

	.single .entry-content pre {
		padding: 1rem;
		margin: 1.25rem 0;
		font-size: 0.875rem;
	}

	.single .entry-content ul,
	.single .entry-content ol {
		padding-left: 1.25rem;
		margin: 1rem 0;
	}

	.single .entry-content li {
		margin-bottom: 0.4rem;
	}

	/* Homepage responsive */
	.hero-title {
		font-size: 2rem !important;
	}

	.hero-subtitle {
		font-size: 1.125rem !important;
	}

	.services-grid {
		grid-template-columns: 1fr !important;
	}

	.posts-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ============================================
   Tolstoy Comments Widget Styling
   ============================================ */

/* Скрываем стандартный заголовок и список комментариев Kadence */
/* (Tolstoy Comments полностью заменяет стандартные комментарии) */
.single .comments-title,
.single .comments-area > h2,
.single .comment-list,
.single .comment-navigation,
.single .no-comments {
	display: none !important;
}

/* Скрываем SEO-версию комментариев от Tolstoy (если включена индексация) */
.single .tolstoycomments-search-engine {
	display: none !important;
}

/* Скрываем счетчик комментариев Tolstoy (отображается отдельно от виджета) */
.tolstoycomments-cc {
	display: none !important;
}

/* Убедимся что хедер всегда поверх виджета Tolstoy (у которого есть свой sticky header) */
#masthead,
.site-header-wrap {
	z-index: 10000 !important;
	position: relative;
}
/* Fix: content showing above sticky header in Telegram/in-app browsers */
/* box-shadow extends upward and cant be clipped by overflow */
.kadence-sticky-header {
	background: var(--global-palette8);
	box-shadow: 0 -100vh 0 0 var(--global-palette8) !important;
}
#tolstoycomments {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 2px solid var(--blog-border-color);
	position: relative;
	z-index: 1;
}

/* Виджет Tolstoy имеет внутренний sticky header - убираем лишние отступы */
#tolstoycomments .tolstoycomments-feed,
#tolstoycomments iframe {
	margin-top: 0;
}

/* Заголовок секции комментариев */
#tolstoycomments h2,
#tolstoycomments h3 {
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	color: var(--blog-heading-color) !important;
}

/* Плавная интеграция с дизайном блога */
#tolstoycomments iframe {
	max-width: 100%;
	border-radius: 8px;
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
	#tolstoycomments {
		margin-top: 3rem;
		padding-top: 2rem;
	}
}

/* Placeholder для виджета при смене темы */
#tolstoy-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 2px solid var(--blog-border-color);
	background: var(--global-palette9);
	border-radius: 8px;
	transition: opacity 0.3s ease-in-out;
}

/* Spinner для placeholder */
.tolstoy-placeholder-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--global-palette6);
	border-top-color: var(--global-palette1);
	border-radius: 50%;
	animation: tolstoy-spin 0.8s linear infinite;
	opacity: 0.7;
}

@keyframes tolstoy-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Плавное появление виджета */
#tolstoycomments {
	transition: opacity 0.3s ease-in-out;
}

/* ============================================
   Tooltips
   ============================================ */

/* Kadence tooltips - добавляем пунктирное подчеркивание */
a.kb-tooltips,
.kb-tooltips {
	border-bottom: 1px dashed currentColor !important;
	text-decoration: none !important;
	cursor: help !important;
}

/* ============================================
   Telegram Subscribe Button
   ============================================ */

/* Таргетируем все Kadence кнопки, ведущие на Telegram */
.wp-block-kadence-advancedbtn a.kt-button[href*="t.me"],
.wp-block-kadence-advancedbtn .kt-button[href*="t.me"],
.wp-block-kadence-advancedbtn .kb-button[href*="t.me"],
a.kt-button[href*="t.me"],
.kt-button[href*="t.me"],
.kb-button[href*="t.me"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 12px 24px !important;
	font-weight: 600 !important;
	border-radius: 10px !important;
	border: none !important;
	transition: all 0.3s ease !important;
	text-decoration: none !important;
}

/* Светлая тема */
body.color-switch-light a.kt-button[href*="t.me"] {
	background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

/* Иконка внутри кнопки - тот же цвет что и текст */
body.color-switch-light a.kt-button[href*="t.me"] .kb-svg-icon,
body.color-switch-light a.kt-button[href*="t.me"] svg,
body.color-switch-light a.kt-button[href*="t.me"] .kadence-svg-iconset {
	fill: #ffffff !important;
	color: #ffffff !important;
}

body.color-switch-light a.kt-button[href*="t.me"]:hover {
	background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

body.color-switch-light a.kt-button[href*="t.me"]:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

/* Темная тема */
body.color-switch-dark a.kt-button[href*="t.me"] {
	background: linear-gradient(135deg, #00d97e 0%, #00b369 100%) !important;
	color: #0f172a !important;
	box-shadow: 0 4px 12px rgba(0, 217, 126, 0.3);
}

/* Иконка внутри кнопки - тот же цвет что и текст */
body.color-switch-dark a.kt-button[href*="t.me"] .kb-svg-icon,
body.color-switch-dark a.kt-button[href*="t.me"] svg,
body.color-switch-dark a.kt-button[href*="t.me"] .kadence-svg-iconset {
	fill: #0f172a !important;
	color: #0f172a !important;
}

body.color-switch-dark a.kt-button[href*="t.me"]:hover {
	background: linear-gradient(135deg, #00f090 0%, #00d97e 100%) !important;
	color: #0f172a !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 217, 126, 0.4);
}

body.color-switch-dark a.kt-button[href*="t.me"]:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(0, 217, 126, 0.3);
}

/* Уменьшение отступа от хедера до контента */
.single #primary.content-area {
	margin-top: 1.5rem !important;
}

/* Уменьшение отступа от хедера до контента на странице архива/блога */
.blog #primary.content-area,
.archive #primary.content-area,
.category #primary.content-area,
.tag #primary.content-area,
.search #primary.content-area {
	margin-top: 1.5rem !important;
}

/* Уменьшение отступа от хедера до контента на мобилке */
@media (max-width: 767px) {
	#primary.content-area {
		margin-top: 0.7rem !important;
	}
}

/* Test: force staging deployment with fixed workflow */

/* ============================================
   Similar Posts / Related Posts Styling (Kadence Entry Related)
   ============================================ */

/* Родительский контейнер - используем flexbox для изменения порядка элементов */
.single .content-wrap {
	display: flex !important;
	flex-direction: column !important;
}

/* Контент поста остается первым */
.single article {
	order: 0 !important;
	margin-bottom: 2rem !important;
	padding-bottom: 1.5rem !important;
	/* border-bottom убрана - комментарии ближе к контенту */
}

/* Комментарии показываем вторыми (после контента, но перед Similar Posts) */
.single #comments {
	order: 1 !important;
}

/* Similar Posts показываем последними */
.single .entry-related {
	order: 2 !important;
}

/* Контейнер для Similar Posts - ограничиваем ширину */
.single .entry-related {
	max-width: 100% !important;
	width: 100% !important;
	background: transparent !important;
	padding: 0 !important;
	margin-bottom: 2rem !important;
}

.single .entry-related .entry-related-inner {
	max-width: 100% !important;
	width: 100% !important;
	margin: 2.5rem 0 0 0 !important;
	padding: 0 !important;
	border-top: none !important;
	box-sizing: border-box !important;
	position: relative !important;
}

/* Target the alignwide inner content wrapper */
.single .entry-related .entry-related-inner-content {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Заголовок блока */
.single .entry-related-title {
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 1.875rem !important;
	font-weight: 700 !important;
	color: var(--blog-heading-color) !important;
	margin-bottom: 3rem !important;
	padding-bottom: 0.75rem !important;
	border-bottom: 3px solid var(--blog-accent-color) !important;
}

/* Splide карусель - добавляем пространство для hover эффекта */
.single .entry-related .splide {
	padding: 15px 0 !important;
	margin: -15px 0 !important;
}

.single .entry-related .splide__track {
	padding: 15px 0 !important;
	margin: -15px 0 !important;
}

.single .entry-related .splide__list {
	padding: 15px 0 !important;
	margin: -15px 0 !important;
}

.single .entry-related .splide__slide {
	position: relative !important;
	z-index: 1 !important;
	padding: 0 !important;
}

/* Карточки постов внутри Similar Posts */
.single .entry-related .loop-entry {
	background: var(--blog-bg-card) !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	border: 1px solid var(--blog-border-color) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
	transition: all 0.3s ease !important;
	position: relative !important;
	z-index: 1 !important;
}

/* Убираем линию под автором и датой */
.single .entry-related .loop-entry .entry-meta {
	border-bottom: none !important;
	padding-bottom: 0 !important;
}

.single .entry-related .splide__slide:hover {
	z-index: 100 !important;
}

.single .entry-related .splide__slide:hover .loop-entry {
	transform: translateY(-5px) !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Точки пагинации карусели */
.single .entry-related .splide__pagination {
	bottom: -15px !important;
	position: relative !important;
}

.single .entry-related .splide__pagination__page {
	background: var(--blog-border-color) !important;
	opacity: 0.5 !important;
	width: 10px !important;
	height: 10px !important;
	margin: 0 6px !important;
	transition: all 0.3s ease !important;
}

.single .entry-related .splide__pagination__page.is-active {
	background: var(--blog-accent-color) !important;
	opacity: 1 !important;
	transform: scale(1.2) !important;
}

/* Светлая тема - точки пагинации */
body.color-switch-light .single .entry-related .splide__pagination__page {
	background: #9ca3af !important;
}

body.color-switch-light .single .entry-related .splide__pagination__page.is-active {
	background: var(--blog-accent-color) !important;
}

/* Стрелочки навигации карусели - выносим за пределы карточек */
.single .entry-related .splide__arrow {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	background: var(--blog-bg-card) !important;
	border: 1px solid var(--blog-border-color) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	opacity: 1 !important;
	z-index: 10 !important;
	color: var(--blog-text-color) !important;
}

/* Светлая тема - делаем стрелки видимыми */
body.color-switch-light .single .entry-related .splide__arrow {
	background: #ffffff !important;
	border: 2px solid #e5e7eb !important;
	color: #374151 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.single .entry-related .splide__arrow:hover {
	background: var(--blog-accent-color) !important;
	border-color: var(--blog-accent-color) !important;
	color: white !important;
}

body.color-switch-light .single .entry-related .splide__arrow:hover {
	background: var(--blog-accent-color) !important;
	border-color: var(--blog-accent-color) !important;
	color: white !important;
}

.single .entry-related .splide__arrow--prev {
	left: -60px !important;
}

.single .entry-related .splide__arrow--next {
	right: -60px !important;
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
	.single .entry-related {
		padding: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.single .entry-related .entry-related-inner {
		margin-top: 2rem !important;
		margin-left: auto !important;
		margin-right: auto !important;
		padding: 0 16px !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.single .entry-related-title {
		font-size: 1.625rem !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 2rem !important;
	}

	/* Уменьшаем padding для hover на мобилке */
	.single .entry-related .splide,
	.single .entry-related .splide__track,
	.single .entry-related .splide__list {
		padding: 10px 0 !important;
		margin: -10px 0 !important;
	}

	/* Стрелочки на мобилке - внутри контейнера */
	.single .entry-related .splide__arrow {
		width: 36px !important;
		height: 36px !important;
	}

	.single .entry-related .splide__arrow--prev {
		left: 8px !important;
	}

	.single .entry-related .splide__arrow--next {
		right: 8px !important;
	}
}

/* ============================================
   Инвертированные секции
   ============================================ */

/**
 * Класс .section-inverted для секций с фоном, противоположным теме
 *
 * ЛОГИКА:
 * - Светлая тема + светлая секция = ОК (стандартные цвета)
 * - Тёмная тема + тёмная секция = ОК (стандартные цвета)
 * - Светлая тема + ТЁМНАЯ секция = нужен .section-inverted
 * - Тёмная тема + СВЕТЛАЯ секция = нужен .section-inverted
 *
 * ИСПОЛЬЗОВАНИЕ:
 * 1. В редакторе Gutenberg выбираешь секцию (Row Layout / Section)
 * 2. В настройках блока → Advanced → Additional CSS Class(es)
 * 3. Добавляешь класс: section-inverted
 * 4. Все цвета внутри автоматически инвертируются!
 */

/* Светлая тема + инвертированная секция = применяем ТЁМНЫЕ цвета */
body.color-switch-light .section-inverted {
	--inv-accent-primary: #00d97e;
	--inv-accent-secondary: #00f090;
	--inv-text-primary: #e2e6e8;
	--inv-text-secondary: #9ca3af;
	--inv-text-muted: #6b7280;
	--inv-bg-primary: #0a0f1e;
	--inv-bg-secondary: #1e293b;
	--inv-gradient-start: #00d97e;
	--inv-gradient-mid: #00b369;
	--inv-gradient-end: #0f172a;
}

/* Тёмная тема + инвертированная секция = применяем СВЕТЛЫЕ цвета */
body.color-switch-dark .section-inverted {
	--inv-accent-primary: #047857;
	--inv-accent-secondary: #059669;
	--inv-text-primary: #0f172a;
	--inv-text-secondary: #334155;
	--inv-text-muted: #64748b;
	--inv-bg-primary: #f9fafb;
	--inv-bg-secondary: #f1f5f9;
	--inv-gradient-start: #047857;
	--inv-gradient-mid: #059669;
	--inv-gradient-end: #334155;
}

/* ============================================
   Применение инвертированных цветов
   ============================================ */

/*
 * ВАЖНО: Исключаем элементы с явно заданными цветами через Kadence
 * (классы has-text-color, has-background) — они уже настроены правильно
 */

/* Заголовки (без явного цвета) */
.section-inverted h1:not(.has-text-color),
.section-inverted h2:not(.has-text-color),
.section-inverted h3:not(.has-text-color),
.section-inverted h4:not(.has-text-color),
.section-inverted h5:not(.has-text-color),
.section-inverted h6:not(.has-text-color) {
	color: var(--inv-text-primary) !important;
}

/* Обычный текст (без явного цвета) */
.section-inverted p:not(.has-text-color),
.section-inverted li:not(.has-text-color) {
	color: var(--inv-text-secondary) !important;
}

/* Ссылки (без явного цвета) */
.section-inverted a:not(.kb-button):not(.has-text-color) {
	color: var(--inv-accent-primary) !important;
}

.section-inverted a:not(.kb-button):not(.has-text-color):hover {
	color: var(--inv-accent-secondary) !important;
}

/* Градиенты (kt-highlight) - тёмный текст на зелёном градиенте всегда читается лучше */
.section-inverted .kt-highlight,
.section-inverted mark.kt-highlight {
	color: #0f172a !important;  /* Фиксированный тёмный — хорошо читается на зелёном */
}

/* Fix: Убираем стили с вложенного kt-highlight (баг пресета Kadence) */
.kt-highlight .kt-highlight,
mark.kt-highlight mark.kt-highlight {
	background: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

/* Кнопки Kadence */
.section-inverted .kb-button {
	background: var(--inv-accent-primary) !important;
	color: var(--inv-bg-primary) !important;
	border-color: var(--inv-accent-primary) !important;
}

.section-inverted .kb-button:hover {
	background: var(--inv-accent-secondary) !important;
	border-color: var(--inv-accent-secondary) !important;
}

/* ============================================
   LWP Table of Contents - Compact Sidebar TOC
   ============================================ */

/* Sidebar TOC widget - убираем лишние отступы контейнеров */
.primary-sidebar .widget_block:has(.lwptoc) {
	padding: 0.5rem !important;
	margin-bottom: 0 !important;
}

.primary-sidebar .widget_block .kt-inside-inner-col {
	padding: 0 !important;
}

.primary-sidebar .lwptoc {
	margin: 0 !important;
}

/* Container */
.lwptoc {
	font-size: 0.875rem;
	line-height: 1.4;
}

.lwptoc_i {
	padding: 0;
}

/* Header - скрываем скобки через font-size: 0 */
.lwptoc_header {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--global-palette6, rgba(128, 128, 128, 0.2));
	font-size: 0;
}

.lwptoc_title {
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--global-palette4, #94a3b8) !important;
	margin: 0;
}

/* Toggle кнопка */
.lwptoc_toggle {
	font-size: 0.65rem;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.lwptoc_toggle:hover {
	opacity: 1;
}

.lwptoc_toggle_label {
	font-size: 0.65rem;
	color: var(--global-palette5, #64748b) !important;
	text-decoration: none !important;
}

.lwptoc_toggle_label:hover {
	color: var(--global-palette1, #00d97e) !important;
}

/* Items container */
.lwptoc_items {
	padding: 0 !important;
	margin: 0 !important;
}

.lwptoc_itemWrap {
	display: flex;
	flex-direction: column;
	gap: 0 !important;
}

/* Каждый пункт */
.lwptoc_item {
	margin: 0 !important;
	padding: 0 !important;
}

.lwptoc_item a {
	display: flex;
	align-items: flex-start;
	gap: 0.25rem;
	padding: 0.15rem 0.35rem;
	margin-left: -0.35rem;
	border-left: 2px solid transparent;
	color: var(--global-palette4, #cbd5e1) !important;
	text-decoration: none !important;
	transition: all 0.15s ease;
	border-radius: 0 3px 3px 0;
}

.lwptoc_item a:hover {
	color: var(--global-palette1, #00d97e) !important;
	border-left-color: var(--global-palette1, #00d97e);
	background: var(--global-palette7, rgba(0, 217, 126, 0.05));
}

/* Номер пункта */
.lwptoc_item_number {
	flex-shrink: 0;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--global-palette5, #64748b) !important;
	opacity: 0.7;
	min-width: 1.2rem;
}

/* Текст пункта */
.lwptoc_item_label {
	font-size: 0.8125rem;
	line-height: 1.2;
	color: inherit !important;
}

/* Вложенные пункты */
.lwptoc_item .lwptoc_item {
	margin-left: 0.75rem !important;
}

.lwptoc_item .lwptoc_item a {
	padding: 0.1rem 0.35rem;
}

.lwptoc_item .lwptoc_item .lwptoc_item_number {
	font-size: 0.65rem;
}

/* Sidebar sticky positioning fix */
.sidebar-inner-wrap .widget_block:first-child {
	margin-top: 0;
}

/* Responsive - на мобильных скрываем sidebar TOC */
@media (max-width: 1024px) {
	.primary-sidebar .lwptoc {
		display: none;
	}
}

/* =============================================
   Reading Time (Global - all posts)
   Использует класс .posted-on для наследования стилей Kadence
   ============================================= */

/* Время чтения наследует стили от .posted-on автоматически.
   Kadence сам добавляет разделитель через .entry-meta-divider-dot */

/* =============================================
   Featured Article Styles (.article-featured)
   Переиспользуемый класс для статей с карточками

   Использование: в Gutenberg → Post → Advanced →
   Additional CSS Class(es) → article-featured
   ============================================= */

/* --- Карточка-факт (.fact-card) - opt-in класс ---
   Использование: в Gutenberg → Block (H3) → Advanced →
   Additional CSS Class(es) → fact-card

   Дизайн: V1 Subtle Glow — мягкий градиент с зелёным оттенком,
   без левой границы (не похоже на цитату)
*/

.fact-card {
	position: relative;
	padding: 1.25rem 1.5rem !important;
	margin: 2rem 0 1rem 0 !important;
	background: linear-gradient(135deg,
		rgba(0, 217, 126, 0.05) 0%,
		var(--global-palette8, rgba(15, 23, 42, 0.6)) 100%) !important;
	border: none !important;
	border-radius: 12px !important;
	box-shadow:
		0 2px 16px rgba(0, 0, 0, 0.2),
		inset 0 0 0 1px rgba(0, 217, 126, 0.1) !important;
	transition: box-shadow 0.2s ease, background 0.2s ease !important;
}

.fact-card:hover {
	background: linear-gradient(135deg,
		rgba(0, 217, 126, 0.08) 0%,
		var(--global-palette8, rgba(15, 23, 42, 0.7)) 100%) !important;
	box-shadow:
		0 4px 20px rgba(0, 0, 0, 0.25),
		inset 0 0 0 1px rgba(0, 217, 126, 0.18) !important;
}

/* Светлая тема */
.color-switch-light .fact-card {
	background: linear-gradient(135deg,
		rgba(5, 150, 105, 0.06) 0%,
		rgba(248, 250, 252, 0.8) 100%) !important;
	box-shadow:
		0 2px 12px rgba(0, 0, 0, 0.06),
		inset 0 0 0 1px rgba(5, 150, 105, 0.12) !important;
}

.color-switch-light .fact-card:hover {
	background: linear-gradient(135deg,
		rgba(5, 150, 105, 0.1) 0%,
		rgba(248, 250, 252, 0.9) 100%) !important;
	box-shadow:
		0 4px 16px rgba(0, 0, 0, 0.08),
		inset 0 0 0 1px rgba(5, 150, 105, 0.2) !important;
}

/* --- Нумерованные списки как карточки --- */

.article-featured .entry-content > ol.wp-block-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 1.5rem 0 !important;
	counter-reset: conclusion-counter;
}

.article-featured .entry-content > ol.wp-block-list > li {
	position: relative;
	background: linear-gradient(145deg,
		var(--global-palette8, rgba(30, 41, 59, 0.5)) 0%,
		var(--global-palette9, rgba(30, 41, 59, 0.25)) 100%);
	border: 1px solid rgba(0, 217, 126, 0.12);
	border-radius: 12px;
	padding: 1.25rem 1.5rem !important;
	margin-bottom: 1rem !important;
	counter-increment: conclusion-counter;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.article-featured .entry-content > ol.wp-block-list > li::before {
	content: counter(conclusion-counter);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	background: linear-gradient(135deg, var(--global-palette1, #00d97e) 0%, var(--global-palette2, #00b368) 100%);
	color: var(--global-palette9, #0a0f0d);
	font-weight: 700;
	font-size: 1rem;
	border-radius: 6px;
	margin-right: 0.75rem;
	vertical-align: middle;
	position: relative;
	top: -1px;
}

.article-featured .entry-content > ol.wp-block-list > li strong {
	color: var(--global-palette3, #fff);
	font-size: 1.1rem;
}

.article-featured .entry-content > ol.wp-block-list > li:hover {
	border-color: rgba(0, 217, 126, 0.25);
	background: linear-gradient(145deg,
		var(--global-palette8, rgba(30, 41, 59, 0.6)) 0%,
		var(--global-palette9, rgba(30, 41, 59, 0.35)) 100%);
}

/* Светлая тема */
.color-switch-light .article-featured .entry-content > ol.wp-block-list > li {
	background: linear-gradient(145deg,
		rgba(0, 217, 126, 0.06) 0%,
		rgba(0, 217, 126, 0.02) 100%);
	border-color: rgba(0, 179, 104, 0.15);
}

.color-switch-light .article-featured .entry-content > ol.wp-block-list > li strong {
	color: var(--global-palette4, #1e293b);
}

/* =============================================
   Stat Callout Shortcode [stat_callout]
   Использование: [stat_callout number="6.22×" text="..."]
   ============================================= */

.stat-callout {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 2rem 1.5rem;
	margin: 2rem 0;
	background: linear-gradient(145deg,
		var(--global-palette8, rgba(30, 41, 59, 0.6)) 0%,
		var(--global-palette9, rgba(30, 41, 59, 0.3)) 100%);
	border: 1px solid rgba(0, 217, 126, 0.15);
	border-radius: 16px;
}

.stat-callout__number {
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 0.75rem;
	background: linear-gradient(135deg, var(--global-palette1, #00d97e) 0%, #4ade80 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.stat-callout__text {
	font-size: 1rem;
	color: var(--global-palette4, #94a3b8);
	max-width: 400px;
	line-height: 1.5;
}

/* Светлая тема */
.color-switch-light .stat-callout {
	background: linear-gradient(145deg,
		rgba(0, 217, 126, 0.08) 0%,
		rgba(0, 217, 126, 0.02) 100%);
	border-color: rgba(0, 179, 104, 0.2);
}

.color-switch-light .stat-callout__text {
	color: var(--global-palette4, #475569);
}

/* =============================================
   Text Callout Shortcode [callout_text]
   Использование: [callout_text]Текст[/callout_text]
   ============================================= */

.callout-text {
	position: relative;
	padding: 1.75rem 2rem;
	margin: 2.5rem 0;
	background: linear-gradient(135deg,
		rgba(0, 217, 126, 0.06) 0%,
		rgba(0, 217, 126, 0.02) 50%,
		transparent 100%);
	border: 1px solid rgba(0, 217, 126, 0.15);
	border-radius: 12px;
	overflow: hidden;
}

.callout-text::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg,
		var(--global-palette1, #00d97e) 0%,
		transparent 70%);
}

.callout-text p {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--global-palette3, #e2e8f0);
	margin: 0;
	font-weight: 500;
}

/* Светлая тема */
.color-switch-light .callout-text {
	background: linear-gradient(135deg,
		rgba(0, 217, 126, 0.05) 0%,
		rgba(0, 217, 126, 0.01) 50%,
		transparent 100%);
	border-color: rgba(0, 179, 104, 0.2);
}

.color-switch-light .callout-text::after {
	background: linear-gradient(90deg,
		rgba(0, 179, 104, 0.5) 0%,
		transparent 70%);
}

.color-switch-light .callout-text p {
	color: var(--global-palette4, #475569);
}

/* =============================================
   Author Box - Glassmorphism Style
   ============================================= */

.entry-author-profile.author-profile {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	padding: 24px 28px;
	border-radius: 20px;
	position: relative;
	overflow: hidden;
	margin-top: 1.25rem;
	min-height: 140px; /* Ensure space for avatar + name */
	/* Dark theme (default) */
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Radial gradient overlay */
.entry-author-profile.author-profile::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle at 15% 40%, rgba(5, 150, 105, 0.12) 0%, transparent 45%);
	pointer-events: none;
}

/* Avatar container - becomes the left column with name below */
.entry-author-profile .entry-author-avatar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

.entry-author-profile .entry-author-avatar img.avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(5, 150, 105, 0.4);
	box-shadow: 0 4px 16px rgba(5, 150, 105, 0.15);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.entry-author-profile:hover .entry-author-avatar img.avatar {
	border-color: rgba(5, 150, 105, 0.6);
	box-shadow: 0 4px 20px rgba(5, 150, 105, 0.25);
}

/* Author name - positioned after avatar via CSS order trick */
.entry-author-profile .entry-author-name {
	position: absolute;
	left: 28px;
	top: calc(24px + 72px + 10px); /* padding + avatar height + gap */
	width: 72px;
	display: block;
	font-family: var(--global-heading-font-family, inherit);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	z-index: 1;
	line-height: 1.3;
}

.entry-author-profile .entry-author-name a {
	color: var(--global-palette3, #f8fafc);
	text-decoration: none;
	transition: color 0.2s ease;
}

.entry-author-profile .entry-author-name a:hover {
	color: var(--global-palette1, #059669);
}

/* Author bio */
.entry-author-profile .entry-author-description {
	flex: 1;
	font-size: 14px;
	line-height: 1.65;
	color: var(--global-palette5, #cbd5e1);
	position: relative;
	z-index: 1;
	padding-left: 0;
}

.entry-author-profile .entry-author-description p {
	margin: 0;
}

/* Light theme */
.color-switch-light .entry-author-profile.author-profile {
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.color-switch-light .entry-author-profile .entry-author-name a {
	color: var(--global-palette3, #0f172a);
}

.color-switch-light .entry-author-profile .entry-author-description {
	color: var(--global-palette5, #475569);
}

/* Responsive */
@media (max-width: 600px) {
	.entry-author-profile.author-profile {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 24px 20px;
		min-height: auto;
	}

	.entry-author-profile .entry-author-name {
		position: static;
		width: auto;
		margin-top: -4px;
	}

	.entry-author-profile .entry-author-avatar {
		margin-bottom: 8px;
	}

	.entry-author-profile .entry-author-description {
		text-align: center;
	}

	.entry-author-profile .entry-author-avatar img.avatar {
		width: 68px;
		height: 68px;
	}
}
/* ============================================
   About Page Custom Template Styles
   ============================================ */

/* Variables - using Kadence palette vars */
.about-page-custom {
	--about-primary-glow: rgba(0, 217, 126, 0.4);
	--about-border-subtle: rgba(255, 255, 255, 0.08);
	--about-shadow-color: rgba(0, 0, 0, 0.5);
}

/* Light theme overrides */
.color-switch-light .about-page-custom {
	--about-primary-glow: rgba(5, 150, 105, 0.3);
	--about-border-subtle: rgba(0, 0, 0, 0.08);
	--about-shadow-color: rgba(0, 0, 0, 0.15);
}

/* ==================== HERO SECTION ==================== */
.about-hero {
	min-height: auto;
	display: flex;
	align-items: center;
	padding: 60px 0 80px;
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 70% 30%, rgba(0, 217, 126, 0.08), transparent 50%),
		radial-gradient(ellipse 60% 40% at 20% 70%, rgba(124, 58, 237, 0.06), transparent 50%),
		var(--global-palette9);
}

.color-switch-light .about-hero {
	background:
		radial-gradient(ellipse 80% 60% at 70% 30%, rgba(5, 150, 105, 0.12), transparent 50%),
		radial-gradient(ellipse 60% 40% at 20% 70%, rgba(109, 40, 217, 0.08), transparent 50%),
		var(--global-palette9);
}

.about-hero__pattern {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.06;
	z-index: 0;
}

.about-hero__container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

.about-hero__content {
	display: grid;
	grid-template-columns: 420px 1fr;
	gap: 80px;
	align-items: center;
}

/* Author Photo */
.about-hero__photo-wrapper {
	position: relative;
}

.about-hero__photo-wrapper::before {
	content: '';
	position: absolute;
	top: -12px;
	left: -12px;
	right: -12px;
	bottom: -12px;
	background: linear-gradient(135deg, var(--global-palette1), var(--global-palette10, #7c3aed));
	border-radius: 28px;
	opacity: 0.25;
	filter: blur(25px);
	animation: aboutGlowPulse 4s ease-in-out infinite;
}

.color-switch-light .about-hero__photo-wrapper::before {
	opacity: 0.35;
	filter: blur(30px);
	animation-name: aboutGlowPulseLight;
}

@keyframes aboutGlowPulse {
	0%, 100% { opacity: 0.25; transform: scale(1); }
	50% { opacity: 0.35; transform: scale(1.02); }
}

@keyframes aboutGlowPulseLight {
	0%, 100% { opacity: 0.35; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(1.03); }
}

.about-hero__photo {
	width: 380px;
	height: 440px;
	border-radius: 24px;
	object-fit: cover;
	object-position: center top;
	position: relative;
	border: 2px solid var(--about-border-subtle);
	box-shadow: 0 30px 60px var(--about-shadow-color);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-hero__photo:hover {
	transform: translateY(-8px);
	box-shadow: 0 40px 80px var(--about-shadow-color);
}

/* Hero Text */
.about-hero__text {
	animation: aboutFadeInUp 0.8s ease-out;
}

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

.about-hero__title {
	font-size: clamp(40px, 5vw, 56px);
	font-weight: 700;
	color: var(--global-palette3);
	line-height: 1.15;
	margin-bottom: 24px;
	letter-spacing: -0.02em;
}

.about-hero__role {
	font-size: 19px;
	color: var(--global-palette5);
	max-width: 480px;
	margin: 0;
}

.about-hero__role strong {
	color: var(--global-palette4);
}

/* ==================== TIMELINE SECTION ==================== */
.about-timeline {
	padding: 80px 0;
	position: relative;
	background: var(--global-palette8);
}

.about-timeline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: var(--geo-pattern-url);
	background-size: cover;
	background-position: center;
	opacity: 0.03;
}

.color-switch-light .about-timeline::before {
	opacity: 0.05;
}

.about-timeline__container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

.about-timeline__header {
	text-align: center;
	margin-bottom: 56px;
}

.about-timeline__title {
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 700;
	color: var(--global-palette3);
	letter-spacing: -0.02em;
	margin: 0;
}

/* Timeline Items */
.about-timeline__items {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.about-timeline__items::before {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg,
		var(--global-palette14, #f59e0b) 0%,
		var(--global-palette12, #3b82f6) 25%,
		var(--global-palette1) 50%,
		var(--global-palette1) 100%);
	border-radius: 3px;
}

.about-timeline__item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 48px;
	position: relative;
	opacity: 0;
	transform: translateY(15px);
	animation: aboutReveal 0.5s ease forwards;
}

.about-timeline__item:nth-child(1) { animation-delay: 0.05s; }
.about-timeline__item:nth-child(2) { animation-delay: 0.1s; }
.about-timeline__item:nth-child(3) { animation-delay: 0.15s; }
.about-timeline__item:nth-child(4) { animation-delay: 0.2s; }
.about-timeline__item:nth-child(5) { animation-delay: 0.25s; }

@keyframes aboutReveal {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.about-timeline__item:nth-child(odd) {
	flex-direction: row-reverse;
}

.about-timeline__item:nth-child(odd) .about-timeline__item-content {
	text-align: right;
	padding-right: 60px;
	padding-left: 0;
}

.about-timeline__item:nth-child(even) .about-timeline__item-content {
	padding-left: 60px;
}

.about-timeline__item-content {
	flex: 1;
	max-width: calc(50% - 30px);
}

.about-timeline__dot {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 56px;
	height: 56px;
	background: var(--global-palette7);
	border: 3px solid var(--global-palette1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: all var(--duration-slow) var(--ease-premium);
	box-shadow: 0 0 0 8px var(--global-palette8);
}

.about-timeline__dot svg {
	width: 24px;
	height: 24px;
	color: var(--global-palette1);
	transition: all var(--duration-slow) var(--ease-premium);
}

.about-timeline__item:hover .about-timeline__dot {
	transform: translateX(-50%) scale(1.05);
	box-shadow: 0 0 20px var(--about-primary-glow), 0 0 0 8px var(--global-palette8);
}

/* Timeline item colors */
.about-timeline__item[data-status="negative"] .about-timeline__dot {
	border-color: var(--global-palette14, #f59e0b);
}
.about-timeline__item[data-status="negative"] .about-timeline__dot svg {
	color: var(--global-palette14, #f59e0b);
}
.about-timeline__item[data-status="negative"]:hover .about-timeline__dot {
	box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 0 8px var(--global-palette8);
}

.about-timeline__item[data-status="neutral"] .about-timeline__dot {
	border-color: var(--global-palette12, #3b82f6);
}
.about-timeline__item[data-status="neutral"] .about-timeline__dot svg {
	color: var(--global-palette12, #3b82f6);
}
.about-timeline__item[data-status="neutral"]:hover .about-timeline__dot {
	box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 0 8px var(--global-palette8);
}

.about-timeline__item[data-status="future"] .about-timeline__dot {
	border-color: var(--global-palette10, #7c3aed);
}
.about-timeline__item[data-status="future"] .about-timeline__dot svg {
	color: var(--global-palette10, #7c3aed);
}
.about-timeline__item[data-status="future"]:hover .about-timeline__dot {
	box-shadow: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 0 8px var(--global-palette8);
}

.about-timeline__date {
	display: inline-block;
	background: rgba(0, 217, 126, 0.1);
	border: 1px solid rgba(0, 217, 126, 0.2);
	padding: 6px 14px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--global-palette1);
	margin-bottom: 16px;
}

.color-switch-light .about-timeline__date {
	background: rgba(5, 150, 105, 0.1);
	border-color: rgba(5, 150, 105, 0.2);
}

.about-timeline__item[data-status="negative"] .about-timeline__date {
	background: rgba(245, 158, 11, 0.1);
	border-color: rgba(245, 158, 11, 0.2);
	color: var(--global-palette14, #f59e0b);
}

.about-timeline__item[data-status="neutral"] .about-timeline__date {
	background: rgba(59, 130, 246, 0.1);
	border-color: rgba(59, 130, 246, 0.2);
	color: var(--global-palette12, #3b82f6);
}

.about-timeline__item[data-status="future"] .about-timeline__date {
	background: rgba(124, 58, 237, 0.1);
	border-color: rgba(124, 58, 237, 0.2);
	color: var(--global-palette10, #7c3aed);
}

.about-timeline__item-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--global-palette3);
	margin: 0 0 10px;
}

.about-timeline__item-desc {
	font-size: 16px;
	color: var(--global-palette5);
	line-height: 1.6;
	margin: 0;
}

/* ==================== WHY SECTION ==================== */
.about-why {
	padding: 80px 0;
	position: relative;
	background: var(--global-palette9);
}

.about-why::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(ellipse 50% 40% at 80% 20%, rgba(59, 130, 246, 0.05), transparent),
		radial-gradient(ellipse 40% 30% at 20% 80%, rgba(0, 217, 126, 0.04), transparent);
	pointer-events: none;
}

.color-switch-light .about-why::before {
	background:
		radial-gradient(ellipse 50% 40% at 80% 20%, rgba(59, 130, 246, 0.08), transparent),
		radial-gradient(ellipse 40% 30% at 20% 80%, rgba(5, 150, 105, 0.06), transparent);
}

.about-why__container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

.about-why__content {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.about-why__header {
	margin-bottom: 48px;
}

.about-why__title {
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 700;
	color: var(--global-palette3);
	letter-spacing: -0.02em;
	margin: 0;
}

.about-why__text {
	font-size: 18px;
	color: var(--global-palette4);
	line-height: 1.85;
}

.about-why__text p {
	margin-bottom: 28px;
}

.about-why__text p:last-child {
	margin-bottom: 0;
}

.about-why__highlight {
	color: var(--global-palette1);
	font-weight: 500;
}

.about-why__highlight-orange {
	color: var(--global-palette14, #f59e0b);
	font-weight: 500;
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
	.about-hero__content {
		grid-template-columns: 1fr;
		gap: 50px;
		text-align: center;
	}

	.about-hero__photo-wrapper {
		max-width: 320px;
		margin: 0 auto;
	}

	.about-hero__photo {
		width: 100%;
		height: 380px;
	}

	.about-hero__role {
		margin-left: auto;
		margin-right: auto;
	}

	.about-timeline__items::before {
		left: 28px;
	}

	.about-timeline__item,
	.about-timeline__item:nth-child(odd) {
		flex-direction: column;
	}

	.about-timeline__item-content,
	.about-timeline__item:nth-child(odd) .about-timeline__item-content {
		max-width: 100%;
		padding-left: 80px !important;
		padding-right: 0 !important;
		text-align: left !important;
	}

	.about-timeline__dot {
		left: 28px;
		transform: translateX(-50%);
	}

	.about-timeline__item:hover .about-timeline__dot {
		transform: translateX(-50%) scale(1.05);
	}
}

@media (max-width: 640px) {
	.about-hero {
		padding: 80px 0 60px;
	}

	.about-hero__title {
		font-size: 36px;
	}

	.about-timeline__dot {
		width: 44px;
		height: 44px;
	}

	.about-timeline__dot svg {
		width: 20px;
		height: 20px;
	}

	.about-timeline__item-content {
		padding-left: 70px !important;
	}

	.about-why__text {
		font-size: 16px;
	}

	.about-why__cta {
		padding: 28px 20px;
	}

	.about-why__cta-buttons {
		flex-direction: column;
	}
}

/* ============================================
   PHASE 7: ABOUT PAGE — Directions + TG Cards
   ============================================ */

/* ── Directions Section ── */
.about-directions {
	padding: 80px 0;
	position: relative;
	background: var(--global-palette9);
}

.about-directions__container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

.about-directions__title {
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 700;
	color: var(--global-palette3);
	letter-spacing: -0.02em;
	margin: 0 0 48px;
	text-align: center;
}

.about-directions__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

/* Direction card base */
.about-dir {
	border-radius: 16px;
	padding: 36px 32px;
	position: relative;
	overflow: hidden;
	transition: transform var(--duration-slow) var(--ease-premium), box-shadow var(--duration-slow) var(--ease-premium);
}
.about-dir:hover {
	transform: translateY(-4px);
}

.about-dir__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}
.about-dir__icon svg {
	width: 26px;
	height: 26px;
}

.about-dir__title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 12px;
	letter-spacing: -0.3px;
}

.about-dir__desc {
	font-size: 16px;
	line-height: 1.65;
	margin: 0 0 24px;
}

.about-dir__links {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.about-dir__link {
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: gap var(--duration-normal) var(--ease-out-quart), opacity 0.2s ease;
}
.about-dir__link:hover {
	text-decoration: none;
}
.about-dir__link .about-dir__arrow {
	transition: transform 0.2s ease;
}
.about-dir__link:hover .about-dir__arrow {
	transform: translateX(3px);
}

.about-dir__link--tg {
	font-weight: 500;
	opacity: 0.7;
}
.about-dir__link--tg:hover {
	opacity: 1;
}
.about-dir__link--tg svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ── Finance card — Dark theme ── */
body.color-switch-dark .about-dir--finance {
	background: linear-gradient(135deg, rgba(0, 217, 126, 0.12) 0%, rgba(0, 217, 126, 0.03) 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 217, 126, 0.15);
}
body.color-switch-dark .about-dir--finance:hover {
	box-shadow: inset 0 0 0 1px rgba(0, 217, 126, 0.25), 0 16px 48px rgba(0, 217, 126, 0.1);
}
body.color-switch-dark .about-dir--finance .about-dir__icon {
	background: rgba(0, 217, 126, 0.12);
	color: var(--global-palette1);
}
body.color-switch-dark .about-dir--finance .about-dir__title {
	color: #F0FCFF;
}
body.color-switch-dark .about-dir--finance .about-dir__desc {
	color: rgba(255, 255, 255, 0.65);
}
body.color-switch-dark .about-dir--finance .about-dir__link {
	color: var(--global-palette1);
}

/* ── AI card — Dark theme ── */
body.color-switch-dark .about-dir--ai {
	background: linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0.03) 100%);
	box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.15);
}
body.color-switch-dark .about-dir--ai:hover {
	box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25), 0 16px 48px rgba(96, 165, 250, 0.1);
}
body.color-switch-dark .about-dir--ai .about-dir__icon {
	background: rgba(96, 165, 250, 0.12);
	color: #60A5FA;
}
body.color-switch-dark .about-dir--ai .about-dir__title {
	color: #F0FCFF;
}
body.color-switch-dark .about-dir--ai .about-dir__desc {
	color: rgba(255, 255, 255, 0.65);
}
body.color-switch-dark .about-dir--ai .about-dir__link {
	color: #60A5FA;
}

/* ── Finance card — Light theme ── */
body.color-switch-light .about-dir--finance {
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(5, 150, 105, 0.02) 100%);
	box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.18);
}
body.color-switch-light .about-dir--finance:hover {
	box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.3), 0 10px 30px rgba(0, 0, 0, 0.08);
}
body.color-switch-light .about-dir--finance .about-dir__icon {
	background: rgba(5, 150, 105, 0.1);
	color: var(--global-palette1);
}
body.color-switch-light .about-dir--finance .about-dir__title {
	color: #0F172A;
}
body.color-switch-light .about-dir--finance .about-dir__desc {
	color: #475569;
}
body.color-switch-light .about-dir--finance .about-dir__link {
	color: var(--global-palette1);
}

/* ── AI card — Light theme ── */
body.color-switch-light .about-dir--ai {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}
body.color-switch-light .about-dir--ai:hover {
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3), 0 10px 30px rgba(0, 0, 0, 0.08);
}
body.color-switch-light .about-dir--ai .about-dir__icon {
	background: rgba(59, 130, 246, 0.1);
	color: #3B82F6;
}
body.color-switch-light .about-dir--ai .about-dir__title {
	color: #0F172A;
}
body.color-switch-light .about-dir--ai .about-dir__desc {
	color: #475569;
}
body.color-switch-light .about-dir--ai .about-dir__link {
	color: #3B82F6;
}

/* ── Why section: blue highlight for AI text ── */
.about-why__highlight-blue {
	font-weight: 500;
}
body.color-switch-dark .about-why__highlight-blue {
	color: #60A5FA;
}
body.color-switch-light .about-why__highlight-blue {
	color: #3B82F6;
}

/* ── TG Channel Cards (replacing old single CTA) ── */
.about-tg-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 56px;
}

.about-tg-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	border-radius: 14px;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-tg-card:hover {
	transform: translateY(-3px);
	text-decoration: none;
}

.about-tg-card__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #26A5E4;
}
.about-tg-card__icon svg {
	width: 24px;
	height: 24px;
}

.about-tg-card__body {
	flex: 1;
	min-width: 0;
}

.about-tg-card__name {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.about-tg-card__desc {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	margin-top: 2px;
}

.about-tg-card__btn {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 18px;
	border-radius: 8px;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

/* ── TG Card — Finance — Dark ── */
body.color-switch-dark .about-tg-card--finance {
	background: var(--global-palette7);
	border: 1px solid rgba(0, 217, 126, 0.12);
}
body.color-switch-dark .about-tg-card--finance:hover {
	border-color: rgba(0, 217, 126, 0.25);
	box-shadow: 0 8px 24px rgba(0, 217, 126, 0.08);
}
body.color-switch-dark .about-tg-card--finance .about-tg-card__icon {
	background: rgba(0, 217, 126, 0.1);
}
body.color-switch-dark .about-tg-card--finance .about-tg-card__name {
	color: #F0FCFF;
}
body.color-switch-dark .about-tg-card--finance .about-tg-card__desc {
	color: rgba(255, 255, 255, 0.5);
}
body.color-switch-dark .about-tg-card--finance .about-tg-card__btn {
	background: var(--global-palette1);
	color: #0F172A;
}

/* ── TG Card — AI — Dark ── */
body.color-switch-dark .about-tg-card--ai {
	background: var(--global-palette7);
	border: 1px solid rgba(96, 165, 250, 0.12);
}
body.color-switch-dark .about-tg-card--ai:hover {
	border-color: rgba(96, 165, 250, 0.25);
	box-shadow: 0 8px 24px rgba(96, 165, 250, 0.08);
}
body.color-switch-dark .about-tg-card--ai .about-tg-card__icon {
	background: rgba(96, 165, 250, 0.1);
}
body.color-switch-dark .about-tg-card--ai .about-tg-card__name {
	color: #F0FCFF;
}
body.color-switch-dark .about-tg-card--ai .about-tg-card__desc {
	color: rgba(255, 255, 255, 0.5);
}
body.color-switch-dark .about-tg-card--ai .about-tg-card__btn {
	background: #60A5FA;
	color: #0F172A;
}

/* ── TG Card — Finance — Light ── */
body.color-switch-light .about-tg-card--finance {
	background: #F8FAFC;
	border: 1px solid rgba(5, 150, 105, 0.15);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.color-switch-light .about-tg-card--finance:hover {
	border-color: rgba(5, 150, 105, 0.3);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
body.color-switch-light .about-tg-card--finance .about-tg-card__icon {
	background: rgba(5, 150, 105, 0.08);
}
body.color-switch-light .about-tg-card--finance .about-tg-card__name {
	color: #0F172A;
}
body.color-switch-light .about-tg-card--finance .about-tg-card__desc {
	color: #64748B;
}
body.color-switch-light .about-tg-card--finance .about-tg-card__btn {
	background: var(--global-palette1);
	color: #FFFFFF;
}

/* ── TG Card — AI — Light ── */
body.color-switch-light .about-tg-card--ai {
	background: #F8FAFC;
	border: 1px solid rgba(59, 130, 246, 0.15);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.color-switch-light .about-tg-card--ai:hover {
	border-color: rgba(59, 130, 246, 0.3);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
body.color-switch-light .about-tg-card--ai .about-tg-card__icon {
	background: rgba(59, 130, 246, 0.08);
}
body.color-switch-light .about-tg-card--ai .about-tg-card__name {
	color: #0F172A;
}
body.color-switch-light .about-tg-card--ai .about-tg-card__desc {
	color: #64748B;
}
body.color-switch-light .about-tg-card--ai .about-tg-card__btn {
	background: #3B82F6;
	color: #FFFFFF;
}

/* ── Directions + TG Cards — Responsive ── */
@media (max-width: 1024px) {
	.about-directions__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.about-directions {
		padding: 60px 0;
	}
	.about-directions__title {
		margin-bottom: 32px;
	}
	.about-dir {
		padding: 28px 24px;
	}
	.about-dir__title {
		font-size: 20px;
	}
	.about-tg-cards {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 40px;
	}
	.about-tg-card {
		padding: 16px 20px;
	}
	.about-tg-card__btn {
		display: none;
	}
}

@media (max-width: 640px) {
	.about-dir__links {
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
	}
}

}

/* ============================================
   HOMEPAGE — Dual-Topic Design
   ============================================ */

/*
 * Homepage color system:
 * Finance card uses --global-palette1 (green, theme-aware)
 * AI card uses explicit hex (palette12 doesn't theme-switch)
 * Both dark + light themes supported via color-switch-* classes
 */

/* Dark theme homepage vars */
body.color-switch-dark .home-page {
	--hp-shadow: none;
	--hp-shadow-hover: none;
	--hp-green: var(--global-palette1);
	--hp-green-dim: rgba(0, 217, 126, 0.08);
	--hp-green-mid: rgba(0, 217, 126, 0.2);
	--hp-green-glow: rgba(0, 217, 126, 0.12);
	--hp-blue: #60A5FA;
	--hp-blue-dim: rgba(96, 165, 250, 0.08);
	--hp-blue-mid: rgba(96, 165, 250, 0.2);
	--hp-blue-glow: rgba(96, 165, 250, 0.12);
	--hp-bg-raised: var(--global-palette7);
	--hp-border: rgba(255, 255, 255, 0.06);
	--hp-heading: var(--global-palette3);
	--hp-text: var(--global-palette4);
	--hp-muted: var(--global-palette5);
}

/* Light theme homepage vars */
body.color-switch-light .home-page {
	--hp-shadow: none;
	--hp-shadow-hover: none;
	--hp-green: var(--global-palette1);
	--hp-green-dim: rgba(5, 150, 105, 0.08);
	--hp-green-mid: rgba(5, 150, 105, 0.25);
	--hp-green-glow: rgba(5, 150, 105, 0.12);
	--hp-blue: #3B82F6;
	--hp-blue-dim: rgba(59, 130, 246, 0.08);
	--hp-blue-mid: rgba(59, 130, 246, 0.25);
	--hp-blue-glow: rgba(59, 130, 246, 0.12);
	--hp-bg-raised: #F8FAFC;
	--hp-border: #E2E8F0;
	--hp-heading: var(--global-palette3);
	--hp-text: var(--global-palette4);
	--hp-muted: var(--global-palette5);
	--hp-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
	--hp-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Fallback for pages without theme class */
.home-page {
	--hp-green: var(--global-palette1);
	--hp-green-dim: rgba(0, 217, 126, 0.08);
	--hp-green-mid: rgba(0, 217, 126, 0.2);
	--hp-green-glow: rgba(0, 217, 126, 0.12);
	--hp-blue: #60A5FA;
	--hp-blue-dim: rgba(96, 165, 250, 0.08);
	--hp-blue-mid: rgba(96, 165, 250, 0.2);
	--hp-blue-glow: rgba(96, 165, 250, 0.12);
	--hp-bg-raised: var(--global-palette7);
	--hp-border: rgba(255, 255, 255, 0.06);
	--hp-heading: var(--global-palette3);
	--hp-text: var(--global-palette4);
	--hp-muted: var(--global-palette5);
}

/* ── Max width container ── */
.hp-hero__inner,
.hp-directions__inner,
.hp-posts__inner,
.hp-channels__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 40px;
	padding-right: 40px;
}

/* ============================================
   HERO — asymmetric split with photo
   ============================================ */

.hp-hero {
	padding: 96px 0 40px;
	position: relative;
	overflow: hidden;
}

/* Background depth — subtle accent blobs */
.hp-hero__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 50% 60% at 75% 30%, rgba(0, 217, 126, 0.05), transparent),
		radial-gradient(ellipse 40% 50% at 25% 70%, rgba(96, 165, 250, 0.04), transparent);
	pointer-events: none;
}
body.color-switch-light .hp-hero__bg {
	background:
		radial-gradient(ellipse 50% 60% at 75% 30%, rgba(5, 150, 105, 0.06), transparent),
		radial-gradient(ellipse 40% 50% at 25% 70%, rgba(59, 130, 246, 0.05), transparent);
}

/* Grid: text left, photo right */
.hp-hero__grid {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: start;
	gap: 48px;
}

.hp-hero__text {
	position: relative;
	z-index: 1;
}

.hp-hero__title {
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: clamp(40px, 6vw, 56px);
	font-weight: 800;
	color: var(--hp-heading);
	line-height: 1.1;
	letter-spacing: -0.04em;
	margin: 0 0 20px;
	text-align: left;
	text-wrap: balance;
}

.hp-hero__sub {
	font-size: 19px;
	color: var(--hp-muted);
	max-width: 520px;
	line-height: 1.6;
	font-weight: 400;
	margin: 0 0 20px;
	text-align: left;
}

/* Trust signal line */
.hp-hero__trust {
	font-size: 13px;
	color: var(--hp-muted);
	margin: 0 0 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}
.hp-hero__dot {
	margin: 0 8px;
	opacity: 0.4;
	color: var(--section-accent);
}

/* TG pills */
.hp-hero__pills {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
/* Label above TG pills */
.hp-hero__pills-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--hp-muted);
	margin: 0 0 10px;
	opacity: 0.6;
}
.hp-hero__pill-ext {
	font-size: 14px;
	opacity: 0.8;
	transition: transform var(--duration-fast) var(--ease-out-quart);
}
.hp-hero__pill:hover .hp-hero__pill-ext {
	transform: translate(1px, -1px);
}
.hp-hero__pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all var(--duration-normal) var(--ease-out-quart);
}
.hp-hero__pill svg {
	flex-shrink: 0;
}
.hp-hero__pill:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

/* Finance pill */
body.color-switch-dark .hp-hero__pill--finance {
	background: rgba(0, 217, 126, 0.1);
	color: var(--hp-green);
	border: 1px solid rgba(0, 217, 126, 0.2);
}
body.color-switch-dark .hp-hero__pill--finance:hover {
	background: rgba(0, 217, 126, 0.18);
}
body.color-switch-light .hp-hero__pill--finance {
	background: rgba(5, 150, 105, 0.08);
	color: #059669;
	border: 1px solid rgba(5, 150, 105, 0.2);
}
body.color-switch-light .hp-hero__pill--finance:hover {
	background: rgba(5, 150, 105, 0.14);
}

/* AI pill */
body.color-switch-dark .hp-hero__pill--ai {
	background: rgba(96, 165, 250, 0.1);
	color: var(--hp-blue);
	border: 1px solid rgba(96, 165, 250, 0.2);
}
body.color-switch-dark .hp-hero__pill--ai:hover {
	background: rgba(96, 165, 250, 0.18);
}
body.color-switch-light .hp-hero__pill--ai {
	background: rgba(59, 130, 246, 0.08);
	color: #3B82F6;
	border: 1px solid rgba(59, 130, 246, 0.2);
}
body.color-switch-light .hp-hero__pill--ai:hover {
	background: rgba(59, 130, 246, 0.14);
}

/* Photo */
.hp-hero__photo-wrap {
	position: relative;
	z-index: 1;
}
.hp-hero__photo-wrap::before {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 217, 126, 0.12), rgba(96, 165, 250, 0.06) 70%, transparent);
	filter: blur(14px);
	opacity: 0.6;
}
.hp-hero__photo {
	width: 300px;
	height: 300px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center 10% !important;
	position: relative;
	z-index: 1;
	border: 3px solid rgba(255, 255, 255, 0.08);
}
body.color-switch-light .hp-hero__photo {
	border-color: rgba(0, 0, 0, 0.08);
}

/* "Все статьи" split links */
.hp-posts__all-links {
	display: flex;
	gap: 16px;
	align-items: center;
}
.hp-posts__all--finance {
	color: var(--hp-green);
}
.hp-posts__all--ai {
	color: var(--hp-blue);
}
/* ============================================
   DIRECTION CARDS — Gradient Hero Cards
   ============================================ */

.hp-directions {
	padding: 48px 0 32px;
}

.hp-directions__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

/* Base card — gradient bg, 2-column grid layout */
.hp-dir {
	border-radius: 16px;
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 140px;
	min-height: 280px;
	text-decoration: none;
	transition: transform var(--duration-slow) var(--ease-premium), box-shadow var(--duration-slow) var(--ease-premium);
}
.hp-dir:hover {
	transform: translateY(-4px);
	text-decoration: none;
}

/* Content zone */
.hp-dir__content {
	padding: 48px 40px;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
}

/* Tag pill — larger, bolder */
.hp-dir__tag {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	margin-bottom: 16px;
	padding: 4px 12px;
	border-radius: 100px;
	width: fit-content;
}

/* Title — 30px, dominant */
.hp-dir__title {
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.5px;
	margin: 0 0 12px;
}

/* Description */
.hp-dir__desc {
	font-size: 15px;
	line-height: 1.65;
	flex-grow: 1;
	margin: 0 0 24px;
}

/* CTA with animated arrow */
.hp-dir__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	transition: gap var(--duration-normal) var(--ease-out-quart);
}
.hp-dir:hover .hp-dir__cta {
	gap: 14px;
}
.hp-dir__arrow {
	transition: transform 0.2s ease;
	display: inline-block;
}
.hp-dir:hover .hp-dir__arrow {
	transform: translateX(3px);
}

/* Decorative zone — right column */
/* Decorative zone — SVG icon */
.hp-dir__decor {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hp-dir__icon {
	width: 80px;
	height: 80px;
	opacity: 0.12;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
}

/* Spotlight glow on hover */
.hp-dir::after {
	content: "";
	position: absolute;
	top: -50%;
	right: -20%;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	opacity: 0;
	transition: opacity var(--duration-slow) var(--ease-premium);
	pointer-events: none;
	z-index: 0;
}
.hp-dir:hover::after { opacity: 1; }
.hp-dir--finance::after {
	background: radial-gradient(circle, rgba(0, 217, 126, 0.15), transparent 70%);
}
.hp-dir--ai::after {
	background: radial-gradient(circle, rgba(96, 165, 250, 0.15), transparent 70%);
}

/* Active press */
.hp-dir:active {
	transform: scale(0.98);
	transition-duration: var(--duration-fast);
}

/* ── Dark theme — Direction cards ── */
body.color-switch-dark .hp-dir--finance {
	background: linear-gradient(135deg, rgba(0, 217, 126, 0.14) 0%, rgba(0, 217, 126, 0.04) 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 217, 126, 0.18);
}
body.color-switch-dark .hp-dir--finance:hover {
	background: linear-gradient(135deg, rgba(0, 217, 126, 0.20) 0%, rgba(0, 217, 126, 0.06) 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 217, 126, 0.28), 0 16px 48px rgba(0, 217, 126, 0.12);
}
body.color-switch-dark .hp-dir--finance .hp-dir__tag {
	color: var(--hp-green);
	background: rgba(0, 217, 126, 0.15);
}
body.color-switch-dark .hp-dir--finance .hp-dir__title { color: #F0FCFF; }
body.color-switch-dark .hp-dir--finance .hp-dir__desc { color: rgba(255, 255, 255, 0.65); }
body.color-switch-dark .hp-dir--finance .hp-dir__cta { color: var(--hp-green); }

body.color-switch-dark .hp-dir--ai {
	background: linear-gradient(135deg, rgba(96, 165, 250, 0.14) 0%, rgba(96, 165, 250, 0.04) 100%);
	box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}
body.color-switch-dark .hp-dir--ai:hover {
	background: linear-gradient(135deg, rgba(96, 165, 250, 0.20) 0%, rgba(96, 165, 250, 0.06) 100%);
	box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.28), 0 16px 48px rgba(96, 165, 250, 0.12);
}
body.color-switch-dark .hp-dir--ai .hp-dir__tag {
	color: var(--hp-blue);
	background: rgba(96, 165, 250, 0.15);
}
body.color-switch-dark .hp-dir--ai .hp-dir__title { color: #F0FCFF; }
body.color-switch-dark .hp-dir--ai .hp-dir__desc { color: rgba(255, 255, 255, 0.65); }
body.color-switch-dark .hp-dir--ai .hp-dir__cta { color: var(--hp-blue); }

/* ── Light theme — Direction cards ── */
body.color-switch-light .hp-dir--finance {
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.10) 0%, rgba(5, 150, 105, 0.02) 100%);
	box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.18), 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.color-switch-light .hp-dir--finance:hover {
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.14) 0%, rgba(5, 150, 105, 0.04) 100%);
	box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.28), 0 8px 24px rgba(5, 150, 105, 0.10);
}
body.color-switch-light .hp-dir--finance .hp-dir__tag {
	color: #059669;
	background: rgba(5, 150, 105, 0.10);
}
body.color-switch-light .hp-dir--finance .hp-dir__title { color: var(--global-palette3); }
body.color-switch-light .hp-dir--finance .hp-dir__desc { color: var(--global-palette5); }
body.color-switch-light .hp-dir--finance .hp-dir__cta { color: #059669; }

body.color-switch-light .hp-dir--ai {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.10) 0%, rgba(59, 130, 246, 0.02) 100%);
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18), 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.color-switch-light .hp-dir--ai:hover {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0.04) 100%);
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28), 0 8px 24px rgba(59, 130, 246, 0.10);
}
body.color-switch-light .hp-dir--ai .hp-dir__tag {
	color: #3B82F6;
	background: rgba(59, 130, 246, 0.10);
}
body.color-switch-light .hp-dir--ai .hp-dir__title { color: var(--global-palette3); }
body.color-switch-light .hp-dir--ai .hp-dir__desc { color: var(--global-palette5); }
body.color-switch-light .hp-dir--ai .hp-dir__cta { color: #3B82F6; }


/* ============================================
   RECENT POSTS
   ============================================ */

.hp-posts {
	padding: 48px 0 80px;
}

.hp-posts__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.hp-posts__heading {
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--hp-heading);
	letter-spacing: -0.3px;
	margin: 0;
}

.hp-posts__all {
	font-size: 13px;
	color: var(--hp-muted);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}
.hp-posts__all:hover {
	color: var(--hp-heading);
}

.hp-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.hp-posts__empty {
	text-align: center;
	color: var(--hp-muted);
	font-size: 16px;
}

/* Post card */
.hp-post {
	background: var(--hp-bg-raised);
	border: 1px solid var(--hp-border);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color var(--duration-normal) var(--ease-premium), transform var(--duration-normal) var(--ease-premium), box-shadow var(--duration-normal) var(--ease-premium);
	cursor: pointer;
	text-decoration: none;
	display: block;
	box-shadow: var(--hp-shadow);
}
.hp-post:hover {
	border-color: rgba(255, 255, 255, 0.12);
	transform: translateY(-2px);
	text-decoration: none;
	box-shadow: var(--hp-shadow-hover);
}
body.color-switch-light .hp-post:hover {
	border-color: var(--hp-green-mid);
}

/* Post thumbnail */
.hp-post__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.hp-post__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--duration-slow) var(--ease-out-expo);
}
.hp-post:hover .hp-post__img {
	transform: scale(1.03);
}
.hp-post__body {
	padding: 20px 24px 24px;
}

/* Post meta row */
.hp-post__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

/* Topic badge */
.hp-badge {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 3px 9px;
	border-radius: 100px;
}
.hp-badge--finance {
	color: var(--hp-green);
	background: var(--hp-green-dim);
}
.hp-badge--ai {
	color: var(--hp-blue);
	background: var(--hp-blue-dim);
}

/* Post date */
.hp-post__date {
	font-size: 12px;
	color: var(--hp-muted);
}

/* Post title */
.hp-post__title {
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--hp-heading);
	line-height: 1.35;
	letter-spacing: -0.2px;
	margin: 0 0 8px;
}

/* Post excerpt */
.hp-post__excerpt {
	font-size: 13px;
	color: var(--hp-muted);
	line-height: 1.55;
	margin: 0;
}

/* ============================================
   HOMEPAGE RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
	.hp-hero__inner,
	.hp-directions__inner,
	.hp-posts__inner {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (max-width: 768px) {
	.hp-hero {
		padding: 64px 0 40px;
	}

	.hp-hero__grid {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 32px;
	}

	/* Photo above text on mobile */
	.hp-hero__photo-wrap {
		order: -1;
		justify-self: center;
	}
	.hp-hero__photo {
		width: 140px;
		height: 140px;
	}

	.hp-hero__title {
		font-size: 36px;
		letter-spacing: -1.5px;
		text-align: center;
	}

	.hp-hero__sub {
		font-size: 17px;
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}

	.hp-hero__trust {
		justify-content: center;
	}

	.hp-hero__pills-label {
		text-align: center;
	}
	.hp-hero__pills {
		justify-content: center;
		flex-direction: column;
		align-items: center;
	}

	.hp-directions {
		padding: 32px 0 24px;
	}

	.hp-directions__inner {
		grid-template-columns: 1fr;
	}
	.hp-dir {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.hp-dir__decor {
		display: none;
	}

	.hp-dir__content {
		padding: 28px 24px;
	}

	.hp-dir__title {
		font-size: 24px;
	}

	.hp-posts {
		padding: 32px 0 48px;
	}

	.hp-posts__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hp-posts__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
}
   ============================================ */

/* Base variables */
.contacts-page-custom {
	--contacts-primary-glow: rgba(0, 217, 126, 0.4);
	--contacts-border-subtle: rgba(255, 255, 255, 0.08);
	--contacts-shadow-color: rgba(0, 0, 0, 0.5);
}

.color-switch-light .contacts-page-custom {
	--contacts-primary-glow: rgba(5, 150, 105, 0.3);
	--contacts-border-subtle: rgba(0, 0, 0, 0.08);
	--contacts-shadow-color: rgba(0, 0, 0, 0.15);
}

/* ============================================
   CONTACTS HERO
   ============================================ */

.contacts-hero {
	position: relative;
	min-height: 340px;
	display: flex;
	align-items: center;
	padding: 80px 0;
	overflow: hidden;
	background-image: var(--hero-bg-image);
	background-size: cover;
	background-position: center;
}

.contacts-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(15, 23, 42, 0.95) 0%,
		rgba(15, 23, 42, 0.9) 50%,
		rgba(15, 23, 42, 0.82) 100%
	);
	z-index: 0;
}

.color-switch-light .contacts-hero__overlay {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.92) 0%,
		rgba(255, 255, 255, 0.85) 50%,
		rgba(255, 255, 255, 0.75) 100%
	);
}

.contacts-hero__container {
	max-width: 1100px;
	width: 100%;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

.contacts-hero__content {
	max-width: 600px;
	animation: contactsFadeIn 0.8s ease-out;
}

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

.contacts-hero__title {
	font-size: clamp(40px, 5vw, 56px);
	font-weight: 700;
	color: var(--global-palette3);
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0;
}

.contacts-hero__desc {
	font-size: 18px;
	color: var(--global-palette5);
	line-height: 1.7;
	margin: 0;
}

/* ============================================
   CONTACTS CARDS
   ============================================ */

.contacts-cards {
	padding: 80px 0 100px;
	background: var(--global-palette8);
	position: relative;
}

.contacts-cards::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 50% 40% at 20% 30%, rgba(0, 217, 126, 0.04), transparent),
		radial-gradient(ellipse 40% 30% at 80% 70%, rgba(59, 130, 246, 0.04), transparent);
	pointer-events: none;
}

.color-switch-light .contacts-cards::before {
	background:
		radial-gradient(ellipse 50% 40% at 20% 30%, rgba(5, 150, 105, 0.06), transparent),
		radial-gradient(ellipse 40% 30% at 80% 70%, rgba(59, 130, 246, 0.06), transparent);
}

.contacts-cards__container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

.contacts-cards__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

/* Contact Card */
.contact-card {
	display: flex;
	flex-direction: column;
	background: var(--global-palette9);
	border: 1px solid var(--contacts-border-subtle);
	border-radius: 20px;
	padding: 32px;
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.contact-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--global-palette1), var(--global-palette2));
	opacity: 0;
	transition: opacity var(--duration-normal) ease;
}

.contact-card:not(.contact-card--no-link):hover {
	transform: translateY(-8px);
	border-color: var(--global-palette1);
	box-shadow: 0 30px 60px var(--contacts-shadow-color);
}

.contact-card:not(.contact-card--no-link):hover::before {
	opacity: 1;
}

.contact-card__icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	transition: all var(--duration-slow) var(--ease-premium);
}

.contact-card__icon svg {
	width: 28px;
	height: 28px;
}

.contact-card__icon--email {
	background: rgba(0, 217, 126, 0.1);
	color: var(--global-palette1);
}

.contact-card__icon--telegram {
	background: rgba(0, 136, 204, 0.1);
	color: #0088cc;
}

.contact-card__icon--phone {
	background: rgba(124, 58, 237, 0.1);
	color: #7c3aed;
}

.contact-card__icon--address {
	background: rgba(59, 130, 246, 0.1);
	color: #3b82f6;
}

.contact-card:not(.contact-card--no-link):hover .contact-card__icon {
	transform: scale(1.1);
}

.contact-card__title {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--global-palette5);
	margin: 0 0 8px;
}

.contact-card__value {
	font-size: 20px;
	font-weight: 600;
	color: var(--global-palette3);
	margin: 0;
	line-height: 1.4;
}

.contact-card__action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--global-palette1);
	margin-top: auto;
	transition: gap var(--duration-normal) var(--ease-out-quart);
}

.contact-card__action svg {
	width: 16px;
	height: 16px;
	transition: transform var(--duration-normal) var(--ease-out-quart);
}

.contact-card:hover .contact-card__action {
	gap: 12px;
}

.contact-card:hover .contact-card__action svg {
	transform: translate(4px, -4px);
}

/* No-link card */
.contact-card--no-link {
	cursor: default;
}

.contact-card--no-link .contact-card__value {
	margin-bottom: 0;
}

/* ============================================
   CONTACTS RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.contacts-hero {
		min-height: 280px;
		padding: 60px 0;
	}

	.contacts-hero__content {
		text-align: center;
		max-width: 100%;
	}

	.contacts-hero__title {
		font-size: 36px;
	}

	.contacts-hero__desc {
		font-size: 16px;
	}

	.contacts-cards {
		padding: 60px 0 80px;
	}

	.contacts-cards__grid {
		grid-template-columns: 1fr;
	}

	.contact-card {
		padding: 24px;
	}
}

/* ============================================
   BLOG ARCHIVE PAGE
   Premium horizontal card layout with glass effects
   ============================================ */

body.blog {
	--blog-primary: #10b981;
	--blog-primary-glow: rgba(16, 185, 129, 0.15);
	--blog-card-bg: rgba(30, 41, 59, 0.5);
	--blog-border-subtle: rgba(148, 163, 184, 0.08);
	--blog-shadow-color: rgba(0, 0, 0, 0.4);
	--blog-glass-blur: 12px;
}

body.blog .site-main {
	padding-top: 0;
}

/* Posts container - vertical stack */
body.blog .content-wrap.kadence-posts-list {
	max-width: 1100px;
	margin: 0 auto;
	padding: 60px 24px 100px;
	display: flex !important;
	flex-direction: column;
	gap: 28px;
}

/* Override Kadence grid */
body.blog .kadence-posts-list.grid-cols {
	display: flex !important;
	flex-direction: column;
}

/* Article card - horizontal glass morphism */
body.blog article.loop-entry {
	display: grid;
	grid-template-columns: 420px 1fr;
	align-items: stretch;
	
	gap: 0;
	background: var(--blog-card-bg);
	backdrop-filter: blur(var(--blog-glass-blur));
	-webkit-backdrop-filter: blur(var(--blog-glass-blur));
	border: 1px solid var(--blog-border-subtle);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

/* Glow effect on hover */
body.blog article.loop-entry::before {
	content: '';
	position: absolute;
	inset: -1px;
	border-radius: 21px;
	padding: 1px;
	background: linear-gradient(135deg, transparent 40%, var(--blog-primary) 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

body.blog article.loop-entry:hover {
	transform: translateY(-6px) scale(1.01);
	box-shadow:
		0 25px 50px var(--blog-shadow-color),
		0 0 60px var(--blog-primary-glow);
	border-color: rgba(16, 185, 129, 0.2);
}

body.blog article.loop-entry:hover::before {
	opacity: 1;
}

/* Thumbnail - embedded with padding */
body.blog article.loop-entry .post-thumbnail {
	aspect-ratio: 16/9;
	display: block;
	width: calc(100% - 24px);
	height: auto;
	margin: 12px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	align-self: start;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.blog article.loop-entry .post-thumbnail::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 70%, rgba(15, 23, 42, 0.3) 100%);
	pointer-events: none;
}

body.blog article.loop-entry .post-thumbnail-inner {
	width: 100%;
	height: 100%;
}

body.blog article.loop-entry .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.blog article.loop-entry:hover .post-thumbnail img {
	transform: scale(1.08);
}

/* Content - right side */
body.blog article.loop-entry .entry-content-wrap {
	display: flex;
	align-self: stretch;
	height: 100%;
	flex-direction: column;
	
	padding: 12px 24px 12px 12px;
	position: relative;
}

/* Title */
body.blog article.loop-entry .entry-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 10px;
	letter-spacing: -0.02em;
}

body.blog article.loop-entry .entry-title a {
	color: var(--global-palette3);
	text-decoration: none;
	transition: color var(--duration-normal) ease;
}

body.blog article.loop-entry:hover .entry-title a {
	color: var(--blog-primary);
}

/* Meta (date) */
body.blog article.loop-entry .entry-meta {
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--global-palette5);
	margin-bottom: 6px;
	opacity: 0.7;
}

/* Excerpt */
body.blog article.loop-entry .entry-summary {
	font-size: 16px;
	line-height: 1.7;
	color: var(--global-palette5);
	margin: 0;
}

body.blog article.loop-entry .entry-summary p {
	margin: 0;
}

/* Read more link - animated arrow */
body.blog article.loop-entry .entry-actions,
body.blog article.loop-entry .post-footer-readmore-link {
	margin-top: auto;
}

/* Push read more to bottom */body.blog article.loop-entry .entry-footer {	margin-top: auto;	padding-top: 0;}
body.blog article.loop-entry .entry-actions a,
body.blog article.loop-entry .post-footer-readmore-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--blog-primary);
	text-decoration: none;
	transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Style Kadence built-in SVG arrow */
body.blog article.loop-entry .post-more-link .kadence-svg-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.blog article.loop-entry:hover .post-more-link .kadence-svg-icon {
	transform: translateX(4px);
}


/* Light theme */
.color-switch-light.blog {
	--blog-card-bg: rgba(255, 255, 255, 0.7);
	--blog-border-subtle: rgba(100, 116, 139, 0.12);
	--blog-shadow-color: rgba(0, 0, 0, 0.08);
	--blog-primary-glow: rgba(16, 185, 129, 0.1);
}

/* ============================================
   BLOG ARCHIVE RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
	body.blog article.loop-entry {
		grid-template-columns: 260px 1fr;
	}

	body.blog article.loop-entry .entry-content-wrap {
		padding: 28px 32px;
	}

	body.blog article.loop-entry .entry-title {
		font-size: 22px;
	}
}

@media (max-width: 700px) {
	body.blog .content-wrap.kadence-posts-list {
		padding: 40px 16px 70px;
		gap: 20px;
	}

	body.blog article.loop-entry {
		grid-template-columns: 1fr;
	}

	body.blog article.loop-entry .post-thumbnail {
	aspect-ratio: 16/9;
		min-height: 200px;
		aspect-ratio: 16/9;
	}

	body.blog article.loop-entry .post-thumbnail::after {
		background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.4) 100%);
	}

	body.blog article.loop-entry .entry-content-wrap {
		padding: 24px;
	}

	body.blog article.loop-entry .entry-title {
		font-size: 20px;
	}

	body.blog article.loop-entry .entry-summary {
		font-size: 15px;
	}
}

/* ============================================
   Single Video Page Template v2
   Standalone landing page with custom header/footer.
   BEM namespace: vp- (video page)
   ============================================ */

/* A. Hide Kadence chrome on video pages */
body.video-page-template .site-header,
body.video-page-template .site-footer,
body.video-page-template .site-above-footer-wrap,
body.video-page-template .site-bottom-footer-wrap {
	display: none !important;
}

body.video-page-template .site {
	padding-top: 0 !important;
}

/* Base reset */
.video-page {
	padding: 0;
	background: var(--global-palette9);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.video-page .entry-content-wrap {
	max-width: 100%;
	padding: 0;
}

.video-page .entry-content {
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.video-page .entry-content p {
	margin: 0 !important;
	line-height: 0;
}

/* B. Custom header */
.vp-header {
	position: relative;
	z-index: 10;
	border-bottom: 1px solid var(--global-palette7);
}

.vp-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.vp-header__logo {
	text-decoration: none;
	color: var(--global-palette3);
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.vp-header__logo:hover {
	color: var(--global-palette3);
}

.vp-logo-img {
	max-height: 44px;
	width: auto;
	display: block;
}

/* Dark/light logo switching — mirrors Kadence behavior */
.vp-logo-dark {
	display: none;
}

body.color-switch-dark .vp-logo-dark {
	display: block;
}

body.color-switch-dark .vp-logo-light {
	display: none;
}

.vp-header__titles {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.vp-header__site-name {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--global-palette3);
}

.vp-header__tagline {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--global-palette1);
}

.vp-header__back {
	text-decoration: none;
	color: var(--global-palette5);
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.2s ease;
}

.vp-header__back:hover {
	color: var(--global-palette1);
}

/* C. Hero section — video with ambient glow */
.vp-hero {
	padding: 2.5rem 1.5rem 3rem;
}

.vp-hero__container {
	max-width: 1060px;
	margin: 0 auto;
}

.vp-hero__player {
	position: relative;
}

/* Ambient glow behind video */
.vp-hero__player::after {
	content: "";
	position: absolute;
	bottom: -30px;
	left: 10%;
	right: 10%;
	height: 60%;
	background: radial-gradient(ellipse at center, var(--global-palette1) 0%, transparent 70%);
	opacity: 0.08;
	filter: blur(40px);
	z-index: 0;
	pointer-events: none;
}

.vp-hero__player-wrap {
	position: relative;
	z-index: 1;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 16px;
	overflow: hidden;
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.07),
		0 20px 40px -8px rgba(0, 0, 0, 0.1);
}

.vp-hero__player-wrap iframe,
.vp-hero__player-wrap video,
.vp-hero__player-wrap embed,
.vp-hero__player-wrap object {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

/* Dark mode — stronger glow and shadows */
body.color-switch-dark .vp-hero__player::after {
	opacity: 0.12;
}

body.color-switch-dark .vp-hero__player-wrap {
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.2),
		0 20px 40px -8px rgba(0, 0, 0, 0.35);
}

/* D. Content section */
.vp-content {
	padding: 0 1.5rem 3rem;
}

.vp-content__inner {
	max-width: 760px;
	margin: 0 auto;
}

/* Gutenberg block content styling */
.vp-content__inner > *:last-child {
	margin-bottom: 0;
}

/* Content video embeds — match hero visual treatment (no glow) */
.vp-content__inner div:has(> iframe) {
	border-radius: 16px;
	overflow: hidden;
	background: #000;
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.07),
		0 20px 40px -8px rgba(0, 0, 0, 0.1);
	margin-bottom: 2rem;
}

body.color-switch-dark .vp-content__inner div:has(> iframe) {
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.2),
		0 20px 40px -8px rgba(0, 0, 0, 0.35);
}

/* E. Custom footer */
.vp-footer {
	margin-top: auto;
	border-top: 1px solid var(--global-palette7);
}

.vp-footer__nav {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.25rem 1.5rem 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
}

.vp-footer__nav a {
	font-size: 0.875rem;
	color: var(--global-palette4);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.vp-footer__nav a:hover {
	color: var(--global-palette1);
}

.vp-footer__bottom {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1.5rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.vp-footer__copy {
	font-size: 0.8125rem;
	color: var(--global-palette5);
}

.vp-footer__link {
	font-size: 0.8125rem;
	color: var(--global-palette5);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.vp-footer__link:hover {
	color: var(--global-palette1);
}

/* H. Responsive */
@media (max-width: 768px) {
	.vp-header__inner {
		padding: 0 1rem;
		height: 48px;
	}

	.vp-logo-img {
		max-height: 36px;
	}

	.vp-header__site-name {
		font-size: 0.8125rem;
	}

	.vp-header__tagline {
		font-size: 0.625rem;
	}

	.vp-hero {
		padding: 1.5rem 1rem 2rem;
	}

	.vp-hero__player-wrap {
		border-radius: 12px;
	}

	.vp-content__inner div:has(> iframe) {
		border-radius: 12px;
	}

	.vp-content {
		padding: 0 1rem 2rem;
	}

	.vp-footer__nav {
		padding: 1rem 1rem 0;
		gap: 1rem;
	}

	.vp-footer__bottom {
		padding: 0.75rem 1rem 1rem;
		flex-direction: column;
		gap: 0.25rem;
		text-align: center;
	}
}

/* ========== Mobile Table Fix ========== */
/* Allow text wrapping in table cells on mobile */
@media (max-width: 767px) {
	.single .entry-content table.has-fixed-layout {
		min-width: 0;
		table-layout: auto;
	}
	.single .entry-content th,
	.single .entry-content td {
		white-space: normal;
		word-break: normal;
		overflow-wrap: break-word;
	}
}


/* ========== Table Stripes — Dark/Light Theme Override ========== */
/* WP core sets hardcoded #f0f0f0 on odd rows — override with theme-aware colors */
.single .entry-content .is-style-stripes table,
.single .entry-content .is-style-stripes {
	border-bottom-color: var(--blog-border-color);
}
.single .entry-content .is-style-stripes table tbody tr:nth-child(odd),
.single .entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--blog-stripe-row, rgba(148, 163, 184, 0.07)) !important;
}
.single .entry-content .is-style-stripes table tbody tr td,
.single .entry-content .is-style-stripes table tbody tr th,
.single .entry-content .wp-block-table.is-style-stripes tbody tr td,
.single .entry-content .wp-block-table.is-style-stripes tbody tr th {
	color: var(--blog-text-color) !important;
	border-color: transparent;
}


/* ============================================
   SECTION ARCHIVE PAGES (/finance/, /ai/)
   ============================================ */

/*
 * Section archive page layout.
 * Uses --section-accent CSS vars from Section Color System.
 * Hero card with 2-column grid: content + decorative zone (like hp-dir).
 *
 * Prefix: sp- (section page)
 */

/* ── Containers ── */
.sp-hero__inner,
.sp-content__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 40px;
	padding-right: 40px;
}

/* ============================================
   HERO — Gradient card with decorative zone
   ============================================ */

.sp-hero {
	padding: 40px 0 24px;
}

.sp-hero__card {
	border-radius: 16px;
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 160px;
	min-height: 280px;
	border: none;
	transition: transform var(--duration-slow) var(--ease-premium), box-shadow var(--duration-slow) var(--ease-premium);
}
.sp-hero__card:hover {
	transform: translateY(-3px);
}

/* Decorative glow — blurred circle top-right */
.sp-hero__card::before {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: var(--section-accent);
	filter: blur(100px);
	opacity: 0.10;
	pointer-events: none;
	z-index: 0;
}

/* Content zone (left column) */
.sp-hero__content {
	padding: 44px 40px;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
}

/* Decorative zone (right column) */
.sp-hero__decor {
	position: relative;
	overflow: hidden;
}

/* Finance decor: ascending bar chart */
.sp-hero__card--finance .sp-hero__decor::before,
.sp-hero__card--finance .sp-hero__decor::after {
	content: '';
	position: absolute;
	bottom: 0;
	border-radius: 6px 6px 0 0;
}
.sp-hero__card--finance .sp-hero__decor::before {
	right: 24px;
	width: 36px;
	height: 60%;
}
.sp-hero__card--finance .sp-hero__decor::after {
	right: 72px;
	width: 36px;
	height: 38%;
}

/* AI decor: concentric circles */
.sp-hero__card--ai .sp-hero__decor::before,
.sp-hero__card--ai .sp-hero__decor::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
}
.sp-hero__card--ai .sp-hero__decor::before {
	width: 110px;
	height: 110px;
}
.sp-hero__card--ai .sp-hero__decor::after {
	width: 60px;
	height: 60px;
}

/* ── Dark theme — Hero (Finance) ── */
body.color-switch-dark .sp-hero__card--finance {
	background: linear-gradient(135deg, rgba(0, 217, 126, 0.14) 0%, rgba(0, 217, 126, 0.04) 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 217, 126, 0.18);
}
body.color-switch-dark .sp-hero__card--finance:hover {
	background: linear-gradient(135deg, rgba(0, 217, 126, 0.20) 0%, rgba(0, 217, 126, 0.06) 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 217, 126, 0.28), 0 16px 48px rgba(0, 217, 126, 0.12);
}
body.color-switch-dark .sp-hero__card--finance .sp-hero__decor::before {
	background: rgba(0, 217, 126, 0.15);
}
body.color-switch-dark .sp-hero__card--finance .sp-hero__decor::after {
	background: rgba(0, 217, 126, 0.10);
}

/* ── Dark theme — Hero (AI) ── */
body.color-switch-dark .sp-hero__card--ai {
	background: linear-gradient(135deg, rgba(96, 165, 250, 0.14) 0%, rgba(96, 165, 250, 0.04) 100%);
	box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}
body.color-switch-dark .sp-hero__card--ai:hover {
	background: linear-gradient(135deg, rgba(96, 165, 250, 0.20) 0%, rgba(96, 165, 250, 0.06) 100%);
	box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.28), 0 16px 48px rgba(96, 165, 250, 0.12);
}
body.color-switch-dark .sp-hero__card--ai .sp-hero__decor::before {
	border: 2px solid rgba(96, 165, 250, 0.18);
	background: transparent;
}
body.color-switch-dark .sp-hero__card--ai .sp-hero__decor::after {
	border: 2px solid rgba(96, 165, 250, 0.12);
	background: rgba(96, 165, 250, 0.06);
}

/* ── Light theme — Hero (Finance) ── */
body.color-switch-light .sp-hero__card--finance {
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.10) 0%, rgba(5, 150, 105, 0.02) 100%);
	box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.18), 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.color-switch-light .sp-hero__card--finance:hover {
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.14) 0%, rgba(5, 150, 105, 0.04) 100%);
	box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.28), 0 8px 24px rgba(5, 150, 105, 0.10);
}
body.color-switch-light .sp-hero__card--finance .sp-hero__decor::before {
	background: rgba(5, 150, 105, 0.10);
}
body.color-switch-light .sp-hero__card--finance .sp-hero__decor::after {
	background: rgba(5, 150, 105, 0.06);
}

/* ── Light theme — Hero (AI) ── */
body.color-switch-light .sp-hero__card--ai {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.10) 0%, rgba(59, 130, 246, 0.02) 100%);
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18), 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.color-switch-light .sp-hero__card--ai:hover {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0.04) 100%);
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28), 0 8px 24px rgba(59, 130, 246, 0.10);
}
body.color-switch-light .sp-hero__card--ai .sp-hero__decor::before {
	border: 2px solid rgba(59, 130, 246, 0.14);
	background: transparent;
}
body.color-switch-light .sp-hero__card--ai .sp-hero__decor::after {
	border: 2px solid rgba(59, 130, 246, 0.08);
	background: rgba(59, 130, 246, 0.04);
}

/* Icon badge */
.sp-hero__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	color: var(--section-accent);
	background: var(--section-accent-dim);
	border: 1px solid var(--section-accent-mid);
}

/* Title */
.sp-hero__title {
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: clamp(30px, 5vw, 40px);
	font-weight: 800;
	color: var(--global-palette3);
	letter-spacing: -1.5px;
	line-height: 1.15;
	margin: 0 0 14px;
}

/* Description */
.sp-hero__desc {
	font-size: 17px;
	color: var(--global-palette5);
	max-width: 540px;
	line-height: 1.6;
	margin: 0 0 28px;
	flex-grow: 1;
}

/* CTA row */
.sp-hero__cta-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* Primary CTA (TG button) */
.sp-hero__btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	background: var(--section-accent);
	color: #0F172A;
	transition: box-shadow 0.2s;
}
.sp-hero__btn-primary:hover {
	box-shadow: 0 4px 20px var(--section-accent-glow);
	color: #0F172A;
	text-decoration: none;
}

/* Secondary CTA */
.sp-hero__btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: var(--global-palette4);
	transition: background 0.2s, border-color 0.2s;
}
body.color-switch-dark .sp-hero__btn-secondary {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
body.color-switch-dark .sp-hero__btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	text-decoration: none;
}
body.color-switch-light .sp-hero__btn-secondary {
	background: #FFFFFF;
	border: 1px solid #CBD5E1;
}
body.color-switch-light .sp-hero__btn-secondary:hover {
	background: #F1F5F9;
	text-decoration: none;
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.sp-content {
	padding: 16px 0 80px;
}

.sp-content__heading {
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--global-palette3);
	letter-spacing: -0.3px;
	margin: 0 0 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--section-accent-mid);
}

/* ============================================
   ARTICLE CARD GRID
   ============================================ */

.sp-articles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.sp-card {
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	transition: border-color 0.25s cubic-bezier(0.32, 0.72, 0, 1),
	            transform 0.25s cubic-bezier(0.32, 0.72, 0, 1),
	            box-shadow 0.25s cubic-bezier(0.32, 0.72, 0, 1);
	border: 1px solid transparent;
}

/* Cards without thumbnails */
.sp-card--no-thumb .sp-card__body {
	padding-top: 24px;
}

/* Card thumbnail — 16:9 */
.sp-card__thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.sp-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--duration-slow) var(--ease-premium);
}
.sp-card:hover .sp-card__img {
	transform: scale(1.03);
}

/* Dark theme card */
body.color-switch-dark .sp-card {
	background: var(--global-palette7);
	border-color: rgba(255, 255, 255, 0.06);
}
body.color-switch-dark .sp-card:hover {
	border-color: var(--section-accent-mid);
	transform: translateY(-2px);
	box-shadow: 0 0 0 1px rgba(var(--section-accent-rgb), 0.08);
}

/* Light theme card */
body.color-switch-light .sp-card {
	background: #FFFFFF;
	border-color: #CBD5E1;
}
body.color-switch-light .sp-card:hover {
	border-color: var(--section-accent-mid);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(var(--section-accent-rgb), 0.08);
}

/* Card body */
.sp-card__body {
	padding: 20px 24px 24px;
}

.sp-card__date {
	font-size: 12px;
	font-weight: 500;
	color: var(--global-palette5);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 8px;
	display: block;
}

.sp-card__title {
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--global-palette3);
	line-height: 1.35;
	margin: 0 0 8px;
	letter-spacing: -0.2px;
}

.sp-card__excerpt {
	font-size: 14px;
	color: var(--global-palette5);
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Empty state ── */
.sp-articles__empty {
	font-size: 15px;
	color: var(--global-palette5);
	padding: 40px 0;
	text-align: center;
}

/* ============================================
   PAGINATION
   ============================================ */

.sp-pagination {
	margin-top: 32px;
	display: flex;
	justify-content: center;
}

.sp-pagination .page-numbers {
	list-style: none;
	display: flex;
	gap: 6px;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
	justify-content: center;
}

.sp-pagination .page-numbers li {
	list-style: none;
}

.sp-pagination .page-numbers a,
.sp-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

body.color-switch-dark .sp-pagination .page-numbers a {
	color: var(--global-palette4);
	background: var(--global-palette7);
	border: 1px solid rgba(255, 255, 255, 0.06);
}
body.color-switch-dark .sp-pagination .page-numbers a:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--global-palette3);
}
body.color-switch-dark .sp-pagination .page-numbers .current {
	background: var(--section-accent);
	color: #0F172A;
	font-weight: 600;
}

body.color-switch-light .sp-pagination .page-numbers a {
	color: var(--global-palette5);
	background: #FFFFFF;
	border: 1px solid #CBD5E1;
}
body.color-switch-light .sp-pagination .page-numbers a:hover {
	background: #F1F5F9;
	color: var(--global-palette3);
}
body.color-switch-light .sp-pagination .page-numbers .current {
	background: var(--section-accent);
	color: #FFFFFF;
	font-weight: 600;
}

/* ============================================
   PRODUCTS BLOCK
   ============================================ */

.sp-products {
	margin-top: 48px;
}

.sp-products--featured {
	margin-top: 0;
	margin-bottom: 40px;
}

.sp-products__heading {
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--global-palette3);
	margin: 0 0 20px;
	letter-spacing: -0.2px;
}

.sp-products__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

/* Basic product card (no image) */
.sp-product {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border-radius: 14px;
	text-decoration: none;
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
	border: 1px solid var(--section-accent-dim);
}

/* Product card WITH image — horizontal layout, spans full grid width */
.sp-product--has-image {
	grid-column: 1 / -1;
	flex-direction: row;
	padding: 0;
	overflow: hidden;
}

body.color-switch-dark .sp-product {
	background: var(--global-palette7);
}
body.color-switch-dark .sp-product:hover {
	border-color: var(--section-accent-mid);
	transform: translateY(-2px);
}

body.color-switch-light .sp-product {
	background: #FFFFFF;
	border-color: #CBD5E1;
}
body.color-switch-light .sp-product:hover {
	border-color: var(--section-accent-mid);
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Product image — show full image without cropping */
.sp-product__image {
	width: 400px;
	flex-shrink: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
}
body.color-switch-dark .sp-product__image {
	background: #0F172A;
}
body.color-switch-light .sp-product__image {
	background: #F1F5F9;
}
.sp-product__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform var(--duration-slow) var(--ease-premium);
	padding: 8px;
}
.sp-product:hover .sp-product__img {
	transform: scale(1.03);
}

/* Product body (text area next to image) */
.sp-product__body {
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sp-product__badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 3px 10px;
	border-radius: 100px;
	margin-bottom: 12px;
	width: fit-content;
	color: var(--section-accent);
	background: var(--section-accent-dim);
}

.sp-product__name {
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--global-palette3);
	margin-bottom: 8px;
	letter-spacing: -0.3px;
}

.sp-product__desc {
	font-size: 14px;
	color: var(--global-palette5);
	line-height: 1.6;
}

.sp-product__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--section-accent);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
	.sp-hero__inner,
	.sp-content__inner {
		padding-left: 20px;
		padding-right: 20px;
	}

	/* Hero: stack vertically, hide decor */
	.sp-hero__card {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.sp-hero__decor {
		display: none;
	}
	.sp-hero__content {
		padding: 32px 24px;
	}
	.sp-hero__title {
		font-size: 28px;
		letter-spacing: -1px;
	}
	.sp-hero__desc {
		font-size: 15px;
	}
	.sp-hero__cta-row {
		flex-direction: column;
	}
	.sp-hero__btn-primary,
	.sp-hero__btn-secondary {
		justify-content: center;
		width: 100%;
	}

	/* Cards: single column on mobile */
	.sp-articles {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.sp-card__title {
		font-size: 16px;
	}
	.sp-card__body {
		padding: 16px 20px 20px;
	}
	.sp-card__excerpt {
		-webkit-line-clamp: 2;
	}



	/* Products: stack vertically */
	.sp-products__grid {
		grid-template-columns: 1fr;
	}
	.sp-product--has-image {
		flex-direction: column;
	}
	.sp-product__image {
		width: 100%;
		max-height: 220px;
	}
	.sp-product__body {
		padding: 20px;
	}
	.sp-product {
		padding: 20px;
	}
}


/* ============================================
   PHASE 6: ARTICLE TEMPLATE — Author Bio + CTAs
   ============================================ */

/* -------------------------------------------
   Author CTA Block (after article content)
   ------------------------------------------- */
.author-cta {
	max-width: 800px;
	margin: 3rem auto 2rem;
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(var(--section-accent-rgb), 0.15);
	background: rgba(var(--section-accent-rgb), 0.04);
}

.author-cta__bio {
	display: flex;
	gap: 20px;
	padding: 28px 28px 20px;
	align-items: flex-start;
}

.author-cta__avatar-wrap {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	padding: 3px;
	background: linear-gradient(135deg, var(--section-accent), transparent 70%);
}

.author-cta__avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

/* Dark theme avatar bg */
body.color-switch-dark .author-cta__avatar {
	border: 2px solid var(--global-palette4, #1E293B);
}

/* Light theme avatar bg */
body.color-switch-light .author-cta__avatar {
	border: 2px solid var(--global-palette9, #fff);
}

.author-cta__info {
	flex: 1;
	min-width: 0;
}

.author-cta__name {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--global-palette3);
	margin-bottom: 8px;
	line-height: 1.3;
}

.author-cta__text {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--global-palette6);
	margin: 0 0 6px;
}

.author-cta__section-text {
	color: var(--section-accent);
	font-weight: 500;
	margin-bottom: 0;
}

/* Actions row */
.author-cta__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 28px 24px;
	align-items: stretch;
}

.author-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 24px;
	background: var(--section-accent);
	color: var(--global-palette4, #0F172A) !important;
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none !important;
	transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
	line-height: 1.4;
}

/* Light theme: ensure btn text is white on green/blue */
body.color-switch-light .author-cta__btn {
	color: #fff !important;
}

.author-cta__btn:hover {
	opacity: 0.92;
	box-shadow: 0 4px 16px var(--section-accent-glow);
	transform: translateY(-1px);
	text-decoration: none !important;
	color: var(--global-palette4, #0F172A) !important;
}

body.color-switch-light .author-cta__btn:hover {
	color: #fff !important;
}

.author-cta__tg-icon {
	flex-shrink: 0;
}

.author-cta__cross {
	display: block;
	text-align: center;
	font-size: 0.875rem;
	color: var(--global-palette6) !important;
	text-decoration: none !important;
	opacity: 0.75;
	transition: opacity 0.2s, color 0.2s;
	line-height: 1.4;
}

.author-cta__cross:hover {
	opacity: 1;
	color: var(--section-accent) !important;
	text-decoration: none !important;
}

/* Dark theme specifics */
body.color-switch-dark .author-cta {
	background: rgba(var(--section-accent-rgb), 0.04);
	border-color: rgba(var(--section-accent-rgb), 0.12);
}

/* Light theme specifics */
body.color-switch-light .author-cta {
	background: var(--global-palette7, #F8FAFC);
	border-color: rgba(var(--section-accent-rgb), 0.2);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* -------------------------------------------
   Sidebar TG CTA
   ------------------------------------------- */
.sidebar-tg-cta {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(var(--section-accent-rgb), 0.12);
	background: rgba(var(--section-accent-rgb), 0.04);
	border-top: 3px solid var(--section-accent);
}


.sidebar-tg-cta {
	position: relative;
	overflow: hidden;
}

.sidebar-tg-cta::before {
	content: "";
	position: absolute;
	bottom: -10px;
	right: -10px;
	width: 90px;
	height: 90px;
	background: var(--sidebar-img) no-repeat center / contain;
	opacity: 0.15;
	pointer-events: none;
	z-index: 0;
}

body.color-switch-light .sidebar-tg-cta::before {
	opacity: 0.08;
	filter: brightness(1.5);
}

.sidebar-tg-cta__header,
.sidebar-tg-cta__desc,
.sidebar-tg-cta__btn {
	position: relative;
	z-index: 1;
}
.sidebar-tg-cta__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.sidebar-tg-cta__icon {
	color: var(--section-accent);
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.sidebar-tg-cta__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--global-palette3);
	line-height: 1.3;
}

.sidebar-tg-cta__desc {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--global-palette6);
	margin: 0 0 10px;
	opacity: 0.85;
}

.sidebar-tg-cta__btn {
	display: block;
	text-align: center;
	padding: 8px 14px;
	background: var(--section-accent);
	color: var(--global-palette4, #0F172A) !important;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none !important;
	transition: opacity 0.2s, box-shadow 0.2s;
}

body.color-switch-light .sidebar-tg-cta__btn {
	color: #fff !important;
}

.sidebar-tg-cta__btn:hover {
	opacity: 0.9;
	box-shadow: 0 4px 12px var(--section-accent-glow);
	text-decoration: none !important;
	color: var(--global-palette4, #0F172A) !important;
}

body.color-switch-light .sidebar-tg-cta__btn:hover {
	color: #fff !important;
}

/* Light theme sidebar */
body.color-switch-light .sidebar-tg-cta {
	background: var(--global-palette7, #F8FAFC);
	border-color: rgba(var(--section-accent-rgb), 0.2);
	border-top-color: var(--section-accent);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* -------------------------------------------
   Mobile responsive
   ------------------------------------------- */
@media (max-width: 767px) {
	.author-cta {
		margin: 2rem 0 1.5rem;
		border-radius: 12px;
	}

	.author-cta__bio {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 24px 20px 16px;
		gap: 14px;
	}

	.author-cta__avatar-wrap {
		width: 64px;
		height: 64px;
	}

	.author-cta__name {
		font-size: 1rem;
	}

	.author-cta__text {
		font-size: 0.875rem;
	}

	.author-cta__actions {
		padding: 0 20px 20px;
	}

	.author-cta__btn {
		font-size: 0.875rem;
		padding: 11px 20px;
	}

	.author-cta__cross {
		font-size: 0.8125rem;
	}

	/* Sidebar goes below content on mobile */
	.sidebar-tg-cta {
		margin-bottom: 20px;
	}
}

/* ---- Phase 6: button text, readability, avatar, cross-link fixes ---- */

/* Button text: always dark navy on colored bg */
.author-cta__btn,
.author-cta__btn:hover,
.author-cta__btn:focus,
body.color-switch-dark .author-cta__btn,
body.color-switch-dark .author-cta__btn:hover,
body.color-switch-light .author-cta__btn,
body.color-switch-light .author-cta__btn:hover {
	color: #0F172A !important;
}
.sidebar-tg-cta__btn,
.sidebar-tg-cta__btn:hover,
.sidebar-tg-cta__btn:focus,
body.color-switch-dark .sidebar-tg-cta__btn,
body.color-switch-dark .sidebar-tg-cta__btn:hover,
body.color-switch-light .sidebar-tg-cta__btn,
body.color-switch-light .sidebar-tg-cta__btn:hover {
	color: #0F172A !important;
}

/* Sidebar description + bio text: stronger readability */
.sidebar-tg-cta__desc { opacity: 1; color: var(--global-palette5); }
.author-cta__text { color: var(--global-palette5); }
body.color-switch-light .sidebar-tg-cta__desc { color: #475569; }
body.color-switch-light .author-cta__text { color: #1E293B; }
body.color-switch-light .author-cta__section-text { color: var(--section-accent); }

/* Avatar: clean border, no gradient ring */
.author-cta__avatar-wrap { padding: 0; background: none; }
.author-cta__avatar { border: 2px solid rgba(var(--section-accent-rgb), 0.25) !important; }

/* Cross-link: more visible */
.author-cta__cross { opacity: 1; color: var(--global-palette5) !important; }
body.color-switch-light .author-cta__cross { color: #475569 !important; }
.author-cta__cross:hover { color: var(--section-accent) !important; }

/* Sidebar overflow fix */
.sidebar-tg-cta { flex-shrink: 0; }
.sidebar-inner-wrap { overflow: visible !important; max-height: none !important; }

/* ==========================================================================
   PHASE 7.5: FOOTER — TG channel cards + navigation + pattern background
   ========================================================================== */

/* Container + pattern background */
.site-custom-footer {
	position: relative;
	border-top: 1px solid rgba(0, 217, 126, 0.15);
	padding: 32px 0 0;
	margin-top: 0;
	overflow: hidden;
	display: none;
}
.site-custom-footer::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/wp-content/uploads/2026/04/footer-pattern-1-scaled.png') center / cover no-repeat;
	opacity: 0.15;
	pointer-events: none;
	z-index: 0;
}
.custom-footer__inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ---- Links Grid ---- */
.cf-links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
	padding: 24px 0 32px;
}

.cf-links__title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 12px;
}

.cf-links__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cf-links__list li {
	margin-bottom: 8px;
}
.cf-links__list a {
	text-decoration: none;
	font-size: 14px;
	transition: color 0.15s ease;
}

/* ==========================================================================
   DARK THEME — Footer
   ========================================================================== */
body.color-switch-dark .site-custom-footer {
	border-top-color: rgba(0, 217, 126, 0.1);
}
body.color-switch-dark .site-custom-footer::before {
	opacity: 0.15;
}
/* Links dark */
body.color-switch-dark .cf-links__title {
	color: #64748B;
}
body.color-switch-dark .cf-links__list a {
	color: #94A3B8;
}
body.color-switch-dark .cf-links__list a:hover {
	color: #F0FCFF;
}

/* ==========================================================================
   LIGHT THEME — Footer
   ========================================================================== */
body.color-switch-light .site-custom-footer {
	border-top-color: #E2E8F0;
}
body.color-switch-light .site-custom-footer::before {
	opacity: 0.04;
	mix-blend-mode: soft-light;
}
/* Links light */
body.color-switch-light .cf-links__title {
	color: #94A3B8;
}
body.color-switch-light .cf-links__list a {
	color: #64748B;
}
body.color-switch-light .cf-links__list a:hover {
	color: #0F172A;
}

/* ==========================================================================
   FOOTER — Kadence bottom bar overrides
   ========================================================================== */
body.color-switch-dark #colophon .site-footer-bottom-container-inner {
	border-top-color: rgba(0, 217, 126, 0.06);
}
body.color-switch-light #colophon .site-footer-bottom-container-inner {
	border-top-color: #E2E8F0;
}
#colophon .footer-widget-area.site-info {
	font-size: 13px;
}
body.color-switch-dark #colophon .footer-widget-area.site-info {
	color: #64748B;
}
body.color-switch-light #colophon .footer-widget-area.site-info {
	color: #94A3B8;
}

/* ==========================================================================
   FOOTER — Responsive (mobile-only footer)
   ========================================================================== */
@media (max-width: 768px) {
	.site-custom-footer {
		display: block;
		padding-top: 20px;
	}
	.site-custom-footer::before {
		opacity: 0.06;
	}
	.custom-footer__inner {
		padding: 0 1.25rem;
	}
	.cf-links {
		grid-template-columns: repeat(3, 1fr);
		gap: 0;
		padding: 12px 0 20px;
		text-align: center;
	}
	.cf-links__title {
		font-size: 11px;
		margin-bottom: 8px;
	}
	.cf-links__list li {
		margin-bottom: 5px;
	}
	.cf-links__list a {
		font-size: 13px;
	}
}

/* ==========================================================================
   TG CHANNEL CARDS — Reusable component (Kadence Element #1900)
   Used via Kadence Elements hook injection, not in footer.
   ========================================================================== */
.cf-channels {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}
.cf-channel {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: var(--global-palette7);
	text-decoration: none;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
	            border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
	            box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cf-channel:hover {
	transform: translateY(-2px);
}
.cf-channel:active {
	transform: scale(0.98);
	transition-duration: 0.1s;
}
.cf-channel--finance {
	--ch-accent: #00d97e;
	--ch-accent-rgb: 0, 217, 126;
}
.cf-channel--finance:hover {
	border-color: rgba(0, 217, 126, 0.3);
	box-shadow: 0 8px 32px rgba(0, 217, 126, 0.08), 0 0 0 1px rgba(0, 217, 126, 0.06);
}
.cf-channel--ai {
	--ch-accent: #3b82f6;
	--ch-accent-rgb: 59, 130, 246;
}
.cf-channel--ai:hover {
	border-color: rgba(59, 130, 246, 0.3);
	box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.06);
}
.cf-channel__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(var(--ch-accent-rgb), 0.12);
	color: var(--ch-accent);
}
.cf-channel__text {
	flex: 1;
	min-width: 0;
}
.cf-channel__name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--global-palette3);
}
.cf-channel__desc {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	color: var(--global-palette5);
	margin-top: 2px;
}
.cf-channel__arrow {
	flex-shrink: 0;
	color: var(--global-palette6);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
	            color 0.3s ease;
}
.cf-channel:hover .cf-channel__arrow {
	color: var(--ch-accent);
	transform: translateX(3px);
}

/* Light theme overrides */
body.color-switch-light .cf-channel {
	background: #fff;
	border-color: #CBD5E1;
}
body.color-switch-light .cf-channel--finance {
	--ch-accent: #059669;
	--ch-accent-rgb: 5, 150, 105;
}
body.color-switch-light .cf-channel--ai {
	--ch-accent: #3b82f6;
	--ch-accent-rgb: 59, 130, 246;
}
body.color-switch-light .cf-channel--finance:hover {
	border-color: rgba(5, 150, 105, 0.4);
	box-shadow: 0 8px 32px rgba(5, 150, 105, 0.06);
}
body.color-switch-light .cf-channel--ai:hover {
	border-color: rgba(59, 130, 246, 0.4);
	box-shadow: 0 8px 32px rgba(59, 130, 246, 0.06);
}
body.color-switch-light .cf-channel__icon {
	background: rgba(var(--ch-accent-rgb), 0.08);
}

/* Mobile: stack single column, hide description */
@media (max-width: 768px) {
	.cf-channels {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.cf-channel {
		padding: 16px 20px;
	}
	.cf-channel__desc {
		display: none;
	}
}

/* ==========================================================================
   PHASE C: VISUAL POLISH
   ========================================================================== */

/* ---- C1: Hover Micro-Interactions ---- */

/* Button active press */
.hp-dir:active,
.about-tg-card:active,
.sp-hero__btn-primary:active,
.sp-hero__btn-secondary:active {
	transform: scale(0.98);
	transition-duration: var(--duration-fast);
}

/* Link underline wipe (blog content) */
.single .entry-content a:not(.kb-tooltips):not(.kt-button):not([href*="t.me"]) {
	background-image: linear-gradient(var(--blog-link-color, var(--global-palette1)), var(--blog-link-color, var(--global-palette1)));
	background-size: 0% 2px;
	background-position: left bottom;
	background-repeat: no-repeat;
	transition: background-size var(--duration-normal) var(--ease-out-expo);
	text-decoration: none;
}
.single .entry-content a:not(.kb-tooltips):not(.kt-button):not([href*="t.me"]):hover {
	background-size: 100% 2px;
}

/* Card hover shadow spread */
.hp-post:hover {
	box-shadow: var(--hp-shadow-hover), 0 0 0 1px rgba(var(--section-accent-rgb, 0, 217, 126), 0.08);
}

/* ---- C2: Scroll Reveal Animations ---- */

[data-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity var(--duration-slower) var(--ease-out-expo),
	            transform var(--duration-slower) var(--ease-out-expo);
}
[data-reveal].revealed {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger children */
[data-reveal-stagger] > * {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity var(--duration-slower) var(--ease-out-expo),
	            transform var(--duration-slower) var(--ease-out-expo);
}
[data-reveal-stagger].revealed > * {
	opacity: 1;
	transform: translateY(0);
}
[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 160ms; }

/* No-JS fallback */
.no-js [data-reveal],
.no-js [data-reveal-stagger] > * {
	opacity: 1;
	transform: none;
}

/* ---- C3: Light Theme Polish ---- */

/* Direction cards: stronger gradient + colored top border */
body.color-switch-light .hp-dir--finance {
	border-top: 2px solid rgba(5, 150, 105, 0.3);
}
body.color-switch-light .hp-dir--ai {
	border-top: 2px solid rgba(59, 130, 246, 0.3);
}

/* Post cards hover: stronger shadow in light */
body.color-switch-light .hp-post:hover {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ---- C4: Section Spacing Rhythm ---- */

.hp-directions {
	padding: 48px 0 80px;
}
.hp-posts {
	padding: 64px 0 96px;
}

/* Mobile: disable scroll reveal (content always visible) */
@media (max-width: 768px) {
	[data-reveal],
	[data-reveal-stagger] > * {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ==========================================================================
   PHASE D: DETAILS
   ========================================================================== */

/* ---- D1: Active Nav State ---- */

/* Homepage nav highlight */
body.home .primary-menu-container .menu-item a[href="/"],
body.home .primary-menu-container .menu-item a[href$="egorsokolov.ru/"] {
	color: var(--section-accent) !important;
	background: var(--section-accent-dim);
	border-radius: 8px;
}

/* About page nav highlight */
body.page-template-page-about .primary-menu-container .menu-item a[href*="/about/"] {
	color: var(--section-accent) !important;
	background: var(--section-accent-dim);
	border-radius: 8px;
}

/* ---- D3: Typography Refinements ---- */

/* Balance headings */
.hp-hero__title,
.hp-dir__title,
.hp-posts__heading,
.sp-hero__title,
.about-hero__title,
.about-why__title {
	text-wrap: balance;
}

/* Display heading kerning */
.hp-hero__title,
.hp-dir__title,
.about-hero__title {
	font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Blog content readability */
.single .entry-content {
	line-height: 1.65;
}
/* ============================================
   Mobile: Tables & Code Blocks
   ============================================ */
@media (max-width: 600px) {
	/* Tables: remove min-width, smaller text + tighter padding */
	.single .entry-content table {
		min-width: 0;
		font-size: 0.8125rem;
	}
	.single .entry-content th {
		padding: 0.5rem 0.5rem;
		font-size: 0.75rem;
	}
	.single .entry-content td {
		padding: 0.5rem 0.5rem;
	}

	/* Code blocks: smaller font, prevent ugly mid-word wrapping */
	.single .entry-content pre code {
		font-size: 0.75rem;
	}
}

/* ==========================================================================
   WAVE 5: Hero Images + Visual Polish
   ========================================================================== */

/* ---- 5A-bg: Category Page Background Texture ---- */

.section-page {
	position: relative;
}
.section-page::before {
	content: '';
	position: fixed;
	inset: 0;
	background: url('/wp-content/uploads/2026/04/background-category-scaled.png') center/cover no-repeat;
	pointer-events: none;
	z-index: 0;
}

/* Dark theme: visible but not distracting */
body.color-switch-dark .section-page::before {
	opacity: 0.4;
}

/* Light theme: disabled — dark texture doesn't work on light bg */
body.color-switch-light .section-page::before {
	display: none;
}

/* Content sections sit above the texture */
.sp-hero,
.sp-content {
	position: relative;
	z-index: 1;
}

/* ---- 5A: Hero Background Images on Category Pages ---- */

.sp-hero__card--finance::after,
.sp-hero__card--ai::after {
	content: '';
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 0;
}

.sp-hero__card--finance::after {
	background-image: url('/wp-content/uploads/2026/04/finance-hero-1-scaled.png');
}
.sp-hero__card--ai::after {
	background-image: url('/wp-content/uploads/2026/04/ai-hero-1-scaled.png');
}

/* Dark theme: atmospheric overlay */
body.color-switch-dark .sp-hero__card--finance::after,
body.color-switch-dark .sp-hero__card--ai::after {
	opacity: 0.35;
}

/* Light theme: very subtle, multiply blend */
body.color-switch-light .sp-hero__card--finance::after,
body.color-switch-light .sp-hero__card--ai::after {
	opacity: 0.08;
	mix-blend-mode: multiply;
}

/* Ensure content + decor sit above the bg image */
.sp-hero__content {
	z-index: 2;
}
.sp-hero__decor {
	z-index: 1;
}

/* ---- 5B: Extended Stagger Delays (children 4-10) ---- */

[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 400ms; }
[data-reveal-stagger].revealed > *:nth-child(7) { transition-delay: 480ms; }
[data-reveal-stagger].revealed > *:nth-child(8) { transition-delay: 540ms; }
[data-reveal-stagger].revealed > *:nth-child(9) { transition-delay: 580ms; }
[data-reveal-stagger].revealed > *:nth-child(10) { transition-delay: 600ms; }
[data-reveal-stagger].revealed > *:nth-child(n+11) { transition-delay: 620ms; }

/* ---- 5C: Reduced Motion Accessibility ---- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	[data-reveal],
	[data-reveal-stagger] > * {
		opacity: 1 !important;
		transform: none !important;
	}

	.sp-hero__card:hover {
		transform: none;
	}

	.sp-card:hover {
		transform: none;
	}

	.hp-post:hover {
		transform: none;
	}
}

