/* =========================================================
   ВЕКТОРНА ДІАГРАМА СТРУМІВ — ИСПРАВЛЕНИЕ ФОНА (ПОДЪЁМ СЕКЦИИ)
   ========================================================= */

/* Главную обертку не трогаем, чтобы не ломать логику хедера */
.vector-page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 🚀 ПОДЫМАЕМ ХЕРО-СЕКЦИЮ НА САМЫЙ ВЕРХ ПОД ХЕДЕР */
.vector-hero {
    margin-top: -150px !important; /* Вытягиваем секцию вверх, чтобы перекрыть белизну под шапкой */
    padding: 230px 20px 60px !important; /* Увеличиваем верхний паддинг, чтобы текст опустился и не перекрывался кнопками хедера */
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 50%), #0b0f19 !important;
    position: relative;
    z-index: 1; /* Оставляем под хедером, но над базовым белым фоном темы */
}

.vector-hero .container,
.vector-content .container,
.vector-app-preview .container {
    max-width: 1180px;
    margin: 0 auto;
}

.vector-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa; 
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.vector-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
}

.vector-lead {
    max-width: 850px;
    margin: 25px 0 0;
    font-size: 19px;
    line-height: 1.65;
    color: #9ca3af; 
}

/* Конверсионное превью приложения */
.vector-app-preview {
    padding: 40px 20px 60px;
    background: #0b0f19;
}

.preview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background: #111827; 
    border: 1px solid #1f2937;
    color: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.preview-info {
    flex: 1;
    max-width: 600px;
}

.preview-info h2 {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.25;
    margin: 0 0 16px;
    color: #ffffff !important;
    font-weight: 700;
}

.preview-info p {
    font-size: 16px;
    line-height: 1.6;
    color: #9ca3af;
    margin-bottom: 30px;
}

/* Кнопка в стиле Technoom */
.vector-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00bcd4; 
    color: #0b0f19;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.25s ease-in-out;
}

.vector-btn-primary:hover {
    background: #00acc1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.4);
}

.vector-btn-primary span {
    transition: transform 0.2s;
}

.vector-btn-primary:hover span {
    transform: translateX(4px);
}

/* График диаграммы */
.preview-visual {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mock-vector-chart {
    position: relative;
    width: 260px;
    height: 260px;
    border: 1px dashed #374151;
    border-radius: 50%;
    background: #1f2937;
}

.axis {
    position: absolute;
    background: #374151;
}
.x-axis { top: 50%; left: 10px; right: 10px; height: 1px; }
.y-axis { left: 50%; top: 10px; bottom: 10px; width: 1px; }

.vector {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 3px;
    background: var(--color);
    transform-origin: left center;
    transform: rotate(calc(var(--angle) - 90deg));
}

.vector::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -4px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent var(--color);
}

.vector span {
    position: absolute;
    right: -28px;
    top: -10px;
    font-size: 12px;
    font-weight: bold;
    color: var(--color);
    transform: rotate(calc(90deg - var(--angle)));
}

/* Контентная SEO-зона */
.vector-content {
    padding: 60px 20px 100px;
    background: #0b0f19;
}

.seo-hidden-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.vector-content h2 {
    margin: 55px 0 22px;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.25;
    color: #ffffff;
    font-weight: 700;
}

.vector-content h2:first-child {
    margin-top: 0;
}

.vector-content h3 {
    margin: 35px 0 16px;
    font-size: 22px;
    line-height: 1.3;
    color: #60a5fa; 
}

.vector-content p {
    max-width: 900px;
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.7;
    color: #9ca3af;
}

.vector-content ul,
.vector-content ol {
    max-width: 900px;
    margin: 20px 0 30px;
    padding-left: 25px;
}

.vector-content li {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.6;
    color: #9ca3af;
}

.vector-content strong {
    color: #ffffff;
}

/* Мобильная адаптация */
@media (max-width: 991px) {
    .preview-card {
        flex-direction: column;
        padding: 35px 25px;
        text-align: center;
        gap: 35px;
    }
    .preview-visual {
        flex: none;
    }
    .vector-btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    /* Фиксим фон самого сайта, чтобы убрать белую линию сверху */
    html, body {
        background-color: #0b0f19 !important;
    }

    .vector-hero { 
        margin-top: -80px !important; /* Оставляем подъем под шапку */
        /* 🚀 Снизили верхний паддинг с 140px до 110px и нижний до 25px, чтобы сузить блок */
        padding: 110px 18px 25px !important; 
    }

    /* 🚀 Уменьшаем отступ над и под самим тайтлом */
    .vector-hero h1 {
        font-size: 28px !important; /* Чуть аккуратнее размер для мобилок */
        line-height: 1.2 !important;
        margin-top: 5px !important;  /* Минимальный зазор от бейджика сверху */
        margin-bottom: 12px !important; /* Сжали отступ от заголовка до подзаголовка */
    }

    /* 🚀 Уменьшаем отступ подзаголовка (лид-текста) до графика */
    .vector-lead { 
        font-size: 15px !important; 
        margin-top: 0 !important; /* Убираем лишний разгон */
        line-height: 1.5 !important;
    }

    .vector-content { 
        padding: 30px 18px 60px; 
    }
}




/* =========================================================
   СТИЛИ ДЛЯ ДВУХЯЗЫЧНЫХ ТАБОВ ВИДЕО
   ========================================================= */

.video-tabs-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 15px;
}

.tab-btn {
    background: #1f2937;
    color: #9ca3af;
    border: 1px solid #374151;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tab-btn:hover {
    background: #374151;
    color: #ffffff;
}

/* Активная кнопка в фирменном стиле Technoom */
.tab-btn.active {
    background: rgba(0, 188, 212, 0.15);
    color: #00bcd4;
    border-color: #00bcd4;
    box-shadow: 0 0 12px rgba(0, 188, 212, 0.2);
}

/* Логика скрытия/показа вкладок */
.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

/* Мобильная адаптация кнопок */
@media (max-width: 480px) {
    .video-tabs-nav {
        flex-direction: column;
        gap: 8px;
    }
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}
