/**
 * Основные стили — KHAR_AG Portfolio
 * Тёмный премиальный UI + оранжевое свечение + glassmorphism
 *
 * @package My_Portfolio
 */


/* --- Универсальные градиенты для всех заголовков (Темная тема) --- */
.hero-title,
.hero-title .line,
.section-title,
.iron-triangle-title,
.product-title,
.faq-title,
.footer-cta__title,
.manifesto-title,
.eco-block__title,
.eco-card__title,
.learning-program-card__title,
.learning-feature-card__title,
.eng-card__title,
.route-stage__title,
.route-card__title,
.vibe-col__title,
.card-title {
    background: linear-gradient(180deg, #ffffff 20%, #a0a0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* --- Универсальные градиенты для всех заголовков (Светлая тема) --- */
html[data-theme="light"] .hero-title,
html[data-theme="light"] .hero-title .line,
html[data-theme="light"] .section-title,
html[data-theme="light"] .iron-triangle-title,
html[data-theme="light"] .product-title,
html[data-theme="light"] .faq-title,
html[data-theme="light"] .footer-cta__title,
html[data-theme="light"] .manifesto-title,
html[data-theme="light"] .eco-block__title,
html[data-theme="light"] .eco-card__title,
html[data-theme="light"] .learning-program-card__title,
html[data-theme="light"] .learning-feature-card__title,
html[data-theme="light"] .eng-card__title,
html[data-theme="light"] .route-stage__title,
html[data-theme="light"] .route-card__title,
html[data-theme="light"] .vibe-col__title,
html[data-theme="light"] .card-title {
    background: linear-gradient(180deg, #111827 20%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============================================
   СБРОС И CSS-ПЕРЕМЕННЫЕ
   ============================================ */

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

:root {
    color-scheme: dark;

    /* Тёмный фон + оранжевый акцент */
    --color-bg: #030303;
    --color-bg-light: #0a0a0a;
    --color-bg-card: #111111;
    --color-bg-elevated: #161616;

    --color-primary: #ff5f1f;
    --color-primary-light: #ff9a6b;
    --color-primary-dark: #c2410c;
    --color-primary-dim: rgba(255, 95, 31, 0.14);
    --color-secondary: #ffb547;
    --color-secondary-dim: rgba(255, 181, 71, 0.12);
    --color-accent: #ff8c42;

    --color-text: #f5f5f5;
    --color-text-secondary: #a8a8a8;
    --color-text-muted: #737373;

    --color-border: rgba(255, 255, 255, 0.07);
    --color-border-hover: rgba(255, 255, 255, 0.16);
    --color-border-accent: rgba(255, 95, 31, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-strong: rgba(255, 255, 255, 0.09);
    --glass-border: rgba(255, 255, 255, 0.12);

    /* Оранжевое свечение */
    --glow-cta-08: rgba(255, 95, 31, 0.08);
    --glow-cta-12: rgba(255, 95, 31, 0.12);
    --glow-cta-14: rgba(255, 95, 31, 0.14);
    --glow-cta-18: rgba(255, 95, 31, 0.18);
    --glow-cta-22: rgba(255, 95, 31, 0.22);
    --glow-cta-25: rgba(255, 95, 31, 0.25);
    --glow-cta-35: rgba(255, 95, 31, 0.35);
    --glow-cta-45: rgba(255, 95, 31, 0.45);
    --glow-neutral-12: rgba(255, 181, 71, 0.1);
    --glass-blur: 20px;

    /* Левая навигация по секциям (главная) — минимальная ширина карточки */
    --section-rail-min-width: 10.5rem;

    /* Портрет в hero: макс. ширина блока, пропорции без привязки к vh */
    --hero-portrait-max: 600px;
    --hero-portrait-ratio: 4 / 5;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.5rem;
    --fs-5xl: 3.5rem;
    --fs-6xl: 4.5rem;

    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-24: 6rem;
    --spacing-32: 8rem;

    /* Шире на больших экранах: раньше 1200px давало «коробку» по центру */
    --container-max: min(94vw, 1680px);
    --container-padding: 1.5rem;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 40px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 48px rgba(255, 95, 31, 0.2);

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   СВЕТЛАЯ ТЕМА
   ========================================================================== */
html[data-theme="light"] {
    color-scheme: light;

    /* Светлый фон + оранжевый акцент */
    --color-bg: #f8f9fa;
    --color-bg-light: #ffffff;
    --color-bg-card: #ffffff;
    --color-bg-elevated: #f1f5f9;

    --color-primary: #ff5f1f;
    --color-primary-light: #ff7b47;
    --color-primary-dark: #e0480d;
    --color-primary-dim: rgba(255, 95, 31, 0.1);
    --color-secondary: #ffb547;
    --color-secondary-dim: rgba(255, 181, 71, 0.1);
    --color-accent: #ff8c42;

    --color-text: #111827;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;

    --color-border: rgba(0, 0, 0, 0.1);
    --color-border-hover: rgba(0, 0, 0, 0.2);
    --color-border-accent: rgba(255, 95, 31, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-bg-strong: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);

    /* Тени для светлой темы */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Свечение */
    --glow-cta-08: rgba(255, 95, 31, 0.15);
    --glow-cta-12: rgba(255, 95, 31, 0.2);
    --glow-cta-14: rgba(255, 95, 31, 0.25);
    --glow-cta-18: rgba(255, 95, 31, 0.3);
    --glow-cta-22: rgba(255, 95, 31, 0.35);
    --glow-cta-25: rgba(255, 95, 31, 0.4);
    --glow-cta-35: rgba(255, 95, 31, 0.5);
    --glow-cta-45: rgba(255, 95, 31, 0.6);
    --glow-neutral-12: rgba(0, 0, 0, 0.05);
}

/* Специфичные фиксы для светлой темы */
html[data-theme="light"] .theme-switcher__menu {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
}
html[data-theme="light"] .theme-switcher__option:hover {
    background: #f1f5f9;
}
html[data-theme="light"] .theme-switcher__option[aria-checked="true"] {
    background: rgba(255, 95, 31, 0.1);
    color: var(--color-primary);
}
html[data-theme="light"] .faq-item {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .faq-summary {
    color: var(--color-text);
}
html[data-theme="light"] .faq-item:hover {
    background: #f8f9fa;
    border-color: rgba(255, 95, 31, 0.3);
}
html[data-theme="light"] .faq-item[open] {
    background: rgba(255, 95, 31, 0.03);
    border-color: var(--color-primary);
}
html[data-theme="light"] .faq-item[open] .faq-summary {
    color: var(--color-primary);
}
html[data-theme="light"] .hero-tech-visual::before,
html[data-theme="light"] .hero-tech-visual::after {
    background: linear-gradient(to bottom, #f8f9fa 0%, transparent 100%);
}
html[data-theme="light"] .hero-tech-visual::after {
    background: linear-gradient(to top, #f8f9fa 0%, transparent 100%);
}
html[data-theme="light"] .tech-chip {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    color: var(--color-text);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

html[data-theme="light"] .tech-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255, 95, 31, 0.05);
    box-shadow: 0 0 20px rgba(255, 95, 31, 0.15);
}
html[data-theme="light"] .manifesto-experience-counter {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .manifesto-experience__num {
    color: var(--color-text);
    text-shadow: none;
}
html[data-theme="light"] .manifesto-experience__hint {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.05);
}
html[data-theme="light"] .routes-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .engineering-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .ecosystem-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .vibe-training-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .vibe-training-card--premium {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(255, 95, 31, 0.15);
}
html[data-theme="light"] .products-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .products-stat-item {
    background: #f8f9fa;
    border-color: rgba(0,0,0,0.05);
}
html[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .site-footer {
    background: #f8f9fa;
    border-top-color: rgba(0,0,0,0.1);
}

html[data-theme="light"] .footer-qr {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .footer-qr:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

html[data-theme="light"] .footer-cta {
    background: #ffffff;
}
html[data-theme="light"] .footer-bottom {
    background: #f1f5f9;
    border-top-color: rgba(0,0,0,0.05);
}
html[data-theme="light"] .section-subtitle {
    color: var(--color-text-muted);
}
html[data-theme="light"] .hero-desc {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .marquee-track {
    color: var(--color-text-secondary);
}







/* --- Особенности обучения --- */
html[data-theme="light"] .learning-feature-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: var(--shadow-md);
}
html[data-theme="light"] .learning-feature-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
}
html[data-theme="light"] .learning-feature-card--paid {
    background: linear-gradient(155deg, rgba(255, 102, 0, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: rgba(255, 102, 0, 0.3);
}
html[data-theme="light"] .learning-feature-card__title {
    color: var(--color-text);
}
html[data-theme="light"] .learning-feature-card__lead {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .learning-feature-card__text {
    color: var(--color-text-muted);
}
html[data-theme="light"] .learning-feature-card__list li::before {
    color: var(--color-primary);
}

/* --- Программа курса --- */
html[data-theme="light"] .learning-program-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .learning-program-card__title {
    color: var(--color-text);
}
html[data-theme="light"] .learning-program-card__text {
    color: var(--color-text-secondary);
}

html[data-theme="light"] .learning-program-card:nth-child(1) {
    background: linear-gradient(160deg, rgba(80, 90, 255, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(80, 90, 255, 0.2);
}
html[data-theme="light"] .learning-program-card:nth-child(2) {
    background: linear-gradient(160deg, rgba(255, 165, 0, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(255, 165, 0, 0.2);
}
html[data-theme="light"] .learning-program-card:nth-child(3) {
    background: linear-gradient(160deg, rgba(0, 220, 130, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(0, 220, 130, 0.2);
}
html[data-theme="light"] .learning-program-card:nth-child(4) {
    background: linear-gradient(160deg, rgba(0, 180, 255, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(0, 180, 255, 0.2);
}
html[data-theme="light"] .learning-program-card:nth-child(5) {
    background: linear-gradient(160deg, rgba(180, 0, 255, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(180, 0, 255, 0.2);
}
html[data-theme="light"] .learning-program-card:nth-child(6) {
    background: linear-gradient(160deg, rgba(255, 0, 100, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(255, 0, 100, 0.2);
}

/* --- Как устроена работа (Экосистема) --- */
html[data-theme="light"] .eco-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .eco-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}
html[data-theme="light"] .eco-card__text {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .eco-block__title {
    color: var(--color-text);
}

/* --- Мои продукты (Репост Лайт) --- */
html[data-theme="light"] .product-banner__inner {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: rgba(0,0,0,0.1);
    box-shadow: var(--shadow-xl);
}
html[data-theme="light"] .product-description {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .product-bullets li {
    color: var(--color-text);
}
html[data-theme="light"] .bullet-icon {
    color: var(--color-primary);
}
html[data-theme="light"] .product-stat-item {
    background: #f1f5f9;
    border-color: rgba(0,0,0,0.05);
}
html[data-theme="light"] .product-stat-val {
    color: var(--color-text);
}
html[data-theme="light"] .product-stat-label {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .product-banner__inner::before {
    opacity: 0.2;
}
html[data-theme="light"] .product-banner__glow {
    opacity: 0.5;
}



/* --- Железный треугольник (Iron Triangle) --- */
html[data-theme="light"] .iron-triangle-section {
    background: #f8f9fa;
}
html[data-theme="light"] .iron-triangle-box {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: var(--shadow-xl);
}
html[data-theme="light"] .iron-triangle-box::before {
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}
html[data-theme="light"] .iron-eyebrow {
    color: var(--color-primary);
}
html[data-theme="light"] .iron-triangle-subtitle {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .iron-triangle-subtitle strong {
    color: var(--color-text);
}
html[data-theme="light"] .iron-btn {
    background: #f1f5f9;
    color: var(--color-text-secondary);
    border-color: rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .iron-btn:hover {
    background: #e2e8f0;
    color: var(--color-text);
    border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .iron-btn.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff4500 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
}
html[data-theme="light"] .iron-triangle-output {
    background: #f8f9fa;
    border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .iron-output-header {
    background: #f1f5f9;
    border-bottom-color: rgba(0,0,0,0.05);
}

html[data-theme="light"] .iron-output-dot {
    background: #cbd5e1;
}
html[data-theme="light"] .iron-output-label {
    color: var(--color-text-muted);
}
html[data-theme="light"] .iron-result-text.default {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .iron-glow {
    background: radial-gradient(circle at 50% 50%, rgba(255, 102, 0, 0.08) 0%, transparent 60%);
}

/* --- Выберите свой маршрут (route-card) --- */
html[data-theme="light"] .route-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .route-card__title {
    color: var(--color-text);
}
html[data-theme="light"] .route-card__desc {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .route-card__list li {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .route-card__list li::before {
    color: var(--color-primary);
}
html[data-theme="light"] .route-card__eyebrow {
    color: var(--color-primary);
}
html[data-theme="light"] .route-service-intro {
    border-color: rgba(0, 0, 0, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 252, 0.94)),
        radial-gradient(circle at top right, rgba(255, 102, 0, 0.1), transparent 55%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 12px 28px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .route-service-tags span {
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.82);
}
html[data-theme="light"] .route-service-card {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-theme="light"] .route-service-card p,
html[data-theme="light"] .route-service-proof__item span {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .route-service-proof__item {
    background: rgba(255, 255, 255, 0.78);
    border-left-color: rgba(255, 102, 0, 0.45);
}
html[data-theme="light"] .route-learning-intro {
    border-color: rgba(0, 0, 0, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 252, 0.94)),
        radial-gradient(circle at top right, rgba(255, 102, 0, 0.1), transparent 55%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 12px 28px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .route-learning-tags span {
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.82);
}
html[data-theme="light"] .route-learning-card {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-theme="light"] .route-learning-card p,
html[data-theme="light"] .route-learning-proof__item span {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .route-learning-proof__item {
    background: rgba(255, 255, 255, 0.78);
    border-left-color: rgba(255, 102, 0, 0.45);
}
html[data-theme="light"] .route-visual-shell {
    border-color: rgba(0, 0, 0, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 102, 0, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 252, 0.95));
    box-shadow: var(--shadow-md);
}
html[data-theme="light"] .route-grid-backdrop {
    opacity: 0.08;
}
html[data-theme="light"] .automation-node,
html[data-theme="light"] .learning-console,
html[data-theme="light"] .learning-chip,
html[data-theme="light"] .automation-metric {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .automation-node strong,
html[data-theme="light"] .learning-chip,
html[data-theme="light"] .automation-metric {
    color: var(--color-text);
}
html[data-theme="light"] .automation-node__label {
    color: rgba(15, 23, 42, 0.55);
}
html[data-theme="light"] .learning-console__line {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.04));
}
html[data-theme="light"] .learning-console__bar span {
    background: rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .learning-orbit {
    border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .learning-orbit--inner {
    border-color: rgba(255, 102, 0, 0.22);
}

/* --- Инженерные решения (eng-card) --- */
html[data-theme="light"] .eng-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .eng-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}
html[data-theme="light"] .eng-card__title {
    color: var(--color-text);
}
html[data-theme="light"] .eng-card__text {
    color: var(--color-text-secondary);
}

/* --- Обучение и Вайб-кодинг (vibe-col) --- */
html[data-theme="light"] .vibe-col__title {
    color: var(--color-text);
}
html[data-theme="light"] .vibe-col__text {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .vibe-col__callout {
    color: var(--color-text);
    background: #f1f5f9;
    border-left-color: var(--color-primary);
}
html[data-theme="light"] .vibe-col--premium {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(255, 95, 31, 0.1);
}
html[data-theme="light"] .vibe-col--premium:hover {
    box-shadow: 0 0 30px rgba(255, 95, 31, 0.15);
}
html[data-theme="light"] .vibe-col__list li {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .vibe-col__list li::before {
    color: var(--color-primary);
}


/* --- Фикс ярких пятен (::after) в светлой теме --- */
html[data-theme="light"] .learning-program-card:nth-child(1)::after {
    background: radial-gradient(circle, rgba(80, 90, 255, 0.15) 0%, transparent 70%);
}
html[data-theme="light"] .learning-program-card:nth-child(2)::after {
    background: radial-gradient(circle, rgba(255, 165, 0, 0.15) 0%, transparent 70%);
}
html[data-theme="light"] .learning-program-card:nth-child(3)::after {
    background: radial-gradient(circle, rgba(0, 220, 130, 0.15) 0%, transparent 70%);
}
html[data-theme="light"] .learning-program-card:nth-child(4)::after {
    background: radial-gradient(circle, rgba(0, 180, 255, 0.15) 0%, transparent 70%);
}
html[data-theme="light"] .learning-program-card:nth-child(5)::after {
    background: radial-gradient(circle, rgba(180, 0, 255, 0.15) 0%, transparent 70%);
}
html[data-theme="light"] .learning-program-card:nth-child(6)::after {
    background: radial-gradient(circle, rgba(255, 0, 100, 0.15) 0%, transparent 70%);
}


/* --- Дополнительные фиксы белого текста --- */
html[data-theme="light"] .eco-card__title {
    color: var(--color-text);
}
html[data-theme="light"] .iron-triangle-subtitle strong {
    color: var(--color-text);
}
html[data-theme="light"] .iron-btn:hover {
    color: var(--color-text);
    border-color: rgba(0,0,0,0.15);
}
html[data-theme="light"] .manifesto-experience__timer-label {
    color: var(--color-text-muted);
}
html[data-theme="light"] .product-bullets li {
    color: var(--color-text-secondary);
}

/* --- Фиксы кнопок в светлой теме --- */
html[data-theme="light"] .btn-outline {
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
}
html[data-theme="light"] .btn-outline:hover {
    background: rgba(255, 95, 31, 0.1);
    color: var(--color-primary-dark);
}
html[data-theme="light"] .btn-primary {
    color: #ffffff;
}

/* --- Остальные заголовки --- */
html[data-theme="light"] .eco-block__title {
    color: var(--color-text);
}

/* --- Остальные фиксы текста --- */
html[data-theme="light"] .learning-program-head__label {
    color: var(--color-text-secondary);
}
html[data-theme="light"] .learning-program-head__lead {
    color: var(--color-text);
}
html[data-theme="light"] .section-label {
    color: var(--color-primary);
    background: rgba(255, 95, 31, 0.1);
    border-color: rgba(255, 95, 31, 0.2);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: rgba(255, 95, 31, 0.35);
    color: #fff;
}

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

/* ============================================
   ТИПОГРАФИКА
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
    letter-spacing: -0.025em;
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

p + p {
    margin-top: var(--spacing-4);
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

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

/* ============================================
   УТИЛИТЫ
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    padding: var(--spacing-2) var(--spacing-4);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-full);
    background: var(--color-primary-dim);
    margin-bottom: var(--spacing-6);
}

.section-title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-4);
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-16);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* Scroll-анимации */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: 0.875rem 2rem;
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #0a0a0a;
    font-weight: 700;
    box-shadow: 0 0 28px var(--glow-cta-35),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 0 48px var(--glow-cta-45),
                0 10px 28px var(--glow-cta-25),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--color-text);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
    background: var(--glass-bg-strong);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 24px var(--glow-cta-12);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 95, 31, 0.45);
    color: var(--color-primary);
    box-shadow: 0 0 18px var(--glow-cta-12);
}

.btn-outline:hover {
    background: rgba(255, 95, 31, 0.12);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 32px var(--glow-cta-25);
}

button.btn:disabled,
button.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    padding: var(--spacing-2) 0;
    border: none;
    font-weight: 600;
}

.btn-ghost:hover {
    color: #fff;
}

.btn-ghost .arrow {
    transition: transform var(--transition-base);
}

.btn-ghost:hover .arrow {
    transform: translateX(4px);
}

/* ============================================
   ШАПКА
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-4) 0;
    background: rgba(3, 3, 3, 0.55);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    padding: var(--spacing-3) 0;
    background: rgba(3, 3, 3, 0.88);
    border-bottom-color: var(--color-border);
}

.site-header .site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-4);
    flex-wrap: nowrap;
}

.site-header-end {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    flex-shrink: 0;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.header-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.header-social-icon:hover {
    transform: translateY(-2px) scale(1.05);
    opacity: 0.9;
}

.header-social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.site-title a {
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    transition: opacity var(--transition-fast);
}

.site-title a:hover {
    opacity: 0.85;
}

.site-title .logo-accent {
    color: var(--color-primary);
}

.site-description {
    display: none;
}

/* Переключатель темы: светлая / тёмная / как в системе */
.theme-switcher {
    position: relative;
    flex-shrink: 0;
}

.theme-switcher__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.theme-switcher__trigger:hover {
    color: var(--color-text);
    border-color: var(--color-border-hover);
    background: var(--glass-bg-strong);
}

.theme-switcher__trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.theme-switcher__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: none;
}

.theme-switcher[data-preference="light"] .theme-switcher__icon--sun,
.theme-switcher[data-preference="dark"] .theme-switcher__icon--moon,
.theme-switcher[data-preference="auto"] .theme-switcher__icon--auto {
    display: block;
}

.theme-switcher__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 12.5rem;
    padding: var(--spacing-1);
    margin: 0;
    list-style: none;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg-strong);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.theme-switcher__menu[hidden] {
    display: none !important;
}

.theme-switcher__option {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: var(--spacing-2) var(--spacing-3);
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.theme-switcher__option:hover,
.theme-switcher__option:focus-visible {
    background: var(--glass-bg);
    outline: none;
}

.theme-switcher__option[aria-checked="true"] {
    color: var(--color-primary);
    font-weight: 600;
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */

.main-navigation {
    display: flex;
    align-items: center;
}

.docs-quick-nav {
    display: flex;
    align-items: center;
}

.header-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 95, 31, 0.18);
    background: rgba(255, 95, 31, 0.08);
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 24px rgba(255, 95, 31, 0.08);
}

.header-quick-link:hover {
    background: rgba(255, 95, 31, 0.14);
    border-color: rgba(255, 95, 31, 0.32);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.header-quick-link--guides {
    position: relative;
    padding: 0.75rem 1.15rem;
    background:
        linear-gradient(180deg, rgba(255, 110, 35, 0.12) 0%, rgba(255, 110, 35, 0.06) 100%);
    border-color: rgba(255, 110, 35, 0.24);
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow:
        0 12px 26px rgba(255, 110, 35, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-quick-link--guides::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffb547, #ff5f1f);
    box-shadow: 0 0 0.8rem rgba(255, 95, 31, 0.24);
    flex-shrink: 0;
}

.header-quick-link--guides:hover {
    background:
        linear-gradient(180deg, rgba(255, 110, 35, 0.18) 0%, rgba(255, 110, 35, 0.1) 100%);
    border-color: rgba(255, 110, 35, 0.36);
    color: var(--color-primary);
    box-shadow:
        0 16px 30px rgba(255, 110, 35, 0.18),
        0 0 1.25rem rgba(255, 95, 31, 0.08);
}

.header-quick-link--guides,
.header-quick-link--videos {
    overflow: hidden;
    isolation: isolate;
}

.header-quick-link--guides::before {
    width: 0.82rem;
    height: 1rem;
    border-radius: 0.16rem;
    background:
        linear-gradient(90deg, rgba(194, 65, 12, 0.22) 1px, transparent 1px) 0.22rem 0.28rem / 0.34rem 0.22rem no-repeat,
        linear-gradient(180deg, #fff8ef 0%, #ffe0bf 100%);
    box-shadow:
        0 0.18rem 0.55rem rgba(255, 95, 31, 0.2),
        inset -0.18rem 0.16rem 0 rgba(255, 122, 26, 0.2);
    transform: rotate(-7deg);
}

.header-quick-link--guides::after {
    content: '';
    position: absolute;
    left: 1.17rem;
    top: 50%;
    z-index: -1;
    width: 1.15rem;
    height: 0.12rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 122, 26, 0.85), transparent);
    transform: translateY(0.35rem) rotate(-18deg) scaleX(0.2);
    transform-origin: left center;
    opacity: 0;
}

.header-quick-link--guides:hover::before,
.header-quick-link--guides.is-active::before {
    animation: headerGuidePaper 1.8s ease-in-out infinite;
}

.header-quick-link--guides:hover::after,
.header-quick-link--guides.is-active::after {
    animation: headerGuidePen 1.8s ease-in-out infinite;
}

.header-quick-link--videos {
    position: relative;
    padding: 0.75rem 1.15rem;
    border-color: rgba(255, 122, 26, 0.26);
    background:
        radial-gradient(circle at 24% 50%, rgba(255, 122, 26, 0.22), transparent 1.7rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 122, 26, 0.08) 100%);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.header-quick-link--videos::before {
    content: '';
    width: 1.05rem;
    height: 0.76rem;
    margin-right: 0.55rem;
    border: 1px solid rgba(255, 122, 26, 0.55);
    border-radius: 0.28rem;
    background:
        linear-gradient(90deg, transparent 0.35rem, #ff7a1a 0.35rem 0.47rem, transparent 0.47rem) 0.1rem 0.2rem / 0.7rem 0.34rem no-repeat,
        linear-gradient(135deg, rgba(255, 122, 26, 0.18), rgba(251, 191, 36, 0.18));
    box-shadow: 0 0 1rem rgba(255, 122, 26, 0.18);
    clip-path: polygon(0 0, 74% 0, 100% 22%, 100% 78%, 74% 100%, 0 100%);
}

.header-quick-link--videos::after {
    content: '';
    position: absolute;
    inset: 0.28rem;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(255, 122, 26, 0.26), transparent 60%);
    opacity: 0;
    transform: scale(0.75);
}

.header-quick-link--videos:hover,
.header-quick-link--videos.is-active {
    border-color: rgba(255, 122, 26, 0.5);
    color: var(--color-primary);
    box-shadow:
        0 16px 34px rgba(255, 122, 26, 0.18),
        0 0 1.35rem rgba(255, 122, 26, 0.12);
}

.header-quick-link--videos:hover::before,
.header-quick-link--videos.is-active::before {
    animation: headerVideoFrame 1.65s ease-in-out infinite;
}

.header-quick-link--videos:hover::after,
.header-quick-link--videos.is-active::after {
    animation: headerVideoGlow 1.65s ease-in-out infinite;
}

.header-quick-link--blog {
    position: relative;
    padding: 0.75rem 1.15rem;
    border-color: rgba(255, 122, 26, 0.24);
    background:
        radial-gradient(circle at 25% 50%, rgba(251, 191, 36, 0.18), transparent 1.6rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 122, 26, 0.07) 100%);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.header-quick-link--blog::before {
    content: '';
    width: 1rem;
    height: 0.88rem;
    margin-right: 0.55rem;
    border-radius: 46% 46% 42% 42%;
    background:
        radial-gradient(circle at 35% 50%, #7c2d12 0.08rem, transparent 0.1rem),
        radial-gradient(circle at 65% 50%, #7c2d12 0.08rem, transparent 0.1rem),
        linear-gradient(135deg, #ffedd5, #fb923c);
    box-shadow: 0 0 1rem rgba(249, 115, 22, 0.18);
    clip-path: polygon(8% 28%, 22% 0, 38% 22%, 62% 22%, 78% 0, 92% 28%, 92% 100%, 8% 100%);
}

.header-quick-link--blog:hover,
.header-quick-link--blog.is-active {
    border-color: rgba(255, 122, 26, 0.5);
    color: var(--color-primary);
    box-shadow:
        0 16px 34px rgba(255, 122, 26, 0.16),
        0 0 1.15rem rgba(251, 191, 36, 0.1);
}

.header-quick-link--blog:hover::before,
.header-quick-link--blog.is-active::before {
    animation: headerBlogCat 1.75s ease-in-out infinite;
}

.header-return-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.05rem;
    border: 1px solid rgba(255, 122, 26, 0.2);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 122, 26, 0.07));
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(255, 95, 31, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.header-return-link::before {
    content: '←';
    margin-right: 0.45rem;
    color: var(--color-primary);
    font-weight: 950;
}

.header-return-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 26, 0.42);
    color: var(--color-primary);
    box-shadow: 0 16px 32px rgba(255, 122, 26, 0.14);
}

.header-quick-link.is-active {
    background:
        linear-gradient(180deg, rgba(255, 122, 26, 0.18) 0%, rgba(255, 122, 26, 0.1) 100%);
    border-color: rgba(255, 122, 26, 0.42);
    color: var(--color-primary);
}

.site-header--videos .site-header__inner,
.site-header--blog .site-header__inner {
    justify-content: space-between;
}

@keyframes headerGuidePaper {
    0%,
    100% {
        transform: rotate(-7deg) translateY(0);
    }

    50% {
        transform: rotate(7deg) translateY(-1px);
    }
}

@keyframes headerGuidePen {
    0% {
        opacity: 0;
        transform: translateY(0.35rem) rotate(-18deg) scaleX(0.15);
    }

    42%,
    72% {
        opacity: 1;
        transform: translateY(0.35rem) rotate(-18deg) scaleX(1);
    }

    100% {
        opacity: 0;
        transform: translateY(0.35rem) rotate(-18deg) scaleX(0.15);
    }
}

@keyframes headerVideoFrame {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-1px) scale(1.08);
    }
}

@keyframes headerVideoGlow {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.75);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes headerBlogCat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-1px) rotate(-5deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-quick-link--guides:hover::before,
    .header-quick-link--guides.is-active::before,
    .header-quick-link--guides:hover::after,
    .header-quick-link--guides.is-active::after,
    .header-quick-link--videos:hover::before,
    .header-quick-link--videos.is-active::before,
    .header-quick-link--videos:hover::after,
    .header-quick-link--videos.is-active::after,
    .header-quick-link--blog:hover::before,
    .header-quick-link--blog.is-active::before {
        animation: none;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-1);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-sm);
    display: block;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
}

/* Бургер-меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-2);
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 10;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-toggle-icon {
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle-icon::before {
    content: '';
    top: -7px;
    left: 0;
    transform: none;
}

.menu-toggle-icon::after {
    content: '';
    bottom: -7px;
    left: 0;
    transform: none;
}

/* ============================================
   ЛЕВАЯ НАВИГАЦИЯ ПО СЕКЦИЯМ (главная)
   ============================================ */

.section-rail {
    position: fixed;
    z-index: 900;
    left: max(var(--spacing-4), env(safe-area-inset-left, 0px));
    top: 50%;
    transform: translateY(-50%);
    width: max-content;
    min-width: var(--section-rail-min-width);
    max-width: min(14rem, 92vw);
    max-height: min(86vh, 100%);
    padding: var(--spacing-4) var(--spacing-3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition:
        background var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        backdrop-filter 0.4s ease,
        -webkit-backdrop-filter 0.4s ease;
}

/* Десктоп с мышью: почти не видна, не перекрывает контент; при наведении или фокусе — как раньше */
@media (hover: hover) and (pointer: fine) {
    .section-rail {
        background: rgba(8, 8, 8, 0.03);
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
        box-shadow: none;
    }

    .section-rail:hover,
    .section-rail:focus-within {
        background: rgba(8, 8, 8, 0.28);
        backdrop-filter: blur(20px) saturate(1.15);
        -webkit-backdrop-filter: blur(20px) saturate(1.15);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.04) inset,
            0 16px 48px rgba(0, 0, 0, 0.45);
    }

    .section-rail:not(:hover):not(:focus-within) .section-rail__link {
        color: rgba(245, 245, 245, 0.28);
    }

    .section-rail:not(:hover):not(:focus-within) .section-rail__link.is-active {
        color: rgba(255, 255, 255, 0.52);
        background: rgba(255, 95, 31, 0.07);
        border-left-color: rgba(255, 95, 31, 0.45);
    }

    .section-rail:not(:hover):not(:focus-within) .section-rail__link:hover {
        color: rgba(255, 255, 255, 0.75);
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Сенсор / без hover — сразу читаемая панель */
@media (hover: none), (pointer: coarse) {
    .section-rail {
        background: rgba(8, 8, 8, 0.28);
        backdrop-filter: blur(20px) saturate(1.15);
        -webkit-backdrop-filter: blur(20px) saturate(1.15);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.04) inset,
            0 16px 48px rgba(0, 0, 0, 0.45);
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-rail {
        transition-duration: 0.01ms;
    }
}

.section-rail__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.section-rail__link {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition:
        color var(--transition-base),
        background var(--transition-base),
        border-color var(--transition-base);
}

.section-rail__link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
}

.section-rail__link.is-active {
    color: var(--color-text);
    background: var(--color-primary-dim);
    border-left-color: var(--color-primary);
}

.section-rail__link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media screen and (min-width: 1025px) {
    .site-header--compact .section-rail-toggle {
        display: none !important;
    }
}

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

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-24) 0 var(--spacing-16);
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: 10%;
    left: 50%;
    width: min(90vw, 720px);
    height: min(90vw, 720px);
    margin-left: calc(min(90vw, 720px) / -2);
    background: radial-gradient(circle, var(--glow-cta-22) 0%, rgba(255, 60, 0, 0.06) 40%, transparent 68%);
    filter: blur(72px);
    animation: heroFloat 12s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    bottom: 5%;
    right: -8%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--glow-neutral-12) 0%, transparent 70%);
    filter: blur(88px);
    animation: heroFloat 16s ease-in-out infinite reverse;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-main {
    text-align: center;
    margin-bottom: var(--spacing-16);
}

.hero-text {
    max-width: 850px;
    margin: 0 auto;
}

.hero-subtitle-label {
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    padding: calc(var(--spacing-3) + 2px) 0 calc(var(--spacing-3) - 2px);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-full);
    background: var(--color-primary-dim);
    margin-bottom: var(--spacing-8);
    position: relative;
    white-space: nowrap;
}

/* Gradients for smooth fade in/out on edges */
.hero-subtitle-label::before,
.hero-subtitle-label::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 2;
    pointer-events: none;
    border-radius: var(--radius-full);
}
.hero-subtitle-label::before {
    left: 0;
    background: linear-gradient(to right, var(--color-primary-dim), transparent);
}
.hero-subtitle-label::after {
    right: 0;
    background: linear-gradient(to left, var(--color-primary-dim), transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    min-width: max-content;
    padding-inline: 1.5rem;
    animation: marqueeScroll 40s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}
.marquee-track span {
    padding-right: 3rem;
    white-space: nowrap;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.hero-title {
    font-size: var(--fs-6xl);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: var(--spacing-6);
}

.hero-description {
    font-size: var(--fs-lg);
    max-width: 640px;
    margin: 0 auto;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

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

.hero-lead {
    font-size: var(--fs-lg);
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto var(--spacing-4);
}

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

.hero-value-points {
    list-style: none;
    margin: var(--spacing-6) auto 0;
    padding: 0;
    max-width: 640px;
    display: grid;
    gap: var(--spacing-3);
}

.hero-value-points li {
    position: relative;
    padding-left: 1.1rem;
    font-size: var(--fs-base);
    line-height: 1.55;
    color: var(--color-text-secondary);
}

.hero-value-points li strong {
    color: var(--color-text);
    font-weight: 600;
}

.hero-value-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--glow-cta-35);
}

.hero-cta {
    margin-top: var(--spacing-10);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    align-items: center;
}

.hero-cta__row {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta__row .btn {
    flex: 1;
    min-width: 240px;
    text-align: center;
    justify-content: center;
}

.hero-cta__row--center {
    justify-content: center;
}

/* Стили для кнопки с переливанием */
.btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-color: transparent !important;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -2;
    background: linear-gradient(
        90deg,
        var(--color-primary),
        #ff3366,
        #9933ff,
        var(--color-primary)
    );
    background-size: 300% 100%;
    animation: btn-glow-anim 3s linear infinite;
    border-radius: inherit;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: -1;
    background: var(--color-bg);
    border-radius: inherit;
    transition: background 0.3s ease;
}

.btn-glow:hover::after {
    background: rgba(20, 20, 20, 0.9);
}

@keyframes btn-glow-anim {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* --- Hero split (референс: текст слева, фото и glass-карточки справа) --- */

.hero-section--split {
    align-items: center;
    padding-top: calc(var(--spacing-24) + 1rem);
    padding-bottom: var(--spacing-16);
}

.hero-section--split .hero-split__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    gap: clamp(1.25rem, 2.8vw, 2.75rem);
    align-items: stretch;
    width: 100%;

    position: relative;
}

.hero-section--split .hero-split__copy {
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Когда контейнер близко к левому краю — колонка не уходит под фиксированный section-rail */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .hero-section--split .hero-split__copy {
        padding-inline-start: max(
            0px,
            calc(var(--section-rail-min-width) + var(--spacing-5) - var(--container-padding))
        );
    
    position: relative;
    z-index: 10;
}
}

.hero-section--split .hero-text {
    max-width: 44rem;
    width: 100%;
    flex: 1;
    margin: 0;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    align-items: flex-start;
    overflow: hidden;
    isolation: isolate;
}

.hero-section--split .hero-text::before {
    content: '';
    position: absolute;
    inset: auto -5rem -5rem auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 102, 0, 0.16) 0%, rgba(255, 102, 0, 0.08) 30%, rgba(255, 102, 0, 0) 72%);
    filter: blur(12px);
    z-index: -2;
}

.hero-section--split .hero-subtitle-label {
    align-self: flex-start;
    max-width: min(100%, 33rem);
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.hero-section--split .hero-title {
    text-align: left;
    max-width: 13ch;
    margin-bottom: var(--spacing-5);
    line-height: 1.02;
    font-size: clamp(2.8rem, 5vw, 5rem);
    text-wrap: balance;
}

.hero-section--split .hero-description {
    margin: 0;
    max-width: 48rem;
    text-align: left;
    line-height: 1.75;
}

.hero-section--split .hero-lead {
    margin: 0 0 var(--spacing-6);
    max-width: 41rem;
    text-align: left;
    line-height: 1.62;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    text-wrap: pretty;
}

.hero-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    width: 100%;
    max-width: 44rem;
    margin-bottom: var(--spacing-5);
    position: relative;
    z-index: 2;
}

.hero-offer-card {
    min-height: 100%;
    padding: 1rem 1rem 1.05rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top right, rgba(255, 102, 0, 0.1), transparent 58%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 34px rgba(0, 0, 0, 0.12);
}

.hero-offer-card__label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--color-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-offer-card__text {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.56;
    text-wrap: pretty;
}

.hero-info-panel {
    width: 100%;
    max-width: 44rem;
    margin-bottom: var(--spacing-4);
    padding: 1rem 1rem 1.05rem;
    border-radius: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 36px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.hero-proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    max-width: none;
    margin-top: 0;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 2;
}

.hero-proof-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    line-height: 1.2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-proof-pill strong {
    color: #fff;
    font-weight: 700;
}

.hero-source-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.9rem;
    width: 100%;
    max-width: none;
    margin-bottom: 0.85rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.hero-source-links__label {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.hero-source-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: underline;
    text-decoration-color: rgba(255, 102, 0, 0.45);
    text-underline-offset: 0.2rem;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.hero-source-links a:hover {
    color: #fff;
    text-decoration-color: rgba(255, 102, 0, 0.9);
}

.hero-model-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    max-width: none;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.hero-model-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    width: 100%;
    max-width: 45rem;
    margin-top: var(--spacing-5);
    position: relative;
    z-index: 2;
}

.hero-focus-card {
    min-height: 100%;
    padding: 1rem 1.05rem 1.1rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hero-focus-card__title {
    margin: 0 0 0.45rem;
    font-size: 0.94rem;
    line-height: 1.2;
    text-wrap: balance;
}

.hero-focus-card__text {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.91rem;
    line-height: 1.52;
    text-wrap: pretty;
}

.hero-signal-flow {
    position: relative;
    width: 100%;
    max-width: 40rem;
    height: 5rem;
    margin-top: var(--spacing-6);
    padding: 0;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(16, 18, 28, 0.58), rgba(10, 12, 22, 0.3));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 2;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-signal-flow__track {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-50%);
    z-index: 1;
}

.hero-signal-flow__comet {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 8rem;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), #fff);
    border-radius: 4px;
    transform: translate(-100%, -50%);
    box-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary);
    z-index: 2;
    animation: signalComet 4s infinite linear;
}

.hero-signal-flow__node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 2.2rem;
    border-radius: 2rem;
    background: #12141d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    z-index: 3;
    transition: all 0.2s ease;
}

.hero-signal-flow__node--1 { left: 10%; animation: nodePulse1 4s infinite linear; }
.hero-signal-flow__node--2 { left: 36.6%; animation: nodePulse2 4s infinite linear; }
.hero-signal-flow__node--3 { left: 63.3%; animation: nodePulse3 4s infinite linear; }
.hero-signal-flow__node--4 { left: 90%; animation: nodePulse4 4s infinite linear; }

@keyframes signalComet {
    0% { left: 10%; opacity: 0; transform: translate(-100%, -50%); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 90%; opacity: 0; transform: translate(0, -50%); }
}

@keyframes nodePulse1 {
    0%, 10% { border-color: var(--color-primary); color: #fff; background: rgba(255, 102, 0, 0.2); box-shadow: 0 0 20px rgba(255, 102, 0, 0.4); transform: translate(-50%, -50%) scale(1.1); }
    20%, 100% { border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); background: #12141d; box-shadow: none; transform: translate(-50%, -50%) scale(1); }
}
@keyframes nodePulse2 {
    0%, 23% { border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); background: #12141d; box-shadow: none; transform: translate(-50%, -50%) scale(1); }
    33%, 43% { border-color: var(--color-primary); color: #fff; background: rgba(255, 102, 0, 0.2); box-shadow: 0 0 20px rgba(255, 102, 0, 0.4); transform: translate(-50%, -50%) scale(1.1); }
    53%, 100% { border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); background: #12141d; box-shadow: none; transform: translate(-50%, -50%) scale(1); }
}
@keyframes nodePulse3 {
    0%, 56% { border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); background: #12141d; box-shadow: none; transform: translate(-50%, -50%) scale(1); }
    66%, 76% { border-color: var(--color-primary); color: #fff; background: rgba(255, 102, 0, 0.2); box-shadow: 0 0 20px rgba(255, 102, 0, 0.4); transform: translate(-50%, -50%) scale(1.1); }
    86%, 100% { border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); background: #12141d; box-shadow: none; transform: translate(-50%, -50%) scale(1); }
}
@keyframes nodePulse4 {
    0%, 85% { border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); background: #12141d; box-shadow: none; transform: translate(-50%, -50%) scale(1); }
    95%, 100% { border-color: var(--color-primary); color: #fff; background: rgba(255, 102, 0, 0.2); box-shadow: 0 0 20px rgba(255, 102, 0, 0.4); transform: translate(-50%, -50%) scale(1.1); }
}

.hero-copy-ambient {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12.5rem;
    height: 12.5rem;
    pointer-events: none;
    z-index: 0;
    opacity: 0.92;
}

.hero-copy-ambient__halo,
.hero-copy-ambient__ring,
.hero-copy-ambient__core,
.hero-copy-ambient__dot {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
}

.hero-copy-ambient__halo {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle, rgba(255, 102, 0, 0.16) 0%, rgba(255, 102, 0, 0.08) 28%, rgba(8, 8, 18, 0) 70%);
    filter: blur(8px);
    animation: heroAmbientPulse 7s ease-in-out infinite;
}

.hero-copy-ambient__ring {
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-copy-ambient__ring--outer {
    width: 100%;
    height: 100%;
    animation: heroOrbitSpin 18s linear infinite;
}

.hero-copy-ambient__ring--inner {
    width: 68%;
    height: 68%;
    border-color: rgba(255, 102, 0, 0.22);
    animation: heroOrbitSpinReverse 12s linear infinite;
}

.hero-copy-ambient__core {
    width: 3.7rem;
    height: 3.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 119, 30, 0.95), rgba(255, 94, 0, 0.82));
    color: #0d1117;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    box-shadow: 0 0 32px rgba(255, 102, 0, 0.24);
}

.hero-copy-ambient__dot {
    width: 0.7rem;
    height: 0.7rem;
    background: #fff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}

.hero-copy-ambient__dot--one {
    transform: translate(5rem, -4.2rem);
    animation: heroDotFloatOne 8s ease-in-out infinite;
}

.hero-copy-ambient__dot--two {
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(255, 102, 0, 0.95);
    box-shadow: 0 0 18px rgba(255, 102, 0, 0.45);
    transform: translate(-4.7rem, 2.8rem);
    animation: heroDotFloatTwo 6.5s ease-in-out infinite;
}

.hero-copy-ambient__dot--three {
    width: 0.45rem;
    height: 0.45rem;
    background: rgba(106, 173, 255, 0.95);
    box-shadow: 0 0 14px rgba(106, 173, 255, 0.5);
    transform: translate(-1.4rem, -5.2rem);
    animation: heroDotFloatThree 7.2s ease-in-out infinite;
}

.hero-section--split .hero-cta {
    margin-top: var(--spacing-7);
}

.hero-section--split .hero-cta__row {
    justify-content: flex-start;
}

.hero-section--split .btn-outline:hover {
    color: #fff;
}

@keyframes heroAmbientPulse {
    0%, 100% {
        transform: scale(0.94);
        opacity: 0.78;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes heroOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heroOrbitSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes heroDotFloatOne {
    0%, 100% { transform: translate(5rem, -4.2rem) scale(1); }
    50% { transform: translate(4.3rem, -3.3rem) scale(1.2); }
}

@keyframes heroDotFloatTwo {
    0%, 100% { transform: translate(-4.7rem, 2.8rem) scale(1); }
    50% { transform: translate(-3.6rem, 2.1rem) scale(1.15); }
}

@keyframes heroDotFloatThree {
    0%, 100% { transform: translate(-1.4rem, -5.2rem) scale(1); }
    50% { transform: translate(-0.5rem, -4.3rem) scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy-ambient__halo,
    .hero-copy-ambient__ring--outer,
    .hero-copy-ambient__ring--inner,
    .hero-copy-ambient__dot--one,
    .hero-copy-ambient__dot--two,
    .hero-copy-ambient__dot--three,
    .hero-signal-flow__trail,
    .hero-signal-flow__pulse {
    display: block !important;
        animation: none;
    }
    .hero-signal-flow__node,
    .hero-signal-flow__node::before {
        animation: none;
    }
}

.remote-map-section {
    position: relative;
    padding: var(--spacing-10) 0 var(--spacing-18);
}

.remote-map-shell {
    position: relative;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--radius-2xl) + 0.5rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(12, 14, 24, 0.78);
    box-shadow:
        0 32px 60px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.remote-map-shell .section-glow-line {
    margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
    opacity: 0.9;
}

.remote-map-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: stretch;
}

.remote-map-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.remote-map-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.6rem 0.95rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 109, 58, 0.24);
    background: rgba(255, 109, 58, 0.08);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.remote-map-title {
    margin: var(--spacing-6) 0 var(--spacing-4);
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.remote-map-lead {
    max-width: 40rem;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--fs-lg);
    line-height: 1.7;
}

.remote-map-steps {
    list-style: none;
    margin: var(--spacing-8) 0 0;
    padding: 0;
    display: grid;
    gap: var(--spacing-4);
}

.remote-map-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-4);
    align-items: start;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.remote-map-step.is-active {
    transform: translateX(8px);
    border-color: rgba(255, 109, 58, 0.38);
    background: linear-gradient(135deg, rgba(255, 109, 58, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: 0 18px 36px rgba(255, 109, 58, 0.12);
}

.remote-map-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(255, 109, 58, 0.14);
    border: 1px solid rgba(255, 109, 58, 0.32);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--color-primary);
}

.remote-map-step__content strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: var(--fs-base);
}

.remote-map-step__content p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.remote-map-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-4);
    margin-top: var(--spacing-8);
}

.remote-map-proof__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.remote-map-proof__value {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-text);
}

.remote-map-proof__label {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.remote-map-visual {
    position: relative;
    min-height: 34rem;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border-radius: calc(var(--radius-2xl) + 0.25rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 109, 58, 0.14), transparent 34%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.07), transparent 30%),
        rgba(8, 10, 18, 0.88);
    overflow: hidden;
}

.remote-map-grid-bg,
.remote-map-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.remote-map-grid-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
}

.remote-map-glow--one {
    background: radial-gradient(circle at 18% 24%, rgba(255, 109, 58, 0.22), transparent 28%);
    filter: blur(18px);
}

.remote-map-glow--two {
    background: radial-gradient(circle at 80% 74%, rgba(255, 255, 255, 0.14), transparent 30%);
    filter: blur(36px);
}

.remote-map-stage {
    position: relative;
    min-height: 28rem;
    z-index: 2;
}

.remote-map-stage svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.remote-city-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    min-width: 5.5rem;
    z-index: 2;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.remote-city-node.is-active {
    transform: translate(-50%, -50%) scale(1.04);
}

.remote-city-node__dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 2px solid rgba(255, 109, 58, 0.72);
    box-shadow:
        0 0 0 0 rgba(255, 109, 58, 0.32),
        0 0 18px rgba(255, 109, 58, 0.42);
}

.remote-city-node.is-active .remote-city-node__dot {
    animation: labelPulse 2s ease-in-out infinite;
}

.remote-city-node__label,
.remote-city-node__meta {
    text-align: center;
    white-space: nowrap;
}

.remote-city-node__label {
    font-size: var(--fs-sm);
    font-weight: 700;
}

.remote-city-node__meta {
    font-size: var(--fs-xs);
    color: var(--color-text-secondary);
}

.remote-city-node--hub {
    min-width: 8rem;
}

.remote-city-node--hub .remote-city-node__dot {
    width: 1.2rem;
    height: 1.2rem;
    background: var(--color-primary);
    box-shadow:
        0 0 0 8px rgba(255, 109, 58, 0.08),
        0 0 24px rgba(255, 109, 58, 0.45);
}

.remote-map-statusbar {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
}

.remote-map-status {
    display: inline-flex;
    align-items: center;
    min-height: 2.9rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
}

.remote-map-status--route {
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
}

.remote-map-status--step {
    background: rgba(255, 109, 58, 0.12);
    border-color: rgba(255, 109, 58, 0.26);
    color: var(--color-primary);
    font-weight: 600;
}

.remote-map-shell--visual {
    padding: clamp(1rem, 2vw, 1.5rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(12, 14, 24, 0.74);
}

.remote-map-shell--visual .section-glow-line,
.remote-map-shell--visual .remote-map-grid,
.remote-map-shell--visual .remote-map-copy,
.remote-map-shell--visual .remote-map-proof,
.remote-map-shell--visual .remote-map-statusbar {
    display: none;
}

.remote-map-visual--full {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: clamp(26rem, 46vw, 40rem);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: calc(var(--radius-2xl) + 0.5rem);
    background:
        radial-gradient(circle at 18% 28%, rgba(255, 109, 58, 0.2), transparent 24%),
        radial-gradient(circle at 50% 52%, rgba(255, 109, 58, 0.08), transparent 16%),
        radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(10, 13, 23, 0.96), rgba(8, 10, 18, 0.98));
}

.remote-map-toolbar {
    position: absolute;
    top: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(8, 10, 18, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.remote-map-zoom-btn {
    min-width: 2.55rem;
    height: 2.55rem;
    padding: 0 0.8rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.remote-map-zoom-btn:hover,
.remote-map-zoom-btn:focus-visible {
    background: rgba(255, 109, 58, 0.16);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255, 109, 58, 0.22) inset;
    outline: none;
}

.remote-map-counter {
    display: none;
}

.remote-map-counter__label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.56);
}

.remote-map-counter__value {
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    font-weight: 700;
    line-height: 1;
}

.remote-map-canvas {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transform: scale(var(--map-scale, 1));
    transform-origin: center center;
    transition: transform 0.28s ease;
    will-change: transform;
}

.remote-map-visual--full .remote-map-grid-bg {
    background-size: 52px 52px;
    opacity: 0.7;
    mask-image: radial-gradient(circle at center, black 42%, transparent 88%);
    -webkit-mask-image: radial-gradient(circle at center, black 42%, transparent 88%);
}

.remote-map-visual--full .remote-map-glow--one {
    background: radial-gradient(circle at 22% 34%, rgba(255, 109, 58, 0.28), transparent 24%);
    filter: blur(32px);
}

.remote-map-visual--full .remote-map-glow--two {
    background: radial-gradient(circle at 78% 66%, rgba(255, 255, 255, 0.16), transparent 24%);
    filter: blur(56px);
}

.remote-map-visual--full .remote-map-stage {
    position: relative;
    min-height: clamp(22rem, 40vw, 34rem);
}

.remote-map-russia {
    position: absolute;
    inset: 6% 4% 10%;
    width: 92%;
    height: 84%;
    z-index: 1;
    overflow: visible;
}

.remote-map-russia-image {
    position: absolute;
    inset: 6% 4% 10%;
    width: 92%;
    height: 84%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    opacity: 0.72;
    filter:
        grayscale(1)
        brightness(0.94)
        contrast(1.04)
        drop-shadow(0 0 18px rgba(255, 109, 58, 0.08));
    user-select: none;
    pointer-events: none;
}

.remote-map-visual--full .remote-city-node {
    min-width: 0;
    opacity: 1;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.remote-map-visual--full .remote-city-node__label,
.remote-map-visual--full .remote-city-node__meta {
    display: none;
}

.remote-map-visual--full .remote-city-node__name {
    position: absolute;
    left: calc(50% + var(--label-offset-x, 0rem));
    top: calc(0px + var(--label-offset-y, -0.75rem));
    transform: translate(-50%, -100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(34, 38, 48, 0.82);
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.01em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98),
        0 0 12px rgba(255, 255, 255, 0.95);
}

.remote-map-visual--full .remote-city-node__dot {
    width: 0.68rem;
    height: 0.68rem;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(255, 109, 58, 0.9);
    box-shadow:
        0 0 0 0 rgba(255, 109, 58, 0.24),
        0 0 14px rgba(255, 109, 58, 0.2);
}

.remote-map-alerts {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    display: none;
}

.remote-map-alert {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: min(16rem, 34vw);
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 10, 18, 0.88);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: normal;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition:
        opacity 0.28s ease,
        transform 0.28s ease,
        color 0.24s ease,
        background 0.24s ease,
        border-color 0.24s ease;
}

.remote-map-alert.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.remote-map-alert__text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.remote-map-alert__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 14px currentColor;
    flex: 0 0 auto;
}

.remote-map-alert--new {
    color: #ff824f;
}

.remote-map-alert--discussion {
    color: #ffd28a;
}

.remote-map-alert--done {
    color: #4ade80;
    background: rgba(14, 30, 18, 0.88);
    border-color: rgba(74, 222, 128, 0.24);
}

.hero-split__partners {
    margin-top: var(--spacing-10);
    padding-top: var(--spacing-6);
    border-top: 1px solid var(--color-border);
}

.hero-split__partners-label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-3);
}

.hero-split__partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-split__partners-list li {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
}

.hero-split__visual {
    position: relative;
    z-index: 1;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding-block: var(--spacing-4);
    overflow: visible;
}

.hero-split__photo-frame {
    position: relative;
    width: 100%;
    max-width: min(var(--hero-portrait-max), 100%);
    margin: 0 auto;
    aspect-ratio: var(--hero-portrait-ratio);
    border-radius: clamp(1.25rem, 3vw, 2rem);
    overflow: hidden;
    isolation: isolate;
}

.hero-split__photo-crop {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(255, 95, 31, 0.12),
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 120px var(--glow-cta-12);
}

.hero-split__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Десктоп: колонка с фото по высоте совпадает с колонкой текста; трекеры могут вылезать за фото */
@media screen and (min-width: 1025px) {
    .hero-split__visual {
        align-items: stretch;
        justify-content: center;
        padding-block: 0;
        height: 100%;
        overflow: visible;
    }

    .hero-split__photo-frame {
        height: 100%;
        aspect-ratio: unset;
        align-self: stretch;
        max-height: none;
        overflow: visible;
    }
}

.hero-split__photo-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(3, 3, 3, 0.82) 0%,
        rgba(3, 3, 3, 0.25) 38%,
        transparent 62%
    );
}

.hero-split__metrics {
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
}

.hero-split__metrics > * {
    pointer-events: auto;
}

.hero-metric {
    border-radius: var(--radius-lg);
    padding: 0.85rem 1rem;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    box-shadow:
        0 20px 52px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 95, 31, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.hero-metric:hover {
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow:
        0 22px 56px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-metric__pair {
    position: absolute;
    z-index: 2;
    top: 5%;
    left: 4%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    width: auto;
    max-width: 18rem;
    animation: heroSplitFloat 8.5s ease-in-out infinite;
}

.hero-metric--stat {
    padding: 0.42rem 0.48rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: var(--radius-full);
}

.hero-metric--tenure {
    position: absolute;
    z-index: 2;
    right: 4%;
    bottom: 5%;
    left: auto;
    top: auto;
    width: auto;
    min-width: 220px; /* Увеличена ширина плашки */
    padding: 1.2rem 1.5rem; /* Немного увеличены внутренние отступы */
    max-width: 22rem;
    margin: 0;
    animation: heroSplitFloat 9.5s ease-in-out infinite;
    animation-delay: -2.5s;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-metric--tenure .hero-metric__title {
    display: none;
}

.hero-metric--tenure .hero-metric__eyebrow {
    margin: 0 0 0.18rem;
    font-size: 0.52rem;
    letter-spacing: 0.11em;
    line-height: 1.25;
}

.hero-metric--tenure .hero-metric__big {
    margin: 0 0 0.1rem;
    gap: 0.2rem;
    justify-content: center;
}

.hero-metric--tenure .hero-metric__num--days {
    font-size: clamp(1.12rem, 3.4vw, 1.45rem);
    line-height: 1;
}

.hero-metric--tenure .hero-metric__unit {
    font-size: 0.5rem;
}

.hero-metric--tenure .hero-metric__hms {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.hero-metric__eyebrow {
    margin: 0 0 0.15rem;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    line-height: 1.2;
}

.hero-metric__title {
    margin: 0 0 0.45rem;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.hero-metric__big {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.hero-metric__num {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.hero-metric__num--days {
    font-size: clamp(1.75rem, 4.5vw, 2.15rem);
    line-height: 1;
}

.hero-metric__stat-line {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    flex: 0;
    white-space: nowrap;
}

.hero-metric--stat .hero-metric__num {
    font-size: 0.92rem;
    display: inline-block;
    transform-origin: center bottom;
    animation: heroMetricValueLive 3.8s ease-in-out infinite;
    font-variant-numeric: tabular-nums;
}

.hero-metric__pair .hero-metric--stat:nth-child(2) .hero-metric__num {
    animation-delay: -1.2s;
}

.hero-metric__meter {
    position: relative;
    height: 3px;
    margin-top: 0.28rem;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hero-metric__meter-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        rgba(255, 107, 0, 0.05) 0%,
        rgba(255, 140, 60, 0.8) 50%,
        rgba(255, 107, 0, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: heroMetricMeterSweep 2.5s linear infinite;
}

.hero-metric__meter-fill--delay {
    animation-delay: -1.25s;
}

.hero-metric__unit {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-metric--stat .hero-metric__unit {
    font-size: 0.58rem;
}

.hero-metric__hms {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 24px rgba(255, 107, 0, 0.22);
    animation: heroMetricHmsPulse 2.8s ease-in-out infinite;
}

.hero-metric__sep {
    opacity: 0.45;
    margin: 0 0.02em;
}

.hero-metric__hint {
    margin: 0.35rem 0 0;
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--color-text-muted);
}

.hero-metric--stat .hero-metric__hint {
    margin-top: 0.22rem;
    padding-top: 0;
    font-size: 0.55rem;
    line-height: 1.25;
}

.hero-metric--stat.hero-metric--stat--ping {
    border-color: rgba(255, 140, 60, 0.48);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 107, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@keyframes heroSplitFloat {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(0, -5px);
    }
}

@keyframes heroMetricHmsPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.88;
    }
}

@keyframes heroMetricMeterSweep {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes heroMetricValueLive {
    0%,
    100% {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 0 transparent;
    }

    40% {
        transform: translateY(-1px) scale(1.03);
        text-shadow: 0 0 14px rgba(255, 107, 0, 0.28);
    }

    70% {
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-metric__pair,
    .hero-metric--tenure {
        animation: none;
    }

    .hero-metric__hms {
        animation: none;
    }

    .hero-metric__meter-fill {
        animation: none;
        transform: translateX(0);
        width: 70%;
        opacity: 0.85;
    }

    .hero-metric--stat .hero-metric__num {
        animation: none;
    }
}

@media screen and (min-width: 1025px) {
    .hero-metric__pair {
        top: 4%;
        left: -4%;
        width: auto;
        max-width: 20rem;
        gap: 0.55rem;
        filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.5));
    }

    .hero-metric--stat {
        padding: 0.72rem 0.82rem;
        border-radius: var(--radius-lg);
    }

    .hero-metric--stat .hero-metric__eyebrow {
        font-size: 0.58rem;
        letter-spacing: 0.11em;
    }

    .hero-metric--stat .hero-metric__num {
        font-size: 1.12rem;
    }

    .hero-metric--stat .hero-metric__unit {
        font-size: 0.65rem;
    }

    .hero-metric--stat .hero-metric__hint {
        font-size: 0.62rem;
    }

    .hero-metric__meter {
        height: 4px;
        margin-top: 0.4rem;
    }

    .hero-metric--tenure {
        right: -5%;
        bottom: -3%;
        width: auto;
        max-width: 20rem;
        filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.5));
    }

    .hero-metric--tenure .hero-metric__eyebrow {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }

    .hero-metric--tenure .hero-metric__num--days {
        font-size: clamp(1.28rem, 2.6vw, 1.68rem);
    }

    .hero-metric--tenure .hero-metric__hms {
        font-size: 0.82rem;
    }
}

.hero-section--split .hero-cards {
    margin-top: var(--spacing-20);
}

/* ============================================
   HERO КАРТОЧКИ
   ============================================ */

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-6);
    max-width: none;
    width: 100%;
    margin: 0 auto;
}

.hero-card {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 45%,
        rgba(10, 10, 10, 0.75) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
    height: 380px;
    cursor: pointer;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 60%
    );
    -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;
    pointer-events: none;
    z-index: 3;
}

.hero-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-accent);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
                0 0 48px var(--glow-cta-14);
}

.hero-card-featured {
    border-color: rgba(255, 181, 71, 0.28);
    box-shadow: 0 0 40px var(--glow-cta-08);
}

.hero-card-featured:hover {
    border-color: rgba(255, 181, 71, 0.45);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
                0 0 56px var(--glow-cta-18);
}

.card-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    
    z-index: 2;
}

.card-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--spacing-2);
}

.card-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-2);
    color: #fff;
}

.card-description {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-3);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--fs-sm);
    transition: all var(--transition-base);
}

.card-link:hover {
    color: #fff;
    gap: var(--spacing-3);
}

/* ============================================
   СЕКЦИИ — ОБЩИЕ
   ============================================ */

.about-section,
.skills-section,
.testimonials-section,
.contact-section {
    padding: var(--spacing-24) 0;
    position: relative;
}

.about-section {
    background: var(--color-bg-light);
}

.skills-section {
    background: var(--color-bg);
}

.testimonials-section {
    background: var(--color-bg-light);
}

.contact-section {
    background: var(--color-bg);
}

.section-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-border) 20%,
        var(--color-border-accent) 50%,
        var(--color-border) 80%,
        transparent 100%
    );
}

/* ============================================
   О СЕБЕ
   ============================================ */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-16);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.placeholder-image {
    aspect-ratio: 4/5;
    background: var(--color-bg-elevated);
    border: 1px dashed var(--color-border-hover);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.about-text .section-title {
    text-align: left;
    margin-bottom: var(--spacing-6);
}

.about-description {
    font-size: var(--fs-base);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-8);
}

.about-features {
    margin-bottom: var(--spacing-8);
}

.features-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--color-primary-dim);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: var(--fs-sm);
    margin-top: 1px;
}

.features-list li strong {
    color: var(--color-text);
}

/* ============================================
   НАВЫКИ
   ============================================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-6);
}

.skill-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-hover), transparent);
}

.skill-item:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-3);
}

.skill-name {
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.skill-percent {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-primary);
}

.skill-bar {
    background: rgba(255, 255, 255, 0.04);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: -1px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-primary);
}

/* ============================================
   ОТЗЫВЫ
   ============================================ */

.testimonials-carousel {
    display: flex;
    gap: var(--spacing-6);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--spacing-4);
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-item {
    flex: 0 0 100%;
    max-width: 700px;
    margin: 0 auto;
    scroll-snap-align: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-8);
    transition: all var(--transition-base);
    position: relative;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: var(--spacing-6);
    left: var(--spacing-6);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary-dim);
    pointer-events: none;
}

.testimonial-text {
    font-size: var(--fs-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: var(--spacing-6);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border-accent);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.author-position {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3);
    margin-top: var(--spacing-8);
}

.testimonials-prev,
.testimonials-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    font-size: var(--fs-lg);
}

.testimonials-prev:hover,
.testimonials-next:hover {
    border-color: var(--color-border-accent);
    color: var(--color-primary);
    background: var(--color-primary-dim);
}

/* ============================================
   КОНТАКТЫ
   ============================================ */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--spacing-16);
    align-items: start;
}

.contact-info h3 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--spacing-4);
}

.contact-info > p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-8);
    line-height: 1.7;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-4);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: all var(--transition-base);
}

.social-link:hover {
    border-color: var(--color-border-accent);
    color: var(--color-primary);
    background: var(--color-primary-dim);
    transform: translateY(-2px);
}

/* Форма */
.contact-form-simple {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.contact-form-notice {
    margin: 0 0 var(--spacing-4);
    padding: var(--spacing-3) var(--spacing-4);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    color: var(--color-text);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    color: var(--color-text);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-dim);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ============================================
   ПОДВАЛ
   ============================================ */

.site-footer {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-16) 0 var(--spacing-8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-12);
}

.footer-brand .site-title {
    margin-bottom: var(--spacing-3);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    max-width: 300px;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: var(--spacing-12);
}

.footer-nav-group h4 {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-group ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.footer-nav-group a {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-nav-group a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-info p {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin: 0;
}

/* Если нет footer-content, центрируем site-info */
.site-footer .site-info:only-child {
    text-align: center;
}

/* ============================================
   БЛОГ — АРХИВ
   ============================================ */

.site-main {
    padding-top: 80px;
}

.page-header {
    text-align: center;
    padding: var(--spacing-16) 0;
    background: var(--color-bg-light);
    margin-bottom: var(--spacing-12);
}

.page-header .page-title {
    font-size: var(--fs-4xl);
    font-weight: 800;
}

.archive-description {
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: var(--spacing-4) auto 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--spacing-6);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.post-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-card .post-thumbnail {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .entry-header {
    padding: var(--spacing-6) var(--spacing-6) 0;
}

.post-card .entry-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--spacing-2);
}

.post-card .entry-title a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.post-card .entry-title a:hover {
    color: var(--color-primary);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.post-card .entry-summary {
    padding: var(--spacing-3) var(--spacing-6);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.post-card .entry-footer {
    padding: var(--spacing-3) var(--spacing-6) var(--spacing-6);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--color-primary);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: gap var(--transition-base);
}

.read-more::after {
    content: '→';
}

.read-more:hover {
    color: var(--color-primary);
    gap: var(--spacing-3);
}

/* Пагинация */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-12) 0;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-3);
    font-size: var(--fs-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    border-color: var(--color-border-accent);
    color: var(--color-primary);
    background: var(--color-primary-dim);
}

.nav-links .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
    font-weight: 600;
}

/* ============================================
   БЛОГ — СТАТЬЯ
   ============================================ */

.site-main > article {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-8) var(--container-padding) var(--spacing-16);
}

.entry-header {
    margin-bottom: var(--spacing-8);
}

.entry-title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-4);
}

.entry-content {
    font-size: var(--fs-lg);
    line-height: 1.85;
    color: var(--color-text-secondary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--spacing-10);
    margin-bottom: var(--spacing-4);
}

.entry-content p {
    margin-bottom: var(--spacing-6);
}

.entry-content img {
    border-radius: var(--radius-full);
    margin: var(--spacing-8) 0;
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: #fff;
}

.entry-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: var(--spacing-4) var(--spacing-6);
    margin: var(--spacing-8) 0;
    background: var(--color-primary-dim);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.entry-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--color-primary);
}

.entry-content pre {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    
    overflow-x: auto;
    margin: var(--spacing-8) 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--spacing-6);
    padding-left: var(--spacing-6);
}

.entry-content li {
    margin-bottom: var(--spacing-2);
}

.post-thumbnail {
    margin-bottom: var(--spacing-8);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-footer {
    margin-top: var(--spacing-10);
    padding-top: var(--spacing-6);
    border-top: 1px solid var(--color-border);
}

.tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.tags-links a {
    color: var(--color-primary);
    background: var(--color-primary-dim);
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    transition: all var(--transition-fast);
}

.tags-links a:hover {
    background: var(--color-primary);
    color: #000;
}

/* Навигация между постами */
.post-navigation {
    margin-top: var(--spacing-12);
    
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.post-navigation .nav-links a {
    border: none;
    min-width: auto;
    height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.nav-subtitle {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--color-text);
}

/* ============================================
   404
   ============================================ */

.error-404 {
    text-align: center;
    padding: var(--spacing-32) var(--container-padding);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-404 .page-header {
    background: none;
    padding: 0;
    margin-bottom: var(--spacing-6);
}

.error-404 .page-title {
    font-size: var(--fs-6xl);
    background: linear-gradient(180deg, #fff 30%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-404 .page-content p {
    font-size: var(--fs-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-8);
}

.error-404 .button {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #0a0a0a;
    font-weight: 700;
    font-size: var(--fs-sm);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.error-404 .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--glow-cta-35);
    color: #0a0a0a;
}

/* ============================================
   КОММЕНТАРИИ
   ============================================ */

.comments-wrapper {
    margin-top: var(--spacing-12);
}

.comments-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--spacing-8);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-4);
}

.comment-author {
    font-weight: 600;
    font-size: var(--fs-sm);
    margin-bottom: var(--spacing-2);
}

.comment-content {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

/* Sidebar */
.widget-area {
    padding: var(--spacing-8) 0;
}

.widget {
    margin-bottom: var(--spacing-8);
    
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}

.widget-title {
    font-size: var(--fs-base);
    font-weight: 700;
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-3);
    border-bottom: 1px solid var(--color-border);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: var(--spacing-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
}

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

/* ============================================
   СКИП-ЛИНК (доступность)
   ============================================ */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: #000;
    padding: var(--spacing-3) var(--spacing-6);
    z-index: 9999;
    font-weight: 700;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.visually-hidden:not(:focus):not(:active) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   TRAINING SECTION (Bento Grid)
   ============================================ */

.training-section {
    padding: var(--spacing-24) 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
    border-bottom: 1px solid var(--color-border);
}

.bento-grid {
    display: grid;
    gap: var(--spacing-6);
    margin-top: var(--spacing-12);
}

/* Секция обучения: Telegram на всю ширину; снизу три равные плашки — Дзен, YouTube, RuTube */
.bento-grid--training {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
}

.bento-grid--training > .bento-card--training-telegram {
    grid-column: 1 / -1;
    grid-row: 1;
}

.bento-grid--training > .bento-card--training-dzen {
    grid-column: 1 / span 4;
    grid-row: 2;
    align-self: stretch;
    min-height: 0;
}

.bento-grid--training > .bento-card--training-youtube {
    grid-column: 5 / span 4;
    grid-row: 2;
    align-self: stretch;
    min-height: 0;
}

.bento-grid--training > .bento-card--training-rutube {
    grid-column: 9 / span 4;
    grid-row: 2;
    align-self: stretch;
    min-height: 0;
}

.bento-grid--training > .bento-card--training-plaque .bento-card__text {
    max-width: 100%;
}

.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: var(--glass-bg-strong);
}

.bento-card--large {
    background: linear-gradient(145deg, rgba(255, 102, 0, 0.08) 0%, rgba(10, 10, 10, 0.8) 100%);
    border-color: rgba(255, 102, 0, 0.2);
}

.bento-card--large:hover {
    border-color: rgba(255, 102, 0, 0.4);
    box-shadow: 0 0 40px rgba(255, 102, 0, 0.15);
}

.bento-youtube:hover {
    border-color: rgba(255, 0, 0, 0.3);
    background: linear-gradient(145deg, rgba(255, 0, 0, 0.05) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.bento-telegram .bento-card__bg-icon {
    color: var(--color-primary);
}

.bento-card__bg-icon {
    position: absolute;
    right: -5%;
    bottom: -10%;
    width: 240px;
    height: 240px;
    opacity: 0.06;
    color: var(--color-primary);
    transform: rotate(-14deg);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.bento-youtube .bento-card__bg-icon {
    color: #ff0000;
}

.bento-rutube .bento-card__bg-icon {
    color: rgba(255, 255, 255, 0.92);
    opacity: 0.08;
}

.bento-dzen .bento-card__bg-icon {
    color: rgba(255, 255, 255, 0.88);
    opacity: 0.07;
}

@keyframes bento-training-bg-drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    20% {
        transform: translate3d(8px, -12px, 0) rotate(2.5deg);
    }
    45% {
        transform: translate3d(-6px, 6px, 0) rotate(-2deg);
    }
    70% {
        transform: translate3d(5px, 10px, 0) rotate(1.5deg);
    }
}

@keyframes bento-rutube-dot-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.75;
        transform: scale(1.12);
    }
}

.bento-card__bg-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: 55% 60%;
    animation: bento-training-bg-drift 9s ease-in-out infinite;
    will-change: transform;
}

.bento-grid--training > .bento-card:nth-child(1) .bento-card__bg-icon svg {
    animation-duration: 8.5s;
    animation-delay: 0s;
}

.bento-grid--training > .bento-card:nth-child(2) .bento-card__bg-icon svg {
    animation-duration: 9.5s;
    animation-delay: -2s;
}

.bento-grid--training > .bento-card:nth-child(3) .bento-card__bg-icon svg {
    animation-duration: 8s;
    animation-delay: -4.5s;
}

.bento-grid--training > .bento-card:nth-child(4) .bento-card__bg-icon svg {
    animation-duration: 10s;
    animation-delay: -1.2s;
}

/* Компактнее декоративная иконка у трёх нижних плашек */
.bento-grid--training > .bento-card--training-plaque .bento-card__bg-icon {
    width: 180px;
    height: 180px;
    right: -8%;
    bottom: -12%;
}

.bento-card__bg-svg--dzen {
    transform-origin: 50% 50%;
}

.bento-card__rutube-dot {
    transform-origin: center;
    animation: bento-rutube-dot-pulse 2.4s ease-in-out infinite;
}

.bento-rutube:hover {
    border-color: rgba(237, 20, 59, 0.35);
    background: linear-gradient(145deg, rgba(237, 20, 59, 0.06) 0%, rgba(10, 10, 10, 0.85) 100%);
}

.bento-dzen:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(80, 80, 80, 0.12) 0%, rgba(10, 10, 10, 0.85) 100%);
}

.bento-card__text--stacked {
    max-width: 100%;
    margin-bottom: var(--spacing-6);
}

.bento-card__text--stacked p {
    margin: 0 0 var(--spacing-4);
    font-size: inherit;
    line-height: inherit;
    color: var(--color-text-secondary);
}

.bento-card__text--stacked p:last-child {
    margin-bottom: 0;
}

.bento-card--large .bento-card__text--stacked p,
.bento-card--medium .bento-card__text--stacked p {
    color: var(--color-text-secondary);
}

.bento-card--large .bento-card__text--stacked strong,
.bento-card--medium .bento-card__text--stacked strong {
    color: var(--color-text);
    font-weight: 600;
}

.bento-card:hover .bento-card__bg-icon {
    opacity: 0.12;
    transform: rotate(-6deg) scale(1.06);
}

.bento-card:hover .bento-card__bg-icon svg {
    animation-play-state: paused;
}

.bento-card:hover .bento-card__rutube-dot {
    animation-play-state: paused;
}

.bento-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-8);
}

.bento-card__tag {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bento-card--large .bento-card__tag {
    background: rgba(255, 102, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.35);
    color: #ff6600;
}

.bento-card__stat {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
}

.bento-card__title {
    font-size: var(--fs-xl);
    margin-bottom: var(--spacing-4);
    color: var(--color-text);
    line-height: 1.2;
}

.bento-card__text {
    color: var(--color-text-secondary);
    font-size: var(--fs-md);
    line-height: 1.6;
    margin-bottom: var(--spacing-8);
    max-width: 85%;
}

.bento-card__action {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--fs-md);
    margin-top: auto;
}

.bento-youtube .bento-card__action {
    color: #fff;
}

.bento-rutube .bento-card__action {
    color: #ffb8c8;
}

.bento-dzen .bento-card__action {
    color: rgba(255, 255, 255, 0.95);
}

.bento-card__action .arrow {
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-card__action .arrow {
    transform: translateX(5px);
}

/* Responsive Bento */
@media (max-width: 1024px) {
    .bento-grid--training {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-grid--training > .bento-card--training-telegram,
    .bento-grid--training > .bento-card--training-dzen,
    .bento-grid--training > .bento-card--training-youtube,
    .bento-grid--training > .bento-card--training-rutube {
        grid-column: 1 / -1;
        grid-row: auto;
        align-self: stretch;
    }

    .bento-grid--training > .bento-card--training-plaque .bento-card__bg-icon {
        width: 220px;
        height: 220px;
        right: -6%;
        bottom: -10%;
    }
}

@media (max-width: 640px) {
    .bento-card__bg-icon {
        width: 160px;
        height: 160px;
        right: -8%;
        bottom: -12%;
    }
}

/* ============================================
   LEARNING FEATURES (бесплатно / платно)
   ============================================ */

.learning-features-section {
    padding: var(--spacing-20) 0 var(--spacing-24);
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg) 55%);
    border-bottom: 1px solid var(--color-border);
}

.learning-features-section .section-header {
    max-width: 68rem;
    margin-inline: auto;
}

.learning-features-section .section-subtitle {
    max-width: 58rem;
    margin-inline: auto;
    text-wrap: pretty;
}

.learning-formats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-8);
    margin-top: var(--spacing-10);
    align-items: center;
}

.learning-feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--spacing-8);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.learning-feature-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.learning-feature-card--paid {
    background: linear-gradient(155deg, rgba(255, 102, 0, 0.07) 0%, rgba(10, 10, 10, 0.75) 100%);
    border-color: rgba(255, 102, 0, 0.22);
}

.learning-feature-card--paid:hover {
    border-color: rgba(255, 102, 0, 0.38);
    box-shadow: 0 20px 48px rgba(255, 102, 0, 0.08);
}

.learning-feature-card__badge {
    align-self: flex-start;
    margin-bottom: var(--spacing-4);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
}

.learning-feature-card__badge--accent {
    color: #ff8533;
    background: rgba(255, 102, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.35);
}

.learning-feature-card__title {
    font-size: var(--fs-xl);
    line-height: 1.25;
    margin: 0 0 var(--spacing-4);
    color: var(--color-text);
}

.learning-feature-card__lead {
    margin: 0 0 var(--spacing-4);
    font-size: var(--fs-md);
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.learning-feature-card__lead strong {
    color: var(--color-text);
    font-weight: 600;
}

.learning-feature-card__list {
    margin: 0 0 var(--spacing-6);
    padding-left: 1.15rem;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.65;
}

.learning-feature-card__list li {
    margin-bottom: var(--spacing-2);
}

.learning-feature-card__list li:last-child {
    margin-bottom: 0;
}

.learning-feature-card__text {
    margin: 0 0 var(--spacing-4);
    font-size: var(--fs-sm);
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.learning-feature-card__note {
    margin: 0 0 var(--spacing-6);
    font-size: var(--fs-xs);
    line-height: 1.6;
    color: var(--color-text-muted);
}

.learning-feature-card__note a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.learning-feature-card__note a:hover {
    color: var(--color-text);
}

.learning-feature-card__cta {
    margin-top: auto;
    align-self: flex-start;
}

.learning-feature-card--paid .learning-feature-card__text:last-child {
    margin-bottom: 0;
}

.learning-program-head {
    margin-top: var(--spacing-16);
    text-align: center;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.learning-program-head__label {
    margin: 0 0 var(--spacing-3);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.learning-program-head__lead {
    margin: 0;
    font-size: var(--fs-md);
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.learning-program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-6);
    margin-top: var(--spacing-12);
}

.learning-program-card {
    padding: var(--spacing-10) var(--spacing-12);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.learning-program-card::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.08;
    border-radius: 50%;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.learning-program-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.learning-program-card:hover::after {
    opacity: 0.18;
    transform: scale(1.2);
}

.learning-program-card__title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--spacing-5);
    color: #ffffff;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.learning-program-card__meta {
    margin: 0 0 var(--spacing-4);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    z-index: 2;
}

.learning-program-card__text {
    margin: 0;
    font-size: var(--fs-lg);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 2;
    max-width: 90%;
}

.learning-program-card__list {
    margin: var(--spacing-5) 0 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--fs-sm);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    max-width: 92%;
}

.learning-program-card__list li::marker {
    color: var(--color-primary);
}

/* Bento Grid Layout for Large Screens */
.learning-program-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / span 2;
    background: linear-gradient(160deg, rgba(80, 90, 255, 0.12) 0%, rgba(10, 10, 15, 0.8) 100%);
    border-color: rgba(80, 90, 255, 0.25);
    box-shadow: inset 0 0 40px rgba(80, 90, 255, 0.05);
}
.learning-program-card:nth-child(1):hover {
    border-color: rgba(80, 90, 255, 0.45);
    box-shadow: 0 20px 50px rgba(80, 90, 255, 0.2), inset 0 0 60px rgba(80, 90, 255, 0.1);
}
.learning-program-card:nth-child(1)::after {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(80, 90, 255, 1) 0%, transparent 70%);
    bottom: -10%;
    right: -20%;
}

.learning-program-card:nth-child(2) {
    grid-column: 2 / span 2;
    grid-row: 1 / 2;
    background: linear-gradient(160deg, rgba(255, 165, 0, 0.12) 0%, rgba(15, 12, 10, 0.8) 100%);
    border-color: rgba(255, 165, 0, 0.25);
    box-shadow: inset 0 0 40px rgba(255, 165, 0, 0.05);
}
.learning-program-card:nth-child(2):hover {
    border-color: rgba(255, 165, 0, 0.45);
    box-shadow: 0 20px 50px rgba(255, 165, 0, 0.15), inset 0 0 60px rgba(255, 165, 0, 0.1);
}
.learning-program-card:nth-child(2)::after {
    background: radial-gradient(circle, #ffa500 0%, transparent 70%);
    top: -40%;
    right: -10%;
    bottom: auto;
    width: 500px;
    height: 500px;
}

.learning-program-card:nth-child(3) {
    grid-column: 2 / span 2;
    grid-row: 2 / 3;
    background: linear-gradient(160deg, rgba(0, 220, 130, 0.12) 0%, rgba(10, 15, 12, 0.8) 100%);
    border-color: rgba(0, 220, 130, 0.25);
    box-shadow: inset 0 0 40px rgba(0, 220, 130, 0.05);
}
.learning-program-card:nth-child(3):hover {
    border-color: rgba(0, 220, 130, 0.45);
    box-shadow: 0 20px 50px rgba(0, 220, 130, 0.15), inset 0 0 60px rgba(0, 220, 130, 0.1);
}
.learning-program-card:nth-child(3)::after {
    background: radial-gradient(circle, #00dc82 0%, transparent 70%);
    bottom: -40%;
    right: 5%;
    width: 500px;
    height: 500px;
}

.learning-program-card:nth-child(4) {
    grid-column: 1 / span 2;
    grid-row: 3 / 4;
    background: linear-gradient(160deg, rgba(0, 180, 255, 0.12) 0%, rgba(10, 12, 15, 0.8) 100%);
    border-color: rgba(0, 180, 255, 0.25);
    box-shadow: inset 0 0 40px rgba(0, 180, 255, 0.05);
}
.learning-program-card:nth-child(4):hover {
    border-color: rgba(0, 180, 255, 0.45);
    box-shadow: 0 20px 50px rgba(0, 180, 255, 0.15), inset 0 0 60px rgba(0, 180, 255, 0.1);
}
.learning-program-card:nth-child(4)::after {
    background: radial-gradient(circle, #00b4ff 0%, transparent 70%);
    top: -40%;
    left: -10%;
    right: auto;
    width: 500px;
    height: 500px;
}

.learning-program-card:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 3 / span 2;
    background: linear-gradient(160deg, rgba(180, 0, 255, 0.12) 0%, rgba(15, 10, 15, 0.8) 100%);
    border-color: rgba(180, 0, 255, 0.25);
    box-shadow: inset 0 0 40px rgba(180, 0, 255, 0.05);
}
.learning-program-card:nth-child(5):hover {
    border-color: rgba(180, 0, 255, 0.45);
    box-shadow: 0 20px 50px rgba(180, 0, 255, 0.15), inset 0 0 60px rgba(180, 0, 255, 0.1);
}
.learning-program-card:nth-child(5)::after {
    background: radial-gradient(circle, #b400ff 0%, transparent 70%);
    bottom: -10%;
    right: -20%;
    width: 450px;
    height: 450px;
}

.learning-program-card:nth-child(6) {
    grid-column: 1 / span 2;
    grid-row: 4 / 5;
    background: linear-gradient(160deg, rgba(255, 0, 100, 0.12) 0%, rgba(15, 10, 12, 0.8) 100%);
    border-color: rgba(255, 0, 100, 0.25);
    box-shadow: inset 0 0 40px rgba(255, 0, 100, 0.05);
}
.learning-program-card:nth-child(6):hover {
    border-color: rgba(255, 0, 100, 0.45);
    box-shadow: 0 20px 50px rgba(255, 0, 100, 0.15), inset 0 0 60px rgba(255, 0, 100, 0.1);
}
.learning-program-card:nth-child(6)::after {
    background: radial-gradient(circle, #ff0064 0%, transparent 70%);
    bottom: -40%;
    left: 5%;
    right: auto;
    width: 500px;
    height: 500px;
}

.learning-features-footer {
    margin-top: var(--spacing-16);
    padding-top: var(--spacing-10);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.learning-features-footer__hint {
    max-width: 40rem;
    margin: 0 auto var(--spacing-6);
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--color-text-muted);
}

.learning-features-footer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-4);
    justify-content: center;
    align-items: center;
}

.learning-features-footer__stub:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .learning-formats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SEO-каркас главной (intro, услуги, процесс, аудитория, кейсы, интеграции, метрики)
   ========================================================================== */

.seo-intro-section {
    padding: var(--spacing-12) 0 var(--spacing-8);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
    border-bottom: 1px solid var(--color-border);
}

.seo-intro-text {
    max-width: 72rem;
    margin: 0 auto var(--spacing-12);
    font-size: var(--fs-xl);
    line-height: 1.8;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-10) var(--spacing-12);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.seo-intro-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

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

.skills-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: var(--spacing-8) 0;
    margin-top: var(--spacing-6);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.capability-chips-marquee {
    display: flex;
    align-items: center;
    gap: var(--spacing-6);
    list-style: none;
    margin: 0;
    padding: 0;
    width: max-content;
    animation: marqueeScrollLeft 35s linear infinite;
    will-change: transform;
}

@keyframes marqueeScrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - (var(--spacing-6) / 2))); }
}

.capability-chips-marquee li {
    padding: 1.25rem 2.5rem;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
}

.capability-chips-marquee li.is-center {
    color: #fff;
    background: rgba(255, 102, 0, 0.25);
    border-color: #ff6600;
    box-shadow: 0 0 32px rgba(255, 102, 0, 0.7), inset 0 0 16px rgba(255, 102, 0, 0.5);
    transform: scale(1.15);
    z-index: 10;
    position: relative;
}

/* Скрываем старые классы, если они где-то остались */
.capability-chips {
    display: none;
}

.services-detail-section {
    padding: var(--spacing-16) 0;
    background-color: var(--color-bg-light);
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-6);
    margin-top: var(--spacing-10);
}

.service-detail-card {
    
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.service-detail-card:hover {
    border-color: var(--color-border-accent);
    box-shadow: var(--shadow-glow);
}

.service-detail-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--spacing-3);
}

.service-detail-text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

.process-section {
    padding: var(--spacing-16) 0;
    background-color: var(--color-bg);
}

.process-steps {
    list-style: none;
    margin: var(--spacing-10) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-8);
    counter-reset: none;
}

.process-step {
    position: relative;
    padding-top: var(--spacing-2);
}

.process-step-num {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.08em;
    margin-bottom: var(--spacing-3);
}

.process-step-title {
    font-size: var(--fs-lg);
    margin-bottom: var(--spacing-3);
}

.process-step-text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

.audience-section {
    padding: var(--spacing-16) 0;
    background-color: var(--color-bg-light);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-6);
    margin-top: var(--spacing-10);
}

.audience-card {
    
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.audience-card-title {
    font-size: var(--fs-lg);
    margin-bottom: var(--spacing-3);
}

.audience-card-text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.cases-placeholder-section {
    padding: var(--spacing-16) 0;
    background-color: var(--color-bg);
}

.cases-placeholder-inner {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-10);
    background: var(--color-bg-card);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-xl);
}

.cases-placeholder-text {
    color: var(--color-text-muted);
    margin: var(--spacing-4) 0 var(--spacing-8);
    line-height: 1.65;
}

.integrations-section {
    padding: var(--spacing-16) 0;
    background-color: var(--color-bg-light);
}

.integrations-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-3);
    list-style: none;
    margin: var(--spacing-10) 0 0;
    padding: 0;
}

.integrations-cloud li {
    padding: var(--spacing-3) var(--spacing-5);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}

.metrics-section {
    padding: var(--spacing-16) 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-8);
    margin-top: var(--spacing-10);
}

.metric-item {
    text-align: center;
    
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.metric-value {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-4xl);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: var(--spacing-3);
}

.metric-label {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   Секция блога
   ========================================================================== */

.blog-section {
    padding: var(--spacing-12) 0;
    background-color: var(--color-bg);
}

.blog-section .section-header.text-center {
    text-align: center;
}

.blog-section-footer {
    text-align: center;
    margin-top: var(--spacing-10);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-8);
    margin-top: var(--spacing-8);
}

.blog-marquee-wrapper {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-top: var(--spacing-8);
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 0 0 var(--spacing-4);
    display: flex;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.blog-marquee-track {
    display: flex;
    gap: var(--spacing-6);
    width: max-content;
    animation: marquee 75s linear infinite;
    will-change: transform;
}

.blog-marquee-group {
    display: flex;
    gap: var(--spacing-6);
}

.blog-marquee-wrapper:hover .blog-marquee-track {
    animation-play-state: paused;
}

.blog-card--marquee {
    width: min(20rem, 78vw);
    flex-shrink: 0;
}

.blog-card--marquee .blog-content {
    padding: var(--spacing-6);
}

.blog-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.blog-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: var(--color-bg);
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-image.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.blog-content {
    
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-3);
}

.blog-category a {
    color: var(--color-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.blog-category a:hover {
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-3);
    line-height: 1.4;
}

.blog-title a {
    color: var(--color-text);
}

.blog-title a:hover {
    color: var(--color-primary);
}

.blog-excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-5);
    flex-grow: 1;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    transition: color var(--transition-fast);
}

.read-more-link .arrow {
    margin-left: var(--spacing-2);
    transition: transform var(--transition-fast);
}

.read-more-link:hover {
    color: var(--color-primary);
}

.read-more-link:hover .arrow {
    transform: translateX(4px);
}

.no-posts-message {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--spacing-8);
    background: var(--color-bg-light);
    border-radius: var(--radius-full);
    border: 1px dashed var(--color-border);
    grid-column: 1 / -1;
}

/* ============================================
   СЕКЦИЯ МАРШРУТОВ (ROUTES)
   ============================================ */
.routes-section {
    padding: var(--spacing-20) 0;
    position: relative;
    z-index: 10;
}

.routes-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 4vw, 4rem);
    margin-top: var(--spacing-12);
}

.route-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) clamp(21rem, 33vw, 38rem);
    gap: clamp(1.2rem, 3vw, 2.6rem);
    align-items: stretch;
}

.route-stage--learning {
    grid-template-columns: minmax(0, 1.24fr) minmax(18rem, 0.88fr);
    margin-top: clamp(1.2rem, 2.5vw, 2.8rem);
    padding-top: clamp(1.4rem, 2.8vw, 3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.route-stage__header {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.45rem;
    max-width: 46rem;
    margin-bottom: clamp(0.2rem, 1vw, 0.8rem);
}

.route-stage__eyebrow {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.route-stage__title {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    line-height: 1.04;
    max-width: 18ch;
}

.route-stage__lead {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.68;
    max-width: 42rem;
}

.route-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-10) var(--spacing-8);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.route-card--scene {
    min-height: clamp(21rem, 33vw, 38rem);
}

.route-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}

.route-card__bg-icon {
    position: absolute;
    right: -4rem;
    top: -4rem;
    width: 14rem;
    height: 14rem;
    opacity: 0.08;
    pointer-events: none;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    filter: blur(8px);
}

.route-card__content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.route-card__eyebrow {
    margin: 0 0 var(--spacing-4);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.route-card__title {
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    margin-bottom: var(--spacing-4);
    color: #fff;
    max-width: 16ch;
    line-height: 1.08;
}

.route-card__desc {
    color: var(--color-text-muted);
    line-height: 1.72;
    max-width: 38rem;
    margin-bottom: var(--spacing-7);
}

.route-card--service-copy {
    justify-content: space-between;
}

.route-service-intro {
    position: relative;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top right, rgba(255, 102, 0, 0.12), transparent 55%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 34px rgba(0, 0, 0, 0.12);
}

.route-service-intro__text {
    margin: 0;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.68;
}

.route-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.route-service-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.route-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.route-service-card {
    padding: 0.95rem 1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.route-service-card__label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--color-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.route-service-card p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.58;
}

.route-service-proof {
    display: grid;
    gap: 0.7rem;
}

.route-service-proof__item {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-left: 2px solid rgba(255, 102, 0, 0.4);
    border-radius: 0 1rem 1rem 0;
    background: rgba(255, 255, 255, 0.03);
}

.route-service-proof__item strong {
    color: var(--color-text);
    font-size: 0.88rem;
}

.route-service-proof__item span {
    color: var(--color-text-secondary);
    line-height: 1.58;
}

.route-card--learning-copy {
    justify-content: space-between;
}

.route-learning-intro {
    position: relative;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top right, rgba(255, 102, 0, 0.12), transparent 55%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 34px rgba(0, 0, 0, 0.12);
}

.route-learning-intro__text {
    margin: 0;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.68;
}

.route-learning-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.route-learning-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.route-learning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.route-learning-card {
    padding: 0.95rem 1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.route-learning-card__label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--color-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.route-learning-card p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.58;
}

.route-learning-proof {
    display: grid;
    gap: 0.7rem;
}

.route-learning-proof__item {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-left: 2px solid rgba(255, 102, 0, 0.4);
    border-radius: 0 1rem 1rem 0;
    background: rgba(255, 255, 255, 0.03);
}

.route-learning-proof__item strong {
    color: var(--color-text);
    font-size: 0.88rem;
}

.route-learning-proof__item span {
    color: var(--color-text-secondary);
    line-height: 1.58;
}

.route-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-8) 0;
    display: grid;
    gap: 0.9rem;
}

.route-card__list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--color-text);
    line-height: 1.58;
}

.route-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(255, 102, 0, 0.35);
}

.route-card__footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.route-card__footer .btn {
    width: auto;
    min-width: 14rem;
    text-align: center;
    justify-content: center;
}

.route-visual {
    position: relative;
    min-height: auto;
    display: flex;
}

.route-visual-shell {
    position: relative;
    width: 100%;
    min-height: auto;
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--radius-2xl) + 0.25rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 102, 0, 0.15), transparent 32%),
        linear-gradient(180deg, rgba(18, 20, 34, 0.92), rgba(10, 12, 22, 0.88));
    overflow: hidden;
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.2);
}

.route-grid-backdrop {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 2.6rem 2.6rem;
    opacity: 0.16;
    mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}

.route-visual--automation .route-visual-shell {
    padding: 0;
}

.automation-flow-line {
    position: absolute;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 102, 0, 0.4), rgba(255, 255, 255, 0.04));
}

.automation-flow-line--one {
    top: 37%;
}

.automation-flow-line--two {
    top: 66%;
}

.automation-flow-line__pulse {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 6rem;
    height: 0.42rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 102, 0, 0), rgba(255, 174, 102, 0.95), rgba(255, 102, 0, 0));
    transform: translateY(-50%);
    filter: blur(1px);
    animation: routeFlowPulse 5.4s linear infinite;
}

.automation-flow-line--two .automation-flow-line__pulse {
    animation-delay: 1.2s;
}

.automation-node {
    position: absolute;
    width: clamp(10rem, 18vw, 13rem);
    padding: 1rem 1rem 1.1rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(16, 18, 30, 0.88);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.automation-node__label {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.automation-node strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    line-height: 1.32;
}

.automation-node--source {
    top: 14%;
    left: 9%;
    animation: routeFloatSoft 7s ease-in-out infinite;
}

.automation-node--core {
    top: 43%;
    left: 36%;
    animation: routeFloatSoft 7s ease-in-out infinite 1.1s;
}

.automation-node--result {
    top: 66%;
    right: 9%;
    animation: routeFloatSoft 7s ease-in-out infinite 2.1s;
}

.automation-metric {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.4rem;
    height: 2.2rem;
    padding: 0 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 600;
}

.automation-metric--top {
    top: 10%;
    right: 10%;
}

.automation-metric--bottom {
    left: 14%;
    bottom: 10%;
}

.route-visual-shell--learning {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    aspect-ratio: 1.18 / 1;
}

.learning-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.learning-orbit--outer {
    width: min(26rem, 78%);
    aspect-ratio: 1;
    animation: routeOrbitSpin 18s linear infinite;
}

.learning-orbit--inner {
    width: min(17rem, 52%);
    aspect-ratio: 1;
    border-color: rgba(255, 102, 0, 0.2);
    animation: routeOrbitSpinReverse 12s linear infinite;
}

.learning-console {
    position: relative;
    width: min(20rem, 74%);
    min-height: 13.5rem;
    padding: 1rem 1rem 1.15rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(14, 16, 28, 0.96), rgba(9, 10, 19, 0.9));
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 2;
}

.learning-console__bar {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.learning-console__bar span {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.learning-console__bar span:first-child {
    background: rgba(255, 102, 0, 0.9);
}

.learning-console__code {
    position: relative;
    display: grid;
    gap: 0.85rem;
}

.learning-console__line {
    display: block;
    height: 0.72rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.learning-console__line--wide {
    width: 88%;
}

.learning-console__line--mid {
    width: 67%;
}

.learning-console__line--short {
    width: 48%;
}

.learning-console__cursor {
    width: 0.68rem;
    height: 1.1rem;
    border-radius: 0.2rem;
    background: var(--color-primary);
    box-shadow: 0 0 18px rgba(255, 102, 0, 0.38);
    animation: routeCursorBlink 1s steps(2, start) infinite;
}

.learning-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.1rem;
    height: 2.3rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 18, 28, 0.8);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    z-index: 3;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.learning-chip--one {
    top: 11%;
    left: 19%;
    animation: routeFloatSoft 6.4s ease-in-out infinite;
}

.learning-chip--two {
    top: 22%;
    right: 15%;
    animation: routeFloatSoft 6.4s ease-in-out infinite 1s;
}

.learning-chip--three {
    bottom: 18%;
    left: 16%;
    animation: routeFloatSoft 6.4s ease-in-out infinite 2s;
}

.learning-chip--four {
    bottom: 12%;
    right: 18%;
    animation: routeFloatSoft 6.4s ease-in-out infinite 3s;
}

@keyframes routeFlowPulse {
    0% { left: -12%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

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

@keyframes routeOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes routeOrbitSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes routeCursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.18; }
}

@media (prefers-reduced-motion: reduce) {
    .automation-flow-line__pulse,
    .automation-node--source,
    .automation-node--core,
    .automation-node--result,
    .learning-orbit--outer,
    .learning-orbit--inner,
    .learning-chip--one,
    .learning-chip--two,
    .learning-chip--three,
    .learning-chip--four,
    .learning-console__cursor {
        animation: none;
    }
}

/* ============================================
   СЕКЦИЯ ИНЖЕНЕРНЫХ РЕШЕНИЙ (ENGINEERING)
   ============================================ */
.engineering-section {
    padding: var(--spacing-20) 0;
    position: relative;
    z-index: 10;
}

.engineering-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-6);
    margin-top: var(--spacing-12);
}

.eng-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.eng-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 102, 0, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.eng-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.1);
}

.eng-card:hover::before {
    opacity: 1;
}

.eng-card__title {
    font-size: var(--fs-lg);
    color: #fff;
    margin-bottom: var(--spacing-4);
    position: relative;
    z-index: 2;
}

.eng-card__text {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 var(--spacing-6) 0;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.eng-card__price {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 95, 31, 0.1);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    align-self: flex-start;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 95, 31, 0.2);
}

html[data-theme="light"] .eng-card__price {
    background: rgba(255, 95, 31, 0.05);
}

/* ============================================
   СЕКЦИЯ ОБУЧЕНИЯ И VIBE-КОДИНГА
   ============================================ */
.vibe-training-section {
    padding: var(--spacing-20) 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.vibe-training-section::before {
    content: '';
    position: absolute;
    inset: 6% auto auto 8%;
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 95, 31, 0.14), transparent 68%);
    filter: blur(14px);
    pointer-events: none;
}

.section-header--training {
    max-width: 58rem;
    margin-inline: auto;
}

.vibe-training-section__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 95, 31, 0.24);
    background: rgba(255, 95, 31, 0.08);
    color: rgba(255, 214, 191, 0.94);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-5);
}

.vibe-training-section__title {
    max-width: 28ch;
    margin-inline: auto;
    line-height: 1.08;
    text-wrap: balance;
}

.vibe-training-section__subtitle {
    max-width: 56rem;
    margin-inline: auto;
    text-wrap: pretty;
}

.vibe-training-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-12);
    margin-top: var(--spacing-12);
    align-items: stretch;
}

.vibe-col {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: var(--spacing-8);
    border-radius: calc(var(--radius-2xl) + 0.25rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(10, 10, 14, 0.56);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.vibe-col::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 95, 31, 0.45), transparent);
    opacity: 0.7;
}

.vibe-col:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 95, 31, 0.32);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 95, 31, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.vibe-col__head {
    display: grid;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-7);
}

.vibe-col__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 95, 31, 0.22);
    background: rgba(255, 95, 31, 0.08);
    color: rgba(255, 217, 197, 0.92);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.vibe-col--open {
    background:
        radial-gradient(circle at top left, rgba(255, 95, 31, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        rgba(10, 10, 14, 0.52);
}

.vibe-col__title {
    font-size: var(--fs-xl);
    margin: 0;
    width: 100%;
    max-width: 100%;
    line-height: 1.16;
    text-wrap: pretty;
}

.vibe-col__text {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 36rem;
}

.vibe-col__callout {
    color: var(--color-text);
    font-size: var(--fs-md);
    margin: 0;
    padding: var(--spacing-5);
    border: 1px solid rgba(255, 95, 31, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(255, 95, 31, 0.05);
    line-height: 1.65;
}

.vibe-col__buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-4);
    margin-top: auto;
    margin-bottom: calc(var(--spacing-10) - var(--spacing-6));
}

.vibe-col__buttons .btn {
    text-align: center;
    justify-content: center;
}

.vibe-col--premium {
    background:
        radial-gradient(circle at top right, rgba(255, 95, 31, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(255, 95, 31, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(16, 13, 10, 0.78);
    border-color: rgba(255, 95, 31, 0.28);
    box-shadow:
        0 28px 70px rgba(255, 95, 31, 0.08),
        inset 0 0 0 1px rgba(255, 95, 31, 0.05);
}

.vibe-col__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-8) 0;
    flex: 1;
    display: grid;
    gap: var(--spacing-3);
}

.vibe-col__list li {
    position: relative;
    padding: 1rem 1rem 1rem 3rem;
    color: var(--color-text);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    line-height: 1.55;
}

.vibe-col__list li::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1.05rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0.12rem, transparent 0.13rem),
        linear-gradient(135deg, rgba(255, 95, 31, 0.95), rgba(255, 167, 86, 0.85));
    box-shadow: 0 0 0 0.2rem rgba(255, 95, 31, 0.08);
}

.vibe-col__footer {
    margin-top: auto;
    display: grid;
    gap: var(--spacing-4);
}

.vibe-col__footer--stack {
    gap: var(--spacing-5);
}

.vibe-col__footer-note {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.vibe-col__footer .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ============================================
   СЕКЦИЯ ЭКОСИСТЕМЫ (ECOSYSTEM)
   ============================================ */
.ecosystem-section {
    padding: var(--spacing-20) 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.ecosystem-section::before {
    content: '';
    position: absolute;
    inset: 4% 8% auto auto;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 95, 31, 0.12), transparent 68%);
    filter: blur(18px);
    pointer-events: none;
}

.section-header--ecosystem {
    max-width: 60rem;
    margin-inline: auto;
}

.ecosystem-section__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 95, 31, 0.24);
    background: rgba(255, 95, 31, 0.08);
    color: rgba(255, 214, 191, 0.94);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-5);
}

.ecosystem-section__title {
    max-width: 24ch;
    margin-inline: auto;
    line-height: 1.08;
    text-wrap: balance;
}

.ecosystem-section__subtitle {
    max-width: 58rem;
    margin-inline: auto;
    text-wrap: pretty;
}

.eco-block {
    margin-top: var(--spacing-12);
    padding: var(--spacing-10) var(--spacing-8) var(--spacing-8);
    border-radius: calc(var(--radius-2xl) + 0.25rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        rgba(10, 10, 14, 0.52);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.eco-block::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 95, 31, 0.42), transparent);
    opacity: 0.75;
}

.eco-block--enthusiasts {
    margin-top: var(--spacing-20);
    background:
        radial-gradient(circle at top right, rgba(255, 95, 31, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 95, 31, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(14, 12, 10, 0.7);
    border-color: rgba(255, 95, 31, 0.24);
    box-shadow:
        0 28px 62px rgba(255, 95, 31, 0.08),
        inset 0 0 0 1px rgba(255, 95, 31, 0.04);
}

.eco-block__header {
    display: grid;
    gap: var(--spacing-4);
    width: 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-10);
}

.eco-block__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 95, 31, 0.22);
    background: rgba(255, 95, 31, 0.08);
    color: rgba(255, 217, 197, 0.92);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.eco-block__title {
    font-size: var(--fs-xl);
    margin: 0;
    width: 100%;
    max-width: 100%;
    text-align: left;
    line-height: 1.16;
    text-wrap: pretty;
}

.eco-block__lead {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 48rem;
}

.eco-grid {
    display: grid;
    gap: var(--spacing-6);
}

.eco-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.eco-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
}

.eco-card {
    display: grid;
    align-content: start;
    gap: var(--spacing-4);
    min-height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 12px 30px rgba(0, 0, 0, 0.08);
}

.eco-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 95, 31, 0.26);
    box-shadow:
        0 18px 36px rgba(255, 102, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    background: rgba(255, 102, 0, 0.03);
}

.eco-card__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 95, 31, 0.22);
    background: rgba(255, 95, 31, 0.08);
    color: rgba(255, 224, 207, 0.95);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.eco-card__title {
    font-size: var(--fs-lg);
    color: #fff;
    margin: 0;
    width: 100%;
    max-width: 100%;
    line-height: 1.2;
    text-wrap: pretty;
}

.eco-card__text {
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

.eco-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-4);
    margin-top: var(--spacing-16);
    flex-wrap: wrap;
}

.eco-actions .btn {
    min-width: 260px;
    text-align: center;
    justify-content: center;
}

.eco-block__action {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-8);
}

.eco-block__action .btn {
    min-width: 260px;
    text-align: center;
    justify-content: center;
}

.eco-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-20) 0;
    padding: 0 var(--spacing-8);
    gap: var(--spacing-4);
    opacity: 0.8;
}

.eco-divider__line {
    flex: 1;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.3));
    position: relative;
    overflow: hidden;
}
.eco-divider__line--right {
    background: linear-gradient(270deg, transparent, rgba(255, 102, 0, 0.3));
}

.eco-divider__particle {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}
.eco-divider__particle--left {
    right: 0;
    animation: eco-shoot-left 2.5s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
}
.eco-divider__particle--right {
    left: 0;
    animation: eco-shoot-right 2.5s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
}

.eco-divider__node {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-divider__core {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-primary), 0 0 30px var(--color-primary);
    animation: eco-pulse-core 2.5s infinite ease-in-out;
}

.eco-divider__ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    animation: eco-pulse-ring 2.5s infinite ease-out;
}

@keyframes eco-shoot-left {
    0% { transform: translateX(100px); opacity: 0; }
    10% { opacity: 1; }
    70%, 100% { transform: translateX(-400px); opacity: 0; }
}
@keyframes eco-shoot-right {
    0% { transform: translateX(-100px); opacity: 0; }
    10% { opacity: 1; }
    70%, 100% { transform: translateX(400px); opacity: 0; }
}
@keyframes eco-pulse-core {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    10% { transform: scale(1.5); opacity: 1; }
}
@keyframes eco-pulse-ring {
    0% { transform: scale(0.5); opacity: 1; }
    50%, 100% { transform: scale(2); opacity: 0; }
}

html[data-theme="light"] .eco-divider__line {
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.2));
}
html[data-theme="light"] .eco-divider__line--right {
    background: linear-gradient(270deg, transparent, rgba(255, 102, 0, 0.2));
}

/* ============================================
   СЕКЦИЯ МАНИФЕСТА (ОБО МНЕ)
   ============================================ */
.manifesto-section {
    padding: var(--spacing-20) 0;
    position: relative;
    z-index: 10;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-16);
    align-items: stretch;
}

.manifesto-image-col {
    position: relative;
}

.manifesto-image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 102, 0, 0.08); /* Легкая оранжевая тень */
    aspect-ratio: 4/5;
    background: rgba(255, 255, 255, 0.02);
}

.manifesto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.manifesto-text-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--spacing-4);
}

.manifesto-eyebrow {
    color: var(--color-primary);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-4);
    display: block;
}

.manifesto-title {
    font-size: var(--fs-2xl);
    color: #fff;
    margin-bottom: var(--spacing-8);
    line-height: 1.2;
}

.manifesto-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

.manifesto-content p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: var(--fs-md);
    margin: 0;
}

.manifesto-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: var(--spacing-8);
}

.manifesto-proof a {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.manifesto-proof a:hover {
    color: #fff;
    border-color: rgba(255, 102, 0, 0.4);
    background: rgba(255, 102, 0, 0.08);
}

.manifesto-proof-list {
    margin: var(--spacing-6) 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.7rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.manifesto-proof-list li::marker {
    color: var(--color-primary);
}

.manifesto-signature {
    margin-top: var(--spacing-10);
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: var(--fs-xl);
    color: var(--color-primary);
}

/* ============================================
   СЧЕТЧИК ОПЫТА (МАНИФЕСТ)
   ============================================ */
.manifesto-experience-counter {
    margin-top: auto; /* Прижимает плашку к низу колонки */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 102, 0, 0.05) 100%);
    border: 1px solid rgba(255, 102, 0, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6) var(--spacing-8);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.manifesto-experience-counter::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 0% 50%, rgba(255, 102, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.manifesto-experience-counter:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 102, 0, 0.3);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 102, 0, 0.08) 100%);
}

.manifesto-experience__main {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    position: relative;
    z-index: 1;
}

.manifesto-experience__num {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 15px rgba(255, 102, 0, 0.4);
}

.manifesto-experience__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.manifesto-experience__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    font-weight: 700;
    margin: 0;
}

.manifesto-experience__unit {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}

.manifesto-experience__timer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.manifesto-experience__timer-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.manifesto-experience__hint {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0;
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

/* ============================================
   АНИМИРОВАННЫЙ СТЕК ТЕХНОЛОГИЙ (HERO)
   ============================================ */
.hero-tech-visual {
    display: flex;
    gap: var(--spacing-4);
    height: 100%;
    width: 120vw; /* Шире экрана, чтобы точно заполнить всё пространство */
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    justify-content: center;
    align-items: flex-start;
    transform: rotate(-5deg) scale(1.1);
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40vw; /* Сдвигаем влево, чтобы центр плашек был примерно в правой колонке */
    z-index: 2;
    pointer-events: auto;
}

.tech-column {
    display: flex;
    flex-direction: column;
    animation: scrollVertical 240s linear infinite;
    min-width: 180px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.tech-column--down {
    animation-direction: reverse;
}

.tech-column--fast {
    animation-duration: 180s;
}

.tech-column--slow {
    animation-duration: 300s;
}

.tech-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4) var(--spacing-6);
    margin-bottom: var(--spacing-4);
    color: var(--color-text);
    font-weight: 600;
    text-align: center;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: default;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tech-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255, 102, 0, 0.05);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.2);
    z-index: 10;
}

@keyframes scrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* ============================================
   БЛОК "ЗАКОНЫ ФИЗИКИ В IT" (IRON TRIANGLE)
   ============================================ */
.iron-triangle-section {
    padding: var(--spacing-24) 0;
    position: relative;
    z-index: 10;
}

.iron-triangle-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.iron-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.12) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.iron-triangle-box {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.iron-triangle-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.5), transparent);
}

.iron-triangle-header {
    text-align: center;
    margin-bottom: var(--spacing-12);
}

.iron-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-4);
}

.iron-triangle-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: var(--spacing-4);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.iron-triangle-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.iron-triangle-subtitle strong {
    color: #fff;
}

.iron-triangle-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-12);
    flex-wrap: wrap;
}

.iron-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    user-select: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.iron-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
}

.iron-btn.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff4500 100%);
    color: #000;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 102, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: transparent;
}

.iron-btn-icon {
    font-size: 1.3rem;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.iron-btn.active .iron-btn-icon {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.2);
}

.iron-triangle-output {
    background: #050505;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.iron-triangle-output::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--color-border);
    transition: background 0.4s ease;
}

.iron-triangle-output.state-error::before { background: #ef4444; }
.iron-triangle-output.state-warning::before { background: var(--color-primary); }
.iron-triangle-output.state-info::before { background: #eab308; }

.iron-output-header {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--spacing-3) var(--spacing-6);
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.iron-output-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.iron-triangle-output.state-error .iron-output-dot { background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.iron-triangle-output.state-warning .iron-output-dot { background: var(--color-primary); box-shadow: 0 0 10px var(--color-primary); }
.iron-triangle-output.state-info .iron-output-dot { background: #eab308; box-shadow: 0 0 10px #eab308; }

.iron-output-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.iron-output-body {
    padding: var(--spacing-8) var(--spacing-6);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iron-result-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.iron-result-text.default { color: var(--color-text-muted); }
.iron-result-text.error { color: #ef4444; }
.iron-result-text.warning { color: var(--color-primary); }
.iron-result-text.info { color: #eab308; }

.iron-triangle-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    clear: both;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: margin-top 0.4s ease, max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(-10px);
}

.iron-triangle-cta.is-visible {
    margin-top: var(--spacing-8);
    max-height: 100px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.iron-triangle-cta .btn {
    min-width: 220px;
}

/* ============================================
   TERMINAL BREAK SECTION
   ============================================ */
.terminal-break-section {
    padding: var(--spacing-8) 0 var(--spacing-16);
    position: relative;
    z-index: 10;
}

.terminal-window {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 102, 0, 0.05);
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-header {
    background: rgba(25, 25, 25, 0.9);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    width: 60px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.close { background: #ff5f56; }
.terminal-btn.minimize { background: #ffbd2e; }
.terminal-btn.maximize { background: #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: var(--spacing-8);
    min-height: 240px;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.term-line {
    margin-bottom: 8px;
    word-break: break-word;
}

.term-prompt {
    color: var(--color-primary);
    margin-right: 12px;
    font-weight: bold;
}

.term-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--color-primary);
    vertical-align: middle;
    animation: term-blink 1s step-end infinite;
    margin-left: 4px;
}

.term-success {
    color: #27c93f;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 12px;
}

.term-muted {
    color: var(--color-text-muted);
    padding-left: 20px;
}

@keyframes term-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

html[data-theme="light"] .terminal-window {
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 30px rgba(255, 102, 0, 0.05);
}
html[data-theme="light"] .terminal-header {
    background: #f1f5f9;
}
html[data-theme="light"] .terminal-body {
    color: #333;
}
html[data-theme="light"] .term-muted {
    color: #64748b;
}

/* ============================================
   БЛОК "МОИ ПРОДУКТЫ" (Собственные разработки)
   ============================================ */
.my-products-section {
    padding: var(--spacing-12) 0 var(--spacing-20);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.product-banner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.product-banner__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(ellipse at center, rgba(255, 102, 0, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.product-banner::before {
    content: '';
    position: absolute;
    inset: -6% auto auto 6%;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 95, 31, 0.14), transparent 70%);
    filter: blur(18px);
    pointer-events: none;
}

.product-banner__inner {
    position: relative;
    z-index: 1;
    background:
        radial-gradient(circle at top right, rgba(255, 95, 31, 0.12), transparent 28%),
        linear-gradient(135deg, #161618 0%, #060607 100%);
    border: 1px solid rgba(255, 102, 0, 0.22);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-10) var(--spacing-12);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.9fr);
    gap: var(--spacing-12);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.product-banner__inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.7;
}

.product-banner__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.product-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 95, 31, 0.2);
    background: rgba(255, 95, 31, 0.08);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 212, 191, 0.92);
    margin-bottom: var(--spacing-4);
    font-weight: 700;
}

.product-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0 0 var(--spacing-5);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 14ch;
    text-wrap: balance;
}

.product-description {
    color: var(--color-text-secondary);
    font-size: 1.02rem;
    line-height: 1.72;
    margin-bottom: var(--spacing-7);
    margin-top: 0;
    max-width: 38rem;
}

.product-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-10) 0;
    width: 100%;
}

.product-bullets li {
    font-size: 0.95rem;
    color: var(--color-text);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    line-height: 1.45;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.bullet-icon {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.product-btn {
    margin-top: auto;
    box-shadow: 0 12px 28px rgba(255, 102, 0, 0.28);
    transition: all 0.3s ease;
}

.product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(255, 102, 0, 0.38);
}

.product-banner__stats {
    display: grid;
    align-content: center;
    gap: var(--spacing-6);
    padding-left: var(--spacing-4);
}

.product-stat-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.25rem;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.product-stat-item:hover {
    transform: translateX(-5px);
    border-color: rgba(255, 102, 0, 0.16);
    background: rgba(255, 102, 0, 0.04);
}

.product-stat-val {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.45rem;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 18px rgba(255, 102, 0, 0.28);
}

.product-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

/* ============================================
   БЛОК FAQ (ЧАСТЫЕ ВОПРОСЫ)
   ============================================ */
.faq-section {
    padding: var(--spacing-24) 0;
    position: relative;
    z-index: 10;
}

.faq-header {
    text-align: center;
    margin-bottom: var(--spacing-16);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: var(--spacing-4);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.faq-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-6) var(--spacing-8);
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Выравнивает колонки по высоте */
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    justify-content: space-between; /* Распределяет свободное пространство, выравнивая низ */
}

/* Хаотичные, несимметричные, но гармоничные отступы для десктопа */
@media screen and (min-width: 992px) {
    /* Левая колонка */
    .faq-column:first-child .faq-item:nth-child(1) { margin-right: 1.5rem; }
    .faq-column:first-child .faq-item:nth-child(2) { margin-left: 2.5rem; }
    .faq-column:first-child .faq-item:nth-child(3) { margin-right: 3rem; }
    .faq-column:first-child .faq-item:nth-child(4) { margin-left: 1rem; margin-right: 1.5rem; }
    .faq-column:first-child .faq-item:nth-child(5) { margin-right: 2rem; }

    /* Правая колонка */
    .faq-column:last-child .faq-item:nth-child(1) { margin-left: 2.5rem; }
    .faq-column:last-child .faq-item:nth-child(2) { margin-right: 1.5rem; }
    .faq-column:last-child .faq-item:nth-child(3) { margin-left: 1.5rem; margin-right: 1rem; }
    .faq-column:last-child .faq-item:nth-child(4) { margin-left: 3rem; }
    .faq-column:last-child .faq-item:nth-child(5) { margin-left: 2rem; }
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 102, 0, 0.3);
    background: rgba(255, 102, 0, 0.02);
}

.faq-item[open] {
    background: rgba(255, 102, 0, 0.03);
    border-color: var(--color-primary);
}

.faq-summary {
    list-style-type: none;
    list-style: none;
    padding: var(--spacing-6) var(--spacing-8);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-6);
    transition: color 0.3s ease;
    user-select: none;
    outline: none;
}

/* Жестко скрываем стандартные стрелочки во всех браузерах */
.faq-summary::-webkit-details-marker {
    display: none !important;
}
.faq-summary::marker {
    display: none !important;
    content: "" !important;
}
details.faq-item > summary {
    list-style: none !important;
}
details.faq-item > summary::-webkit-details-marker {
    display: none !important;
}




.faq-item[open] .faq-summary {
    list-style-type: none;
    list-style: none;
    color: var(--color-primary);
    padding-bottom: var(--spacing-4);
}

.faq-question-text {
    flex: 1 1 auto;
    line-height: 1.5;
    padding-right: var(--spacing-4);
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--color-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.faq-icon::before {
    width: 16px; height: 2px;
}

.faq-icon::after {
    width: 2px; height: 16px;
}

.faq-item[open] .faq-icon::after {
    transform: rotate(90deg) scale(0);
    opacity: 0;
}

.faq-item[open] .faq-icon::before {
    transform: rotate(180deg);
    background: var(--color-primary);
}

.faq-answer {
    padding: 0 var(--spacing-8) var(--spacing-8);
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    animation: faqSlideDown 0.3s ease-out forwards;
    transform-origin: top;
}

.faq-answer p {
    margin: 0;
}

@keyframes faqSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ПОДВАЛ САЙТА (FOOTER) С КОНТАКТАМИ
   ============================================ */
.site-footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-cta {
    padding: var(--spacing-24) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(ellipse at top center, rgba(255, 102, 0, 0.05) 0%, transparent 70%);
}

.footer-cta__inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.footer-cta__title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: var(--spacing-6);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-cta__text {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-10);
    line-height: 1.6;
}

.footer-cta__buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-6);
    flex-wrap: wrap;
}


.footer-cta__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-8); /* Увеличенный отступ */
}

.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-3);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--spacing-4);
    transition: all 0.3s ease;
}

.footer-qr:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(255, 95, 31, 0.15);
    transform: translateY(-2px);
}

.footer-qr img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: #fff; /* Ensure QR code is readable if it has transparency */
    padding: 4px;
}

.footer-qr__text {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-btn-outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.footer-btn-outline:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--color-primary);
}

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

.footer-bottom {
    padding: var(--spacing-8) 0;
    background: #000;
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-author {
    font-weight: 500;
    color: #888;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-6);
}

.footer-legal a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-primary);
}


details > summary::-webkit-details-marker {
    display: none !important;
}
details > summary {
    list-style: none !important;
}


/* ============================================
   QR MODAL
   ============================================ */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qr-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.qr-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.qr-modal__content {
    position: relative;
    z-index: 10;
    background: #fff;
    
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-modal.is-open .qr-modal__content {
    transform: scale(1);
}

.qr-modal__img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.qr-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: var(--spacing-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.qr-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .qr-modal__close {
        top: var(--spacing-4);
        right: -60px;
    }
}

/* --- TECH WEB ANIMATION --- */
.tech-chip--linked {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    background: rgba(255, 95, 31, 0.1) !important;
    box-shadow: 0 0 20px rgba(255, 95, 31, 0.2) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
    z-index: 10 !important;
}

html[data-theme="light"] .tech-chip--linked {
    background: rgba(255, 95, 31, 0.05) !important;
    box-shadow: 0 0 20px rgba(255, 95, 31, 0.15) !important;
}
/* ==========================================================================
   Footer Navigation (Fat Footer)
   ========================================================================== */
.footer-nav-area {
    padding: 4rem 0 3rem;
    background: #000; /* Dark theme default */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .footer-nav-area {
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-brand-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

html[data-theme="light"] .social-icon {
    background: rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-legal-block {
    margin-top: auto;
}

@media (max-width: 1024px) {
    .footer-grid {
        gap: 3rem;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
        padding: 0 1rem;
    }
    .footer-col {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-brand-desc {
        max-width: 100%;
    }
}

/* ==========================================================================
   Legal Pages (Offer, Privacy, Cookies)
   ========================================================================== */
.legal-page {
    padding: 120px 0 80px;
    min-height: 60vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
}

.breadcrumb-sep {
    color: var(--color-text-muted);
}

.breadcrumb-item.active {
    color: var(--color-text);
    font-weight: 500;
}

.legal-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--color-text);
    font-family: var(--font-heading);
}

.legal-content {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 2.5rem 0 1rem;
    font-family: var(--font-heading);
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 2rem 0 1rem;
}

.legal-content p {
    margin-bottom: 1.25rem;
}

.legal-content ul, 
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

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

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--color-secondary);
}

/* ============================================
   СЕКЦИЯ СТОИМОСТИ (PRICING MARQUEE)
   ============================================ */
.pricing-section {
    padding: var(--spacing-20) 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.pricing-marquee-wrapper {
    position: relative;
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%); /* Выход за пределы контейнера */
    overflow: hidden;
    padding: var(--spacing-8) 0 var(--spacing-16) 0;
    display: flex;
}

.pricing-marquee-track {
    display: flex;
    gap: var(--spacing-6);
    padding: 0 var(--spacing-3);
    animation: marquee 60s linear infinite;
    width: max-content;
}

.pricing-marquee-wrapper:hover .pricing-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - (var(--spacing-6) / 2))); }
}

.pricing-card {
    width: 350px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-8);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

html[data-theme="light"] .pricing-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.pricing-card__glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

html[data-theme="light"] .pricing-card__glow {
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.08), transparent 50%);
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(255, 102, 0, 0.15);
    z-index: 2;
}

html[data-theme="light"] .pricing-card:hover {
    box-shadow: 0 20px 40px rgba(255, 102, 0, 0.1);
}

.pricing-card:hover .pricing-card__glow {
    opacity: 1;
}

.pricing-card__header {
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

html[data-theme="light"] .pricing-card__header {
    border-bottom-color: rgba(0,0,0,0.1);
}

.pricing-card__title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-3);
    font-weight: 800;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

html[data-theme="light"] .pricing-card__title {
    background: linear-gradient(135deg, #111827 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.pricing-card__price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-primary);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.pricing-card__features li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5f1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.pricing-footer {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-top: var(--spacing-4);
}

.pricing-footer a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pricing-card {
        width: 300px;
        
    }
    .pricing-card__title {
        font-size: 1.2rem;
    }
    .pricing-card__price {
        font-size: 1.8rem;
    }
}


/* ==========================================================================
   404 Page Styles (Cyberpunk / Danger Mode)
   ========================================================================== */
.error-404-page {
    position: relative;
    min-height: calc(100vh - 80px - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-8) 0;
    overflow: hidden;
    text-align: center;
}

/* Глобальная красная тревога (мигающий фон) */
.error-404-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 0, 0, 0.05);
    box-shadow: inset 0 0 150px rgba(255, 0, 0, 0);
    animation: global-alarm 1.5s infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes global-alarm {
    0%, 100% { box-shadow: inset 0 0 0px rgba(255, 0, 0, 0); background: rgba(255, 0, 0, 0); }
    50% { box-shadow: inset 0 0 150px rgba(255, 0, 0, 0.4); background: rgba(255, 0, 0, 0.05); }
}

/* Мигалки по краям (Sirens) */
.siren {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25vw;
    height: 150vh;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    filter: blur(80px);
}

.siren--left {
    left: -10vw;
    background: radial-gradient(ellipse at left center, rgba(255, 0, 0, 0.8) 0%, transparent 70%);
    animation: siren-pulse-left 0.8s infinite;
}

.siren--right {
    right: -10vw;
    background: radial-gradient(ellipse at right center, rgba(255, 0, 0, 0.8) 0%, transparent 70%);
    animation: siren-pulse-right 0.8s infinite 0.4s; /* Смещение фазы для поочередного мигания */
}

@keyframes siren-pulse-left {
    0%, 100% { opacity: 0.1; transform: translateY(-50%) scaleX(0.8); }
    50% { opacity: 1; transform: translateY(-50%) scaleX(1.2); }
}

@keyframes siren-pulse-right {
    0%, 100% { opacity: 0.1; transform: translateY(-50%) scaleX(0.8); }
    50% { opacity: 1; transform: translateY(-50%) scaleX(1.2); }
}

/* Бегущие строки (Danger Tapes) */
.danger-tape {
    position: absolute;
    left: -10%;
    width: 120%;
    background: #ffbd2e; /* Желтый цвет предупреждения */
    color: #000;
    font-weight: 900;
    font-family: var(--font-mono);
    text-transform: uppercase;
    padding: 12px 0;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.8);
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    pointer-events: none;
}

.danger-tape--top {
    top: 10%;
    transform: rotate(-3deg);
}

.danger-tape--bottom {
    top: auto;
    bottom: 10%;
    transform: rotate(3deg);
    background: #ff5f56; /* Красный цвет */
    color: #fff;
}

.danger-marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee-danger 20s linear infinite;
    width: max-content;
}

.danger-marquee--reverse {
    animation: marquee-danger-reverse 25s linear infinite;
}

.danger-marquee span {
    padding: 0 20px;
    font-size: 1.5rem;
    letter-spacing: 3px;
    display: inline-block;
}

@keyframes marquee-danger {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-danger-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Контент 404 */
.error-404-content {
    position: relative;
    z-index: 15;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-6);
    background: rgba(10, 10, 12, 0.4);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 95, 86, 0.2);
    box-shadow: 0 0 50px rgba(255, 95, 86, 0.1);
    backdrop-filter: blur(5px);
}

.error-404-glitch {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

.error-404-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #ff5f56;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-2);
    text-shadow: 0 0 10px rgba(255, 95, 86, 0.5);
    animation: title-pulse 2s infinite alternate;
}

@keyframes title-pulse {
    0% { opacity: 0.8; text-shadow: 0 0 10px rgba(255, 95, 86, 0.5); }
    100% { opacity: 1; text-shadow: 0 0 20px rgba(255, 95, 86, 0.8), 0 0 40px rgba(255, 95, 86, 0.4); }
}

.error-404-page .terminal-block {
    text-align: left;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 95, 86, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 0, 0, 0.1);
    overflow: hidden;
}

.error-404-page .terminal-header {
    background: rgba(255, 95, 86, 0.1);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 95, 86, 0.2);
}

.error-404-page .terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.error-404-page .terminal-dot--red { background: #ff5f56; box-shadow: 0 0 5px #ff5f56; }
.error-404-page .terminal-dot--yellow { background: #ffbd2e; }
.error-404-page .terminal-dot--green { background: #27c93f; }

.error-404-page .terminal-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ff5f56;
    font-weight: bold;
}

.error-404-page .terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.error-404-page .terminal-body p {
    margin-bottom: 8px;
}

.error-404-page .terminal-prompt {
    color: #ffbd2e;
    margin-right: 8px;
}

.error-404-page .terminal-error {
    color: #ff5f56;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 95, 86, 0.5);
}

.error-404-page .blink {
    animation: blink 1s step-end infinite;
}

.error-404-actions {
    display: flex;
    gap: var(--spacing-4);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--spacing-4);
}

.error-404-actions .btn-primary {
    background: #ff5f56;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 95, 86, 0.4);
}

.error-404-actions .btn-primary:hover {
    background: #ff3b30;
    box-shadow: 0 0 25px rgba(255, 95, 86, 0.6);
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75); }
    14% { text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75); }
    15% { text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75); }
    49% { text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75); }
    99% { text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75); }
    100% { text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .danger-tape {
        width: 150%;
        left: -25%;
    }
    .danger-marquee span {
        font-size: 1rem;
    }
    .error-404-content {
        padding: 20px;
    }
    .siren {
        width: 40vw;
    }
}

/* ==========================================================================
   Blog Index & Archive Pages
   ========================================================================== */
.blog-index-page {
    position: relative;
    padding-top: calc(var(--header-height) + var(--spacing-12));
    padding-bottom: var(--spacing-16);
    min-height: 80vh;
}

.blog-index-page .page-header {
    margin-bottom: var(--spacing-12);
    position: relative;
    z-index: 2;
}

.blog-index-page .page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-4);
}

.blog-index-page .page-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.pagination-wrapper {
    margin-top: var(--spacing-12);
    text-align: center;
    position: relative;
    z-index: 2;
}

.pagination-wrapper .nav-links {
    display: inline-flex;
    gap: var(--spacing-2);
    align-items: center;
    background: rgba(10, 10, 12, 0.4);
    padding: 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination-wrapper .page-numbers:hover:not(.current) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.pagination-wrapper .page-numbers.current {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.4);
}

.no-posts-terminal {
    margin-top: var(--spacing-12);
}

/* ==========================================================================
   Single Post Page
   ========================================================================== */
.single-post-page {
    position: relative;
    padding-top: calc(var(--header-height) + var(--spacing-12));
    padding-bottom: var(--spacing-16);
}

.single-post-page .entry-header {
    max-width: 800px;
    margin: 0 auto var(--spacing-10);
    text-align: center;
    position: relative;
    z-index: 2;
}

.single-post-page .entry-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-6);
    color: var(--text-primary);
}

.single-post-page .entry-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-4);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.single-post-page .entry-meta span {
    display: inline-flex;
    align-items: center;
}

.single-post-page .cat-links a {
    color: var(--accent-primary);
    margin-left: 5px;
}

.single-post-page .cat-links a:hover {
    text-decoration: underline;
}

.single-post-page .post-thumbnail {
    max-width: 1000px;
    margin: 0 auto var(--spacing-12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-post-page .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-page .entry-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.single-post-page .entry-content h2,
.single-post-page .entry-content h3,
.single-post-page .entry-content h4 {
    color: var(--text-primary);
    margin-top: 2em;
    margin-bottom: 1em;
}

.single-post-page .entry-content p {
    margin-bottom: 1.5em;
}

.single-post-page .entry-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-color: rgba(0, 255, 170, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition-fast);
}

.single-post-page .entry-content a:hover {
    text-decoration-color: var(--accent-primary);
}

.single-post-page .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2em 0;
}

.single-post-page .entry-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: var(--spacing-6);
    margin: 2em 0;
    font-style: italic;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.single-post-page .entry-footer {
    max-width: 800px;
    margin: var(--spacing-12) auto 0;
    padding-top: var(--spacing-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.single-post-page .tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.single-post-page .tags-links a {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-post-page .tags-links a:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}

.post-navigation {
    max-width: 800px;
    margin: var(--spacing-10) auto;
    position: relative;
    z-index: 2;
}

.post-navigation--top {
    margin: 0 auto var(--spacing-8);
    margin-top: var(--spacing-2);
}

.post-navigation--bottom {
    margin: var(--spacing-10) auto var(--spacing-6);
}

.post-navigation--with-home .nav-links--with-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: var(--spacing-4);
    width: 100%;
}

.post-navigation--with-home .nav-previous {
    justify-self: start;
    min-width: 0;
}

.post-navigation--with-home .nav-home {
    justify-self: center;
    align-self: center;
}

.post-navigation--with-home .nav-next {
    justify-self: end;
    min-width: 0;
}

.post-navigation--with-home .nav-home .post-nav-home-link {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .post-navigation--with-home .nav-links--with-home {
        grid-template-columns: 1fr;
        gap: var(--spacing-3);
    }

    .post-navigation--with-home .nav-previous,
    .post-navigation--with-home .nav-home,
    .post-navigation--with-home .nav-next {
        justify-self: stretch;
        width: 100%;
    }

    .post-navigation--with-home .nav-next a {
        text-align: right;
    }
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-6);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    background: rgba(10, 10, 12, 0.4);
    
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.post-navigation .nav-title {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Blog Single Post - UI Refinements & Comments
   ========================================================================== */

/* Боковые анимации (Киберпанк сканеры) */
.single-side-decor {
    position: absolute;
    top: 20%;
    bottom: 10%;
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.single-side-decor--left {
    left: 3%;
}

.single-side-decor--right {
    right: 3%;
}

.decor-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

.decor-scanner {
    position: absolute;
    top: 0;
    width: 3px;
    height: 150px;
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
    border-radius: 10px;
    animation: scanner-sweep 8s ease-in-out infinite;
}

.decor-scanner--delayed {
    animation-delay: -4s;
}

@keyframes scanner-sweep {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% - 150px); opacity: 0; }
}

@media (max-width: 1200px) {
    .single-side-decor {
        display: none;
    }
}

/* Переопределение стилей навигации (Предыдущая/Следующая статья) для поддержки светлой темы */
.post-navigation .nav-previous,
.post-navigation .nav-next {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background: var(--color-bg-light) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 10px 30px rgba(0, 255, 170, 0.15) !important;
    transform: translateY(-3px) !important;
}

.post-navigation .nav-title {
    color: var(--accent-primary) !important;
    margin-top: 5px;
}

.post-navigation a {
    text-decoration: none !important;
}

/* Стилизация секции комментариев */
.comments-wrapper {
    max-width: 800px;
    margin: var(--spacing-12) auto 0;
    padding-top: var(--spacing-10);
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
}

.comments-title, 
.comment-reply-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-6);
    color: var(--text-primary);
    font-weight: 700;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    background: var(--color-surface);
    padding: var(--spacing-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.comment-notes,
.logged-in-as {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-4);
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-form label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.15);
    background: var(--color-surface);
}

.form-submit {
    margin-top: var(--spacing-4);
}

.form-submit .submit {
    background: var(--accent-primary);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-block;
}

.form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 170, 0.3);
}

/* Список комментариев */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-10);
}

.comment-list .comment {
    margin-bottom: var(--spacing-6);
}

.comment-body {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform var(--transition-fast);
}

.comment-body:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--color-border);
}

.comment-author img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    border: 2px solid var(--accent-primary);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.comment-metadata {
    margin-left: auto;
}

.comment-metadata a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--accent-primary);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 1em;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: var(--spacing-4);
}

.comment-reply-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.comment-reply-link:hover {
    color: #fff;
}

.children {
    list-style: none;
    padding-left: var(--spacing-8);
    margin-top: var(--spacing-6);
    border-left: 2px solid var(--color-border);
}

@media (max-width: 768px) {
    .children {
        padding-left: var(--spacing-4);
    }
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .comment-metadata {
        margin-left: 0;
    }
}

/* Fix Post Navigation Links */
.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 0 !important;
    overflow: hidden;
    background: transparent !important;
    border: 1px solid var(--accent-primary) !important;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.1) !important;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--spacing-6);
    text-decoration: none !important;
    transition: all var(--transition-fast);
}

.post-navigation .nav-previous:hover a,
.post-navigation .nav-next:hover a {
    background: rgba(0, 255, 170, 0.05);
}

.post-navigation .nav-title {
    color: var(--text-primary) !important;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 8px;
}

.post-navigation .nav-subtitle {
    color: var(--accent-primary) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fix Comment Form Layout */
.comment-form {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--spacing-4) !important;
    background: var(--color-surface) !important;
    padding: var(--spacing-8) !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-sm) !important;
}

.comment-form p {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
}

.comment-form label {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100% !important;
    padding: 15px !important;
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    transition: all var(--transition-fast) !important;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.15) !important;
    background: var(--color-surface) !important;
}

.form-submit .submit {
    background: var(--accent-primary) !important;
    color: #000 !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    display: inline-block !important;
    width: auto !important;
    align-self: flex-start !important;
}

.form-submit .submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(0, 255, 170, 0.3) !important;
}

/* Force side decor on mobile to check if it works */
@media (max-width: 1200px) {
    .single-side-decor {
        display: flex !important;
        opacity: 0.3 !important;
    }
}
@media (max-width: 768px) {
    .single-side-decor {
        display: none !important;
    }
}

/* CRITICAL FIXES FOR SINGLE POST */
.single-post-page {
    padding-top: 180px !important; /* Ensure it clears the sticky header and admin bar */
}

/* Make side scanners fixed to viewport so they are always visible */
.single-side-decor {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    z-index: 10 !important;
    opacity: 0.8 !important;
}

.decor-scanner {
    height: 20vh !important;
    animation: scanner-sweep-fixed 6s ease-in-out infinite !important;
    background: var(--color-primary) !important;
    box-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary) !important;
}

.decor-line {
    background: linear-gradient(to bottom, transparent, var(--color-primary), transparent) !important;
    opacity: 0.3 !important;
}

@keyframes scanner-sweep-fixed {
    0% { top: -20vh; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100vh; opacity: 0; }
}

/* Fix post navigation buttons alignment and text */
.post-navigation .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: var(--spacing-6) !important;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1 !important;
    width: 50% !important;
    text-align: center !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
}

/* FIX: Remove global nav-links span styling from post navigation */
.post-navigation .nav-links span {
    border: none !important;
    background: transparent !important;
    height: auto !important;
    min-width: auto !important;
    padding: 0 !important;
    display: block !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.post-navigation .nav-previous::before,
.post-navigation .nav-next::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255, 95, 31, 0.1) 0%, transparent 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    transform: translateY(-5px) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 15px 30px rgba(255, 95, 31, 0.15) !important;
}

.post-navigation .nav-previous:hover::before,
.post-navigation .nav-next:hover::before {
    opacity: 1 !important;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: var(--spacing-6) !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 1 !important;
    border: none !important;
    background: transparent !important;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    background: transparent !important;
    border: none !important;
}

.post-navigation .nav-title {
    color: var(--text-primary) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-top: 8px !important;
    transition: color 0.3s ease !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}

.post-navigation .nav-previous:hover .nav-title,
.post-navigation .nav-next:hover .nav-title {
    color: var(--color-primary) !important;
}

.post-navigation .nav-subtitle {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

/* Fix Comment Form Layout */
.comment-form {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--spacing-4) !important;
    background: var(--color-surface) !important;
    padding: var(--spacing-8) !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-sm) !important;
}

.comment-form p {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
}

.comment-form label {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100% !important;
    padding: 15px !important;
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    transition: all var(--transition-fast) !important;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 95, 31, 0.15) !important;
    background: var(--color-surface) !important;
}

.form-submit .submit {
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    display: inline-block !important;
    width: auto !important;
    align-self: flex-start !important;
}

.form-submit .submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(255, 95, 31, 0.3) !important;
}

/* Force side decor on mobile to check if it works */
@media (max-width: 1200px) {
    .single-side-decor {
        display: flex !important;
        opacity: 0.3 !important;
    }
}
@media (max-width: 768px) {
    .single-side-decor {
        display: none !important;
    }
    .post-navigation .nav-links {
        flex-direction: column !important;
    }
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        width: 100% !important;
    }
}

/* ==========================================================================
   FIX BLOG CARDS (RESTORE PADDING & ADD GLASSMORPHISM)
   ========================================================================== */
.blog-card {
    background: var(--color-surface) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    border: 1px solid var(--color-border) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    position: relative !important;
    box-shadow: var(--shadow-sm) !important;
}

.blog-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255, 95, 31, 0.05) 0%, transparent 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

.blog-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 15px 35px rgba(255, 95, 31, 0.15) !important;
}

.blog-card:hover::before {
    opacity: 1 !important;
}

.blog-image {
    position: relative !important;
    z-index: 1 !important;
    border-bottom: 1px solid var(--color-border) !important;
}

.blog-card:hover .blog-image {
    border-bottom-color: rgba(255, 95, 31, 0.3) !important;
}

.blog-content {
    padding: var(--spacing-6) !important; /* RESTORED PADDING */
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.blog-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: var(--spacing-3) !important;
    transition: color 0.3s ease !important;
}

.blog-title a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

.blog-card:hover .blog-title a {
    color: var(--color-primary) !important;
}

.blog-excerpt {
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: var(--spacing-4) !important;
    flex-grow: 1 !important;
}

.read-more-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--color-primary) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    margin-top: auto !important;
    transition: gap 0.3s ease !important;
}

.read-more-link .arrow {
    transition: transform 0.3s ease !important;
}

.blog-card:hover .read-more-link {
    gap: 12px !important;
}

.blog-card:hover .read-more-link .arrow {
    transform: translateX(4px) !important;
}

/* Light mode specific adjustments */
html[data-theme="light"] .blog-card {
    background: #ffffff !important;
}

/* ==========================================================================
   HEADER REDESIGN (Floating Pill)
   ========================================================================== */
.site-header {
    top: var(--spacing-4) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - var(--spacing-4) * 2) !important;
    max-width: 840px !important;
    border-radius: var(--radius-full) !important;
    padding: var(--spacing-3) 0 !important;
    border: 1px solid var(--color-border) !important;
    background: rgba(10, 10, 12, 0.6) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.site-header.scrolled {
    top: var(--spacing-2) !important;
    padding: var(--spacing-2) 0 !important;
    background: rgba(10, 10, 12, 0.85) !important;
    border-color: rgba(255, 95, 31, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 95, 31, 0.15) !important;
}

/* Light mode adjustments */
html[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 95, 31, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 95, 31, 0.1) !important;
}

@media (max-width: 768px) {
    .site-header {
        top: var(--spacing-2) !important;
        width: calc(100% - var(--spacing-2) * 2) !important;
        border-radius: var(--radius-lg) !important;
    }
}

@media (max-width: 1024px) {
    .site-header {
        max-width: 90% !important;
    }
}

/* ==========================================================================
   DOCS TEASER SECTION (Front Page)
   ========================================================================== */
.docs-teaser-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.docs-teaser-section::before {
    content: '';
    position: absolute;
    inset: 8% auto auto 8%;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 95, 31, 0.12), transparent 68%);
    filter: blur(18px);
    pointer-events: none;
    z-index: -1;
}

.docs-teaser-section .section-header {
    max-width: 58rem;
    margin-inline: auto;
}

.docs-teaser-section .section-title {
    max-width: 22ch;
    margin-inline: auto;
    line-height: 1.06;
    text-wrap: balance;
}

.docs-teaser-section .section-subtitle {
    max-width: 48rem;
    margin-inline: auto;
    text-wrap: pretty;
}

.docs-teaser-grid--immersive {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: var(--spacing-8);
    align-items: center;
    margin: var(--spacing-10) 0 0;
}

.docs-story-panel {
    padding: var(--spacing-8);
    border-radius: calc(var(--radius-2xl) + 0.125rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        rgba(10, 10, 14, 0.52);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.docs-story-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 95, 31, 0.42), transparent);
    opacity: 0.75;
}

.docs-story-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: var(--spacing-5);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 95, 31, 0.22);
    background: rgba(255, 95, 31, 0.08);
    color: rgba(255, 217, 197, 0.92);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.docs-story-panel__title {
    margin: 0 0 var(--spacing-4);
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.14;
    max-width: 18ch;
}

.docs-story-panel__text {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.72;
    max-width: 34rem;
}

.docs-story-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
    margin-top: var(--spacing-6);
}

.docs-story-panel__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    font-size: 0.88rem;
    font-weight: 600;
}

.docs-knowledge-visual {
    min-height: 30rem;
    border-radius: calc(var(--radius-2xl) + 0.25rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 95, 31, 0.16), transparent 24%),
        radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(14, 14, 18, 0.88), rgba(8, 8, 11, 0.9));
    box-shadow:
        0 28px 62px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.docs-knowledge-visual__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.9;
}

.docs-knowledge-visual__glow--one {
    inset: 10% auto auto 8%;
    width: 12rem;
    height: 12rem;
    background: radial-gradient(circle, rgba(255, 95, 31, 0.28), transparent 70%);
    animation: docsKnowledgeGlow 5.5s ease-in-out infinite;
}

.docs-knowledge-visual__glow--two {
    inset: auto 10% 12% auto;
    width: 11rem;
    height: 11rem;
    background: radial-gradient(circle, rgba(255, 180, 71, 0.16), transparent 72%);
    animation: docsKnowledgeGlow 6.2s ease-in-out infinite reverse;
}

.docs-knowledge-visual__stream {
    position: absolute;
    inset: auto auto 18% 50%;
    width: 28rem;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(255, 95, 31, 0), rgba(255, 95, 31, 0.9), rgba(255, 255, 255, 0));
    opacity: 0.45;
    background-size: 220% 100%;
}

.docs-knowledge-visual__stream--one {
    transform: translateX(-50%) rotate(-14deg);
    animation: docsKnowledgeBeam 4.2s ease-in-out infinite;
}

.docs-knowledge-visual__stream--two {
    transform: translateX(-50%) rotate(16deg);
    animation: docsKnowledgeBeam 4.8s ease-in-out infinite reverse;
}

.docs-lottie-shell {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    width: min(28rem, 82%);
    height: min(28rem, 82%);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.22));
    animation: docsLottieFloat 4.2s ease-in-out infinite;
}

.docs-lottie-player {
    width: 100%;
    height: 100%;
}

.docs-lottie-player svg {
    width: 100% !important;
    height: 100% !important;
}

.docs-knowledge-particle {
    position: absolute;
    left: 50%;
    bottom: 5.6rem;
    width: 0.7rem;
    height: 0.7rem;
    margin-left: -0.35rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98), rgba(255, 95, 31, 0.9) 58%, rgba(255, 95, 31, 0) 70%);
    box-shadow: 0 0 18px rgba(255, 95, 31, 0.34);
    opacity: 0;
}

.docs-knowledge-particle--one {
    animation: docsKnowledgeParticleOne 3.6s linear infinite;
}

.docs-knowledge-particle--two {
    animation: docsKnowledgeParticleTwo 4.2s linear infinite;
    animation-delay: 0.8s;
}

.docs-knowledge-particle--three {
    animation: docsKnowledgeParticleThree 3.9s linear infinite;
    animation-delay: 1.45s;
}

.docs-knowledge-particle--four {
    animation: docsKnowledgeParticleFour 4.5s linear infinite;
    animation-delay: 2.1s;
}

.docs-book {
    position: absolute;
    left: 50%;
    bottom: 3.5rem;
    width: 18rem;
    height: 12.5rem;
    transform: translateX(-50%);
    animation: docsBookFloat 4s ease-in-out infinite;
}

.docs-book__base {
    position: absolute;
    inset: auto 0 0 0;
    height: 4.3rem;
    border-radius: 1.6rem 1.6rem 1rem 1rem;
    background: linear-gradient(180deg, rgba(58, 34, 21, 0.95), rgba(23, 13, 9, 0.98));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.docs-book__spine {
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    width: 1rem;
    height: 8rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 146, 84, 0.96), rgba(144, 58, 16, 0.96));
    box-shadow: 0 0 28px rgba(255, 95, 31, 0.24);
}

.docs-book__page {
    position: absolute;
    bottom: 2.1rem;
    width: 8rem;
    height: 7.5rem;
    border-radius: 1rem 1rem 0.9rem 0.9rem;
    background:
        linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(237, 232, 223, 0.92));
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.docs-book__page::before {
    content: '';
    position: absolute;
    inset: 1.2rem 1.15rem auto;
    height: 2.7rem;
    border-radius: 0.35rem;
    background:
        linear-gradient(
            180deg,
            rgba(255, 95, 31, 0.16) 0,
            rgba(255, 95, 31, 0.16) 0.18rem,
            transparent 0.18rem,
            transparent 0.68rem,
            rgba(15, 23, 42, 0.12) 0.68rem,
            rgba(15, 23, 42, 0.12) 0.8rem,
            transparent 0.8rem,
            transparent 1.28rem,
            rgba(15, 23, 42, 0.12) 1.28rem,
            rgba(15, 23, 42, 0.12) 1.4rem,
            transparent 1.4rem,
            transparent 1.9rem,
            rgba(15, 23, 42, 0.12) 1.9rem,
            rgba(15, 23, 42, 0.12) 2.02rem,
            transparent 2.02rem
        );
    opacity: 0.9;
}

.docs-book__page--left {
    left: 0.8rem;
    transform: perspective(900px) rotateY(32deg) rotateZ(-7deg);
    animation: docsPageSwayLeft 3.8s ease-in-out infinite;
}

.docs-book__page--right {
    right: 0.8rem;
    transform: perspective(900px) rotateY(-32deg) rotateZ(7deg);
    animation: docsPageSwayRight 3.8s ease-in-out infinite;
}

.docs-book__page--flip {
    left: 50%;
    width: 7.6rem;
    height: 7.2rem;
    transform-origin: left bottom;
    transform: translateX(-12%) perspective(900px) rotateY(-10deg) rotateZ(3deg);
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(229, 220, 205, 0.92));
    animation: docsPageFlip 3.6s cubic-bezier(0.45, 0.05, 0.2, 1) infinite;
}

.docs-book__pulse {
    position: absolute;
    left: 50%;
    bottom: 4rem;
    width: 7rem;
    height: 7rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 95, 31, 0.28), transparent 70%);
    filter: blur(8px);
    animation: docsPulseRing 2.1s ease-out infinite;
}

.docs-knowledge-card {
    position: absolute;
    display: grid;
    gap: 0.4rem;
    min-width: 11.5rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: docsKnowledgeFloat 4.2s ease-in-out infinite;
}

.docs-knowledge-card--cursor {
    top: 4rem;
    left: 3.5rem;
    animation-name: docsKnowledgeFloatLeft;
}

.docs-knowledge-card--api {
    top: 7rem;
    right: 3.5rem;
    animation-name: docsKnowledgeFloatRight;
    animation-delay: -1.6s;
}

.docs-knowledge-card__tag {
    color: rgba(255, 204, 183, 0.84);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.docs-knowledge-card strong {
    color: #fff;
    font-size: 1rem;
}

.docs-knowledge-card span:last-child {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
    font-size: 0.88rem;
}

.docs-knowledge-orbit {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    height: 3.25rem;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.docs-knowledge-orbit--one {
    left: 16%;
    bottom: 8.5rem;
    animation: docsOrbitOne 3.8s ease-in-out infinite;
}

.docs-knowledge-orbit--two {
    right: 18%;
    bottom: 12rem;
    animation: docsOrbitTwo 4.1s ease-in-out infinite;
}

.docs-knowledge-orbit--three {
    left: 50%;
    top: 3.8rem;
    transform: translateX(-50%);
    animation: docsOrbitCenter 3.9s ease-in-out infinite;
}

.docs-teaser-action {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-10);
}

.docs-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-3);
    min-width: 18rem;
    padding: 1rem 2.4rem;
    background: linear-gradient(135deg, var(--color-primary), #ff7f3a);
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    border: none;
    box-shadow:
        0 16px 34px rgba(255, 95, 31, 0.28),
        0 0 0 0 rgba(255, 95, 31, 0.28);
    text-decoration: none;
    animation: docsCtaPulse 2.6s ease-in-out infinite;
}

.docs-main-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 38px rgba(255, 95, 31, 0.34),
        0 0 0 0.55rem rgba(255, 95, 31, 0.08);
    filter: brightness(1.04);
    color: #ffffff !important;
}

.docs-main-btn .btn-icon {
    transition: transform 0.3s ease;
}

.docs-main-btn:hover .btn-icon {
    transform: translateX(5px);
}

@keyframes docsKnowledgeGlow {
    0%, 100% { transform: scale(0.92); opacity: 0.55; }
    50% { transform: scale(1.08); opacity: 0.95; }
}

@keyframes docsKnowledgeBeam {
    0% {
        opacity: 0.1;
        filter: blur(0);
        background-position: 0% 50%;
    }
    50% {
        opacity: 0.62;
        filter: blur(1px);
        background-position: 100% 50%;
    }
    100% {
        opacity: 0.12;
        filter: blur(0);
        background-position: 200% 50%;
    }
}

@keyframes docsLottieFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-12px); }
}

@keyframes docsBookFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    25% { transform: translateX(-50%) translateY(-8px) rotate(-1.5deg); }
    50% { transform: translateX(-50%) translateY(-16px) rotate(0deg); }
    75% { transform: translateX(-50%) translateY(-8px) rotate(1.5deg); }
}

@keyframes docsPageSwayLeft {
    0%, 100% { transform: perspective(900px) rotateY(32deg) rotateZ(-7deg); }
    50% { transform: perspective(900px) rotateY(18deg) rotateZ(-14deg) translateY(-10px); }
}

@keyframes docsPageSwayRight {
    0%, 100% { transform: perspective(900px) rotateY(-32deg) rotateZ(7deg); }
    50% { transform: perspective(900px) rotateY(-18deg) rotateZ(14deg) translateY(-10px); }
}

@keyframes docsPageFlip {
    0%, 18% {
        transform: translateX(-12%) perspective(900px) rotateY(-10deg) rotateZ(3deg);
        opacity: 0.96;
    }
    48% {
        transform: translateX(-2%) perspective(900px) rotateY(-132deg) rotateZ(8deg) translateY(-12px);
        opacity: 0.88;
    }
    56% {
        transform: translateX(10%) perspective(900px) rotateY(-188deg) rotateZ(5deg) translateY(-6px);
        opacity: 0.74;
    }
    100% {
        transform: translateX(-12%) perspective(900px) rotateY(-10deg) rotateZ(3deg);
        opacity: 0.96;
    }
}

@keyframes docsKnowledgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes docsKnowledgeFloatLeft {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(18px, -20px) rotate(-3deg); }
}

@keyframes docsKnowledgeFloatRight {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -16px) rotate(3deg); }
}

@keyframes docsOrbitOne {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -16px) scale(1.08); }
}

@keyframes docsOrbitTwo {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-16px, 14px) scale(1.08); }
}

@keyframes docsOrbitCenter {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50% { transform: translateX(-50%) translateY(-16px) scale(1.1); }
}

@keyframes docsPulseRing {
    0% { transform: translateX(-50%) scale(0.75); opacity: 0.52; }
    70% { transform: translateX(-50%) scale(1.3); opacity: 0; }
    100% { transform: translateX(-50%) scale(1.3); opacity: 0; }
}

@keyframes docsKnowledgeParticleOne {
    0% { transform: translate(0, 0) scale(0.55); opacity: 0; }
    10% { opacity: 0.95; }
    100% { transform: translate(-190px, -210px) scale(1.2); opacity: 0; }
}

@keyframes docsKnowledgeParticleTwo {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    12% { opacity: 0.9; }
    100% { transform: translate(185px, -250px) scale(1.15); opacity: 0; }
}

@keyframes docsKnowledgeParticleThree {
    0% { transform: translate(0, 0) scale(0.45); opacity: 0; }
    14% { opacity: 0.88; }
    100% { transform: translate(80px, -285px) scale(1.05); opacity: 0; }
}

@keyframes docsKnowledgeParticleFour {
    0% { transform: translate(0, 0) scale(0.45); opacity: 0; }
    15% { opacity: 0.82; }
    100% { transform: translate(-95px, -265px) scale(1.08); opacity: 0; }
}

@keyframes docsCtaPulse {
    0%, 100% {
        box-shadow:
            0 16px 34px rgba(255, 95, 31, 0.28),
            0 0 0 0 rgba(255, 95, 31, 0.24);
    }
    50% {
        box-shadow:
            0 18px 38px rgba(255, 95, 31, 0.34),
            0 0 0 0.85rem rgba(255, 95, 31, 0.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .docs-knowledge-visual__glow,
    .docs-knowledge-visual__stream,
    .docs-lottie-shell,
    .docs-knowledge-particle,
    .docs-book,
    .docs-book__page--left,
    .docs-book__page--right,
    .docs-book__page--flip,
    .docs-book__pulse,
    .docs-knowledge-card,
    .docs-knowledge-orbit,
    .docs-main-btn {
        animation: none !important;
    }
}

/* ==========================================================================
   DOCS ARCHIVE PAGE (База знаний)
   ========================================================================== */
@keyframes docs-compact-reveal {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes docs-tile-shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.docs-archive-page {
    padding-top: 64px;
    min-height: auto;
}

.docs-hero {
    position: relative;
    padding: var(--spacing-12) 0 var(--spacing-16);
    overflow: hidden;
}

.docs-hero.docs-hero--compact {
    padding: var(--spacing-4) 0 var(--spacing-6);
}

.docs-compact-wrap {
    max-width: min(1100px, 100%);
    margin-inline: auto;
}

.docs-compact-header {
    text-align: left;
    margin-bottom: 0.35rem;
}

.docs-compact-label {
    display: inline-block;
    margin-bottom: 0.15rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    opacity: 0.85;
}

.docs-compact-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.55rem, 3.2vw, 2.05rem);
    line-height: 1.12;
    font-weight: 700;
}

.docs-compact-tagline {
    margin: 0 0 0.65rem;
    max-width: 52ch;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.docs-compact-tagline strong {
    color: var(--color-text);
    font-weight: 600;
}

.docs-search-form--compact {
    max-width: 100%;
    margin: 0.35rem 0 0;
    padding: 0.35rem 0.65rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.docs-search-form--compact .search-icon {
    margin-right: 0.45rem;
    flex-shrink: 0;
}

.docs-search-form--compact .docs-search-field {
    font-size: 0.8125rem;
    min-width: 0;
}

.docs-search-form--compact .docs-search-submit {
    padding: 0.35rem 0.9rem;
    font-size: 0.65rem;
}

.docs-compact-sheet {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.55rem 0.7rem;
    margin-top: 0.65rem;
    align-items: stretch;
}

.docs-compact-sheet__answer {
    grid-column: span 5;
    padding: 0.5rem 0.6rem 0.55rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.docs-compact-sheet__intro {
    grid-column: span 7;
}

.docs-compact-sheet > .docs-usage-table--compact,
.docs-compact-sheet > .docs-faq-block--compact,
.docs-compact-sheet > .docs-quick-links--compact {
    grid-column: 1 / -1;
}

.docs-animate-block {
    animation: docs-compact-reveal 0.58s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--docs-d, 0) * 55ms);
}

.docs-glass-tile {
    position: relative;
    border-radius: var(--radius-lg);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.docs-glass-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 95, 31, 0.07) 42%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 95, 31, 0.07) 58%,
        transparent 100%
    );
    background-size: 220% 100%;
    transition: opacity 0.35s ease;
}

.docs-glass-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.docs-glass-tile:hover::after {
    opacity: 1;
    animation: docs-tile-shimmer 1.35s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .docs-animate-block {
        animation: none;
    }

    .docs-glass-tile:hover::after {
        animation: none;
    }

    .docs-glass-tile:hover {
        transform: none;
    }
}

.docs-hero-answer {
    max-width: 980px;
    margin: var(--spacing-8) auto 0;
    padding: var(--spacing-6);
    border-radius: var(--radius-2xl);
    text-align: left;
    display: grid;
    gap: var(--spacing-4);
}

.docs-hero-answer--compact {
    margin: 0;
    padding: 0;
    gap: 0.45rem;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.docs-compact-sheet__answer .docs-hero-answer--compact {
    padding: 0;
}

.docs-hero-answer__lead {
    margin: 0;
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.75;
}

.docs-hero-answer--compact .docs-hero-answer__lead {
    font-size: 0.8125rem;
    line-height: 1.45;
}

.docs-hero-answer__list {
    margin: 0;
    padding-left: 1.05rem;
    color: var(--color-text-secondary);
    display: grid;
    gap: 0.2rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.docs-hero-answer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.docs-hero-answer--compact .docs-hero-answer__meta {
    font-size: 0.7rem;
    gap: 0.3rem 0.35rem;
}

.docs-hero-answer__meta span {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.docs-hero-answer--compact .docs-hero-answer__meta span {
    padding: 0.2rem 0.5rem;
}

.docs-hero-answer__meta strong {
    color: var(--color-text);
}

.docs-hero-answer__meta a {
    color: var(--color-primary);
    text-decoration: none;
}

.docs-hero-answer__sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.docs-hero-answer--compact .docs-hero-answer__sources {
    font-size: 0.7rem;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-hero-answer__sources span {
    color: var(--color-text);
    font-weight: 600;
}

.docs-hero-answer__sources a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 95, 31, 0.35);
}

.docs-hero-answer__sources a:hover {
    border-bottom-color: var(--color-primary);
}

.docs-search-form {
    max-width: 600px;
    margin: var(--spacing-8) auto 0;
    display: flex;
    align-items: center;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 1px solid rgba(255, 95, 31, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.docs-search-form .search-icon {
    color: var(--color-text-secondary);
    margin-right: var(--spacing-3);
}

.docs-search-field {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: var(--text-base);
    padding: var(--spacing-2) 0;
    outline: none;
}

.docs-search-field::placeholder {
    color: var(--color-text-muted);
}

.docs-search-submit {
    padding: var(--spacing-2) var(--spacing-6);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.docs-list-wrap {
    padding-top: var(--spacing-6);
    padding-bottom: var(--spacing-12);
}

.docs-list-heading {
    margin: 0 0 var(--spacing-3);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-8);
}

.docs-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-8);
}

.docs-intro-grid--compact {
    gap: 0.45rem;
    margin-bottom: 0;
    height: 100%;
}

.docs-micro-heading {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.docs-info-card,
.docs-faq-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
}

.docs-intro-grid--compact .docs-info-card {
    padding: 0.45rem 0.55rem;
    margin: 0;
    border-radius: var(--radius-md);
}

.docs-info-card h2,
.docs-faq-block h2 {
    margin: 0 0 var(--spacing-3);
    color: var(--color-text);
    font-size: 1.15rem;
}

.docs-intro-grid--compact .docs-info-card h2 {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.docs-info-card p,
.docs-faq-item p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

.docs-intro-grid--compact .docs-info-card p {
    font-size: 0.75rem;
    line-height: 1.4;
}

.docs-info-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--color-text-secondary);
    display: grid;
    gap: 0.55rem;
}

.docs-intro-grid--compact .docs-info-card ul {
    gap: 0.15rem;
    padding-left: 0.95rem;
    font-size: 0.72rem;
    line-height: 1.35;
}

.docs-faq-block {
    margin-bottom: var(--spacing-8);
}

.docs-faq-block--compact {
    margin-bottom: 0;
    padding: 0.5rem 0.6rem 0.55rem;
}

.docs-usage-table {
    margin-bottom: var(--spacing-8);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
}

.docs-usage-table--compact {
    margin-bottom: 0;
    padding: 0.5rem 0.6rem 0.55rem;
}

.docs-usage-table h2 {
    margin: 0 0 var(--spacing-4);
    color: var(--color-text);
    font-size: 1.15rem;
}

.docs-usage-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-4);
}

.docs-usage-table--compact .docs-usage-cards {
    gap: 0.4rem;
}

.docs-usage-card {
    padding: var(--spacing-5);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.docs-usage-table--compact .docs-usage-card {
    padding: 0.4rem 0.45rem;
}

.docs-usage-card:hover {
    border-color: rgba(255, 95, 31, 0.35);
    background: rgba(255, 95, 31, 0.04);
}

.docs-usage-card h3 {
    margin: 0 0 var(--spacing-2);
    color: var(--color-text);
    font-size: 1rem;
}

.docs-usage-table--compact .docs-usage-card h3 {
    margin: 0 0 0.15rem;
    font-size: 0.78rem;
}

.docs-usage-card p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.docs-usage-table--compact .docs-usage-card p {
    font-size: 0.72rem;
    line-height: 1.35;
}

.docs-faq-list {
    display: grid;
    gap: var(--spacing-5);
}

.docs-faq-list--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.docs-faq-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: var(--spacing-5);
}

.docs-faq-list--compact .docs-faq-item {
    border-top: none;
    padding: 0.35rem 0.4rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.docs-faq-item:first-child {
    border-top: none;
    padding-top: 0;
}

.docs-faq-list--compact .docs-faq-item:first-child {
    padding-top: 0.35rem;
}

.docs-faq-item h3 {
    margin: 0 0 var(--spacing-2);
    color: var(--color-text);
    font-size: 1rem;
}

.docs-faq-list--compact .docs-faq-item h3 {
    margin: 0 0 0.15rem;
    font-size: 0.75rem;
}

.docs-faq-list--compact .docs-faq-item p {
    font-size: 0.7rem;
    line-height: 1.35;
}

.docs-quick-links {
    margin-bottom: var(--spacing-8);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-5);
}

.docs-quick-links--compact {
    margin-bottom: 0;
    padding: 0.45rem 0.55rem 0.5rem;
}

.docs-quick-links h2 {
    margin: 0 0 var(--spacing-3);
    color: var(--color-text);
    font-size: 1.15rem;
}

.docs-quick-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.docs-quick-links--compact .docs-quick-links__list {
    gap: 0.35rem;
}

.docs-quick-links__list a {
    color: var(--color-primary);
    text-decoration: none;
    border: 1px solid rgba(255, 95, 31, 0.28);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    transition: all 0.2s ease;
}

.docs-quick-links--compact .docs-quick-links__list a {
    padding: 0.28rem 0.55rem;
    font-size: 0.68rem;
}

.docs-quick-links__list a:hover {
    border-color: var(--color-primary);
    background: rgba(255, 95, 31, 0.08);
}

.docs-card {
    padding: var(--spacing-6);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.docs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.docs-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 95, 31, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.docs-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.docs-card-icon {
    color: var(--color-primary);
    margin-bottom: var(--spacing-4);
}

.docs-card-media {
    margin-bottom: var(--spacing-4);
    border-radius: calc(var(--radius-lg) - 8px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.docs-card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-3);
    transition: color 0.3s ease;
}

.docs-card:hover .docs-card-title {
    color: var(--color-primary);
}

.docs-card-excerpt {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-6);
    flex-grow: 1;
}

.docs-card .read-more-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}

.docs-card .read-more-link .arrow {
    margin-left: var(--spacing-2);
    transition: transform 0.3s ease;
}

.docs-card:hover .read-more-link .arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   DOCS SINGLE PAGE (Гайд)
   ========================================================================== */
.docs-single-page {
    padding-top: 120px;
    padding-bottom: var(--spacing-16);
    min-height: 100vh;
    position: relative;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-8);
    align-items: start;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 120px;
    padding: var(--spacing-6);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.docs-sidebar-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--color-border);
}

.docs-sidebar-header h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}

.docs-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav-list li {
    margin-bottom: var(--spacing-2);
}

.docs-nav-list a {
    display: block;
    padding: var(--spacing-2) var(--spacing-3);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: var(--text-sm);
    border-left: 2px solid transparent;
}

.docs-nav-list a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border-left-color: rgba(255, 95, 31, 0.5);
}

.docs-nav-list a.active {
    background: rgba(255, 95, 31, 0.1);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

/* Main Content */
.docs-content {
    padding: var(--spacing-10);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.docs-breadcrumbs {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-4);
}

.docs-breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
}

.docs-breadcrumbs a:hover {
    text-decoration: underline;
}

.docs-breadcrumbs .separator {
    margin: 0 var(--spacing-2);
}

.docs-breadcrumbs .current {
    color: var(--color-text-secondary);
}

.docs-header--custom-guide .docs-breadcrumbs .current {
    color: #fff4ec;
}

.docs-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-4);
    color: var(--color-text);
}

.docs-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-8);
    padding-bottom: var(--spacing-6);
    border-bottom: 1px solid var(--color-border);
}

.docs-date {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

/* Documentation Body Formatting */
.docs-body {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.docs-body h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--color-text);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-body h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--color-text);
}

.docs-body p {
    margin-bottom: 1.5rem;
}

.docs-body ul, .docs-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.docs-body li {
    margin-bottom: 0.5rem;
}

/* Code Blocks styling */
.docs-body pre {
    background: #0d0d0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    position: relative;
}

.docs-body pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: #e2e8f0;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.docs-copy-button {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 95, 31, 0.2);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(34, 20, 14, 0.96) 0%, rgba(15, 12, 11, 0.96) 100%);
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 173, 122, 0.08);
}

.docs-copy-button::before {
    content: '⧉';
    font-size: 1rem;
    line-height: 1;
    color: var(--color-primary);
}

.docs-copy-button:hover {
    background:
        linear-gradient(180deg, rgba(57, 29, 17, 0.98) 0%, rgba(24, 15, 11, 0.98) 100%);
    border-color: rgba(255, 95, 31, 0.38);
    transform: translateY(-1px);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.26),
        0 0 0 1px rgba(255, 95, 31, 0.08),
        0 0 24px rgba(255, 95, 31, 0.14);
}

.docs-copy-button:focus-visible {
    outline: none;
    border-color: rgba(255, 149, 92, 0.55);
    box-shadow:
        0 0 0 3px rgba(255, 95, 31, 0.14),
        0 12px 28px rgba(0, 0, 0, 0.24);
}

.docs-copy-button.is-copied {
    background:
        linear-gradient(180deg, rgba(24, 58, 35, 0.95) 0%, rgba(13, 34, 21, 0.95) 100%);
    border-color: rgba(82, 196, 110, 0.4);
}

.docs-copy-button.is-copied::before {
    content: '✓';
    color: #8df0a3;
}

.docs-copy-button.is-error::before {
    content: '!';
    color: #ff9a9a;
}

.docs-body code {
    background: rgba(255, 95, 31, 0.1);
    color: var(--color-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.docs-body blockquote {
    border-left: 4px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    margin: 0 0 1.5rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

/* Navigation Footer */
.docs-footer {
    margin-top: var(--spacing-12);
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--color-border);
}

.docs-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-6);
}

.docs-nav-btn {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-4) var(--spacing-6);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.docs-nav-btn:hover {
    background: rgba(255, 95, 31, 0.05);
    border-color: rgba(255, 95, 31, 0.3);
    transform: translateY(-2px);
}

.docs-nav-btn.next {
    text-align: right;
    align-items: flex-end;
}

.docs-nav-btn .nav-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-nav-btn .nav-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: var(--spacing-8);
    }
}

@media (max-width: 768px) {
    .docs-content {
        padding: var(--spacing-6);
    }
    
    .docs-navigation {
        grid-template-columns: 1fr;
    }
    
    .docs-nav-btn.next {
        text-align: left;
        align-items: flex-start;
    }

    .site-header--docs .header-socials,
    .site-header--videos .header-socials {
        display: none;
    }

    .site-header--docs .site-header__inner,
    .site-header--videos .site-header__inner {
        justify-content: space-between;
    }

    .header-quick-link {
        padding: 0.7rem 1rem;
    }
}

/* Light mode adjustments */
html[data-theme="light"] .docs-search-form,
html[data-theme="light"] .docs-card,
html[data-theme="light"] .docs-sidebar,
html[data-theme="light"] .docs-content {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .docs-body pre {
    background: #f8f9fa;
    border-color: rgba(0,0,0,0.1);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

html[data-theme="light"] .docs-body pre code {
    color: #333;
}

html[data-theme="light"] .docs-copy-button {
    background:
        linear-gradient(180deg, rgba(255, 251, 247, 0.98) 0%, rgba(255, 241, 232, 0.98) 100%);
    border-color: rgba(255, 95, 31, 0.18);
    box-shadow:
        0 10px 22px rgba(124, 61, 20, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .docs-copy-button:hover {
    background:
        linear-gradient(180deg, rgba(255, 247, 240, 1) 0%, rgba(255, 232, 219, 1) 100%);
    border-color: rgba(255, 95, 31, 0.3);
    box-shadow:
        0 14px 28px rgba(124, 61, 20, 0.12),
        0 0 22px rgba(255, 95, 31, 0.08);
}

html[data-theme="light"] .docs-copy-button.is-copied {
    background: linear-gradient(180deg, rgba(237, 255, 241, 1) 0%, rgba(221, 248, 229, 1) 100%);
    border-color: rgba(46, 160, 67, 0.28);
}

html[data-theme="light"] .site-header--docs {
    max-width: 1120px !important;
}

html[data-theme="light"] .site-header--docs .site-header__inner {
    gap: var(--spacing-5);
}

html[data-theme="light"] .site-header--docs .header-quick-link {
    background: linear-gradient(180deg, rgba(255, 110, 35, 0.1) 0%, rgba(255, 110, 35, 0.06) 100%);
    border-color: rgba(255, 110, 35, 0.2);
    color: #7a3310;
}

html[data-theme="light"] .site-header--docs .header-quick-link:hover {
    color: #5d2408;
    box-shadow: 0 12px 26px rgba(255, 110, 35, 0.12);
}

.site-header,
.site-header--compact,
.site-header--docs,
.site-header--videos,
.site-header--blog,
html[data-theme="light"] .site-header--docs {
    max-width: 1040px !important;
}

.site-header .site-header__inner,
.site-header--docs .site-header__inner,
.site-header--videos .site-header__inner,
.site-header--blog .site-header__inner,
html[data-theme="light"] .site-header--docs .site-header__inner {
    gap: 0.8rem !important;
}

html[data-theme="light"] .docs-content--custom-guide {
    background: linear-gradient(180deg, #fffaf6 0%, #fff2e8 100%);
    border-color: rgba(255, 95, 31, 0.16);
    box-shadow: 0 24px 80px rgba(112, 62, 24, 0.12);
    padding: 0;
    overflow: hidden;
}

html[data-theme="light"] .docs-header--custom-guide {
    padding: var(--spacing-6) var(--spacing-8) 0;
}

html[data-theme="light"] .docs-body--custom-guide {
    padding: 0;
}

html[data-theme="light"] .docs-content--custom-guide .docs-footer {
    padding: var(--spacing-8);
    margin-top: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 245, 238, 0.88) 100%);
}

html[data-theme="light"] .docs-content--custom-guide .docs-nav-btn {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 95, 31, 0.14);
}

/* ==========================================================================
   Docs Single Page Refresh
   ========================================================================== */

.docs-layout {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
}

.docs-sidebar-stack {
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: start;
}

.docs-sidebar {
    position: relative;
    top: 0;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 54, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(20, 17, 16, 0.94) 0%, rgba(12, 10, 10, 0.92) 100%);
    border: 1px solid rgba(255, 153, 102, 0.12);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    max-height: none;
    overflow: visible;
}

.docs-sidebar-intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-sidebar-kicker,
.docs-sidebar-group__kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 160, 116, 0.18);
    background: rgba(255, 122, 54, 0.08);
    color: #ffb089;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-sidebar-title {
    margin: 0;
    font-size: clamp(1.35rem, 1.8vw, 1.75rem);
    line-height: 1.1;
    color: #fff5ee;
}

.docs-sidebar-text {
    margin: 0;
    color: rgba(245, 231, 220, 0.72);
    font-size: 0.95rem;
    line-height: 1.6;
}

.docs-sidebar-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff3ea;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.docs-sidebar-back:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 160, 116, 0.22);
}

.docs-sidebar-current {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 116, 42, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 159, 115, 0.14);
}

.docs-sidebar-current__label {
    display: block;
    margin-bottom: 10px;
    color: #ffb089;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-sidebar-current__title {
    display: block;
    color: #fff8f3;
    font-size: 1rem;
    line-height: 1.45;
}

.docs-sidebar-current__meta {
    display: block;
    margin-top: 8px;
    color: rgba(245, 231, 220, 0.68);
    font-size: 0.87rem;
}

.docs-sidebar-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.docs-sidebar-group {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-sidebar-group.is-current {
    border-color: rgba(255, 160, 116, 0.18);
    background: linear-gradient(180deg, rgba(255, 116, 42, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
}

.docs-sidebar-group__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.docs-sidebar-group__copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-sidebar-group__copy h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff6f0;
}

.docs-sidebar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 246, 240, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
}

.docs-sidebar-desc {
    margin: 0 0 14px;
    color: rgba(245, 231, 220, 0.64);
    font-size: 0.88rem;
    line-height: 1.55;
}

.docs-nav-list--structured {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-nav-list--structured li {
    margin: 0;
}

.docs-nav-list--structured a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid transparent;
    border-left: none;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(245, 231, 220, 0.76);
}

.docs-nav-list--structured a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 160, 116, 0.14);
    color: #fff6ef;
}

.docs-nav-list--structured a.active {
    background: linear-gradient(180deg, rgba(255, 116, 42, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 160, 116, 0.22);
    color: #fff7f1;
}

.docs-nav-list__title {
    display: block;
    font-size: 0.92rem;
    line-height: 1.45;
}

.docs-nav-list__meta {
    flex-shrink: 0;
    color: #ffb089;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.docs-sidebar-guide-nav {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 35;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 130, 70, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(29, 24, 23, 0.94) 0%, rgba(18, 15, 15, 0.96) 100%);
    border: 1px solid rgba(255, 162, 116, 0.12);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transform: translateY(-50%) translateX(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.24s ease, visibility 0.2s ease;
}

.docs-sidebar-guide-nav.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.docs-sidebar-guide-nav .docs-slides-bar__intro {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.docs-sidebar-guide-nav .docs-slides-bar__label {
    color: #ffb089;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-sidebar-guide-nav .docs-slides-bar__title {
    color: #fff7f1;
    font-size: 0.98rem;
    line-height: 1.25;
}

.docs-sidebar-guide-nav .docs-slides-bar__track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(48vh, 32rem);
    overflow-y: auto;
    padding-right: 4px;
}

.docs-sidebar-guide-nav .docs-slides-bar__item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.docs-sidebar-guide-nav .docs-slides-bar__item:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 170, 128, 0.22);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.docs-sidebar-guide-nav .docs-slides-bar__item.is-active {
    border-color: rgba(255, 170, 128, 0.28);
    background: linear-gradient(180deg, rgba(255, 126, 63, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.docs-sidebar-guide-nav .docs-slides-bar__item-label {
    color: #ffb089;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.docs-sidebar-guide-nav .docs-slides-bar__item-title {
    color: #fff4ec;
    font-size: 0.85rem;
    line-height: 1.42;
}

.docs-content {
    padding: clamp(28px, 4vw, 40px);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(255, 130, 70, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(21, 18, 18, 0.95) 0%, rgba(12, 11, 11, 0.95) 100%);
    border: 1px solid rgba(255, 153, 102, 0.1);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

.docs-header--custom-guide {
    padding: 32px 40px 0;
}

.docs-content--custom-guide {
    padding: 0;
    overflow: hidden;
}

.docs-content--custom-guide .docs-footer {
    margin-top: 0;
    padding: 32px 40px 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(16, 14, 14, 0.65) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-body--custom-guide .custom-guide-content {
    --text-primary: #f8f2ec;
    --text-secondary: rgba(242, 227, 216, 0.76);
    --text-dim: rgba(210, 183, 167, 0.58);
    --border-subtle: rgba(255, 150, 102, 0.1);
    --border-active: rgba(255, 150, 102, 0.22);
    --bg-card: rgba(23, 19, 18, 0.78);
    --bg-card-hover: rgba(29, 24, 23, 0.88);
    background:
        radial-gradient(circle at top, rgba(255, 120, 48, 0.1), transparent 30%),
        linear-gradient(180deg, #0f0d0d 0%, #151110 100%);
}

.docs-body--custom-guide .custom-guide-content .section {
    max-width: 1020px;
    padding: 72px 40px;
}

.docs-body--custom-guide .custom-guide-content .divider {
    max-width: calc(100% - 80px);
    background: linear-gradient(90deg, transparent, rgba(255, 156, 107, 0.2), transparent);
}

.docs-body--custom-guide .custom-guide-content .hero-sub {
    max-width: 760px;
    color: rgba(242, 227, 216, 0.74);
}

.docs-body--custom-guide .custom-guide-content .hero-meta span {
    color: rgba(214, 191, 178, 0.72);
}

.docs-body--custom-guide .custom-guide-content .analogy-box,
.docs-body--custom-guide .custom-guide-content .compare-card,
.docs-body--custom-guide .custom-guide-content .skill-card,
.docs-body--custom-guide .custom-guide-content .step,
.docs-body--custom-guide .custom-guide-content .level-card,
.docs-body--custom-guide .custom-guide-content .summary-row,
.docs-body--custom-guide .custom-guide-content .resource,
.docs-body--custom-guide .custom-guide-content .prompt-box,
.docs-body--custom-guide .custom-guide-content .file-tree {
    border-radius: 24px;
    border: 1px solid rgba(255, 153, 102, 0.1);
    background:
        linear-gradient(180deg, rgba(27, 23, 22, 0.94) 0%, rgba(19, 17, 16, 0.94) 100%);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.docs-body--custom-guide .custom-guide-content .analogy-box,
.docs-body--custom-guide .custom-guide-content .skill-card,
.docs-body--custom-guide .custom-guide-content .prompt-box {
    padding: 28px 30px;
}

.docs-body--custom-guide .custom-guide-content .analogy-box,
.docs-body--custom-guide .custom-guide-content .prompt-box {
    background:
        linear-gradient(180deg, rgba(43, 27, 20, 0.9) 0%, rgba(24, 19, 17, 0.94) 100%);
}

.docs-body--custom-guide .custom-guide-content .skill-card {
    margin: 2.75rem 0;
}

.docs-body--custom-guide .custom-guide-content .code-block {
    margin: 1.4rem 0 1.8rem;
    border-color: rgba(255, 153, 102, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    padding-right: 3.75rem;
}

.docs-body--custom-guide .custom-guide-content .code-block .docs-copy-button {
    top: 0.55rem;
    right: 0.55rem;
    width: 34px;
    height: 34px;
}

.docs-body--custom-guide .custom-guide-content .code-block pre,
.docs-body--custom-guide .custom-guide-content .prompt-box pre {
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Кастом-гайд: не даём светлой теме .docs-body pre «вымыть» фон плашек кода */
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .code-block pre,
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .prompt-box pre {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.42);
}

html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .code-block pre code,
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .prompt-box pre code {
    color: inherit;
}

.docs-body--custom-guide .custom-guide-content .analogy-box {
    border-left: 1px solid rgba(255, 153, 102, 0.1);
}

.docs-body--custom-guide .custom-guide-content .analogy-box::before {
    content: none;
}

.docs-body--custom-guide .custom-guide-content .compare-grid,
.docs-body--custom-guide .custom-guide-content .resources,
.docs-body--custom-guide .custom-guide-content .level-cards {
    gap: 18px;
}

.docs-body--custom-guide .custom-guide-content .comparison-table {
    border-radius: 24px;
    border-color: rgba(255, 153, 102, 0.12);
    overflow: hidden;
}

.docs-body--custom-guide .custom-guide-content .comparison-table th {
    background: rgba(255, 120, 48, 0.12);
}

.docs-body--custom-guide .custom-guide-content .comparison-table td {
    background: rgba(21, 18, 17, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.docs-body--custom-guide .custom-guide-content .skill-card::before {
    height: 2px;
    opacity: 0.7;
}

.docs-body--custom-guide .custom-guide-content .skill-number {
    font-size: 3.2rem;
    color: rgba(255, 132, 58, 0.08);
}

.docs-body--custom-guide .custom-guide-content .summary-row {
    grid-template-columns: 32px minmax(140px, 1fr) 1.5fr auto;
}

.docs-body--custom-guide .custom-guide-content .check-item {
    padding: 14px 0;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.docs-body--custom-guide .custom-guide-content .footer {
    padding: 56px 32px 40px;
}

/* Скриншоты внутри гайдов (Notion, браузер) */
.custom-guide-content .guide-screenshot {
    margin: 1.75rem 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(232, 89, 12, 0.18);
    background: linear-gradient(145deg, rgba(26, 22, 20, 0.95), rgba(19, 17, 16, 0.98));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 18px 40px rgba(0, 0, 0, 0.35);
}

.custom-guide-content .guide-screenshot__inner {
    position: relative;
    line-height: 0;
    max-width: 100%;
}

.custom-guide-content .guide-screenshot__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 640px);
    object-fit: contain;
    object-position: center top;
}

.custom-guide-content .guide-screenshot__caption {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary, #a89b8c);
    padding: 0.85rem 1.1rem 1rem;
    line-height: 1.45;
    border-top: 1px solid rgba(107, 94, 82, 0.12);
}

.custom-guide-content .guide-screenshot__caption strong {
    color: var(--text-primary, #f5f0eb);
}

@media (max-width: 640px) {
    .custom-guide-content .guide-screenshot__img {
        max-height: none;
    }
}

html[data-theme="light"] .docs-sidebar {
    background:
        radial-gradient(circle at top left, rgba(255, 134, 71, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 251, 247, 0.98) 0%, rgba(255, 244, 236, 0.98) 100%);
    border-color: rgba(255, 126, 63, 0.12);
    box-shadow: 0 22px 60px rgba(126, 76, 36, 0.12);
}

html[data-theme="light"] .docs-sidebar-title,
html[data-theme="light"] .docs-sidebar-group__copy h3,
html[data-theme="light"] .docs-sidebar-current__title {
    color: #251711;
}

html[data-theme="light"] .docs-sidebar-kicker,
html[data-theme="light"] .docs-sidebar-group__kicker,
html[data-theme="light"] .docs-nav-list__meta,
html[data-theme="light"] .docs-sidebar-current__label {
    color: #b74a15;
    border-color: rgba(201, 84, 24, 0.14);
}

html[data-theme="light"] .docs-sidebar-text,
html[data-theme="light"] .docs-sidebar-desc,
html[data-theme="light"] .docs-sidebar-current__meta {
    color: rgba(78, 49, 34, 0.82);
}

html[data-theme="light"] .docs-sidebar-guide-nav {
    background:
        radial-gradient(circle at top left, rgba(255, 145, 74, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(255, 251, 245, 0.96) 0%, rgba(255, 241, 227, 0.98) 100%);
    border-color: rgba(255, 136, 66, 0.12);
    box-shadow: 0 16px 34px rgba(126, 76, 36, 0.08);
}

html[data-theme="light"] .docs-sidebar-guide-nav .docs-slides-bar__intro {
    border-bottom-color: rgba(255, 136, 66, 0.1);
}

html[data-theme="light"] .docs-sidebar-guide-nav .docs-slides-bar__label,
html[data-theme="light"] .docs-sidebar-guide-nav .docs-slides-bar__item-label {
    color: #c24d17;
}

html[data-theme="light"] .docs-sidebar-guide-nav .docs-slides-bar__title,
html[data-theme="light"] .docs-sidebar-guide-nav .docs-slides-bar__item-title {
    color: #2b170f;
}

html[data-theme="light"] .docs-sidebar-guide-nav .docs-slides-bar__item {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 136, 66, 0.1);
}

html[data-theme="light"] .docs-sidebar-guide-nav .docs-slides-bar__item:hover,
html[data-theme="light"] .docs-sidebar-guide-nav .docs-slides-bar__item.is-active {
    border-color: rgba(255, 136, 66, 0.18);
    background: linear-gradient(180deg, rgba(255, 245, 238, 1) 0%, rgba(255, 235, 218, 0.98) 100%);
}

html[data-theme="light"] .docs-sidebar-back,
html[data-theme="light"] .docs-sidebar-group,
html[data-theme="light"] .docs-sidebar-count,
html[data-theme="light"] .docs-nav-list--structured a {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 126, 63, 0.1);
    color: #4e3122;
}

html[data-theme="light"] .docs-nav-list--structured a:hover,
html[data-theme="light"] .docs-nav-list--structured a.active {
    background: linear-gradient(180deg, rgba(255, 247, 242, 1) 0%, rgba(255, 239, 228, 0.96) 100%);
    border-color: rgba(255, 126, 63, 0.16);
    color: #24140e;
}

html[data-theme="light"] .docs-content {
    background:
        radial-gradient(circle at top right, rgba(255, 130, 70, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 251, 246, 0.98) 0%, rgba(255, 243, 234, 0.98) 100%);
    border-color: rgba(255, 126, 63, 0.12);
    box-shadow: 0 24px 70px rgba(126, 76, 36, 0.12);
}

html[data-theme="light"] .docs-body--custom-guide .custom-guide-content {
    --text-primary: #251711;
    --text-secondary: rgba(71, 43, 29, 0.78);
    --text-dim: rgba(113, 77, 57, 0.58);
    background:
        radial-gradient(circle at top, rgba(255, 130, 70, 0.12), transparent 30%),
        linear-gradient(180deg, #fff9f5 0%, #fff1e8 100%);
}

html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .analogy-box,
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .compare-card,
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .skill-card,
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .step,
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .level-card,
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .summary-row,
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .resource,
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .prompt-box,
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .file-tree,
html[data-theme="light"] .docs-body--custom-guide .custom-guide-content .comparison-table td {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 246, 239, 0.96) 100%);
    border-color: rgba(255, 126, 63, 0.1);
    box-shadow: 0 14px 34px rgba(126, 76, 36, 0.08);
}

/* Guides stay dark in light mode */
html[data-theme="light"] .docs-single-page .docs-sidebar,
html[data-theme="light"] .docs-single-page .docs-sidebar-guide-nav,
html[data-theme="light"] .docs-single-page .docs-content--custom-guide {
    color-scheme: dark;
}

html[data-theme="light"] .docs-single-page .docs-sidebar {
    background:
        radial-gradient(circle at top left, rgba(255, 122, 54, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(20, 17, 16, 0.94) 0%, rgba(12, 10, 10, 0.92) 100%);
    border-color: rgba(255, 153, 102, 0.12);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .docs-single-page .docs-sidebar-guide-nav {
    background:
        radial-gradient(circle at top left, rgba(255, 130, 70, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(29, 24, 23, 0.94) 0%, rgba(18, 15, 15, 0.96) 100%);
    border-color: rgba(255, 162, 116, 0.12);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .docs-single-page .docs-content--custom-guide {
    background:
        radial-gradient(circle at top right, rgba(255, 130, 70, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(21, 18, 18, 0.95) 0%, rgba(12, 11, 11, 0.95) 100%);
    border-color: rgba(255, 153, 102, 0.1);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .docs-single-page .docs-content--custom-guide .docs-footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(16, 14, 14, 0.65) 100%);
}

html[data-theme="light"] .docs-single-page .docs-content--custom-guide .docs-nav-btn {
    background: rgba(24, 24, 27, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff4ec;
}

html[data-theme="light"] .docs-single-page .docs-sidebar-title,
html[data-theme="light"] .docs-single-page .docs-sidebar-group__copy h3,
html[data-theme="light"] .docs-single-page .docs-sidebar-guide-nav .docs-slides-bar__title,
html[data-theme="light"] .docs-single-page .docs-sidebar-guide-nav .docs-slides-bar__item-title {
    color: #fff7f1;
}

html[data-theme="light"] .docs-single-page .docs-sidebar-text,
html[data-theme="light"] .docs-single-page .docs-sidebar-desc,
html[data-theme="light"] .docs-single-page .docs-sidebar-current__meta {
    color: rgba(245, 231, 220, 0.72);
}

html[data-theme="light"] .docs-single-page .docs-sidebar-back,
html[data-theme="light"] .docs-single-page .docs-sidebar-group,
html[data-theme="light"] .docs-single-page .docs-sidebar-count,
html[data-theme="light"] .docs-single-page .docs-nav-list--structured a,
html[data-theme="light"] .docs-single-page .docs-sidebar-guide-nav .docs-slides-bar__item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(245, 231, 220, 0.76);
}

html[data-theme="light"] .docs-single-page .docs-nav-list--structured a:hover,
html[data-theme="light"] .docs-single-page .docs-nav-list--structured a.active,
html[data-theme="light"] .docs-single-page .docs-sidebar-guide-nav .docs-slides-bar__item:hover,
html[data-theme="light"] .docs-single-page .docs-sidebar-guide-nav .docs-slides-bar__item.is-active {
    background: linear-gradient(180deg, rgba(255, 116, 42, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 170, 128, 0.22);
    color: #fff7f1;
}

html[data-theme="light"] .docs-single-page .docs-nav-list__meta,
html[data-theme="light"] .docs-single-page .docs-sidebar-guide-nav .docs-slides-bar__label,
html[data-theme="light"] .docs-single-page .docs-sidebar-guide-nav .docs-slides-bar__item-label {
    color: #ffb089;
}

html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content {
    --text-primary: #f8f2ec;
    --text-secondary: rgba(242, 227, 216, 0.76);
    --text-dim: rgba(210, 183, 167, 0.58);
    --border-subtle: rgba(255, 150, 102, 0.1);
    --border-active: rgba(255, 150, 102, 0.22);
    --bg-card: rgba(23, 19, 18, 0.78);
    --bg-card-hover: rgba(29, 24, 23, 0.88);
    background:
        radial-gradient(circle at top, rgba(255, 120, 48, 0.1), transparent 30%),
        linear-gradient(180deg, #0f0d0d 0%, #151110 100%);
}

html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .hero-meta a,
html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .footer .channel a {
    color: #ffd3bb;
    opacity: 1;
}

html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .hero-meta a:hover,
html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .footer .channel a:hover {
    color: #fff1e6;
    opacity: 1;
}

html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .hero-meta span {
    color: rgba(226, 204, 191, 0.86);
}

html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .hero-meta span em {
    color: #ffe1cc;
}

html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .section {
    background:
        radial-gradient(circle at top right, rgba(255, 130, 70, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(22, 18, 18, 0.96) 0%, rgba(17, 14, 14, 0.96) 100%);
    border-color: rgba(255, 153, 102, 0.08);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .analogy-box,
html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .compare-card,
html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .skill-card,
html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .step,
html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .level-card,
html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .summary-row,
html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .resource,
html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .prompt-box,
html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .file-tree,
html[data-theme="light"] .docs-single-page .docs-body--custom-guide .custom-guide-content .comparison-table td {
    background: linear-gradient(180deg, rgba(27, 23, 22, 0.94) 0%, rgba(19, 17, 16, 0.94) 100%);
    border-color: rgba(255, 153, 102, 0.1);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* =====================================================
   Гайды всегда в тёмной палитре: принудительный белый
   текст для всех заголовков внутри .custom-guide-content
   — перебивает глобальное правило h1..h6 { color: var(--color-text) },
   которое в светлой теме делает текст тёмным и нечитаемым
   на чёрном фоне гайда.
   ===================================================== */
.custom-guide-content h1,
.custom-guide-content h2,
.custom-guide-content h3,
.custom-guide-content h4,
.custom-guide-content h5,
.custom-guide-content h6 {
    color: #F5F0EB !important;
    -webkit-text-fill-color: #F5F0EB !important;
    opacity: 1 !important;
}

/* Градиентная подсветка — оставляем прозрачный fill
   только на самих .highlight-спанах, не на родительских h1/h2. */
.custom-guide-content .hero h1 .highlight,
.custom-guide-content .section h2 .highlight,
.custom-guide-content .footer .channel,
.custom-guide-content .footer .channel a {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.custom-guide-content .section h2 .accent,
.custom-guide-content .section h3 .accent,
.custom-guide-content .accent-note {
    color: var(--orange-bright, #ff6b1a) !important;
}

.custom-guide-content p,
.custom-guide-content li {
    color: var(--text-secondary) !important;
}

.custom-guide-content strong,
.custom-guide-content .section p strong,
.custom-guide-content .analogy-box p,
.custom-guide-content .step-content h4,
.custom-guide-content .comparison-table td:first-child,
.custom-guide-content .comparison-table td strong,
.custom-guide-content .hero-meta span {
    color: var(--text-primary) !important;
}

.custom-guide-content .comparison-table th {
    color: var(--orange-pale, #ffb077) !important;
}

.custom-guide-content .guide-screenshot__caption strong,
.custom-guide-content .tg-link,
.custom-guide-content .hero-meta span em {
    color: var(--orange-pale, #ffb077) !important;
}

/* Кнопка возврата в базу знаний — плотная оранжевая,
   видна в любой теме сайта. */
.docs-slides-bar__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: stretch;
    margin: 0 0 6px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #ff8a3d 0%, #e8590c 100%);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow:
        0 10px 22px rgba(232, 89, 12, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.docs-slides-bar__back:hover,
.docs-slides-bar__back:focus-visible {
    background: linear-gradient(135deg, #ff9a55 0%, #ff6b1a 100%);
    border-color: rgba(255, 255, 255, 0.36);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 14px 28px rgba(232, 89, 12, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    outline: none;
}

.docs-slides-bar__back svg {
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.docs-slides-bar__back:hover svg {
    transform: translateX(-2px);
}

.docs-slides-bar__back--footer {
    margin: 14px 0 2px;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.76rem;
}

/* Ещё раз дублируем для light-темы — на всякий случай
   (на случай более специфичных селекторов из других блоков). */
html[data-theme="light"] .docs-slides-bar__back,
html[data-theme="light"] .docs-single-page .docs-slides-bar__back {
    background: linear-gradient(135deg, #ff8a3d 0%, #e8590c 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
}

@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar-stack {
        position: relative;
        top: 0;
    }

    .docs-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        padding: 18px;
    }

    .docs-sidebar-intro {
        gap: 10px;
        padding-bottom: 16px;
        margin-bottom: 14px;
    }

    .docs-sidebar-text {
        font-size: 0.88rem;
    }

    .docs-sidebar-current {
        display: none;
    }

    .docs-sidebar-groups {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .docs-sidebar-guide-nav {
        display: none !important;
    }

    .docs-sidebar-guide-nav .docs-slides-bar__track {
        max-height: none;
    }

    .docs-sidebar-group {
        padding: 16px;
    }

    .docs-sidebar-desc {
        display: none;
    }
}

@media (max-width: 768px) {
    .docs-sidebar-groups {
        grid-template-columns: 1fr;
    }

    .docs-sidebar,
    .docs-content {
        border-radius: 24px;
    }

    .docs-sidebar-intro,
    .docs-sidebar-current,
    .docs-sidebar-group {
        padding-left: 18px;
        padding-right: 18px;
    }

    .docs-sidebar-guide-nav {
        padding: 18px;
    }

    .docs-header--custom-guide {
        padding: 24px 22px 0;
    }

    .docs-content--custom-guide .docs-footer {
        padding: 24px 22px 28px;
    }

    .docs-body--custom-guide .custom-guide-content .section {
        padding: 54px 22px;
    }

    .docs-body--custom-guide .custom-guide-content .divider {
        max-width: calc(100% - 44px);
    }

    .docs-body--custom-guide .custom-guide-content .summary-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* ==========================================================================
   Docs Archive V2 Redesign
   ========================================================================== */

.docs-archive-redesign {
    padding-bottom: 120px;
    background: var(--bg-color);
}

/* Hero Section */
.docs-hero-v2 {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .docs-hero-v2 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.docs-hero-v2__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.docs-hero-v2__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: docs-float 20s ease-in-out infinite alternate;
}

.docs-hero-v2__glow--1 {
    top: -200px;
    left: -100px;
    background: #ff9a6b;
}

.docs-hero-v2__glow--2 {
    bottom: -200px;
    right: -100px;
    background: #c2410c;
    animation-delay: -10s;
}

.docs-hero-v2__grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    animation: docsHeroGridDrift 9s linear infinite;
    will-change: background-position;
}

.docs-hero-3d {
    position: absolute;
    inset: -7rem -6rem -4rem;
    perspective: 900px;
    transform-style: preserve-3d;
    opacity: 0.74;
}

.docs-hero-3d::before {
    content: "";
    position: absolute;
    inset: 10% 8% 6%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 122, 69, 0.18), transparent 32%),
        conic-gradient(from 120deg, transparent 0deg, rgba(255, 122, 69, 0.22) 62deg, transparent 126deg, rgba(194, 65, 12, 0.16) 220deg, transparent 300deg);
    filter: blur(1px);
    transform: rotateX(64deg) rotateZ(-12deg) translateZ(-6rem);
    animation: docsHero3dPlane 10s linear infinite;
    will-change: transform;
}

.docs-hero-3d__ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(255, 122, 69, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 36px rgba(255, 122, 69, 0.08), inset 0 0 36px rgba(255, 122, 69, 0.06);
    transform-style: preserve-3d;
    will-change: transform;
}

.docs-hero-3d__ring--outer {
    width: min(72vw, 58rem);
    height: min(72vw, 58rem);
    transform: translate(-50%, -42%) rotateX(68deg) rotateZ(8deg);
    animation: docsHero3dOrbit 11s linear infinite;
}

.docs-hero-3d__ring--inner {
    width: min(48vw, 38rem);
    height: min(48vw, 38rem);
    border-style: dashed;
    border-color: rgba(255, 154, 107, 0.22);
    transform: translate(-50%, -42%) rotateX(68deg) rotateZ(-18deg);
    animation: docsHero3dOrbitReverse 8s linear infinite;
}

.docs-hero-3d__orb {
    position: absolute;
    width: clamp(8rem, 16vw, 15rem);
    height: clamp(8rem, 16vw, 15rem);
    border-radius: 32% 68% 54% 46% / 45% 38% 62% 55%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.72), transparent 0.8rem),
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.36), transparent 18%),
        linear-gradient(135deg, rgba(255, 154, 107, 0.46), rgba(194, 65, 12, 0.08));
    box-shadow: 0 1.5rem 5rem rgba(194, 65, 12, 0.22), inset 0 -1.5rem 3rem rgba(80, 30, 14, 0.16);
    filter: saturate(1.12);
    transform-style: preserve-3d;
    will-change: transform;
}

.docs-hero-3d__orb--one {
    left: 8%;
    top: 18%;
    animation: docsHero3dFloatOne 6.5s ease-in-out infinite alternate;
}

.docs-hero-3d__orb--two {
    right: 8%;
    bottom: 12%;
    width: clamp(7rem, 13vw, 12rem);
    height: clamp(7rem, 13vw, 12rem);
    opacity: 0.82;
    animation: docsHero3dFloatTwo 7.4s ease-in-out infinite alternate;
}

.docs-hero-3d__card {
    position: absolute;
    display: grid;
    gap: 0.55rem;
    width: 8.5rem;
    padding: 0.85rem;
    border-radius: 1.1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 1rem 3rem rgba(80, 30, 14, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(96, 39, 18, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform-style: preserve-3d;
    will-change: transform;
}

.docs-hero-3d__card i {
    display: block;
    height: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 122, 69, 0.95), rgba(255, 184, 134, 0.18));
}

.docs-hero-3d__card--cursor {
    left: 14%;
    bottom: 22%;
    transform: rotateX(54deg) rotateZ(-13deg) translateZ(4rem);
    animation: docsHero3dCardOne 5.8s ease-in-out infinite alternate;
}

.docs-hero-3d__card--api {
    right: 15%;
    top: 24%;
    transform: rotateX(58deg) rotateZ(14deg) translateZ(5rem);
    animation: docsHero3dCardTwo 6.4s ease-in-out infinite alternate;
}

.docs-hero-3d__card--make {
    right: 25%;
    bottom: 18%;
    transform: rotateX(60deg) rotateZ(-8deg) translateZ(3rem);
    animation: docsHero3dCardThree 7s ease-in-out infinite alternate;
}

.docs-hero-3d__particle {
    position: absolute;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #ff8a4d;
    box-shadow: 0 0 1.8rem rgba(255, 122, 69, 0.72);
    will-change: transform, opacity;
}

.docs-hero-3d__particle--one {
    left: 25%;
    top: 20%;
    animation: docsHero3dParticle 3.2s ease-in-out infinite alternate;
}

.docs-hero-3d__particle--two {
    right: 28%;
    top: 15%;
    animation: docsHero3dParticle 3.8s ease-in-out infinite alternate-reverse;
}

.docs-hero-3d__particle--three {
    left: 54%;
    bottom: 18%;
    animation: docsHero3dParticle 4.2s ease-in-out infinite alternate;
}

.docs-hero-3d__spark,
.docs-hero-3d__beam {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.docs-hero-3d__spark {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: #ff7a45;
    box-shadow: 0 0 1.4rem rgba(255, 122, 69, 0.95), 0 0 3rem rgba(255, 154, 107, 0.38);
    opacity: 0;
}

.docs-hero-3d__beam {
    width: clamp(5rem, 12vw, 10rem);
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 122, 69, 0.78), transparent);
    box-shadow: 0 0 1.2rem rgba(255, 122, 69, 0.32);
    opacity: 0;
}

.docs-hero-v2--gsap .docs-hero-v2__grid,
.docs-hero-v2--gsap .docs-hero-3d::before,
.docs-hero-v2--gsap .docs-hero-3d__ring,
.docs-hero-v2--gsap .docs-hero-3d__orb,
.docs-hero-v2--gsap .docs-hero-3d__card,
.docs-hero-v2--gsap .docs-hero-3d__particle {
    animation: none !important;
}

.docs-hero-v2--gsap .docs-hero-3d {
    transform-origin: 50% 45%;
    will-change: transform, opacity;
}

html[data-theme="light"] .docs-hero-v2__grid {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.docs-hero-v2__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.docs-hero-v2__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 154, 107, 0.1);
    border: 1px solid rgba(255, 154, 107, 0.2);
    border-radius: 100px;
    color: #ff9a6b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #ff9a6b;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff9a6b;
}

.docs-hero-v2__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #fafafa;
    background: linear-gradient(135deg, #ffffff 0%, #ff9a6b 55%, #c2410c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .docs-hero-v2__title {
    color: #18181b;
    background: linear-gradient(135deg, #18181b 0%, #c2410c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-hero-v2__subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.docs-hero-v2__search {
    width: 100%;
    max-width: 560px;
}

.docs-search-form-v2 {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px 16px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .docs-search-form-v2 {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.docs-search-form-v2:focus-within {
    border-color: rgba(255, 154, 107, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 154, 107, 0.1), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.docs-search-form-v2 .search-icon {
    color: var(--text-muted);
    margin-right: 12px;
}

.docs-search-field-v2 {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    padding: 8px 0;
    outline: none;
}

.docs-search-field-v2::placeholder {
    color: var(--text-muted);
}

.docs-search-shortcut {
    display: flex;
    gap: 4px;
}

.docs-search-shortcut kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

html[data-theme="light"] .docs-search-shortcut kbd {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Bento Grid */
.docs-bento-section {
    margin-top: -40px;
    position: relative;
    z-index: 20;
    margin-bottom: 80px;
}

.docs-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px;
    gap: 24px;
}

.docs-bento-card {
    position: relative;
    border-radius: 24px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

html[data-theme="light"] .docs-bento-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.docs-bento-card--large {
    grid-column: span 2;
}

.docs-bento-card__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 154, 107, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.docs-bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 154, 107, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .docs-bento-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.docs-bento-card:hover .docs-bento-card__bg {
    opacity: 1;
}

.docs-bento-card__content {
    position: relative;
    z-index: 1;
}

.docs-bento-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9a6b;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .docs-bento-card__icon {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.docs-bento-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #ffffff 0%, #ff9a6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

html[data-theme="light"] .docs-bento-card h3 {
    background: linear-gradient(135deg, #18181b 0%, #c2410c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-bento-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* List Section */
.docs-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .docs-list-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.docs-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    letter-spacing: -0.02em;
}

.docs-list-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.docs-list-meta .divider {
    opacity: 0.5;
}

.docs-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    align-items: stretch;
}

.docs-card-v2 {
    position: relative;
    border-radius: 16px;
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

html[data-theme="light"] .docs-card-v2 {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.docs-card-v2__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 154, 107, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    pointer-events: none;
}

.docs-card-v2:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 154, 107, 0.35);
    background: rgba(24, 24, 27, 0.75);
}

html[data-theme="light"] .docs-card-v2:hover {
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.docs-card-v2:hover .docs-card-v2__glow {
    opacity: 1;
}

.docs-card-v2__inner {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    position: relative;
    z-index: 1;
}

.docs-card-v2__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 148px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

html[data-theme="light"] .docs-card-v2__cover {
    background: rgba(0, 0, 0, 0.04);
}

.docs-card-v2__cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.docs-card-v2__placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 154, 107, 0.65);
}

html[data-theme="light"] .docs-card-v2__placeholder-icon {
    color: rgba(194, 65, 12, 0.55);
}

.docs-archive-redesign .docs-card-v2__image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    contain-intrinsic-size: unset !important;
}

.docs-card-v2__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
    min-width: 0;
}

.docs-card-v2__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
    color: #fafafa;
    background: linear-gradient(100deg, #ffffff 0%, #e4e4e7 45%, #ff9a6b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .docs-card-v2__title {
    color: #18181b;
    background: linear-gradient(100deg, #18181b 0%, #3f3f46 50%, #c2410c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-card-v2__excerpt {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.docs-card-v2__footer {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.docs-card-v2__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ff9a6b;
    transition: gap 0.2s ease;
}

.docs-card-v2:hover .docs-card-v2__link {
    gap: 10px;
}

.docs-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    background: rgba(24, 24, 27, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

html[data-theme="light"] .docs-empty-state {
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.docs-empty-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.docs-empty-state p {
    color: var(--text-muted);
    margin: 0;
}

/* Pagination */
.docs-pagination-v2 {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.docs-pagination-v2 .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-pagination-v2 .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

html[data-theme="light"] .docs-pagination-v2 .page-numbers {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.docs-pagination-v2 .page-numbers:hover:not(.current) {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .docs-pagination-v2 .page-numbers:hover:not(.current) {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.2);
}

.docs-pagination-v2 .page-numbers.current {
    background: #ff9a6b;
    border-color: #ff9a6b;
    color: #fff;
}

.docs-pagination-v2 .prev,
.docs-pagination-v2 .next {
    gap: 6px;
}

@keyframes docs-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.1); }
}

@keyframes docsHeroGridDrift {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

@keyframes docsHero3dPlane {
    from { transform: rotateX(64deg) rotateZ(-12deg) translateZ(-6rem); }
    to { transform: rotateX(64deg) rotateZ(348deg) translateZ(-6rem); }
}

@keyframes docsHero3dOrbit {
    from { transform: translate(-50%, -42%) rotateX(68deg) rotateZ(8deg); }
    to { transform: translate(-50%, -42%) rotateX(68deg) rotateZ(368deg); }
}

@keyframes docsHero3dOrbitReverse {
    from { transform: translate(-50%, -42%) rotateX(68deg) rotateZ(-18deg); }
    to { transform: translate(-50%, -42%) rotateX(68deg) rotateZ(-378deg); }
}

@keyframes docsHero3dFloatOne {
    from { transform: translate3d(0, 0, 1rem) rotateX(18deg) rotateY(-16deg) rotateZ(-8deg); }
    to { transform: translate3d(3.2rem, -2.4rem, 5rem) rotateX(30deg) rotateY(18deg) rotateZ(14deg); }
}

@keyframes docsHero3dFloatTwo {
    from { transform: translate3d(0, 0, 0) rotateX(16deg) rotateY(12deg) rotateZ(10deg); }
    to { transform: translate3d(-3rem, 2.2rem, 4.8rem) rotateX(28deg) rotateY(-18deg) rotateZ(-14deg); }
}

@keyframes docsHero3dCardOne {
    from { transform: rotateX(54deg) rotateZ(-13deg) translate3d(0, 0, 4rem); }
    to { transform: rotateX(60deg) rotateZ(4deg) translate3d(2.2rem, -1.6rem, 6rem); }
}

@keyframes docsHero3dCardTwo {
    from { transform: rotateX(58deg) rotateZ(14deg) translate3d(0, 0, 5rem); }
    to { transform: rotateX(50deg) rotateZ(-8deg) translate3d(-2rem, 1.4rem, 7rem); }
}

@keyframes docsHero3dCardThree {
    from { transform: rotateX(60deg) rotateZ(-8deg) translate3d(0, 0, 3rem); }
    to { transform: rotateX(52deg) rotateZ(-22deg) translate3d(1.8rem, 1.7rem, 5.5rem); }
}

@keyframes docsHero3dParticle {
    from { transform: translate3d(0, 0, 0) scale(0.8); opacity: 0.45; }
    50% { opacity: 0.95; }
    to { transform: translate3d(2.4rem, -2rem, 3rem) scale(1.35); opacity: 0.62; }
}

@media (prefers-reduced-motion: reduce) {
    .docs-hero-v2__grid,
    .docs-hero-3d,
    .docs-hero-3d::before,
    .docs-hero-3d__ring,
    .docs-hero-3d__orb,
    .docs-hero-3d__card,
    .docs-hero-3d__particle,
    .docs-hero-3d__spark,
    .docs-hero-3d__beam {
        animation: none !important;
    }
}

@media (max-width: 1024px) {
    .docs-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

@media (max-width: 768px) {
    .docs-hero-v2 {
        padding: 80px 0 60px;
    }
    .docs-bento-section {
        margin-top: 0;
        margin-bottom: 48px;
    }
    .docs-bento-grid {
        grid-template-columns: 1fr;
    }
    .docs-bento-card--large {
        grid-column: span 1;
    }
    .docs-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Docs Categories Layout */
.docs-sections-container {
    margin-top: -48px;
    position: relative;
    z-index: 20;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding-bottom: 48px;
}

.docs-category-section {
    background: transparent;
}

.docs-category-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .docs-category-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.docs-category-title {
    font-size: clamp(1.5rem, 4vw, 2.125rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    color: #fafafa;
    background: linear-gradient(135deg, #ffffff 0%, #ff9a6b 50%, #ea580c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

html[data-theme="light"] .docs-category-title {
    color: #18181b;
    background: linear-gradient(135deg, #18181b 0%, #c2410c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-category-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 800px;
    line-height: 1.5;
}

.docs-category-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.docs-expand-btn {
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

html[data-theme="light"] .docs-expand-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.docs-expand-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 154, 107, 0.3);
    color: #ff9a6b;
}

html[data-theme="light"] .docs-expand-btn:hover {
    background: rgba(0, 0, 0, 0.02);
}

.docs-card-hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   Docs Archive Refresh V2
   ========================================================================== */
.docs-archive-redesign {
    position: relative;
    padding-bottom: 5rem;
}

.docs-archive-hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 3rem;
}

.docs-archive-hero__inner {
    position: relative;
    z-index: 1;
}

.docs-archive-hero .section-header {
    max-width: 58rem;
    margin: 0 auto 2rem;
}

.docs-archive-hero__title {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.docs-archive-hero__accent {
    color: #ff9a6b;
    background: linear-gradient(135deg, #ffd7c2 0%, #ff9a6b 45%, #ea580c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .docs-archive-hero__accent {
    color: #c2410c;
    background: linear-gradient(135deg, #7c2d12 0%, #c2410c 55%, #fb923c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-archive-hero__subtitle {
    max-width: 46rem;
}

.docs-archive-search {
    max-width: 46rem;
    margin: 0 auto 1.5rem;
}

.docs-search-form-v2 {
    gap: 0.875rem;
    min-height: 4rem;
    padding: 0.75rem 0.875rem 0.75rem 1rem;
    border-radius: 1.25rem;
    background: rgba(16, 18, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

html[data-theme="light"] .docs-search-form-v2 {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.docs-search-field-v2 {
    min-width: 0;
    font-size: 1rem;
}

.docs-search-submit-v2 {
    border: 0;
    border-radius: 0.9rem;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, #ff7a3d 0%, #ff5f1f 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.docs-search-submit-v2:hover,
.docs-search-submit-v2:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 95, 31, 0.3);
}

.docs-archive-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.docs-archive-focus {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 62rem;
    margin: 0 auto;
}

.docs-archive-focus__card {
    padding: 1.35rem 1.4rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html[data-theme="light"] .docs-archive-focus__card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.08);
}

.docs-archive-focus__label {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: #ff9a6b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.docs-archive-focus__card p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.docs-sections-container {
    margin-top: 0;
    gap: 2rem;
}

.docs-category-section {
    position: relative;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.docs-category-section--collapsible {
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.docs-category-section--collapsible:not([open]):hover {
    border-color: rgba(255, 122, 69, 0.26);
    box-shadow: 0 24px 80px rgba(255, 122, 69, 0.08), 0 24px 80px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

html[data-theme="light"] .docs-category-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.docs-category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-category-summary {
    cursor: pointer;
    list-style: none;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.docs-category-summary::-webkit-details-marker {
    display: none;
}

.docs-category-summary:focus-visible {
    outline: 3px solid rgba(255, 122, 69, 0.45);
    outline-offset: 0.45rem;
    border-radius: 1rem;
}

.docs-category-section[open] .docs-category-summary {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .docs-category-section[open] .docs-category-summary {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .docs-category-header {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.docs-category-header__copy {
    max-width: 44rem;
}

.docs-category-kicker {
    display: inline-flex;
    margin-bottom: 0.6rem;
    color: #ff9a6b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.docs-category-title {
    margin-bottom: 0;
}

.docs-category-summary__desc {
    max-width: 42rem;
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

html[data-theme="light"] .docs-category-summary__desc {
    color: #64748b;
}

.docs-category-desc {
    max-width: 40rem;
    margin: 0 0 1rem;
}

.docs-category-panel {
    animation: docsCategoryReveal 180ms ease-out;
}

.docs-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

html[data-theme="light"] .docs-category-count {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: #334155;
}

.docs-category-summary__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.docs-category-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 122, 69, 0.12);
    border: 1px solid rgba(255, 122, 69, 0.22);
    color: #ff9a6b;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.docs-category-toggle__icon {
    transition: transform 180ms ease;
}

.docs-category-toggle__open,
.docs-category-section[open] .docs-category-toggle__closed {
    display: none !important;
}

.docs-category-section[open] .docs-category-toggle__open {
    display: inline !important;
}

.docs-category-section[open] .docs-category-toggle__icon {
    transform: rotate(180deg);
}

@keyframes docsCategoryReveal {
    from {
        opacity: 0;
        transform: translateY(-0.35rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docs-grid-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

.docs-card-v2 {
    border-radius: 1.2rem;
    background: rgba(12, 14, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .docs-card-v2 {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

.docs-card-v2__cover {
    max-height: 10.25rem;
    background: rgba(255, 255, 255, 0.04);
}

.docs-card-v2__body {
    padding: 1rem 1rem 1.1rem;
}

.docs-card-v2__title {
    font-size: 1rem;
    margin-bottom: 0.7rem;
}

.docs-card-v2__excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    -webkit-line-clamp: 4;
}

.docs-category-actions {
    margin-top: 1.1rem;
}

.docs-expand-btn {
    min-height: 3rem;
    padding: 0.8rem 1.2rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .docs-expand-btn {
    background: rgba(15, 23, 42, 0.04);
}

.docs-empty-state {
    padding: 2.25rem 1.25rem;
    background: rgba(12, 14, 20, 0.45);
}

html[data-theme="light"] .docs-empty-state {
    background: rgba(248, 250, 252, 0.92);
}

@media (max-width: 1024px) {
    .docs-grid-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .docs-hero-3d {
        inset: -4rem -11rem -2rem;
        opacity: 0.48;
    }

    .docs-hero-3d__card {
        width: 6.8rem;
        padding: 0.7rem;
        font-size: 0.68rem;
    }

    .docs-hero-3d__card--cursor,
    .docs-hero-3d__card--make {
        display: none;
    }

    .docs-hero-3d__orb--one {
        left: -8%;
        top: 22%;
    }

    .docs-hero-3d__orb--two {
        right: -8%;
        bottom: 16%;
    }

    .docs-archive-hero {
        padding: 5.5rem 0 2.25rem;
    }

    .docs-archive-focus {
        grid-template-columns: 1fr;
    }

    .docs-search-form-v2 {
        flex-wrap: wrap;
    }

    .docs-search-submit-v2 {
        width: 100%;
    }

    .docs-category-section {
        padding: 1.2rem;
        border-radius: 1.25rem;
    }

    .docs-category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .docs-category-summary__meta {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .docs-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* Video lessons page */
.videos-page {
    --videos-bg: #07080c;
    --videos-panel: rgba(255, 255, 255, 0.07);
    --videos-panel-strong: rgba(255, 255, 255, 0.11);
    --videos-border: rgba(255, 255, 255, 0.12);
    --videos-text: #f8fafc;
    --videos-muted: rgba(248, 250, 252, 0.72);
    --videos-accent: #ff7a1a;
    --videos-accent-soft: rgba(255, 122, 26, 0.2);
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 122, 26, 0.24), transparent 32rem),
        radial-gradient(circle at 88% 18%, rgba(251, 191, 36, 0.14), transparent 30rem),
        var(--videos-bg);
    color: var(--videos-text);
}

html[data-theme="light"] .videos-page {
    --videos-bg: #fff8ef;
    --videos-panel: rgba(255, 255, 255, 0.74);
    --videos-panel-strong: rgba(255, 255, 255, 0.92);
    --videos-border: rgba(194, 65, 12, 0.16);
    --videos-text: #1f2937;
    --videos-muted: rgba(31, 41, 55, 0.72);
    --videos-accent-soft: rgba(234, 88, 12, 0.14);
}

.videos-hero {
    position: relative;
    min-height: 42rem;
    padding: 7.5rem 0 5rem;
    isolation: isolate;
}

.videos-hero__bg,
.videos-hero__orb,
.videos-hero__line {
    position: absolute;
    pointer-events: none;
}

.videos-hero__bg {
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 4.5rem 4.5rem;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 86%);
}

.videos-hero__orb {
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    filter: blur(1px);
    opacity: 0.84;
}

.videos-hero__orb--one {
    top: 8rem;
    left: -7rem;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.42), transparent 68%);
    animation: videosOrbFloat 12s ease-in-out infinite;
}

.videos-hero__orb--two {
    right: 2rem;
    bottom: 4rem;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 70%);
    animation: videosOrbFloat 15s ease-in-out infinite reverse;
}

.videos-hero__line {
    width: 18rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 122, 26, 0.76), transparent);
    box-shadow: 0 0 28px rgba(255, 122, 26, 0.38);
}

.videos-hero__line--one {
    top: 14rem;
    right: 18%;
    transform: rotate(-18deg);
}

.videos-hero__line--two {
    bottom: 13rem;
    left: 8%;
    transform: rotate(22deg);
}

.videos-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.55fr);
    gap: 3rem;
    align-items: center;
}

.videos-breadcrumbs {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    color: var(--videos-muted);
    font-size: 0.92rem;
}

.videos-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

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

.videos-hero__eyebrow,
.videos-section-kicker {
    margin: 0 0 1rem;
    color: var(--videos-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.videos-hero__title {
    max-width: 58rem;
    margin: 0;
    font-size: clamp(3.1rem, 8vw, 7.8rem);
    line-height: 0.88;
    letter-spacing: -0.08em;
    text-wrap: balance;
}

.videos-hero__lead {
    max-width: 44rem;
    margin: 1.6rem 0 0;
    color: var(--videos-muted);
    font-size: clamp(1.04rem, 1.7vw, 1.28rem);
    line-height: 1.75;
}

.videos-answer-card {
    max-width: 44rem;
    margin-top: 1.25rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--videos-border);
    border-radius: 1.3rem;
    background: var(--videos-panel-strong);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px);
}

.videos-answer-card strong {
    color: var(--videos-text);
    font-weight: 900;
}

.videos-answer-card p {
    margin: 0.45rem 0 0;
    color: var(--videos-muted);
    line-height: 1.65;
}

.videos-answer-card ul {
    display: grid;
    gap: 0.45rem;
    margin: 0.85rem 0 0;
    padding-left: 1.1rem;
    color: var(--videos-muted);
    line-height: 1.55;
}

.videos-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.videos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--videos-border);
    border-radius: 999px;
    color: var(--videos-text);
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.videos-btn:hover {
    transform: translateY(-2px);
}

.videos-btn--primary {
    border-color: rgba(255, 122, 26, 0.5);
    background: linear-gradient(135deg, #ff7a1a, #fbbf24);
    color: #180b03;
    box-shadow: 0 22px 60px rgba(255, 122, 26, 0.25);
}

.videos-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
}

.section-crosslinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.section-crosslinks__link {
    position: relative;
    display: inline-grid;
    min-width: 10.5rem;
    min-height: 4rem;
    align-content: center;
    gap: 0.18rem;
    overflow: hidden;
    padding: 0.82rem 1rem 0.82rem 2.95rem;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.52);
    color: #18120d;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.22;
    text-decoration: none;
    box-shadow: 0 16px 44px rgba(154, 52, 18, 0.1);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

html[data-theme="dark"] .section-crosslinks__link {
    background: rgba(255, 255, 255, 0.06);
    color: #fff7ed;
}

.section-crosslinks__link::before {
    content: '';
    position: absolute;
    left: 0.95rem;
    top: 50%;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.42rem;
    background: linear-gradient(135deg, #ffedd5, #fb923c);
    box-shadow: inset -0.2rem -0.12rem 0 rgba(154, 52, 18, 0.14), 0 0 1rem rgba(249, 115, 22, 0.18);
    transform: translateY(-50%);
}

.section-crosslinks__link--video::before {
    border-radius: 0.35rem;
    clip-path: polygon(0 0, 74% 0, 100% 22%, 100% 78%, 74% 100%, 0 100%);
}

.section-crosslinks__link--blog::before {
    border-radius: 46% 46% 42% 42%;
    clip-path: polygon(8% 28%, 22% 0, 38% 22%, 62% 22%, 78% 0, 92% 28%, 92% 100%, 8% 100%);
}

.section-crosslinks__link:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 22px 60px rgba(154, 52, 18, 0.16);
}

.section-crosslinks__link span {
    color: #f97316;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.videos-hero__panel {
    display: grid;
    gap: 1rem;
}

.videos-signal-card,
.videos-step-card,
.video-card,
.videos-faq details {
    border: 1px solid var(--videos-border);
    background: var(--videos-panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.videos-signal-card {
    padding: 1.45rem;
    border-radius: 1.5rem;
    transform: rotate(2deg);
}

.videos-signal-card__label {
    display: inline-flex;
    margin-bottom: 1.2rem;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: var(--videos-accent-soft);
    color: var(--videos-accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.videos-signal-card strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
}

.videos-signal-card p {
    margin: 0.9rem 0 0;
    color: var(--videos-muted);
    line-height: 1.65;
}

.videos-platform-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.videos-platform-list li {
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--videos-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--videos-muted);
    font-weight: 700;
}

.videos-how,
.videos-watch-guide,
.videos-catalog,
.videos-faq {
    padding: 4.5rem 0;
}

.videos-how__grid,
.videos-faq__inner {
    display: grid;
    grid-template-columns: minmax(15rem, 0.55fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.videos-how h2,
.videos-section-head h2,
.videos-faq h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.3rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.videos-how__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.videos-step-card {
    min-height: 14rem;
    padding: 1.2rem;
    border-radius: 1.35rem;
}

.videos-step-card span {
    color: var(--videos-accent);
    font-weight: 900;
}

.videos-step-card h3 {
    margin: 1.9rem 0 0.65rem;
    font-size: 1.18rem;
}

.videos-step-card p {
    margin: 0;
    color: var(--videos-muted);
    line-height: 1.6;
}

.videos-watch-guide {
    padding-top: 0;
}

.videos-watch-guide__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.65fr);
    gap: 1.2rem;
    align-items: stretch;
    padding: 1.15rem;
    border: 1px solid var(--videos-border);
    border-radius: 1.6rem;
    background:
        linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(255, 255, 255, 0.06)),
        var(--videos-panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(18px);
}

.videos-watch-guide__copy {
    padding: 0.35rem;
}

.videos-watch-guide__copy h2 {
    max-width: 45rem;
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.videos-watch-guide__copy p:last-child {
    max-width: 47rem;
    margin: 1rem 0 0;
    color: var(--videos-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.videos-watch-guide__steps {
    display: grid;
    gap: 0.65rem;
}

.videos-watch-guide__steps span {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 122, 26, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.48);
    color: var(--videos-text);
    font-weight: 850;
    line-height: 1.35;
}

html[data-theme="dark"] .videos-watch-guide__steps span {
    background: rgba(255, 255, 255, 0.06);
}

.videos-section-head {
    display: flex;
    gap: 2rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

.videos-section-head > p {
    max-width: 31rem;
    margin: 0;
    color: var(--videos-muted);
    line-height: 1.7;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    align-items: stretch;
}

.video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.5rem;
}

.video-card__preview {
    position: relative;
    min-height: 13rem;
    width: 100%;
    border: 0;
    padding: 0;
    background:
        linear-gradient(135deg, rgba(255, 122, 26, 0.92), rgba(251, 191, 36, 0.36)),
        radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.42), transparent 14rem),
        #1f1308;
    text-align: left;
}

.video-card__preview--button {
    cursor: pointer;
}

.video-card__preview--button:focus-visible {
    outline: 3px solid rgba(255, 122, 26, 0.75);
    outline-offset: -3px;
}

.video-card__thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease, filter 420ms ease;
}

.video-card:has(.video-card__thumbnail) .video-card__preview::before {
    z-index: 1;
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(7, 8, 12, 0.04), rgba(7, 8, 12, 0.62)),
        radial-gradient(circle at 82% 78%, rgba(255, 122, 26, 0.42), transparent 9rem);
}

.video-card:has(.video-card__thumbnail) .video-card__preview::after {
    display: none;
}

.video-card:hover .video-card__thumbnail {
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.04);
}

.video-card__preview--button:hover .video-card__thumbnail,
.video-card__preview--button:focus-visible .video-card__thumbnail {
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.04);
}

.video-card__preview::before,
.video-card__preview::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.video-card__preview::before {
    width: 10rem;
    height: 10rem;
    right: -2rem;
    top: -2rem;
}

.video-card__preview::after {
    width: 7rem;
    height: 7rem;
    left: 1rem;
    bottom: -2rem;
}

.video-card__index {
    position: absolute;
    z-index: 3;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.32rem 0.5rem 0.32rem 0.45rem;
    border-radius: 0.7rem;
    line-height: 1;
    background: var(--videos-panel-strong);
    border: 1px solid var(--videos-border);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.video-card__index-label {
    padding: 0.12rem 0.32rem 0.1rem;
    border-radius: 0.35rem;
    background: var(--videos-accent-soft);
    color: var(--videos-accent);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
}

.video-card__index-num {
    min-width: 0.9em;
    font-size: 0.95rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    color: var(--videos-text);
}

.video-card__index--solo {
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.55rem 0.4rem 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .video-card__index--solo {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(194, 65, 12, 0.2);
}

.video-card__play {
    position: absolute;
    z-index: 2;
    right: 0.75rem;
    bottom: 0.75rem;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(145deg, rgba(7, 8, 12, 0.42), rgba(7, 8, 12, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
    pointer-events: none;
}

.video-card__play::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid rgba(255, 122, 26, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.video-card__play-icon {
    position: relative;
    z-index: 1;
    display: block;
    margin-left: 2px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.video-card__preview--button:hover .video-card__play,
.video-card__preview--button:focus-visible .video-card__play {
    transform: scale(1.05);
    border-color: rgba(255, 122, 26, 0.55);
    box-shadow:
        0 10px 28px rgba(255, 122, 26, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #fff4e8;
}

.video-card__preview--button:hover .video-card__play::after,
.video-card__preview--button:focus-visible .video-card__play::after {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .video-card__play,
    .video-card__preview--button:hover .video-card__play,
    .video-card__preview--button:focus-visible .video-card__play {
        transition: none;
        transform: none;
    }
}

.video-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.2rem;
}

.video-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.95rem;
}

.video-card__meta span,
.video-card__empty span {
    display: inline-flex;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    background: var(--videos-accent-soft);
    color: var(--videos-accent);
    font-size: 0.75rem;
    font-weight: 800;
}

.video-card__published {
    margin: 0.3rem 0 0.45rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--videos-muted);
    font-weight: 600;
}

.video-card__published time {
    color: var(--videos-text);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.video-card h3 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.25;
}

.video-card p {
    margin: 0.8rem 0 0;
    color: var(--videos-muted);
    line-height: 1.65;
}

.video-card__platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 1rem;
}

.videos-platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 122, 26, 0.36);
    border-radius: 999px;
    background: rgba(255, 122, 26, 0.13);
    color: var(--videos-text);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.video-card__empty {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.video-card__empty small {
    color: var(--videos-muted);
    line-height: 1.45;
}

.videos-faq__list {
    display: grid;
    gap: 0.8rem;
}

.videos-faq details {
    padding: 1.1rem 1.2rem;
    border-radius: 1.1rem;
}

.videos-faq summary {
    color: var(--videos-text);
    font-weight: 850;
    cursor: pointer;
}

.videos-faq details p {
    margin: 0.85rem 0 0;
    color: var(--videos-muted);
    line-height: 1.7;
}

.videos-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.videos-modal[hidden] {
    display: none;
}

.videos-modal-open {
    overflow: hidden;
}

.videos-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(10px);
}

.videos-modal__dialog {
    position: relative;
    width: min(68rem, 100%);
    padding: 1rem;
    border: 1px solid var(--videos-border);
    border-radius: 1.4rem;
    background: #08090d;
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.5);
}

.videos-modal__dialog h2 {
    margin: 0 3rem 1rem 0;
    color: #f8fafc;
    font-size: 1.1rem;
}

.videos-modal__close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.videos-modal__frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
    background: #000;
}

.videos-modal__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@keyframes videosOrbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(1.2rem, -1.6rem, 0) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .videos-hero__orb {
        animation: none;
    }

    .videos-btn,
    .videos-platform-btn {
        transition: none;
    }
}

@media (max-width: 1024px) {
    .videos-hero__inner,
    .videos-how__grid,
    .videos-faq__inner {
        grid-template-columns: 1fr;
    }

    .videos-hero {
        min-height: auto;
    }

    .videos-grid,
    .videos-how__steps {
        grid-template-columns: 1fr;
    }

    .videos-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .videos-hero {
        padding: 5.8rem 0 3rem;
    }

    .videos-hero__title {
        font-size: clamp(2.8rem, 18vw, 4.7rem);
    }

    .videos-hero__actions,
    .videos-btn {
        width: 100%;
    }

    .videos-platform-list {
        grid-template-columns: 1fr;
    }

    .videos-how,
    .videos-watch-guide,
    .videos-catalog,
    .videos-faq {
        padding: 3rem 0;
    }

    .videos-watch-guide__inner {
        grid-template-columns: 1fr;
    }

    .videos-signal-card {
        transform: none;
    }
}

/* Blog magazine page */
.blog-magazine-page {
    --blog-bg: #fff8ef;
    --blog-text: #18120d;
    --blog-muted: rgba(24, 18, 13, 0.68);
    --blog-card: rgba(255, 255, 255, 0.86);
    --blog-border: rgba(194, 65, 12, 0.14);
    --blog-accent: #f97316;
    --blog-accent-deep: #9a3412;
    overflow: hidden;
    background:
        radial-gradient(circle at 11% 4%, rgba(249, 115, 22, 0.18), transparent 30rem),
        radial-gradient(circle at 92% 16%, rgba(251, 191, 36, 0.14), transparent 28rem),
        linear-gradient(180deg, #fff8ef 0%, #f7f5ef 54%, #fffaf4 100%);
    color: var(--blog-text);
}

html[data-theme="dark"] .blog-magazine-page {
    --blog-bg: #090806;
    --blog-text: #fff7ed;
    --blog-muted: rgba(255, 247, 237, 0.72);
    --blog-card: rgba(20, 18, 16, 0.82);
    --blog-border: rgba(255, 122, 26, 0.2);
    background:
        radial-gradient(circle at 12% 2%, rgba(249, 115, 22, 0.28), transparent 32rem),
        radial-gradient(circle at 88% 16%, rgba(251, 191, 36, 0.12), transparent 28rem),
        linear-gradient(180deg, #090806 0%, #11100e 60%, #090806 100%);
}

.site-header--blog {
    max-width: 760px !important;
}

.site-header--blog .site-header__inner {
    justify-content: space-between;
}

.blog-hero-cat {
    position: relative;
    min-height: 42rem;
    padding: 7.4rem 0 5rem;
    isolation: isolate;
}

.blog-hero-cat__bg,
.blog-hero-cat__orb,
.blog-hero-cat__whisker {
    position: absolute;
    pointer-events: none;
}

.blog-hero-cat__bg {
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(154, 52, 18, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 52, 18, 0.05) 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 86%);
}

.blog-hero-cat__orb {
    border-radius: 999px;
    filter: blur(0.5px);
}

.blog-hero-cat__orb--one {
    width: 16rem;
    height: 16rem;
    left: -4rem;
    top: 9rem;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 67%);
    animation: blogCatFloat 13s ease-in-out infinite;
}

.blog-hero-cat__orb--two {
    width: 20rem;
    height: 20rem;
    right: -6rem;
    bottom: 1rem;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 70%);
    animation: blogCatFloat 16s ease-in-out infinite reverse;
}

.blog-hero-cat__whisker {
    width: 18rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.48), transparent);
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.16);
}

.blog-hero-cat__whisker--one {
    top: 12.5rem;
    right: 18%;
    transform: rotate(-14deg);
}

.blog-hero-cat__whisker--two {
    bottom: 12rem;
    left: 8%;
    transform: rotate(18deg);
}

.blog-hero-cat__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.52fr);
    gap: 3rem;
    align-items: center;
}

.blog-breadcrumbs {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    color: var(--blog-muted);
    font-size: 0.92rem;
}

.blog-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

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

.blog-hero-cat__eyebrow,
.blog-section-kicker {
    margin: 0 0 1rem;
    color: var(--blog-accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-hero-cat__title {
    max-width: 60rem;
    margin: 0;
    color: var(--blog-text);
    font-size: clamp(3rem, 7.6vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    text-wrap: balance;
}

.blog-hero-cat__lead {
    max-width: 44rem;
    margin: 1.55rem 0 0;
    color: var(--blog-muted);
    font-size: clamp(1.03rem, 1.7vw, 1.26rem);
    line-height: 1.75;
}

.blog-hero-cat__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--blog-border);
    border-radius: 999px;
    color: var(--blog-text);
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.blog-btn:hover {
    transform: translateY(-2px);
}

.blog-btn--primary {
    border-color: rgba(249, 115, 22, 0.48);
    background: linear-gradient(135deg, #fb923c, #fbbf24);
    color: #1f1308;
    box-shadow: 0 22px 60px rgba(249, 115, 22, 0.24);
}

.blog-btn--ghost {
    background: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .blog-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
}

.blog-hero-cat__panel {
    display: grid;
    gap: 1rem;
}

.blog-cat-card,
.blog-hero-cat__stats,
.blog-magazine-page .blog-card--index {
    border: 1px solid var(--blog-border) !important;
    background: var(--blog-card) !important;
    box-shadow: 0 24px 70px rgba(154, 52, 18, 0.12) !important;
    backdrop-filter: blur(18px);
}

.blog-cat-card {
    position: relative;
    overflow: hidden;
    padding: 1.45rem;
    border-radius: 1.55rem;
    transform: rotate(1.8deg);
}

.blog-cat-card__face {
    position: relative;
    width: 5.4rem;
    height: 4.6rem;
    margin-bottom: 1rem;
    border-radius: 46% 46% 42% 42%;
    background:
        radial-gradient(circle at 35% 46%, #1f1308 0.14rem, transparent 0.16rem),
        radial-gradient(circle at 65% 46%, #1f1308 0.14rem, transparent 0.16rem),
        linear-gradient(135deg, #ffedd5, #fb923c);
    box-shadow: inset -0.55rem -0.2rem 0 rgba(154, 52, 18, 0.16);
}

.blog-cat-card__ear {
    position: absolute;
    top: -0.58rem;
    width: 1.35rem;
    height: 1.35rem;
    background: #fb923c;
    transform: rotate(45deg);
}

.blog-cat-card__ear--left {
    left: 0.65rem;
}

.blog-cat-card__ear--right {
    right: 0.65rem;
}

.blog-cat-card__eye {
    display: none;
}

.blog-cat-card__label {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--blog-accent);
    font-size: 0.78rem;
    font-weight: 900;
}

.blog-cat-card strong {
    display: block;
    color: var(--blog-text);
    font-size: 1.35rem;
    line-height: 1.22;
}

.blog-cat-card p {
    margin: 0.9rem 0 0;
    color: var(--blog-muted);
    line-height: 1.65;
}

.blog-hero-cat__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.8rem;
    border-radius: 1.2rem;
}

.blog-hero-cat__stats span {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.35);
    color: var(--blog-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

html[data-theme="dark"] .blog-hero-cat__stats span {
    background: rgba(255, 255, 255, 0.06);
}

.blog-hero-cat__stats strong {
    color: var(--blog-text);
    font-size: 1.15rem;
}

.blog-catalog-section {
    padding: 4rem 0 5rem;
}

.blog-catalog-head {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(18rem, 0.62fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.blog-catalog-head h2 {
    max-width: 48rem;
    margin: 0;
    color: var(--blog-text);
    font-size: clamp(2rem, 4.6vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.blog-category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.blog-category-pills a {
    display: inline-flex;
    min-height: 2.45rem;
    align-items: center;
    padding: 0.56rem 0.82rem;
    border: 1px solid var(--blog-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    color: var(--blog-muted);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}

html[data-theme="dark"] .blog-category-pills a {
    background: rgba(255, 255, 255, 0.06);
}

.blog-category-pills a:hover {
    border-color: rgba(249, 115, 22, 0.44);
    color: var(--blog-accent);
}

.blog-magazine-page .blog-grid--magazine {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.6rem !important;
}

.blog-magazine-page .blog-card--index {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 1.45rem !important;
    transform: translateY(0);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important;
}

.blog-magazine-page .blog-card--index:hover {
    transform: translateY(-7px) !important;
    border-color: rgba(249, 115, 22, 0.38) !important;
    box-shadow: 0 28px 80px rgba(154, 52, 18, 0.18) !important;
}

.blog-magazine-page .blog-card--index .blog-image {
    border-bottom: 1px solid var(--blog-border) !important;
    background:
        radial-gradient(circle at 22% 18%, rgba(249, 115, 22, 0.2), transparent 8rem),
        #fff3e3 !important;
}

.blog-magazine-page .blog-card--index .blog-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(24, 18, 13, 0.18));
    opacity: 0;
    transition: opacity 220ms ease;
}

.blog-magazine-page .blog-card--index:hover .blog-image::after {
    opacity: 1;
}

.blog-magazine-page .blog-card--index .blog-image img {
    filter: saturate(1.04) contrast(1.02);
}

.blog-magazine-page .blog-card--index .blog-content {
    padding: 1.35rem !important;
}

.blog-magazine-page .blog-card--index .blog-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.55rem !important;
    margin-bottom: 1rem !important;
}

.blog-magazine-page .blog-card--index .blog-date,
.blog-magazine-page .blog-card--index .blog-category a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 1.85rem !important;
    padding: 0.32rem 0.58rem !important;
    border-radius: 999px !important;
    background: rgba(249, 115, 22, 0.1) !important;
    color: var(--blog-accent-deep) !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

html[data-theme="dark"] .blog-magazine-page .blog-card--index .blog-date,
html[data-theme="dark"] .blog-magazine-page .blog-card--index .blog-category a {
    color: #fed7aa !important;
}

.blog-magazine-page .blog-card--index .blog-title {
    margin: 0 0 0.8rem !important;
    font-size: clamp(1.16rem, 1.6vw, 1.42rem) !important;
    line-height: 1.24 !important;
    letter-spacing: -0.03em !important;
}

.blog-magazine-page .blog-card--index .blog-title a {
    color: var(--blog-text) !important;
    text-decoration: none !important;
}

.blog-magazine-page .blog-card--index:hover .blog-title a {
    color: var(--blog-accent-deep) !important;
}

html[data-theme="dark"] .blog-magazine-page .blog-card--index:hover .blog-title a {
    color: #fb923c !important;
}

.blog-magazine-page .blog-card--index .blog-excerpt {
    margin-bottom: 1rem !important;
    color: var(--blog-muted) !important;
    font-size: 0.96rem !important;
    line-height: 1.62 !important;
}

.blog-magazine-page .blog-card--index .read-more-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    color: var(--blog-accent-deep) !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

html[data-theme="dark"] .blog-magazine-page .blog-card--index .read-more-link {
    color: #fb923c !important;
}

.blog-magazine-page .pagination-wrapper .nav-links {
    border: 1px solid var(--blog-border);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 55px rgba(154, 52, 18, 0.12);
}

html[data-theme="dark"] .blog-magazine-page .pagination-wrapper .nav-links {
    background: rgba(255, 255, 255, 0.06);
}

@keyframes blogCatFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(1.2rem, -1.2rem, 0) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-hero-cat__orb {
        animation: none;
    }

    .blog-btn,
    .blog-magazine-page .blog-card--index {
        transition: none !important;
    }
}

@media (max-width: 1180px) {
    .blog-magazine-page .blog-grid--magazine {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1024px) {
    .site-header--blog .header-socials {
        display: none;
    }

    .blog-hero-cat__inner,
    .blog-catalog-head {
        grid-template-columns: 1fr;
    }

    .blog-category-pills {
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    .site-header .header-socials {
        display: none;
    }

    .header-return-link {
        padding-inline: 0.85rem;
    }
}

@media (max-width: 720px) {
    .header-return-link {
        min-height: 2.5rem;
        width: 2.5rem;
        padding: 0;
        font-size: 0;
    }

    .header-return-link::before {
        margin-right: 0;
        font-size: 1rem;
    }
}

@media (max-width: 720px) {
    .blog-hero-cat {
        min-height: auto;
        padding: 5.8rem 0 3.2rem;
    }

    .blog-hero-cat__title {
        font-size: clamp(2.7rem, 16vw, 4.8rem);
    }

    .blog-hero-cat__actions,
    .blog-btn {
        width: 100%;
    }

    .blog-cat-card {
        transform: none;
    }

    .blog-hero-cat__stats {
        grid-template-columns: 1fr;
    }

    .blog-magazine-page .blog-grid--magazine {
        grid-template-columns: 1fr !important;
    }
}

/* Docs page editorial refresh */
.docs-archive-redesign {
    --docs-bg: #fff8ef;
    --docs-text: #18120d;
    --docs-muted: rgba(24, 18, 13, 0.68);
    --docs-card: rgba(255, 255, 255, 0.88);
    --docs-border: rgba(194, 65, 12, 0.14);
    --docs-accent: #f97316;
    --docs-accent-deep: #9a3412;
    background:
        radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.18), transparent 31rem),
        radial-gradient(circle at 88% 12%, rgba(251, 191, 36, 0.14), transparent 30rem),
        linear-gradient(180deg, #fff8ef 0%, #f7f5ef 54%, #fffaf4 100%) !important;
    color: var(--docs-text);
}

html[data-theme="dark"] .docs-archive-redesign {
    --docs-bg: #080806;
    --docs-text: #fff7ed;
    --docs-muted: rgba(255, 247, 237, 0.72);
    --docs-card: rgba(20, 18, 16, 0.82);
    --docs-border: rgba(255, 122, 26, 0.2);
    background:
        radial-gradient(circle at 12% 2%, rgba(249, 115, 22, 0.28), transparent 32rem),
        radial-gradient(circle at 88% 16%, rgba(251, 191, 36, 0.12), transparent 28rem),
        linear-gradient(180deg, #080806 0%, #11100e 60%, #080806 100%) !important;
}

.docs-archive-redesign .docs-hero-v2 {
    min-height: 42rem;
    padding: 7.4rem 0 5rem !important;
    text-align: left !important;
    border-bottom: 0 !important;
}

.docs-archive-redesign .docs-hero-v2__grid {
    background-size: 4rem 4rem !important;
    background-image:
        linear-gradient(rgba(154, 52, 18, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 52, 18, 0.05) 1px, transparent 1px) !important;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 86%) !important;
}

.docs-archive-redesign .docs-hero-3d {
    inset: -5rem -12rem -2rem 34%;
    opacity: 0.42;
}

.docs-archive-redesign .docs-hero-v2__content {
    display: grid !important;
    grid-template-columns: minmax(0, 1.06fr) minmax(18rem, 0.52fr) !important;
    gap: 3rem !important;
    align-items: center !important;
    max-width: var(--container-max, 1200px) !important;
    text-align: left !important;
}

.docs-archive-redesign .docs-hero-v2__main {
    min-width: 0;
}

.docs-archive-redesign .docs-hero-v2__badge {
    margin-bottom: 1rem !important;
    padding: 0.42rem 0.72rem !important;
    border-color: rgba(249, 115, 22, 0.22) !important;
    background: rgba(249, 115, 22, 0.1) !important;
    color: var(--docs-accent) !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

.docs-archive-redesign .docs-hero-v2__title {
    max-width: 58rem;
    margin: 0 !important;
    color: var(--docs-text) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: clamp(3rem, 7.4vw, 7rem) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.08em !important;
    text-wrap: balance;
}

.docs-archive-redesign .docs-hero-v2__subtitle {
    max-width: 44rem !important;
    margin: 1.55rem 0 1.35rem !important;
    color: var(--docs-muted) !important;
    font-size: clamp(1.03rem, 1.7vw, 1.26rem) !important;
    line-height: 1.75 !important;
}

.docs-archive-redesign .docs-hub-plaque,
.docs-hero-guide-panel,
.docs-archive-redesign .docs-category-section,
.docs-archive-redesign .docs-card-v2,
.docs-archive-redesign .docs-hub-faq__item {
    border: 1px solid var(--docs-border) !important;
    background: var(--docs-card) !important;
    box-shadow: 0 24px 70px rgba(154, 52, 18, 0.12) !important;
    backdrop-filter: blur(18px);
}

.docs-archive-redesign .docs-hero-answer-first {
    max-width: 100% !important;
    padding: 1.25rem !important;
    border-radius: 1.35rem !important;
}

.docs-archive-redesign .docs-hero-answer-first__kicker,
.docs-archive-redesign .docs-hero-answer-first__more {
    color: var(--docs-text) !important;
    -webkit-text-fill-color: currentColor !important;
}

.docs-archive-redesign .docs-archive-meta--hero {
    color: var(--docs-muted) !important;
}

.docs-archive-redesign .docs-archive-meta--hero a {
    color: var(--docs-accent-deep) !important;
}

html[data-theme="dark"] .docs-archive-redesign .docs-archive-meta--hero a {
    color: #fb923c !important;
}

.docs-archive-redesign .docs-hero-v2__search {
    width: 100%;
    max-width: 100% !important;
    margin-top: 1rem;
}

.docs-archive-redesign .docs-search-form-v2 {
    min-height: 4rem !important;
    border: 1px solid var(--docs-border) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 18px 55px rgba(154, 52, 18, 0.1) !important;
}

html[data-theme="dark"] .docs-archive-redesign .docs-search-form-v2 {
    background: rgba(255, 255, 255, 0.06) !important;
}

.docs-archive-redesign .docs-search-form-v2:focus-within {
    border-color: rgba(249, 115, 22, 0.48) !important;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1), 0 18px 55px rgba(154, 52, 18, 0.14) !important;
}

.docs-hero-guide-panel {
    position: relative;
    display: grid;
    gap: 0.9rem;
    padding: 1.45rem;
    border-radius: 1.55rem;
    transform: rotate(1.6deg);
}

.docs-hero-guide-panel::before {
    content: '';
    width: 4.7rem;
    height: 4.7rem;
    border-radius: 1.25rem;
    background:
        linear-gradient(90deg, rgba(154, 52, 18, 0.16) 1px, transparent 1px) 1rem 1.12rem / 2rem 0.46rem no-repeat,
        linear-gradient(90deg, rgba(154, 52, 18, 0.16) 1px, transparent 1px) 1rem 2rem / 2.4rem 0.46rem no-repeat,
        linear-gradient(135deg, #ffedd5, #fb923c);
    box-shadow: inset -0.55rem -0.3rem 0 rgba(154, 52, 18, 0.14), 0 1rem 3rem rgba(249, 115, 22, 0.16);
}

.docs-hero-guide-panel__label {
    display: inline-flex;
    width: fit-content;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--docs-accent);
    font-size: 0.78rem;
    font-weight: 900;
}

.docs-hero-guide-panel strong {
    display: block;
    color: var(--docs-text);
    font-size: 1.35rem;
    line-height: 1.22;
}

.docs-hero-guide-panel p {
    margin: 0;
    color: var(--docs-muted);
    line-height: 1.65;
}

.docs-hero-guide-panel__links {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.15rem;
}

.docs-hero-guide-panel__links a {
    display: grid;
    gap: 0.16rem;
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--docs-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.42);
    color: var(--docs-text);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: none;
}

html[data-theme="dark"] .docs-hero-guide-panel__links a {
    background: rgba(255, 255, 255, 0.06);
}

.docs-hero-guide-panel__links a:hover {
    border-color: rgba(249, 115, 22, 0.44);
    transform: translateY(-1px);
}

.docs-hero-guide-panel__links span {
    color: var(--docs-accent);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-archive-redesign .docs-geo-wrap,
.docs-archive-redesign .docs-sections-container,
.docs-archive-redesign .docs-hub-faq-wrap {
    position: relative;
    z-index: 2;
}

.docs-archive-redesign .docs-geo-wrap {
    margin-top: -2.5rem !important;
}

.docs-archive-redesign .docs-geo-answer {
    border-radius: 1.55rem !important;
}

.docs-archive-redesign .docs-geo-answer__title,
.docs-archive-redesign .docs-hub-faq__title,
.docs-archive-redesign .docs-category-title {
    color: var(--docs-text) !important;
    letter-spacing: -0.045em;
}

.docs-archive-redesign .docs-geo-answer__lead,
.docs-archive-redesign .docs-geo-answer__list,
.docs-archive-redesign .docs-category-summary__desc,
.docs-archive-redesign .docs-card-v2__excerpt,
.docs-archive-redesign .docs-hub-faq__item p {
    color: var(--docs-muted) !important;
}

.docs-archive-redesign .docs-sections-container {
    display: grid;
    gap: 1.25rem;
    padding-top: 3rem;
}

.docs-archive-redesign .docs-category-section {
    overflow: hidden;
    border-radius: 1.55rem !important;
    padding: 1.45rem !important;
}

.docs-archive-redesign .docs-category-section--collapsible:not([open]):hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.36) !important;
    box-shadow: 0 30px 90px rgba(154, 52, 18, 0.16) !important;
}

.docs-archive-redesign .docs-category-kicker {
    color: var(--docs-accent) !important;
    font-size: 0.78rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.12em !important;
}

.docs-archive-redesign .docs-category-count,
.docs-archive-redesign .docs-category-toggle {
    border: 1px solid var(--docs-border);
    background: rgba(249, 115, 22, 0.09) !important;
    color: var(--docs-accent-deep) !important;
}

html[data-theme="dark"] .docs-archive-redesign .docs-category-count,
html[data-theme="dark"] .docs-archive-redesign .docs-category-toggle {
    color: #fed7aa !important;
}

.docs-archive-redesign .docs-grid-v2 {
    gap: 1.35rem !important;
}

.docs-archive-redesign .docs-card-v2 {
    overflow: hidden;
    border-radius: 1.45rem !important;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important;
}

.docs-archive-redesign .docs-card-v2:hover {
    transform: translateY(-7px) !important;
    border-color: rgba(249, 115, 22, 0.38) !important;
    box-shadow: 0 28px 80px rgba(154, 52, 18, 0.18) !important;
}

.docs-archive-redesign .docs-card-v2__cover {
    border-bottom: 1px solid var(--docs-border);
    background:
        radial-gradient(circle at 22% 18%, rgba(249, 115, 22, 0.2), transparent 8rem),
        #fff3e3 !important;
}

.docs-archive-redesign .docs-card-v2__image {
    transition: transform 420ms ease, filter 420ms ease;
}

.docs-archive-redesign .docs-card-v2:hover .docs-card-v2__image {
    transform: scale(1.035);
    filter: saturate(1.07) contrast(1.03);
}

.docs-archive-redesign .docs-card-v2__body {
    padding: 1.25rem !important;
}

.docs-archive-redesign .docs-card-v2__title {
    color: var(--docs-text) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: clamp(1.08rem, 1.35vw, 1.28rem) !important;
    line-height: 1.24 !important;
    letter-spacing: -0.03em !important;
}

.docs-archive-redesign .docs-card-v2:hover .docs-card-v2__title {
    color: var(--docs-accent-deep) !important;
}

html[data-theme="dark"] .docs-archive-redesign .docs-card-v2:hover .docs-card-v2__title {
    color: #fb923c !important;
}

.docs-archive-redesign .docs-card-v2__link {
    color: var(--docs-accent-deep) !important;
    font-weight: 950 !important;
}

html[data-theme="dark"] .docs-archive-redesign .docs-card-v2__link {
    color: #fb923c !important;
}

.docs-archive-redesign .docs-hub-faq {
    border-radius: 1.55rem !important;
    margin-top: 3rem;
}

.docs-archive-redesign .docs-hub-faq__item {
    border-radius: 1.15rem !important;
    padding: 1.1rem !important;
}

@media (prefers-reduced-motion: reduce) {
    .docs-archive-redesign .docs-card-v2,
    .docs-hero-guide-panel__links a {
        transition: none !important;
    }
}

@media (max-width: 1024px) {
    .docs-archive-redesign .docs-hero-v2__content {
        grid-template-columns: 1fr !important;
    }

    .docs-archive-redesign .docs-hero-3d {
        inset: -4rem -10rem 10rem 8%;
        opacity: 0.24;
    }

    .docs-hero-guide-panel {
        transform: none;
    }
}

@media (max-width: 768px) {
    .docs-archive-redesign .docs-hero-v2 {
        min-height: auto;
        padding: 5.8rem 0 3.2rem !important;
    }

    .docs-archive-redesign .docs-hero-v2__title {
        font-size: clamp(2.7rem, 16vw, 4.8rem) !important;
    }

    .docs-archive-redesign .docs-search-form-v2 {
        border-radius: 1.25rem !important;
    }

    .docs-archive-redesign .docs-category-header {
        gap: 1rem;
    }

    .docs-archive-redesign .docs-category-summary__meta {
        align-items: stretch;
    }
}

/* Единая ширина верхней панели на всех разделах сайта. */
.site-header,
.site-header--compact,
.site-header--docs,
.site-header--videos,
.site-header--blog,
html[data-theme="light"] .site-header,
html[data-theme="light"] .site-header--docs,
html[data-theme="light"] .site-header--videos,
html[data-theme="light"] .site-header--blog {
    max-width: 1040px !important;
}

.site-header .site-header__inner,
.site-header--docs .site-header__inner,
.site-header--videos .site-header__inner,
.site-header--blog .site-header__inner,
html[data-theme="light"] .site-header--docs .site-header__inner {
    gap: 0.8rem !important;
}
