/* --- ДИЗАЙН-СИСТЕМА (ПЕРЕМЕННЫЕ) --- */
:root {
    --color-primary: #3B82F6;
    --color-accent: #8A5CFF;
    --color-success: #10B981;
    --color-bg-main: #060913;
    --color-bg-card: #121826;
    --color-text-white: #FFFFFF;
    --color-text-gray: #8F9BB3;
    --font-main: "Inter", sans-serif;
}

/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--color-bg-main); color: var(--color-text-white); line-height: 1.5; overflow-x: hidden; }

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-center { text-align: center; margin-bottom: 40px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 0px; }
section { 
    padding: 20px 0; /* Уменьшили со 100px до 60px. Теперь между блоками будет 120px суммарно */
}
#integrations {
    padding-top: 20px; /* Еще больше прижимаем интеграции к предыдущему блоку */
}
#calc {
    padding-top: 20px; /* Еще больше прижимаем интеграции к предыдущему блоку */
}
#cases {
    padding-top: 20px; /* Еще больше прижимаем интеграции к предыдущему блоку */
}
#how-it-works {
    padding-top: 20px; /* Еще больше прижимаем интеграции к предыдущему блоку */
}
#demo {
    padding-top: 20px; /* Еще больше прижимаем интеграции к предыдущему блоку */
}
#tariffs {
    padding-top: 20px; /* Еще больше прижимаем интеграции к предыдущему блоку */
}
#faq {
    padding-top: 20px; /* Еще больше прижимаем интеграции к предыдущему блоку */
}
.section-title { font-size: 32px; font-weight: 700; color: var(--color-text-white); margin-bottom: 20px; line-height: 1.3; }
.link-arrow { color: var(--color-primary); text-decoration: none; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: opacity 0.3s ease; }
.link-arrow:hover { opacity: 0.8; }

/* --- КНОПКИ --- */
.btn-primary {
    /* Тот самый градиент: от фиолетового к синему и голубому */
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 50%, #2FC6F6 100%);
    background-size: 200% auto; /* Растягиваем фон для плавной анимации */
    color: var(--color-text-white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкий верхний блик */
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25); /* Неоновое свечение */
}

.btn-primary:hover {
    /* При наведении градиент плавно смещается вправо */
    background-position: right center; 
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4); /* Свечение усиливается */
    opacity: 1; 
}
.btn-secondary { background-color: transparent; color: var(--color-text-white); text-decoration: none; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.15); display: inline-flex; align-items: center; justify-content: center; }
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.4); background-color: rgba(255, 255, 255, 0.05); }
.btn-large { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; margin-top: 24px; padding: 16px; font-size: 16px;}
.btn-ghost { background-color: transparent; color: var(--color-text-gray); border: 1px solid rgba(255, 255, 255, 0.1); padding: 10px 16px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all 0.3s ease; width: 100%; }
.btn-ghost:hover { background-color: rgba(255, 255, 255, 0.05); color: var(--color-text-white); border-color: rgba(255, 255, 255, 0.2); }

/* --- ШАПКА --- */
.header { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); position: sticky; top: 0; z-index: 1000; background-color: rgba(6, 9, 19, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-container { display: flex; justify-content: space-between; align-items: center;}
.logo { font-size: 20px; font-weight: 700; text-decoration: none; color: var(--color-text-white); display: flex; align-items: center; gap: 8px; }

.header-menu { display: flex; align-items: center; gap: 40px;}


.main-nav { display: flex; gap: 32px; }
.main-nav a { text-decoration: none; color: var(--color-text-gray); font-size: 14px; transition: color 0.3s ease; }
.main-nav a:hover { color: var(--color-text-white); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.btn-login { text-decoration: none; color: var(--color-text-white); font-size: 14px; transition: opacity 0.3s ease; }
.btn-login:hover { opacity: 0.7; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; z-index: 100; }
.mobile-menu-btn span { display: block; width: 100%; height: 2px; background-color: var(--color-text-white); position: absolute; left: 0; transition: all 0.3s ease; }
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

/* --- HERO --- */
.hero { padding: 10px 0 20px 0; position: relative; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { width: 55%; }
.badge { display: inline-block; padding: 6px 14px; background-color: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 100px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-gray); margin-bottom: 24px; }
.hero h1 { font-size: 32px; line-height: 1.2; font-weight: 700; margin-bottom: 24px; }
.hero-description { font-size: 18px; color: var(--color-text-gray); line-height: 1.6; margin-bottom: 40px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 40px; }
.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* 4 равные колонки */
    gap: 12px;                              /* можно чуть уменьшить, чтобы уместить */
}
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--color-text-gray); }
.check-icon { color: var(--color-primary); font-weight: bold; }
.hero-visual { width: 45%; position: relative; display: flex; justify-content: flex-end; }
.mockup-glow { 
    position: absolute; 
    width: 300px; 
    height: 300px; 
    background: var(--color-primary); 
    filter: blur(120px); 
    opacity: 0.2; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    z-index: 0; 
}
.mockup-card { background-color: rgba(18, 24, 38, 0.7); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; width: 100%; max-width: 420px; height: 480px; padding: 24px; position: relative; z-index: 1; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.mockup-header { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--color-text-white); padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 24px; }
.mockup-dot { width: 8px; height: 8px; background-color: var(--color-success); border-radius: 50%; }
.mockup-chat { display: flex; flex-direction: column; gap: 16px; }
.chat-message { padding: 12px 16px; border-radius: 12px; font-size: 13px; line-height: 1.5; max-width: 85%; }
.client { background-color: rgba(255, 255, 255, 0.05); color: var(--color-text-gray); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai { background-color: rgba(59, 130, 246, 0.1); color: var(--color-text-white); align-self: flex-end; border-bottom-right-radius: 4px; border: 1px solid rgba(59, 130, 246, 0.2); }

/* --- ИНТЕГРАЦИИ --- */
.integrations { 
    padding: 20px 0; 
}
.integrations-grid { 
    display: grid; 
    grid-template-columns: repeat(8, 1fr); 
    gap: 10px;                     /* уменьшен с 12px */
    margin-bottom: 32px; 
}
.integration-card { 
    background-color: var(--color-bg-card); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 12px; 
    padding: 14px 10px;            /* было 24px */
    display: flex; 
    flex-direction: column; 
    gap: 12px;                     /* было 24px */
    transition: transform 0.3s ease, border-color 0.3s ease; 
}
.integration-card:hover { 
    transform: translateY(-4px); 
    border-color: rgba(255, 255, 255, 0.15); 
}
.integration-header { 
    display: flex; 
    align-items: center; 
    gap: 8px;                      /* было 16px */
}
.integration-icon { 
    width: 30px;                   /* было 40px */
    height: 30px; 
    border-radius: 6px;            /* чуть скругление под меньший размер */
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-weight: 700; 
    font-size: 14px;               /* было 18px */
    color: #ffffff; 
    flex-shrink: 0;                /* не сжиматься */
}
.integration-name { 
    font-size: 13px;               /* было 16px */
    font-weight: 600; 
    white-space: nowrap;           /* чтобы название не переносилось (опционально) */
}
.integrations-footer { 
    display: flex; 
    justify-content: center; 
}

/* Кнопка "Подключить" */
.integration-card .btn-ghost {
    font-size: 11px;
    padding: 4px 8px;
    width: auto;
    align-self: flex-start;        /* чтобы не растягивалась */
}
@media (max-width: 1024px) {
    .integrations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 600px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .integration-card {
        padding: 12px 8px;
    }
}

/* --- КАЛЬКУЛЯТОР --- */
.calculator-section { padding: 20px 0; }
.calc-container { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.calc-content { width: 40%; }
.calc-description { font-size: 16px; color: var(--color-text-gray); line-height: 1.6; }
.calc-block { width: 60%; background-color: var(--color-bg-card); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; display: flex; overflow: hidden; }
.calc-settings { width: 60%; padding: 32px; display: flex; flex-direction: column; gap: 32px; }
.calc-labels { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calc-labels label { font-size: 13px; color: var(--color-text-gray); font-weight: 500; }
.calc-val { font-size: 16px; font-weight: 600; color: var(--color-text-white); background-color: rgba(255, 255, 255, 0.05); padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); }
.custom-slider { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; outline: none; background: rgba(255, 255, 255, 0.1); }
.custom-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--color-primary); cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
.custom-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--color-primary); cursor: pointer; border: 2px solid #fff; }
.calc-result { width: 40%; background-color: rgba(255, 255, 255, 0.02); border-left: 1px solid rgba(255, 255, 255, 0.05); padding: 32px 24px; display: flex; flex-direction: column; }
.result-header { font-size: 14px; font-weight: 500; color: var(--color-text-white); margin-bottom: 24px; }
.result-label { font-size: 13px; color: var(--color-text-gray); margin-bottom: 8px; }
.result-number { font-size: 36px; font-weight: 700; color: var(--color-success); margin-bottom: 8px; line-height: 1.1; }
.result-growth { font-size: 13px; color: var(--color-text-gray); }
.result-note { font-size: 11px; color: var(--color-text-gray); text-align: center; margin-top: 12px; }

/* --- КЕЙСЫ --- */
.cases-section { padding: 20px 0; }
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case-card { background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 24px; position: relative; transition: background-color 0.3s ease; }
.case-card:hover { background-color: rgba(255, 255, 255, 0.02); }
.case-niche { font-size: 13px; color: var(--color-text-white); font-weight: 500; margin-bottom: 20px; }
.case-chart { position: absolute; top: 24px; right: 24px; width: 60px; opacity: 0.8; }
.sparkline.blue { color: var(--color-primary); }
.sparkline.purple { color: var(--color-accent); }
.case-metric { font-size: 36px; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.case-label { font-size: 13px; color: var(--color-text-gray); margin-bottom: 16px; }
.case-text { font-size: 13px; color: var(--color-text-gray); line-height: 1.5; margin-bottom: 24px; }

/* --- КАК ЭТО РАБОТАЕТ --- */
.how-it-works-section { padding: 20px 0 20px 0; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step-card {
    position: relative; /* Чтобы линия-стрелочка позиционировалась относительно карточки */
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

/* Пунктирная линия со стрелочкой (ведет к следующему шагу) */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px; /* Половина высоты иконки */
    left: 120px; /* Отступ от иконки */
    width: calc(100% - 130px); /* Длина линии до следующей карточки */
    height: 1px;
    border-top: 2px dashed rgba(255, 255, 255, 0.15); /* Сам пунктир */
}

/* Имитируем наконечник стрелочки */
.step-card:not(:last-child)::before {
    content: '▶';
    position: absolute;
    top: 17px;
    right: 5px;
    color: rgba(255, 255, 255, 0.15);
    font-size: 14px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1); /* Легкое свечение */
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-white);
}

.step-text {
    font-size: 14px;
    color: var(--color-text-gray);
    line-height: 1.5;
}

/* ========================================= */
/* --- АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ) --- */
/* ========================================= */

@media (max-width: 992px) {
    .header-menu { gap: 20px; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content, .hero-visual { width: 100%; justify-content: center; }
    .hero-description { margin: 0 auto 40px auto; }
    .hero-buttons { justify-content: center; }
    .hero-features { text-align: left; max-width: 400px; margin: 0 auto; }
    .integrations-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-container { flex-direction: column; }
    .calc-content { width: 100%; text-align: center; }
    .calc-block { width: 100%; }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Шаги: по 2 в ряд на планшете */
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    /* Убираем пунктирные линии, так как блоки перестроились */
    .step-card:not(:last-child)::after, .step-card:not(:last-child)::before { display: none; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .header-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--color-bg-card); flex-direction: column; padding: 30px 20px; gap: 30px; z-index: 99; border-bottom: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
    .header-menu.active { display: flex; }
    .main-nav { flex-direction: column; align-items: center; gap: 24px; }
    .header-actions { flex-direction: column; width: 100%; gap: 16px; }
    .header-actions .btn-primary, .header-actions .btn-login { width: 100%; text-align: center; justify-content: center; }
    .hero { padding: 20px 0 60px 0; }
    .hero h1 { font-size: 32px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn-large { width: 100%; justify-content: center; }
    .hero-features { grid-template-columns: 1fr; }
    .integrations-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 24px; }
    .calc-block { flex-direction: column; } 
    .calc-settings, .calc-result { width: 100%; }
    .calc-result { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.05); }
    .cases-grid { grid-template-columns: 1fr; }

    /* Шаги: в колонку на телефоне */
    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
}
/* ========================================= */
/* --- ЧАСТЫЕ ВОПРОСЫ (FAQ) --- */
/* ========================================= */
.faq-section { padding: 20px 0; }
.faq-container { display: flex; gap: 60px; align-items: flex-start; }
.faq-visual { width: 35%; position: sticky; top: 100px; }
.faq-list { width: 65%; display: flex; flex-direction: column; gap: 16px; }

.faq-item {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}
.faq-item:hover { background-color: rgba(255, 255, 255, 0.02); }

.faq-question {
    padding: 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-icon {
    font-size: 18px;
    color: var(--color-text-gray);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0; /* Скрываем текст по умолчанию */
    overflow: hidden;
    padding: 0 24px;
    color: var(--color-text-gray);
    font-size: 14px;
    line-height: 1.6;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Класс active добавляется скриптом при клике */
.faq-item.active { background-color: var(--color-bg-card); border-color: rgba(255, 255, 255, 0.1); }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--color-primary); }
.faq-item.active .faq-answer { max-height: 200px; padding: 0 24px 24px 24px; }

/* ========================================= */
/* --- ПРИЗЫВ К ДЕЙСТВИЮ (CTA) --- */
/* ========================================= */
.cta-section { padding: 20px 0 20px 0; }
.cta-block {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.cta-content { width: 60%; position: relative; z-index: 2; }
.cta-content h2 { font-size: 36px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.cta-content p { font-size: 16px; color: var(--color-text-gray); margin-bottom: 40px; }
.cta-buttons { display: flex; gap: 16px; }

.cta-visual { width: 40%; display: flex; justify-content: center; align-items: center; position: relative; }
.brain-glow {
    position: absolute; width: 200px; height: 200px; background: var(--color-primary);
    filter: blur(80px); opacity: 0.4; border-radius: 50%; z-index: 0;
}

/* ========================================= */
/* --- ФУТЕР (ПОДВАЛ) --- */
/* ========================================= */
.footer { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-label { font-size: 12px; color: var(--color-text-gray); margin-bottom: 4px; }
.footer-link { font-size: 14px; color: var(--color-text-white); text-decoration: none; transition: opacity 0.3s ease; }
.footer-link:hover { opacity: 0.7; }
.footer-desc { font-size: 12px; color: var(--color-text-gray); margin-top: 4px; }
.footer-links-right { align-items: flex-end; text-align: right; }
.footer-links-right .footer-link { font-size: 12px; color: var(--color-text-gray); }

/* ========================================= */
/* --- АДАПТИВНОСТЬ ДЛЯ НОВЫХ БЛОКОВ --- */
/* ========================================= */
@media (max-width: 992px) {
    .faq-container { flex-direction: column; gap: 32px; }
    .faq-visual { width: 100%; position: static; text-align: center; }
    .faq-list { width: 100%; }
    .cta-block { flex-direction: column; text-align: center; padding: 40px 20px; }
    .cta-content { width: 100%; }
    .cta-buttons { justify-content: center; }
    .cta-visual { display: none; /* Прячем иконку на мобильных ради экономии места */ }
    .footer-container { justify-content: flex-start; gap: 40px; }
    .footer-links-right { align-items: flex-start; text-align: left; }
}

@media (max-width: 768px) {
    .cta-content h2 { font-size: 28px; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn-large { width: 100%; justify-content: center; }
    .footer-col { width: 100%; }
}
/* ========================================= */
/* --- МНОГОСЛОЙНЫЙ ВИЗУАЛ (ИСПРАВЛЕННЫЙ) --- */
/* ========================================= */

/* Меняем пропорции колонок на первом экране, чтобы всё поместилось в один ряд */
.hero-content { width: 40%; } 
.hero-visual { width: 60%; display: flex; justify-content: flex-end; position: relative; }

/* Контейнер, который жестко держит элементы рядом друг с другом */
.visual-composition {
    display: flex;
    align-items: center; /* Выравнивает центры элементов по одной линии */
    gap: 20px; /* Отступ между чатом и карточкой */
    width: 100%;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

/* 1 СЛОЙ: Главное окно дашборда */
.dashboard-window {
    background-color: rgba(18, 24, 38, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    height: 480;
   display: flex;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
   /* overflow: visible;*/
    flex-shrink: 0; /* Не даем чату сжиматься */
}

/* Боковая панель каналов */
/* Боковая панель каналов */
.dashboard-sidebar {
    width: 35%;
    background-color: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: relative; /* <-- ДОБАВИЛИ ЭТО, чтобы свечение привязалось к низу панели */
}

/* Свечение (световой луч), исходящее ВНИЗ */
/* Боковая панель каналов */
.dashboard-sidebar {
    width: 35%;
    background-color: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: relative; 
    /* ВАЖНО: убедись, что у .dashboard-window (родителя) НЕТ overflow: hidden, 
       иначе свечение снизу обрежется. Если оно есть — удали его или измени на visible */
}

/* Свечение (световой блик) — ТОЧНО КАК НА МАКЕТЕ */
/* Боковая панель каналов */
.dashboard-sidebar {
    /* ... (старые свойства без изменений) */
    position: relative; 
    /* ВАЖНО: УБЕДИСЬ, что у родителя (.dashboard-window) НЕТ overflow: hidden. 
       Если есть — удали эту строчку. Иначе сочный ореол вниз обрежется ровной линией. */
}

/* Свечение (световой блик) — ТОЧНО КАК НА МАКЕТЕ (ТОЧЕЧНАЯ ВСПЫШКА) */
/* Свечение (световой блик) — ФИНАЛЬНЫЙ ВАРИАНТ «ВСПЫШКА» */
.dashboard-sidebar::after {
    content: ''; 
    position: absolute;
    bottom: 1px; 
    left: 50%;
    transform: translateX(-50%); 
    
    width: 100px; /* Сделал чуть шире для сочности */
    height: 1px;  
    
    background: linear-gradient(90deg, transparent, #ffffff 50%, transparent); 
    
    /* ИЗМЕНЕНИЯ ЗДЕСЬ: */
    box-shadow: 
        0 2px 10px 1px #ffffff,                /* Ядро чуть-чуть сместили вниз (2px) */
        0 5px 35px 2px var(--color-accent),    /* Основной фиолетовый УШЕЛ ВНИЗ (15px) */
        0 15px 60px 10px rgba(138, 92, 255, 0.5); /* Облако света УШЛО ЕЩЕ НИЖЕ (25px) */
        
    /* МАГИЯ "НОЖНИЦ": обрезаем всё, что ВЫШЕ линии (0px сверху) */
    /* Синтаксис: inset(отступ_сверху отступ_справа отступ_снизу отступ_слева) */
    clip-path: inset(0px -150px -150px -150px);
    
    pointer-events: none; 
    z-index: 10;
}
.sidebar-header { padding: 16px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.sidebar-menu { padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-item { padding: 10px 12px; border-radius: 8px; font-size: 12px; color: var(--color-text-gray); display: flex; align-items: center; cursor: pointer; transition: background 0.2s; }
.sidebar-item:hover, .sidebar-item.active { background-color: rgba(255, 255, 255, 0.05); color: var(--color-text-white); }
.sidebar-item .icon { margin-right: 8px; font-size: 14px; width: 16px; text-align: center; }
.sidebar-item .badge { margin-left: auto; font-size: 10px; background: rgba(255, 255, 255, 0.1); padding: 2px 6px; border-radius: 10px; }

/* Область чата */
.dashboard-chat { width: 65%; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.message-avatar { width: 28px; height: 28px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.message-content { display: flex; flex-direction: column; gap: 4px; }
.message-author { font-size: 12px; font-weight: 500; color: var(--color-text-white); }
.message-time { color: var(--color-text-gray); font-weight: 400; margin-left: 6px; }
.message-bubble { font-size: 13px; line-height: 1.5; color: var(--color-text-gray); }
.chat-status { margin-top: auto; padding: 12px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 8px; font-size: 12px; color: var(--color-text-white); display: flex; align-items: center; gap: 8px; }

/* 2 СЛОЙ: Парящая карточка Лида */
.floating-crm-card {
    width: 240px;
    background-color: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    flex-shrink: 0; /* Не даем карточке сжиматься */
    animation: floatCard 6s ease-in-out infinite; /* Анимация левитации */
}

.crm-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;   /* или flex-start, если хотите прижать влево */
    flex-shrink: 0;
}

@keyframes floatCard { 
    0% { transform: translateY(0px); } 
    50% { transform: translateY(-15px); } 
    100% { transform: translateY(0px); } 
}

.crm-header { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-start;}
.crm-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.crm-badge {
    /* Твой исходный стиль */
    font-size: 11px;
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;

    /* Новые параметры для эффекта */
    display: inline-block;
    border: 1px solid rgba(16, 185, 129, 0.2); /* Тонкая рамка для акцента */
    animation: success-pulse 3s infinite ease-in-out; /* Плавная анимация на 3 секунды */
}

/* Описание мягкого мерцания */
@keyframes success-pulse {
    0% {
        box-shadow: 0 0 0px rgba(16, 185, 129, 0);
        background: rgba(16, 185, 129, 0.1);
    }
    50% {
        /* В пике анимации добавляем легкое свечение вокруг */
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
        background: rgba(16, 185, 129, 0.2);
    }
    100% {
        box-shadow: 0 0 0px rgba(16, 185, 129, 0);
        background: rgba(16, 185, 129, 0.1);
    }
}
.crm-details { display: flex; flex-direction: column; gap: 12px; }
.crm-row { display: flex; justify-content: space-between; font-size: 12px; }
.crm-row span:first-child { color: var(--color-text-gray); }
.crm-row span:last-child { color: var(--color-text-white); font-weight: 500; text-align: right; }

/* АДАПТИВНОСТЬ ДЛЯ МНОГОСЛОЙНОГО БЛОКА */
@media (max-width: 1200px) {
    .hero-content { width: 45%; }
    .hero-visual { width: 55%; }
    .visual-composition { gap: 10px; }
    .dashboard-window { max-width: 380px; }
}

@media (max-width: 992px) {
    .hero-content { width: 100%; text-align: center; }
    .hero-visual { width: 100%; justify-content: center; margin-top: 40px; }
    
    /* Ставим элементы друг под друга */
    .visual-composition { flex-direction: column; align-items: center; justify-content: center; }
    .dashboard-window { max-width: 100%; height: auto; min-height: 400px; }
    
    .floating-crm-card {
        width: 100%;
        max-width: 400px;
        margin-top: 20px; /* Аккуратный отступ сверху от дашборда */
        animation: none; /* Отключаем левитацию на мобилке */
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar { display: none; } /* Прячем меню каналов, чтобы чат был крупнее и читался */
    .dashboard-chat { width: 100%; }
}
/* ========================================= */
/* --- ВИДЕО-ДЕМО СЕКЦИЯ --- */
/* ========================================= */
.demo-section {
    padding: 20px 0;
}

.demo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.demo-content {
    width: 45%;
}

.demo-description {
    font-size: 18px;
    color: var(--color-text-gray);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 480px;
}

.demo-visual {
    width: 55%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Свечение на фоне */
.demo-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--color-accent);
    filter: blur(150px);
    opacity: 0.2;
    z-index: 0;
}
.demo-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    z-index: 1;
}

/* Сам плеер */
.video-player {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px; /* Рамка вокруг "экрана" */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.video-screen {
    background-color: #030409; /* Почти черный экран */
    border-radius: 12px;
    aspect-ratio: 16 / 9; /* Стандартные пропорции видео */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Имитируем темный интерфейс на фоне */
    background-image: linear-gradient(135deg, rgba(255,255,255,0.02) 25%, transparent 25%), linear-gradient(225deg, rgba(255,255,255,0.02) 25%, transparent 25%);
    background-size: 40px 40px;
}

/* Кнопка Play */
.play-button {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
    transition: transform 0.3s ease;
    animation: pulsePlay 2s infinite; /* Эффект пульсации */
    padding-left: 6px; /* Визуально центрируем треугольник */
}

.play-button:hover {
    transform: scale(1.1);
}

@keyframes pulsePlay {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 25px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Парящие иконки */
.floating-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    animation: floatIcon 5s ease-in-out infinite;
}

/* Разные цвета и позиции для иконок */
.icon-tg { background-color: #2AABEE; top: -20px; left: -20px; animation-delay: 0s; }
.icon-wa { background-color: #25D366; bottom: 40px; left: -30px; animation-delay: 1s; }
.icon-ig { background: linear-gradient(45deg, #f09433, #e6683c, #cc2366); top: 20px; right: -25px; animation-delay: 2s; }
.icon-crm { background-color: var(--color-bg-card); border: 1px solid rgba(255,255,255,0.1); color: var(--color-primary); bottom: -15px; right: 20px; animation-delay: 3s; }

@keyframes floatIcon {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- АДАПТИВНОСТЬ ДЛЯ ДЕМО --- */
@media (max-width: 992px) {
    .demo-container { flex-direction: column; text-align: center; gap: 40px; }
    .demo-content { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .demo-visual { width: 100%; }
}

@media (max-width: 768px) {
    .demo-section { padding: 60px 0; }
    .play-button { width: 60px; height: 60px; font-size: 20px; }
    .floating-icon { width: 36px; height: 36px; font-size: 16px; }
    /* Сдвигаем иконки ближе, чтобы не обрезались на узких экранах */
    .icon-tg { left: -10px; }
    .icon-wa { left: -10px; }
    .icon-ig { right: -10px; }
    .icon-crm { right: 0; bottom: -10px; }
}
/* ========================================= */
/* --- БОЛЬ И РЕШЕНИЕ (ГРАФИКИ СРАВНЕНИЯ) --- */
/* ========================================= */
/* --- СЕКЦИЯ: БОЛЬ И РЕШЕНИЕ (ОБНОВЛЕННАЯ С РАМКОЙ) --- */
section .container {
    /* Добавляем ту самую рамку */
    border: 1px solid rgba(255, 255, 255, 0.05); 
    
    /* Делаем легкий фон, чтобы отделить блок от общего фона сайта */
    background-color: rgba(18, 24, 38, 0.2); 
    
    /* Скругляем углы всей секции */
    border-radius: 16px; 
    
    /* Добавляем внутренние отступы, чтобы контент не прилипал к рамке */
    padding: 20px 20px;
    
    /* Эффект стекла (размытие под рамкой) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Чтобы рамка не "съедала" ширину контейнера */
    box-sizing: border-box;
}

.hero .container {
    border: none !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important; /* Возвращаем стандартное поведение */
}

/* На мобильных устройствах немного уменьшим отступы рамки */
@media (max-width: 768px) {
    section .container {
        padding: 40px 20px;
        border-radius: 20px;
        /* Убираем рамку на совсем маленьких экранах, если она мешает (опционально) */
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-gray);
    margin-bottom: 20px;
    max-width: 600px;
}

/* Дополнительный красный цвет для этой секции */
.text-red { color: #EF4444; }

.charts-grid {
    display: flex;
    gap: 32px;
}

.chart-card {
    flex: 1;
    background-color: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.chart-content {
    display: flex;
    align-items: flex-start; /* или center, если хочешь выровнять по центру */
    gap: 16px; /* расстояние между списком и метрикой */
}
.chart-list {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.5;
}
.chart-metric-inline {
    flex-shrink: 0;
    text-align: right; /* цифра справа */
}
.chart-big-metric {
    font-size: 32px;
    line-height: 1;
}
.chart-label {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
}
.chart-visual-box {
    margin-top: 16px;
}
.pain-card {
    background: linear-gradient(180deg, rgba(18, 24, 38, 1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.gain-card {
    background: linear-gradient(180deg, rgba(18, 24, 38, 1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.chart-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.chart-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.red-icon { background-color: rgba(239, 68, 68, 0.1); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.green-icon { background-color: rgba(16, 185, 129, 0.1); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.2); }

.chart-list {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-list li {
    font-size: 14px;
    color: var(--color-text-gray);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.chart-big-metric {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.chart-label {
    font-size: 13px;
    color: var(--color-text-gray);
    margin-bottom: 24px;
}

.chart-visual-box {
    margin-top: 20px;
    width: 100%;
}

.sparkline-large {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Адаптивность */
@media (max-width: 992px) {
    .charts-grid { flex-direction: column; }
    .section-subtitle { text-align: center; margin: 0 auto 40px auto; }
}
/* ========================================= */
/* --- ФИНАЛЬНАЯ ПОЛИРОВКА (UI-КИТ) --- */
/* ========================================= */

/* 1. Глобальное фоновое свечение (глубина экрана) */
body {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(138, 92, 255, 0.05), transparent 30%);
    background-attachment: fixed;
}
/* 2. Градиентный текст (для главных акцентов) */
.hero h1 .text-primary_0 {
    /* Делаем надпись "24/7" градиентной (от синего к фиолетовому) */
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.hero h1 .text-primary {
    /* Делаем надпись "24/7" градиентной (от синего к фиолетовому) */
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 3. Дорогой Glassmorphism для карточек */
.integration-card, .case-card, .step-card {
    background-color: rgba(18, 24, 38, 0.4); /* Делаем фон карточек полупрозрачным */
    backdrop-filter: blur(12px); /* Размываем всё, что находится под ними */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01); /* Легкое внутреннее свечение */
}

/* Красивое неоновое свечение при наведении мышки */
.integration-card:hover, .case-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 10px 40px rgba(59, 130, 246, 0.1), /* Внешний синий свет */
        inset 0 0 20px rgba(255, 255, 255, 0.02); /* Внутренний блик */
    transform: translateY(-5px);
}

/* 4. Неоновые тени для главных кнопок (Call to Action) */
.btn-primary {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25); /* Базовое свечение кнопки */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкий блик сверху */
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4); /* Усиление при наведении */
}

/* Легкое свечение для иконок в блоке "Как это работает" */
.step-icon {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 5. Улучшаем FAQ */
.faq-item {
    background-color: rgba(18, 24, 38, 0.3);
    backdrop-filter: blur(10px);
}
.faq-item.active {
    background-color: rgba(18, 24, 38, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
/* ========================================= */
/* --- ТАРИФЫ (PRICING) --- */
/* ========================================= */
.tariffs-section {
    padding: 0px 0 20px 0;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center; /* Центрируем, чтобы выделенный тариф красиво выступал */
}

.tariff-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tariff-card:hover {
    transform: translateY(-10px);
}

/* Стили для центрального выделенного тарифа */
.tariff-card.popular {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, rgba(18, 24, 38, 1) 0%, rgba(59, 130, 246, 0.05) 100%);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    padding: 60px 32px; /* Делаем его визуально выше остальных */
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.tariff-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tariff-price {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 16px;
    line-height: 1;
}

.tariff-price span {
    font-size: 16px;
    color: var(--color-text-gray);
    font-weight: 400;
}

.tariff-desc {
    font-size: 14px;
    color: var(--color-text-gray);
    margin-bottom: 32px;
    line-height: 1.5;
}

.tariff-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    flex-grow: 1; /* Чтобы кнопки всегда были прижаты к низу */
}

.tariff-features li {
    font-size: 14px;
    color: var(--color-text-white);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Адаптивность для тарифов */
@media (max-width: 1024px) {
    .tariffs-grid { gap: 20px; }
    .tariff-card { padding: 32px 24px; }
    .tariff-card.popular { padding: 40px 24px; }
}

@media (max-width: 992px) {
    .tariffs-grid { 
        grid-template-columns: repeat(2, 1fr); 
        align-items: stretch; /* Отменяем разную высоту на планшетах */
    }
    .tariff-card.popular { padding: 32px 24px; } /* Выравниваем высоту */
}

@media (max-width: 768px) {
    .tariffs-grid { grid-template-columns: 1fr; }
}
/* Компактные карточки */
.floating-crm-card {
    padding: 18px;          /* было 20px – внутренний отступ самой карточки */
}

.crm-header {
    margin-bottom: 12px;    /* было 16px – отступ после заголовка */
}

.crm-details {
    gap: 10px;               /* было 12px – расстояние между строками с данными */
}

.floating-crm-card .btn-full {
    padding: 6px;           /* было 8px – высота кнопки */
    margin-top: 12px;       /* было 16px – отступ перед кнопкой */
    font-size: 12px;        /* было 13px – размер текста в кнопке */
}

/* Если нужно дополнительно уменьшить высоту строк */
.crm-row {
    font-size: 11px;        /* было 12px – общий размер текста */
    line-height: 1.4;       /* чуть плотнее строки */
}
/* Кастомный скроллбар для всех элементов (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 6px; /* Тонкий вертикальный скролл */
    height: 6px; /* Тонкий горизонтальный скролл */
}

/* Фон под ползунком (делаем прозрачным) */
::-webkit-scrollbar-track {
    background: transparent; 
}

/* Сам ползунок */
::-webkit-scrollbar-thumb {
    background: rgba(143, 155, 179, 0.3); /* Полупрозрачный серо-синий цвет, как у нашего текста */
    border-radius: 10px; /* Закругленные края */
}

/* Ползунок при наведении мышки */
::-webkit-scrollbar-thumb:hover {
    background: rgba(143, 155, 179, 0.6); /* Становится чуть ярче */
}

/* Поддержка для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 155, 179, 0.3) transparent;
}
/* Стили для модального окна воронки */
.modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(6, 9, 19, 0.85); /* Затемнение фона */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px); /* Красивое размытие фона */
}

.modal-content {
    background: var(--color-bg-card);
    padding: 30px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    color: var(--color-text-gray);
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: var(--color-text-white);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}