/* Базовые настройки и премиум переменные */
:root {
    --bg-color: #030712; /* Глубокий премиальный черный */
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-hover: rgba(255, 255, 255, 0.04);
    --accent: #3b82f6; /* Modern Blue */
    --accent-glow: #60a5fa;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --font-main: 'Outfit', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    /* Цветовая кодировка типов выгод */
    --benefit-time: #3b82f6;      /* Синий - Экономия времени */
    --benefit-time-bg: rgba(59, 130, 246, 0.1);
    --benefit-time-border: rgba(59, 130, 246, 0.3);
    --benefit-money: #10b981;    /* Зеленый - Рост продаж/экономия денег */
    --benefit-money-bg: rgba(16, 185, 129, 0.1);
    --benefit-money-border: rgba(16, 185, 129, 0.3);
    --benefit-service: #8b5cf6;  /* Фиолетовый - Клиентский сервис 24/7 */
    --benefit-service-bg: rgba(139, 92, 246, 0.1);
    --benefit-service-border: rgba(139, 92, 246, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
    min-height: 100vh;
}

a,
button,
input,
textarea,
select,
[role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    background: var(--text-main);
    color: var(--bg-color);
    padding: 12px 16px;
    border-radius: 999px;
    z-index: 1000;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

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

/* Динамический курсор-глоу (удален) */


/* Статические фоны */
.bg-gradient {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
    z-index: -3;
}

.grid-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image:
        linear-gradient(var(--card-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--card-border) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -4;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0; z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    background: rgba(3, 7, 18, 0.7);
}

.logo { font-size: 1.8rem; font-weight: 900; letter-spacing: 1px; }
.logo .dot { color: var(--accent); }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: var(--text-main); }

/* Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(12.5px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-12.5px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: auto;
        min-width: 200px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        gap: 0;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid var(--card-border);
        border-radius: var(--radius-md);
        padding: 20px;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 100;
        margin-top: 10px;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-link {
        font-size: 1rem;
        font-weight: 500;
        padding: 12px 20px;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        width: 100%;
        text-align: right;
        border-radius: var(--radius-md);
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-links.active .nav-link {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active .nav-link:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.active .nav-link:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active .nav-link:nth-child(3) { transition-delay: 0.15s; }

    .nav-links .btn {
        font-size: 0.9rem;
        padding: 12px 20px;
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active .btn {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s;
    }
}

/* Кнопки - Modern Behance Style */
.btn {
    position: relative;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    overflow: hidden;
    border: none;
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-large { padding: 18px 40px; font-size: 1.1rem; }

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
}
.btn-primary:hover {
    background: var(--accent);
    color: #fff;
    /* transform: translateY(-2px); - REMOVED to prevent animation issues */
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}
.btn-secondary:hover { background: var(--card-hover); border-color: var(--text-muted); }

.btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 50px;
}

.scenario-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
    flex-wrap: wrap;
}

.scenario-modal-actions .btn {
    flex: 1;
    min-width: 140px;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
}
.btn-outline:hover { border-color: var(--text-main); }

/* Эффект свечения для кнопок Mega CTA */
.btn-glow {
    animation: glow-pulse 2s infinite;
}
@keyframes glow-pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    padding-top: 80px;
}

.hero-content { max-width: 900px; }

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    color: var(--accent-glow);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: blink 1.5s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-wrap: balance;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-inline: auto;
}

/* hero-buttons container styling */
.hero-buttons {
    display: flex;
    gap: 20px; /* Increased gap instead of scale */
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    /* transform: scale(1.4); - REMOVE THIS */
    /* transform-origin: center; - REMOVE THIS */
}

/* Increase the buttons themselves inside hero-buttons to look like scale(1.4) */
.hero-buttons .btn {
    padding: 22px 44px; /* Increased padding to simulate scale(1.4) */
    font-size: 1.4rem; /* Increased font size to match scale */
    /* No transform scale - using actual size instead */
    /* Base styles for reset if not in main .btn class */
    cursor: pointer;
    border-radius: 16px; /* Slightly larger border radius for bigger buttons */
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px; /* Increased gap proportionally */
}

/* Responsive: so huge buttons don't break screen on phones */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin-inline: auto;
    }

    .hero-buttons .btn {
        width: 100%; /* Full width buttons on mobile */
        font-size: 1rem;
        padding: 14px 24px;
        border-radius: 12px;
        gap: 10px;
    }
}

/* Scroll arrow animation */
.scroll-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.2rem; /* Larger arrow */
    pointer-events: none; /* Don't interfere with clicks */
}

.btn-secondary:hover .scroll-arrow {
    opacity: 1;
    animation: bounce-down 1s ease-in-out infinite;
}

.btn-secondary {
    position: relative; /* For absolute positioning of arrow */
}

.btn-secondary span {
    transition: transform 0.3s ease;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.btn-secondary:hover span {
    transform: translateX(-8px); /* Shift text left to make room for arrow */
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(-40%); } /* Bounce more */
}

/* Нам доверяют (Trust Section) */
.trust-section {
    padding: 60px 5%;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.trust-container {
    max-width: 1400px;
    margin: 0 auto;
}

.trust-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.trust-logo:hover {
    transform: translateY(-5px);
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.trust-logo:hover .logo-placeholder {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.trust-logo span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Responsive styles for trust section */
@media (max-width: 768px) {
    .trust-section {
        padding: 40px 4%;
    }

    .trust-title {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .trust-logos {
        gap: 30px;
    }

    .logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .trust-logo span {
        font-size: 0.8rem;
    }
}

/* Бегущая строка (Marquee) */
.marquee-container {
    width: 100%;
    padding: 30px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    overflow: hidden;
    position: relative;
    transform: rotate(-1deg) scale(1.02); /* Легкий наклон */
    margin: 40px 0;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    display: flex;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scroll 25s linear infinite;
    font-size: 0;
}

.marquee-content span, .marquee-content i {
    white-space: nowrap;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-muted);
    text-transform: uppercase;
}

.marquee-content i { color: var(--accent); font-size: 1rem; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Статистика */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 5%;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 30px 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.3) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    margin-left: 4px;
    vertical-align: super;
    -webkit-text-fill-color: var(--accent);
}

.stat-number[data-target="99"]::after {
    content: '%';
    font-size: 2rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

/* Графики роста */
.stat-chart {
    width: 120px;
    height: 50px;
    margin: 0 auto;
    position: relative;
}

.chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 1.5s ease-out forwards;
}

.chart-area {
    opacity: 0;
    animation: fadeInArea 1s ease-out 0.5s forwards;
}

.chart-dot {
    opacity: 0;
    transform: scale(0);
    animation: popDot 0.4s ease-out 1.2s forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInArea {
    to {
        opacity: 1;
    }
}

@keyframes popDot {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Анимация счетчика */
@keyframes countUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.stat-item.animate .stat-number {
    animation: countUp 0.5s ease-out;
}

/* Пульсация для активных элементов */
@keyframes statPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.15);
    }
}

.stat-item:hover {
    animation: statPulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-container {
        gap: 20px;
        padding: 40px 4%;
    }

    .stat-item {
        padding: 20px 25px;
        min-width: 140px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-number::after,
    .stat-number[data-target="99"]::after {
        font-size: 1.2rem;
    }

    .stat-chart {
        width: 100px;
        height: 40px;
    }
}

/* Reviews Widget with Card Flip Animation */
.reviews-widget {
    max-width: 500px;
    margin: 60px auto 0;
    padding: 0 5%;
    perspective: 1000px;
}

.reviews-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-main);
}

.reviews-container {
    position: relative;
    width: 100%;
    height: 280px;
    perspective: 1000px;
}

.review-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
    cursor: pointer;
}

.review-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.review-card.active {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 10;
}

.review-card.prev {
    transform: rotateY(-90deg) scale(0.9);
    opacity: 0;
    z-index: 5;
}

.review-card.next {
    transform: rotateY(90deg) scale(0.9);
    opacity: 0;
    z-index: 5;
}

/* Card flip navigation dots */
.reviews-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--card-border);
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.review-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.review-source {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-source i {
    color: #0088cc;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

/* Responsive styles for reviews widget */
@media (max-width: 1024px) {
    .reviews-container {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .reviews-widget {
        margin: 40px auto 0;
        padding: 0 4%;
        max-width: 100%;
    }

    .reviews-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .reviews-container {
        height: 240px;
    }

    .review-card {
        padding: 20px;
    }

    .review-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .review-name {
        font-size: 0.9rem;
    }

    .review-text {
        font-size: 0.9rem;
    }
}

/* Тарифы */
.pricing-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 80px;
}

.pricing-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 40%);
    pointer-events: none;
}

.pricing-card-featured {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 24px 80px rgba(59, 130, 246, 0.14);
    transform: translateY(-6px);
}

.pricing-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.pricing-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: column;
}

.pricing-name {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-wrap: balance;
}

.pricing-price {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pricing-launch {
    color: var(--text-muted);
    font-size: 0.92rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    min-width: 120px;
}

.price-highlight {
    color: var(--accent-glow);
    font-weight: 700;
    white-space: nowrap;
}

.pricing-list {
    list-style: none;
    display: grid;
    gap: 14px;
    color: var(--text-muted);
    margin-top: 6px;
    flex: 1;
}

.pricing-list li {
    position: relative;
    padding-left: 22px;
}

.pricing-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
}

.pricing-btn {
    width: 100%;
    margin-top: auto;
}

/* Bento Портфолио */
.portfolio {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; text-wrap: balance; }
.section-header p { color: var(--text-muted); font-size: 1.2rem; }

/* Интерактивная песочница решений внутри секции Сценарии */
.demo-experience-wrapper {
    width: 100%;
    position: relative;
}

/* Bento Grid - сетка карточек сценариев */
.bento-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    flex: 1 1 calc(25% - 20px);
    min-width: 280px;
}

/* Сетка для 5 карточек: 2 сверху (50% each), 3 снизу (33% each) */
.card-0 { flex: 1 1 calc(50% - 20px); }
.card-1 { flex: 1 1 calc(50% - 20px); }
.card-2 { flex: 1 1 calc(33.333% - 20px); }
.card-3 { flex: 1 1 calc(33.333% - 20px); }
.card-4 { flex: 1 1 calc(33.333% - 20px); }

.bento-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.bento-card > * { z-index: 1; position: relative; }

.card-icon {
    width: 60px; height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.bento-card:hover .card-icon { transform: scale(1.1) rotate(-5deg); background: var(--accent); color: #fff;}

.bento-card h3 { font-size: 1.5rem; margin-bottom: 12px; font-weight: 700; line-height: 1.3; }
.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
    flex: 1;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto;}
.card-tags span {
    background: var(--card-bg);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
}

.card-icon-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-tariff-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tariff-neuron {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tariff-synapse {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tariff-razum {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Mermaid Container Styles */
.mermaid-container {
    overflow-x: auto;
    width: 100%;
    margin: 24px auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mermaid-container::-webkit-scrollbar {
    height: 4px;
}

.mermaid-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

.mermaid svg {
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
    max-height: 220px;
    min-width: 280px;
    margin: 0 auto;
}

/* Mermaid arrow animation */
.mermaid-container svg path {
    stroke-dasharray: 10, 5 !important;
    animation: flowAnimation 1s linear infinite !important;
}

/* Exclude node borders from animation */
.mermaid-container svg .node rect,
.mermaid-container svg .node circle,
.mermaid-container svg .node polygon,
.mermaid-container svg .node path[fill="white"],
.mermaid-container svg .node path[fill="#fff"] {
    animation: none !important;
    stroke-dasharray: none !important;
}

@keyframes flowAnimation {
    to {
        stroke-dashoffset: -15;
    }
}

/* Mobile styles for mermaid diagrams */
@media (max-width: 768px) {
    .mermaid svg {
        max-height: 300px;
        min-width: 320px;
    }
}

/* Glass Card Styles for Modal */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(99, 102, 241, 0.2);
}

.badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
}

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

.animate-fade {
    animation: fadeIn 0.6s ease forwards;
}

/* Responsive Bento Grid */
@media (max-width: 1024px) {
    .bento-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-0 { grid-column: span 2; grid-row: span 1; }
    .card-1 { grid-column: span 1; }
    .card-2 { grid-column: span 1; }
    .card-3 { grid-column: span 1; }
    .card-4 { grid-column: span 1; }
    .card-5 { grid-column: span 1; }
}

@media (max-width: 768px) {
    .bento-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bento-card {
        padding: 24px;
    }
    
    .card-0,
    .card-1,
    .card-2,
    .card-3,
    .card-4,
    .card-5 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .card-0 h3 { font-size: 1.8rem; }
    .bento-card h3 { font-size: 1.3rem; }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Mega CTA Block */
.mega-cta {
    padding: 120px 5%;
    display: flex; justify-content: center;
}

.mega-cta-content {
    background: linear-gradient(145deg, var(--card-bg), rgba(59, 130, 246, 0.05));
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    max-width: 1000px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mega-cta-content::after {
    content: ''; position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: -1; pointer-events: none;
}

@keyframes rotate { 100% { transform: rotate(360deg); } }

.mega-cta h2 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; text-wrap: balance; }
.mega-cta p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

/* Modal Premium Styling */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 7, 18, 0.8); backdrop-filter: blur(20px);
    z-index: 1000; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease; padding: 20px;
}
.modal.visible { opacity: 1; }

.modal-content {
    background: #0a0e17;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    max-width: 900px; width: 100%; max-height: 90vh;
    overflow-y: auto; position: relative;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.modal.visible .modal-content { transform: translateY(0) scale(1); }

.close-modal {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--card-bg); border: 1px solid var(--card-border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); z-index: 10;
}
.close-modal:hover { background: var(--accent); color: white; transform: rotate(90deg); }

.modal-header { padding: 40px; border-bottom: 1px solid var(--card-border); display: flex; gap: 20px; align-items: center; }
.modal-header h2 { font-size: 2.2rem; font-weight: 800; text-wrap: balance; }
.modal-body { padding: 40px; }
.description { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }

.features-tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.features ul { list-style: none; }
.features li { padding: 10px 0; color: var(--text-muted); display: flex; gap: 10px; align-items: center; }
.features li::before { content: '\f00c'; font-family: 'FontAwesome'; color: var(--accent); }

.image-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; margin-bottom: 40px; }
.gallery-item { aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--card-border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.modal-footer { padding: 30px 40px; border-top: 1px solid var(--card-border); background: rgba(0,0,0,0.2); }

/* Scenario Modal with Simulator */
.scenario-modal-content {
    max-width: 900px;
    width: 95%;
}

.scenario-header {
    padding: 30px 40px 20px;
}

.scenario-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.scenario-body {
    padding: 0 40px 30px;
}

.scenario-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.scenario-features {
    margin-bottom: 25px;
}

.scenario-features h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 8px 0;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

.features-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.scenario-implementation {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.scenario-implementation h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.implementation-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.modal-simulator-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.modal-simulator-container .simulator-frame {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.modal-simulator-container .simulator-frame.iphone {
    max-width: 320px;
    margin: 0 auto;
}

.modal-simulator-container .demo-final-cta {
    position: relative;
    margin-top: 30px;
    left: auto;
    bottom: auto;
    transform: translateY(20px);
}

/* Traditional Form Modal Styles */
.traditional-form-content {
    max-width: 500px;
}

.traditional-form-content .modal-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.traditional-form-content .modal-header h2 {
    font-size: 1.8rem;
}

.traditional-form-content .modal-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.traditional-form-content .modal-body {
    padding: 30px 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

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

.traditional-form-content .modal-body button {
    width: 100%;
    margin-top: 10px;
}

/* Bot Message Section Styles */
.bot-message-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
}

.bot-message-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-message-section h3 i {
    color: var(--accent);
}

.bot-chat-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.bot-chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bot-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: messageSlideIn 0.3s ease-out;
}

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

.bot-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bot-message .message-content {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    max-width: 80%;
    font-size: 0.9rem;
    color: var(--text-main);
}

.user-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-end;
    animation: messageSlideIn 0.3s ease-out;
}

.user-message .message-content {
    background: var(--text-main);
    color: var(--bg-color);
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-right-radius: 4px;
    max-width: 80%;
    font-size: 0.9rem;
    border: none;
}

.bot-chat-input {
    padding: 15px;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

#bot-message-input {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    padding: 12px 20px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

#bot-message-input:focus {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

#bot-message-input::placeholder {
    color: var(--text-muted);
}

#bot-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

#bot-send-btn:hover {
    background: var(--accent-glow);
    transform: scale(1.05);
}

#bot-send-btn:active {
    transform: scale(0.95);
}

/* Scrollbar for bot messages */
.bot-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.bot-chat-messages::-webkit-scrollbar-track {
    background: var(--card-bg);
}

.bot-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.bot-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* Анимации появления */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-top { opacity: 0; transform: translateY(-20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.visible { opacity: 1; transform: translateY(0); }

/* Футер */
footer { padding: 40px 5%; border-top: 1px solid var(--card-border); margin-top: 60px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; flex-direction: column; gap: 8px; }
.footer-left p { color: var(--text-muted); font-size: 0.9rem; }
.footer-right { display: flex; gap: 16px; }
.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.footer-link:hover {
    background: var(--card-hover);
    border-color: var(--text-main);
    color: var(--text-main);
}

/* Адаптив */
@media (max-width: 1024px) {
    .bento-container { grid-template-columns: repeat(2, 1fr); }
    .card-0, .card-1, .card-4, .card-5 { grid-column: span 2; }
    .card-2, .card-3 { grid-column: span 1; }
    .features-tech-grid { grid-template-columns: 1fr; gap: 20px;}
    .navbar {
        padding: 1rem 4%;
    }

    .hero {
        padding-left: 4%;
        padding-right: 4%;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-title {
        font-size: clamp(2.6rem, 5vw, 4.4rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-buttons {
        gap: 14px;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        padding: 18px 30px;
        font-size: 1.1rem;
    }

    .stats-container {
        gap: 36px;
        padding: 48px 4%;
    }

    .pricing-section,
    .portfolio {
        padding-left: 4%;
        padding-right: 4%;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-card-featured {
        grid-column: 1 / -1;
        transform: translateY(0);
    }

    .chat-container {
        gap: 20px;
    }

    .modal-content {
        max-height: 92vh;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 4%;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .nav-link i {
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .badge-modern {
        font-size: 0.7rem;
        padding: 6px 12px;
        margin-bottom: 1.25rem;
        gap: 6px;
    }

    .pulse-dot {
        width: 6px;
        height: 6px;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: 1.1;
        margin-bottom: 1.25rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        max-width: 100%;
        line-height: 1.5;
    }

    .hero-buttons {
        width: 100%;
        max-width: 100%;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        font-size: 0.95rem;
        padding: 14px 20px;
        gap: 8px;
    }

    .marquee-container {
        padding: 18px 0;
        margin: 24px 0;
        transform: none;
    }

    .marquee-content {
        gap: 24px;
        animation-duration: 18s;
    }

    .marquee-content span {
        font-size: 1rem;
    }

    .stats-container {
        gap: 22px;
        padding: 36px 4%;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .pricing-section,
    .portfolio,
    .chat-section,
    .mega-cta {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    .pricing-card,
    .bento-card,
    .sidebar-section,
    .mega-cta-content,
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pricing-top {
        gap: 10px;
    }

    .pricing-name {
        font-size: 1.35rem;
    }

    .pricing-launch {
        font-size: 0.88rem;
    }

    .bento-container { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .card-0, .card-1, .card-2, .card-3, .card-4, .card-5 { grid-column: span 1; grid-row: span 1; }
    .stats-container { flex-direction: column; }
    .pricing-card-featured { transform: none; }
    .pricing-top { flex-direction: column; }
    .pricing-launch { text-align: left; }
    .mega-cta { padding-top: 56px; padding-bottom: 56px; }
    .mega-cta-content { padding-top: 36px; padding-bottom: 36px; }
    .mega-cta h2 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
    .mega-cta p { font-size: 1rem; margin-bottom: 28px; }
    .image-gallery { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 10px; text-align: center; }
    .chat-container { grid-template-columns: 1fr; }
    .chat-messages {
        height: 400px;
    }
    
    .message {
        max-width: 85%;
    }
    
    .message-avatar {
        width: 36px;
        height: 36px;
    }
    
    .message-content {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .quick-actions { justify-content: flex-start; }
    .input-wrapper {
        flex-direction: column;
    }

    .send-btn {
        width: 100%;
    }

    .contact-buttons {
        gap: 12px;
    }

    .modal {
        padding: 12px;
    }

    .modal-content {
        border-radius: 20px;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 28px;
    }

    .modal-header h2 {
        font-size: 1.7rem;
    }

    .close-modal {
        top: 14px;
        right: 14px;
    }

    .bot-chat-input {
        flex-direction: column;
    }

    #bot-send-btn {
        width: 100%;
        border-radius: 14px;
    }

    .bot-message .message-content,
    .user-message .message-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 50px;
        padding-left: 4%;
        padding-right: 4%;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .badge-modern {
        font-size: 0.7rem;
        padding: 6px 12px;
        margin-bottom: 1.25rem;
        gap: 6px;
        letter-spacing: 0.5px;
    }

    .pulse-dot {
        width: 6px;
        height: 6px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 10vw, 2.6rem);
        line-height: 1.1;
        margin-bottom: 1.25rem;
        letter-spacing: -0.5px;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
        padding: 0 2%;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-link {
        font-size: 0;
        padding: 8px;
    }

    .nav-link i {
        font-size: 1.2rem;
        margin: 0;
    }

    .btn-sm {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .hero-buttons {
        gap: 12px;
        max-width: 100%;
    }

    .hero-buttons .btn {
        font-size: 1rem;
        padding: 16px 24px;
        gap: 8px;
        min-height: 52px;
    }

    .section-title {
        font-size: clamp(1.8rem, 10vw, 2.4rem);
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 2%;
    }

    .stats-container {
        padding: 32px 4%;
        gap: 16px;
    }

    .stat-item {
        padding: 20px 16px;
        min-width: unset;
        width: 100%;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .reviews-widget {
        margin-top: 32px;
    }

    .reviews-title {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }

    .reviews-container {
        height: auto;
        min-height: 200px;
    }

    .review-card {
        padding: 16px;
        height: auto;
        min-height: 180px;
    }

    .review-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .review-name {
        font-size: 0.95rem;
    }

    .review-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .pricing-card,
    .bento-card,
    .sidebar-section,
    .mega-cta-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pricing-section,
    .portfolio,
    .chat-section,
    .mega-cta {
        padding: 60px 4%;
    }

    .pricing-grid {
        gap: 16px;
    }

    .pricing-card {
        padding: 20px 16px;
        gap: 16px;
    }

    .pricing-badge {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .pricing-name {
        font-size: 1.4rem;
    }

    .pricing-price {
        font-size: 0.95rem;
    }

    .pricing-list {
        gap: 10px;
    }

    .pricing-list li {
        font-size: 0.9rem;
        padding-left: 18px;
    }

    .pricing-btn {
        min-height: 48px;
        font-size: 1rem;
    }

    .bento-card {
        padding: 20px;
        min-height: 200px;
    }

    .bento-card h3 {
        font-size: 1.2rem;
    }

    .card-0 h3 {
        font-size: 1.5rem;
    }

    .bento-card p {
        font-size: 0.9rem;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .card-tags span {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .mega-cta-content {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .mega-cta h2 {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
    }

    .mega-cta h2 br {
        display: none;
    }

    .mega-cta p {
        font-size: 1rem;
    }

    .btn-large {
        padding: 16px 28px;
        font-size: 1rem;
        width: 100%;
    }

    .chat-messages {
        height: 400px;
        padding: 12px;
    }

    .message {
        max-width: 92%;
        gap: 8px;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .message-content {
        padding: 10px 14px;
    }

    .message-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .chat-input-area {
        padding: 12px;
    }

    .input-wrapper {
        gap: 8px;
    }

    .input-wrapper input {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
    }

    .send-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }

    .quick-actions {
        gap: 8px;
        justify-content: flex-start;
    }

    .quick-action-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        flex: 1 1 calc(50% - 4px);
        min-width: unset;
        justify-content: center;
        min-height: 40px;
    }

    .sidebar-section {
        padding: 16px;
    }

    .contact-buttons {
        gap: 10px;
    }

    .contact-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
        min-height: 48px;
        justify-content: center;
    }

    .modal {
        padding: 8px;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 20px 20px 16px 16px;
        max-height: 92vh;
    }

    .modal-header {
        padding: 24px 20px 16px;
        flex-direction: row;
        align-items: center;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .close-modal {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .modal-body {
        padding: 16px 20px;
    }

    .modal-footer {
        padding: 16px 20px;
    }

    .modal .btn-large {
        min-height: 52px;
    }

    .description {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .features-tech-grid {
        gap: 24px;
    }

    .features h3,
    .tech-stack h3,
    .gallery-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .features li {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .tech-tags {
        gap: 6px;
    }

    .tech-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .bot-message-section {
        padding: 16px;
        margin: 20px 0;
    }

    .bot-message-section h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .bot-chat-messages {
        max-height: 200px;
        padding: 12px;
    }

    .bot-chat-input {
        padding: 12px;
        flex-direction: row;
    }

    #bot-message-input {
        padding: 12px 16px;
        font-size: 16px;
    }

    #bot-send-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .traditional-form-content {
        max-width: 100%;
    }

    .traditional-form-content .modal-header {
        padding: 24px 20px 16px;
    }

    .traditional-form-content .modal-header h2 {
        font-size: 1.4rem;
    }

    .traditional-form-content .modal-body {
        padding: 16px 20px 24px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .completion-card,
    .bot-message-section {
        padding: 16px;
    }

    .completion-card h3 {
        font-size: 1.15rem;
    }

    .completion-card p {
        font-size: 0.95rem;
    }

    .completion-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .completion-stats .stat-item {
        font-size: 0.85rem;
    }

    .next-steps {
        padding: 14px;
    }

    .next-steps h4 {
        font-size: 1rem;
    }

    .next-steps li {
        font-size: 0.9rem;
        padding: 6px 0 6px 24px;
    }

    footer {
        padding: 32px 4%;
        margin-top: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-left {
        align-items: center;
    }

    .footer-right {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .footer-link {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

/* Ultra small screens (360px and below) */
@media (max-width: 360px) {
    .hero {
        padding-top: 80px;
        padding-left: 3%;
        padding-right: 3%;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 14px 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .pricing-name {
        font-size: 1.25rem;
    }

    .bento-card h3 {
        font-size: 1.1rem;
    }

    .quick-action-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .quick-action-btn i {
        display: none;
    }

    .mega-cta h2 {
        font-size: 1.4rem;
    }
}

/* Chat Section Styles */
.chat-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.chat-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    min-width: 0;
}

.chat-main {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-messages {
    height: 600px;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 80%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-content {
    background: var(--card-hover);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
}

.user-message .message-content {
    background: var(--accent);
    color: white;
}

.message-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Стили для ссылок в сообщениях бота */
/* Bot Message Link Styles */
.chat-messages .message-content a,
.main-chat-messages .message-content a,
.bot-chat-messages .message-content a,
.message-content a,
.bot-message .message-content a {
    color: #60a5fa !important;
    text-decoration: none !important;
    border-bottom: 2px solid #60a5fa !important;
    background: rgba(96, 165, 250, 0.15) !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    font-weight: 600 !important;
    display: inline-block !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

.chat-messages .message-content a:hover,
.main-chat-messages .message-content a:hover,
.bot-chat-messages .message-content a:hover,
.message-content a:hover,
.bot-message .message-content a:hover {
    color: #93c5fd !important;
    border-bottom-color: #93c5fd !important;
    background: rgba(96, 165, 250, 0.25) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4) !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

.chat-messages .message-content a:active,
.main-chat-messages .message-content a:active,
.bot-chat-messages .message-content a:active,
.message-content a:active,
.bot-message .message-content a:active {
    transform: translateY(0) !important;
    background: rgba(96, 165, 250, 0.3) !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Typing Indicator Styles */
.typing-indicator .message-content {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 16px 20px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--card-border);
}

.input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.input-wrapper input {
    flex: 1;
    background: var(--card-hover);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-action-btn {
    background: var(--card-hover);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-action-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}



.sidebar-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.sidebar-section h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-list strong {
    color: var(--text-main);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-btn {
    background: var(--card-hover);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.big-contact-btn {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    padding: 20px 24px;
    font-size: 1.15rem;
    font-weight: 700;
    min-height: 60px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    margin-top: 8px;
}

.big-contact-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

/* Responsive for chat section */
@media (max-width: 1024px) {
    .chat-container {
            display: flex;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    min-width: 0;
    grid-auto-flow: row;
    flex-direction: column;
    }

}

@media (max-width: 768px) {
    .chat-section {
        padding: 60px 4%;
    }

    .chat-container {
            display: flex;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    min-width: 0;
    grid-auto-flow: row;
    flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }

    .chat-main {
        border-radius: var(--radius-md);
    }

    .chat-messages {
        height: 450px;
        padding: 15px;
    }

    .message {
        max-width: 90%;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
    }

    .message-content {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .chat-input-area {
        padding: 15px;
    }

    .input-wrapper {
        flex-direction: row;
        gap: 10px;
    }

    .input-wrapper input {
        flex: 1;
        padding: 12px 14px;
    }

    .send-btn {
        width: 48px;
        height: 44px;
        flex-shrink: 0;
    }

    .quick-actions {
        justify-content: center;
        gap: 8px;
    }

    .quick-action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        flex: 1;
        justify-content: center;
        min-width: calc(33.333% - 6px);
    }

    .sidebar-section {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .sidebar-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .info-list li {
        font-size: 0.85rem;
    }

    .contact-buttons {
        gap: 8px;
    }

    .contact-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* Completion Message Styles */
.completion-message {
    max-width: 100% !important;
}

.completion-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 160, 247, 0.05));
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 8px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
    animation: completionPulse 2s ease-in-out infinite alternate;
}

.completion-card h3 {
    color: var(--accent-glow);
    font-size: 1.3rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.completion-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-main);
}

.completion-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.completion-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.completion-stats .stat-item i {
    color: var(--accent);
    font-size: 1rem;
}

.completion-stats .stat-item span {
    color: var(--text-main);
    font-weight: 500;
}

.next-steps {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.next-steps h4 {
    color: var(--accent-glow);
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.next-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Disabled Chat State */
.chat-disabled {
    opacity: 0.7;
    position: relative;
}

.chat-disabled:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.3);
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.chat-disabled .chat-input-area {
    filter: grayscale(50%);
    opacity: 0.6;
}

.chat-disabled input:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed !important;
    color: var(--text-muted) !important;
}

.chat-disabled button:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.chat-disabled button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

@keyframes completionPulse {
    0% {
        box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
    }
    100% {
        box-shadow: 0 8px 48px rgba(59, 130, 246, 0.4);
    }
}

/* Skrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ========================
   REDESIGN v2 — NEW STYLES
   ======================== */

/* Hero micro-text */
.hero-micro {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
    letter-spacing: 0.01em;
}

/* Three steps section */
.steps-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 36px 32px;
    background: var(--card-bg);
    transition: background 0.25s ease;
    position: relative;
    border-radius: var(--radius-lg);
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid var(--card-border);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    z-index: 1;
}

.step-item:hover {
    background: var(--card-hover);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -0.03em;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .step-item {
        padding: 24px 20px;
    }
    .step-item:not(:last-child)::after {
        right: 50%;
        top: auto;
        bottom: -12px;
        transform: translateX(50%);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 12px solid var(--card-border);
        border-bottom: none;
    }
}

/* Pricing tagline ("для кого") */
.pricing-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Pricing footnote */
.pricing-footnote {
    max-width: 900px;
    margin: 32px auto 0;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.pricing-footnote p + p {
    margin-top: 8px;
}

/* Nav links */
.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 4px 8px;
}

.nav-link:hover {
    color: var(--text-main);
}

/* Scenario card tariff badge */
.card-icon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-tariff-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid;
}

.card-tariff-badge.tariff-neuron {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
}

.card-tariff-badge.tariff-synapse {
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
}

.card-tariff-badge.tariff-razum {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

/* Move card-icon margin to card-icon-row */
.card-icon-row .card-icon {
    margin-bottom: 0;
}

/* Cabinet modal sizing */
.cabinet-modal-content {
    max-width: 480px;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    z-index: 9999;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease;
}

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

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-banner-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.cookie-banner-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}

.cookie-settings-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cookie-settings-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-main);
}

.cookie-banner-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-banner-buttons .btn {
    flex: 1;
    min-width: 100px;
    font-size: 0.8rem;
    padding: 8px 12px;
}

@media (min-width: 640px) {
    .cookie-banner {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 18px;
        border-radius: var(--radius-lg);
    }

    .cookie-banner-content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
    }

    .cookie-banner-text {
        flex: 1;
        padding-right: 20px;
    }

    .cookie-banner-text h3 {
        font-size: 1rem;
    }

    .cookie-banner-text p {
        font-size: 0.85rem;
    }

    .cookie-banner-buttons {
        flex: 0 0 auto;
        min-width: 260px;
    }

    .cookie-banner-buttons .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

/* Cookie Settings Modal */
.cookie-modal {
    z-index: 10000;
}

.cookie-modal-content {
    max-width: 560px;
    padding: 20px;
}

@media (max-width: 639px) {
    .cookie-modal-content {
        max-width: 95%;
        padding: 16px;
        margin: 16px;
    }
}

.cookie-category {
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cookie-category-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.cookie-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.cookie-toggle {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    white-space: nowrap;
}

.cookie-toggle-disabled {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

/* Cookie Toggle Switch */
.cookie-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: var(--transition);
    border-radius: 50%;
}

.cookie-toggle-switch input:checked + .cookie-slider {
    background-color: var(--accent);
    border-color: var(--accent);
}

.cookie-toggle-switch input:checked + .cookie-slider:before {
    transform: translateX(20px);
    background-color: white;
}

.cookie-toggle-switch input:focus + .cookie-slider {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.cookie-modal-buttons {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

.cookie-modal-buttons .btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 10px 16px;
}

@media (min-width: 640px) {
    .cookie-modal-content {
        padding: 24px;
    }

    .cookie-category {
        padding: 16px 0;
    }

    .cookie-category-header {
        gap: 16px;
    }

    .cookie-category-header h4 {
        font-size: 1rem;
    }

    .cookie-description {
        font-size: 0.85rem;
    }

    .cookie-toggle {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .cookie-toggle-switch {
        width: 50px;
        height: 28px;
    }

    .cookie-slider:before {
        height: 20px;
        width: 20px;
    }

    .cookie-toggle-switch input:checked + .cookie-slider:before {
        transform: translateX(22px);
    }

    .cookie-modal-buttons {
        margin-top: 24px;
        padding-top: 24px;
    }

    .cookie-modal-buttons .btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateX(100%);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.toast.success .toast-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.toast.warning .toast-icon {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.toast.info .toast-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 16px;
    padding: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* ============================================
   ПЕСОЧНИЦА РЕШЕНИЙ - ИНТЕРАКТИВНЫЙ ДЕМО-БЛОК
   ============================================ */

.demo-experience {
    position: relative;
    padding: 100px 5%;
    background: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
    font-family: var(--font-main);
}

/* Сетка на фоне */
.demo-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--card-border) 1px, transparent 1px), 
                      linear-gradient(90deg, var(--card-border) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    opacity: 0.3;
    pointer-events: none;
}

.demo-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.demo-text {
    text-align: center;
    margin-bottom: 60px;
}

.demo-text .glow-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 12px;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.demo-text p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.demo-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

/* Кнопки управления */
.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    font-family: var(--font-main);
}

.control-btn:hover {
    background: var(--card-hover);
    transform: translateX(10px);
    border-color: rgba(59, 130, 246, 0.3);
}

.control-btn.active {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
}

.control-btn .icon { font-size: 24px; line-height: 1; color: var(--accent); }
.control-btn .icon i { font-size: 24px; }
.control-btn .title { display: block; font-weight: 600; color: #fff; font-size: 1rem; }
.control-btn .desc { font-size: 0.85rem; color: var(--text-muted); }

/* Фрейм устройства */
.demo-display {
    display: flex;
    justify-content: center;
}

.simulator-frame {
    background: #0f1419;
    border-radius: 24px;
    border: 6px solid #2a2d35;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    height: 500px;
    position: relative;
}

/* MacBook Mode */
.simulator-frame.macbook { width: 100%; max-width: 800px; }

/* iPhone Mode */
.simulator-frame.iphone {
    width: 300px;
    height: 600px;
    margin: 0 auto;
    border-radius: 40px;
    border-width: 12px;
}

.frame-header {
    background: #1a1d24;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dots { display: flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.address-bar {
    background: #0f1419;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    flex-grow: 1;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.frame-body {
    height: calc(100% - 40px);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease;
}

/* Стили контента AI Chat */
.ai-chat-demo { display: flex; flex-direction: column; height: 100%; }
.chat-messages-sim { flex-grow: 1; overflow-y: auto; margin-bottom: 20px; }
.msg-sim { margin-bottom: 10px; padding: 10px 14px; border-radius: 12px; max-width: 80%; font-size: 14px; line-height: 1.4; }
.msg-sim.user { background: var(--accent); align-self: flex-end; color: #fff; }
.msg-sim.bot { background: #2a2d35; align-self: flex-start; color: var(--text-main); }
.typing-sim { color: var(--text-muted); font-size: 12px; font-style: italic; display: none; margin-top: 10px; }

.chat-hints { display: flex; gap: 8px; flex-wrap: wrap; }
.hint-btn-sim { 
    background: none; 
    border: 1px solid var(--accent); 
    color: var(--accent); 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 12px; 
    cursor: pointer; 
    transition: var(--transition);
    font-family: var(--font-main);
}
.hint-btn-sim:hover { background: var(--accent); color: #fff; }

/* CRM Styles */
.crm-board { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; height: 100%; }
.crm-col { background: rgba(255,255,255,0.03); border-radius: 12px; padding: 10px; border: 1px dashed var(--card-border); }
.crm-col h4 { font-size: 12px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 15px; font-weight: 600; }
.crm-card { background: var(--card-bg); padding: 12px; border-radius: 8px; border-left: 4px solid var(--accent); margin-bottom: 10px; cursor: pointer; transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.score-badge { font-size: 10px; background: rgba(39, 201, 63, 0.2); color: #27c93f; padding: 2px 6px; border-radius: 4px; float: right; }

/* Telegram WebApp Styles */
.tg-webapp { background: #000; height: 100%; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; }
.tg-header { background: #242424; padding: 15px; font-size: 14px; text-align: center; border-bottom: 1px solid #333; color: #fff; }
.tg-content { padding: 20px; flex-grow: 1; text-align: center; }
.tg-avatar { width: 60px; height: 60px; background: var(--accent); border-radius: 50%; margin: 20px auto; display: flex; align-items: center; justify-content: center; }
.tg-avatar i { font-size: 28px; color: #fff; }
.tg-content h3 { color: #fff; margin-bottom: 8px; }
.tg-content p { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.tg-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.tg-success { display: none; padding: 20px; background: #27c93f; text-align: center; color: #fff; font-weight: 600; }

/* Toast in simulator */
.sim-toast {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(59, 130, 246, 0.95);
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
    backdrop-filter: blur(5px);
    color: #fff;
    animation: slideUp 0.3s ease;
    z-index: 10;
}

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

/* Адаптивность */
@media (max-width: 992px) {
    .demo-layout { grid-template-columns: 1fr; }
    .demo-controls { 
        order: 2; 
        flex-direction: row; 
        overflow-x: auto; 
        padding-bottom: 10px;
        gap: 10px;
    }
    .control-btn { 
        min-width: 250px; 
        flex-shrink: 0;
    }
    .control-btn:hover {
        transform: translateY(-5px);
    }
    .demo-display { order: 1; margin-bottom: 20px; }
    .demo-experience { padding: 60px 4%; }
    .simulator-frame.macbook { max-width: 100%; }
}

@media (max-width: 480px) {
    .control-btn { min-width: 200px; padding: 15px; }
    .control-btn .icon { font-size: 24px; }
    .control-btn .title { font-size: 0.9rem; }
    .control-btn .desc { font-size: 0.75rem; }
    .simulator-frame { height: 450px; }
    .simulator-frame.iphone { width: 260px; height: 520px; }
    .crm-board { grid-template-columns: 1fr; }
}

/* ROI Toast - Счетчик выгоды */
.roi-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, rgba(3, 7, 18, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 16px;
    padding: 20px 28px;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3), 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 400px;
    text-align: center;
}

.roi-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.roi-toast-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.roi-toast-icon {
    font-size: 2rem;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.roi-toast-text {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.roi-toast-text .highlight-time {
    color: #27c93f;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(39, 201, 63, 0.4);
}

.roi-toast-text .highlight-ai {
    color: var(--accent-glow);
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

/* Final CTA Button - Apple-подобный стиль */
.demo-final-cta {
    position: relative;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
}

.demo-final-cta.show {
    transform: translateY(0);
    opacity: 1;
}

.btn-cta-final {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: inherit;
}

.btn-cta-final:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-cta-final:active {
    transform: translateY(0) scale(0.98);
}

/* Пульсирующее свечение для CTA - эффект дыхания */
.btn-cta-final.pulse-glow {
    animation: cta-breathe 2.5s ease-in-out infinite;
}

@keyframes cta-breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4), 0 0 0 0 rgba(0, 122, 255, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5), 0 0 0 12px rgba(0, 122, 255, 0);
    }
}

/* Pause animation on hover */
.btn-cta-final.pulse-glow:hover {
    animation-play-state: paused;
}

.btn-cta-final i {
    font-size: 1.1rem;
}

/* Адаптивность для ROI Toast и CTA */
@media (max-width: 480px) {
    .roi-toast {
        left: 20px;
        right: 20px;
        transform: translateY(100px);
        max-width: none;
        padding: 16px 20px;
    }
    
    .roi-toast.show {
        transform: translateY(0);
    }
    
    .btn-cta-final {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* Responsive styles for Bento Grid */
@media (max-width: 1024px) {
    .bento-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
    .card-0 { grid-column: span 2; grid-row: span 2; }
    .card-1 { grid-column: span 2; grid-row: span 1; }
    .card-2 { grid-column: span 1; grid-row: span 1; }
    .card-3 { grid-column: span 1; grid-row: span 1; }
    .card-4 { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
    .bento-container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-card {
        min-height: 200px;
    }
    .card-0, .card-1, .card-2, .card-3, .card-4 {
        grid-column: span 1;
        grid-row: span 1;
    }
    .card-0 h3 { font-size: 1.5rem; }
}

/* Responsive styles for Scenario Modal */
@media (max-width: 768px) {
    .scenario-modal-content {
        width: 100%;
        margin: 10px;
    }
    .scenario-header {
        padding: 20px 20px 15px;
    }
    .scenario-header h2 {
        font-size: 1.4rem;
    }
    .scenario-body {
        padding: 0 20px 20px;
    }
    .modal-simulator-container {
        min-height: 350px;
    }
    .modal-simulator-container .simulator-frame {
        height: 400px;
    }
    .modal-simulator-container .simulator-frame.iphone {
        max-width: 260px;
    }
}

/* ========================================
   CLINIC SYNC SIMULATOR - Telegram ↔ CRM
   ======================================== */

.clinic-sync-demo {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.sync-simulator {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    height: 100%;
}

/* Telegram Phone Panel */
.sync-phone {
    background: linear-gradient(145deg, #1a1d24 0%, #0f1419 100%);
    border-radius: 20px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 380px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.sync-phone-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.sync-phone-header i {
    color: #0088cc;
    font-size: 1.1rem;
}

.sync-phone-chat {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sync-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    animation: messageSlide 0.3s ease-out;
}

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

.sync-message.bot {
    background: #2a2d35;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.sync-message.user {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: white;
}

.sync-phone-controls {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
}

.sync-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-glow);
    padding: 10px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sync-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent-glow);
    transform: translateX(4px);
}

.sync-btn.primary {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.sync-btn i {
    font-size: 0.9rem;
}

/* Sync Arrow */
.sync-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent-glow);
    font-size: 1.5rem;
    position: relative;
}

.sync-pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 8px;
    animation: syncPulse 1.5s infinite;
}

@keyframes syncPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

/* CRM Panel */
.sync-crm {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 380px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.sync-crm-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--card-border);
}

.sync-crm-header i {
    color: var(--success);
}

.sync-crm-badge {
    margin-left: auto;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sync-crm-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px;
    flex: 1;
    overflow: hidden;
}

.sync-crm-col {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sync-crm-col-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sync-crm-col[data-status="new"] .sync-crm-col-header { color: var(--accent-glow); }
.sync-crm-col[data-status="progress"] .sync-crm-col-header { color: var(--warning); }
.sync-crm-col[data-status="closed"] .sync-crm-col-header { color: var(--success); }

.sync-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.sync-crm-leads {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Lead Cards */
.sync-lead-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.75rem;
    transition: var(--transition);
    animation: cardSlide 0.4s ease-out;
}

@keyframes cardSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sync-lead-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.sync-lead-header {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sync-lead-service {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.sync-lead-client {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.sync-lead-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.sync-tag {
    padding: 2px 6px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-glow);
}

.sync-tag-new { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.sync-tag-progress { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.sync-tag-closed { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }

/* AI Probability indicator */
.sync-ai-prob {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    color: var(--success);
    animation: aiGlow 2s ease-in-out infinite;
}

@keyframes aiGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.sync-ai-prob i {
    color: var(--success);
}

/* Responsive Clinic Sync */
@media (max-width: 768px) {
    .sync-simulator {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sync-arrow {
        transform: rotate(90deg);
    }

    .sync-phone,
    .sync-crm {
        height: 320px;
    }

    .sync-crm-columns {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sync-crm-col {
        min-height: 80px;
    }
}

/* ============================================
   BENEFIT BADGES - Цветовая кодировка выгод
   ============================================ */

.benefit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid;
}

.benefit-time {
    background: var(--benefit-time-bg);
    color: var(--benefit-time);
    border-color: var(--benefit-time-border);
}

.benefit-money {
    background: var(--benefit-money-bg);
    color: var(--benefit-money);
    border-color: var(--benefit-money-border);
}

.benefit-service {
    background: var(--benefit-service-bg);
    color: var(--benefit-service);
    border-color: var(--benefit-service-border);
}

/* Кнопка демо в карточках */
.card-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(10px);
}

.bento-card:hover .card-demo-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-demo-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.card-demo-btn i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.card-demo-btn:hover i {
    transform: translateX(3px);
}

/* ============================================
   SIMULATOR TOGGLE - Переключатель видов
   ============================================ */

.simulator-view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.simulator-view-toggle span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.simulator-view-toggle span.active {
    color: var(--text-main);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--card-hover);
    border-radius: 13px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.toggle-switch.active {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
    transform: translateX(24px);
}

/* Мобильные виды симулятора */
@media (max-width: 768px) {
    .sync-simulator.mobile-client-view .sync-crm {
        display: none;
    }

    .sync-simulator.mobile-client-view .sync-arrow {
        display: none;
    }

    .sync-simulator.mobile-client-view .sync-phone {
        grid-column: 1 / -1;
        max-width: 320px;
        margin: 0 auto;
    }

    .sync-simulator.mobile-crm-view .sync-phone {
        display: none;
    }

    .sync-simulator.mobile-crm-view .sync-arrow {
        display: none;
    }

    .sync-simulator.mobile-crm-view .sync-crm {
        grid-column: 1 / -1;
    }
}

/* ============================================
   OVERLAY TOOLTIPS - Всплывающие подсказки
   ============================================ */

.demo-tooltip {
    position: fixed;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    z-index: 10000;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    max-width: 280px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.demo-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.demo-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(5, 150, 105, 0.95);
}

.demo-tooltip.top::after {
    bottom: auto;
    top: -6px;
    border-top: none;
    border-bottom: 6px solid rgba(16, 185, 129, 0.95);
}

/* ============================================
   BUSINESS CALCULATOR - Бизнес-калькулятор
   ============================================ */

.calculator-demo {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 24px;
    font-family: var(--font-main);
}

.calculator-header {
    text-align: center;
    margin-bottom: 24px;
}

.calculator-header h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.calculator-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.calculator-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.calculator-total {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--benefit-money);
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.calculator-total.updating {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.calculator-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.calculator-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: var(--transition);
}

.calc-row:hover {
    border-color: var(--benefit-money-border);
    background: var(--benefit-money-bg);
}

.calc-row-info {
    display: flex;
    flex-direction: column;
}

.calc-row-label {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.calc-row-price {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.calc-row-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calc-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.calc-btn:active {
    transform: scale(0.95);
}

.calc-count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    min-width: 24px;
    text-align: center;
}

.calculator-actions {
    display: flex;
    gap: 12px;
}

.calculator-actions button {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.calc-btn-primary {
    background: var(--benefit-money);
    border: none;
    color: white;
}

.calc-btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.calc-btn-secondary {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
}

.calc-btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

/* ============================================
   RAGE CLICK HELP PROMPT
   ============================================ */

.help-prompt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.help-prompt-overlay.show {
    opacity: 1;
    visibility: visible;
}

.help-prompt-modal {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-prompt-overlay.show .help-prompt-modal {
    transform: scale(1);
}

.help-prompt-icon {
    width: 64px;
    height: 64px;
    background: var(--benefit-time-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--benefit-time);
}

.help-prompt-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.help-prompt-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.help-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-prompt-actions button {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.help-btn-video {
    background: var(--accent);
    border: none;
    color: white;
}

.help-btn-video:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.help-btn-call {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
}

.help-btn-call:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* ============================================
   ADVANCED SIMULATORS - Новые продвинутые симуляторы
   ============================================ */

/* --- SCENARIO 1: RAG AI-АГЕНТ --- */

.rag-agent-demo {
    height: 100%;
    padding: 20px;
}

.rag-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

@media (max-width: 768px) {
    .rag-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

/* Левая панель - Документ */
.rag-document-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rag-doc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--card-border);
}

.rag-doc-header i {
    color: #ef4444;
    font-size: 1.2rem;
}

.rag-doc-header span {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.rag-doc-badge {
    margin-left: auto;
    font-size: 0.7rem;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 100px;
}

.rag-document {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    position: relative;
}

.rag-paragraph {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.rag-paragraph.highlighted {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--warning);
    animation: paragraphHighlight 0.5s ease;
}

@keyframes paragraphHighlight {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
}

.rag-para-num {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 24px;
}

.rag-para-content strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.rag-para-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Луч сканера */
.rag-scanner-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(59, 130, 246, 0.3) 40%,
        rgba(59, 130, 246, 0.5) 50%,
        rgba(59, 130, 246, 0.3) 60%,
        transparent 100%);
    opacity: 0;
    pointer-events: none;
    transition: top 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rag-scanner-beam.active {
    opacity: 1;
    animation: scannerPulse 0.6s ease infinite alternate;
}

@keyframes scannerPulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.rag-doc-footer {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--card-border);
}

.rag-ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rag-ai-status.scanning {
    color: var(--accent-glow);
    animation: statusPulse 1s ease infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.rag-ai-status i {
    font-size: 0.9rem;
}

/* Правая панель - Чат */
.rag-chat-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rag-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid var(--card-border);
}

.rag-chat-header i {
    color: var(--accent);
    font-size: 1.2rem;
}

.rag-chat-header span {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

.rag-model-badge {
    margin-left: auto;
    font-size: 0.65rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 100px;
}

.rag-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rag-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: messageSlide 0.3s ease;
}

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

.rag-message.rag-bot {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.rag-message.rag-user {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: white;
}

.rag-msg-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rag-msg-source i {
    font-size: 0.7rem;
}

.rag-typing {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 10px;
}

.rag-typing-indicator {
    display: flex;
    gap: 4px;
}

.rag-typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.rag-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.rag-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.rag-typing-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rag-chat-controls {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--card-border);
}

.rag-hint-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.rag-hint-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rag-hint-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-glow);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rag-hint-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}

.rag-hint-btn.pulse-hint {
    animation: hintPulse 1s ease infinite;
}

@keyframes hintPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

/* --- SCENARIO 2: LIVE CRM SYNC --- */

.crm-sync-advanced {
    height: 100%;
    padding: 15px;
}

.crm-toggle-mobile {
    display: none;
    gap: 10px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .crm-toggle-mobile {
        display: flex;
        justify-content: center;
    }
}

.crm-view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crm-view-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
    color: var(--accent-glow);
}

.crm-sync-layout {
    display: grid;
    grid-template-columns: 1fr auto 1.2fr;
    gap: 20px;
    height: 100%;
}

@media (max-width: 768px) {
    .crm-sync-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;
    }
    .crm-sync-layout.mobile-client-view .crm-admin-panel,
    .crm-sync-layout.mobile-client-view .crm-sync-connector {
        display: none;
    }
    .crm-sync-layout.mobile-admin-view .crm-phone-panel,
    .crm-sync-layout.mobile-admin-view .crm-sync-connector {
        display: none;
    }
}

/* Телефон клиента */
.crm-phone-panel {
    display: flex;
    justify-content: center;
}

.crm-phone-frame {
    width: 280px;
    background: linear-gradient(145deg, #1a1d24 0%, #0f1419 100%);
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.crm-phone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.crm-phone-header i {
    color: #0088cc;
    font-size: 1.3rem;
}

.crm-phone-info {
    display: flex;
    flex-direction: column;
}

.crm-phone-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.crm-phone-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success);
    animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.crm-phone-chat {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crm-chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: chatAppear 0.3s ease;
}

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

.crm-chat-message.bot {
    background: rgba(255, 255, 255, 0.08);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.crm-chat-message.user {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: white;
}

.crm-phone-controls {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.crm-phone-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-glow);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crm-phone-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}

.crm-phone-btn.primary {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: var(--success);
}

.crm-phone-btn.success {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
}

/* Синхронизационная стрелка */
.crm-sync-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 60px;
}

.sync-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--accent), var(--accent-purple));
    opacity: 0.3;
}

.sync-arrow-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 10px 0;
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
}

.sync-label {
    font-size: 0.7rem;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sync-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sync-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    animation: particleFly 1s ease forwards;
}

@keyframes particleFly {
    0% { top: 0; opacity: 1; transform: translateX(-50%) scale(1); }
    100% { top: 100%; opacity: 0; transform: translateX(-50%) scale(0.5); }
}

/* CRM Админ панель */
.crm-admin-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.crm-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--card-border);
}

.crm-admin-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.crm-admin-title i {
    color: var(--success);
}

.crm-ai-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    padding: 4px 10px;
    border-radius: 100px;
}

/* AI Insights блок */
.crm-ai-insights {
    margin: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    overflow: hidden;
    animation: insightSlide 0.5s ease;
}

@keyframes insightSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-insights-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(245, 158, 11, 0.15);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--warning);
}

.ai-insight-content {
    padding: 12px 14px;
}

.ai-insight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.8rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-insight-item:last-child {
    border-bottom: none;
}

.ai-insight-item i {
    color: var(--warning);
    font-size: 0.9rem;
}

.ai-insight-item.success i {
    color: var(--success);
}

.highlight-success {
    color: var(--success);
    font-weight: 600;
}

/* Kanban доска */
.crm-kanban {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .crm-kanban {
        grid-template-columns: 1fr;
    }
}

.crm-kanban-col {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.crm-kanban-col.pulse-highlight {
    animation: columnPulse 0.5s ease;
}

@keyframes columnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
}

.crm-kanban-col[data-status="new"] .crm-kanban-header { color: var(--accent-glow); }
.crm-kanban-col[data-status="progress"] .crm-kanban-header { color: var(--warning); }
.crm-kanban-col[data-status="closed"] .crm-kanban-header { color: var(--success); }

.crm-kanban-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.crm-kanban-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
}

.crm-kanban-leads {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Lead Cards */
.crm-lead-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    animation: cardSlide 0.4s ease;
}

@keyframes cardSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.crm-lead-card.new {
    border-left: 3px solid var(--accent);
}

.crm-lead-card.progress {
    border-left: 3px solid var(--warning);
}

.crm-lead-card.closed {
    border-left: 3px solid var(--success);
}

.crm-lead-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.crm-lead-service {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.crm-lead-client {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.crm-lead-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.crm-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
}

.crm-tag.bot {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-glow);
}

.crm-tag.new {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.crm-tag.progress {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.crm-tag.closed {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.crm-ai-probability {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--card-border);
    font-size: 0.75rem;
    color: var(--success);
}

.crm-ai-probability i {
    color: var(--success);
}

/* --- SCENARIO 3: ТЕХНОЛОГИЧНЫЙ КАЛЬКУЛЯТОР --- */

.tech-calculator {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.calc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--card-border);
}

.calc-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.calc-header-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.calc-header-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.calc-badge {
    margin-left: auto;
    font-size: 0.7rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: var(--accent-glow);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
}

/* Дисплей стоимости */
.calc-display {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.calc-total-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.calc-total-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.calc-total-value.updating {
    color: var(--accent);
    transform: scale(1.05);
}

.calc-vat-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Строки калькулятора */
.calc-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.2s ease;
}

.calc-row:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.03);
}

.calc-row-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calc-row-icon {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.calc-row-details {
    display: flex;
    flex-direction: column;
}

.calc-row-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.calc-row-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Контролы */
.calc-row-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calc-btn-minus,
.calc-btn-plus {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-btn-minus:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.calc-btn-plus:hover {
    border-color: var(--success);
    color: var(--success);
}

.calc-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    min-width: 24px;
    text-align: center;
}

.calc-count.count-changed {
    animation: countPop 0.3s ease;
}

@keyframes countPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: var(--accent); }
    100% { transform: scale(1); }
}

/* Детализация сметы */
.calc-breakdown {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    animation: breakdownSlide 0.4s ease;
}

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

.breakdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid var(--card-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-glow);
}

.breakdown-content {
    padding: 12px 16px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.vat {
    color: var(--warning);
}

.breakdown-item.total {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

.breakdown-divider {
    height: 1px;
    background: var(--card-border);
    margin: 8px 0;
}

/* Кнопки действий */
.calc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.calc-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.calc-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-btn-secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* Анимации для демо-режима */
.slide-up {
    animation: slideUp 0.4s ease;
}

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

.slide-in {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
/* Анимация бегущих линий (поток данных) */
.flow-line {
    stroke-dasharray: 10, 15;
    animation: flowMove 30s linear infinite;
}

@keyframes flowMove {
    from { stroke-dashoffset: 500; }
    to { stroke-dashoffset: 0; }
}

/* Пульсация AI-узла */
.pulse-glow {
    animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.4)); opacity: 0.9; }
    50% { filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8)); opacity: 1; }
}

/* Появление графика */
.ai-flowchart-svg {
    animation: fadeInChart 0.8s ease-out;
}

@keyframes fadeInChart {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Контейнер для графика в модалке */
#react-flowchart-container {
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, transparent 70%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin: 20px 0;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}