/* --- Сброс стилей и Переменные --- */
:root {
    --bg-color: #0b0f19;
    --bg-card: #131a2c;
    --bg-header: rgba(11, 15, 25, 0.8);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(0, 242, 254, 0.3);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    font-family: var(--font-sans);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 10% 70%, rgba(79, 172, 254, 0.02) 0%, transparent 45%);
    pointer-events: none;
    z-index: -1;
}

/* --- Компоненты-сетки --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Шапка (Header) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #00030f;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

header .logo {
    margin-top: 5px;
    display: inline-block;
}



/* Логотип */
.logo {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo__prefix {
    color: var(--accent-cyan);
}

.logo__text {
    color: var(--text-main);
    margin-right: 4px;
}

/* Навигация */
.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav__link:hover {
    color: var(--accent-cyan);
}

/* --- Кнопки --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-family: var(--font-mono);
    border: none;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #000;
}

.btn--primary:hover {
    opacity: 0.9;
}

.btn--secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    margin-left: 16px;
}

.btn--secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn.disabled {
    background: #1e293b;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}
.header__contacts {
    display: flex;
    gap: 12px;
    margin-left: auto; /* прижмёт к правому краю */
}
.header__icon {
    color: var(--text-muted);
    transition: color 0.2s;
}
.header__icon:hover {
    color: var(--accent-cyan);
}

.section-header__title-link {
    text-decoration: none;
    color: inherit;
}
.section-header__title-link:hover {
    text-decoration: none;
}
/* --- Общие заголовки секций --- */
.section-header {
    margin-bottom: 60px;
}

.section-header__subtitle {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-header__title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Градиентный текст */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Первый блок (Hero Section) --- */
.hero {
    position: relative;
    padding-top: 220px;
    padding-bottom: 160px;
    background: radial-gradient(circle at 50% 50%, rgba(79, 172, 254, 0.07), transparent 60%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Инженерный декоративный текст на заднем фоне */
.hero__bg-text {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--accent-cyan);

    /* Сдвиг на 7px ниже */
    margin-top: 25px;

    /* Параметры рамки и капсулы */
    padding: 12px 35px;
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 50px;
    background-color: rgba(11, 15, 25, 0.4);

    /* Выравнивание и позиционирование */
    margin-bottom: 25px;
    text-align: center;
    white-space: nowrap;

    /* Эффект глубины */
    box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.03),
    0 0 15px rgba(0, 242, 254, 0.02);

    transition: all 0.3s ease;
}

/* Микро-взаимодействие при наведении */
.hero__bg-text:hover {
    border-color: var(--accent-cyan);
    box-shadow: inset 0 0 12px rgba(0, 242, 254, 0.05),
    0 0 20px rgba(0, 242, 254, 0.1);
    color: #fff;                                    /* Мягкая подсветка текста */
}

.hero__container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero__badge-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero__text {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;          /* 18px */
    font-weight: 300;             /* Облегченное начертание */
    line-height: 1.65;            /* Комфортный межстрочный интервал */
    color: rgba(255, 255, 255, 0.7); /* Приглушенный белый */
    text-align: center;           /* Выравнивание текста по центру */

    /* Геометрия и центрирование самого блока */
    max-width: 760px;             /* Ограничение ширины абзаца */
    margin-left: auto;            /* Центрирование блока на странице */
    margin-right: auto;           /* Центрирование блока на странице */

    margin-top: 1.5rem;           /* Отступ от заголовка */
    margin-bottom: 2.5rem;        /* Отступ до кнопок */
    letter-spacing: -0.01em;
}

/* Корректное отображение на мобильных устройствах */
@media (max-width: 768px) {
    .hero__text {
        font-size: 1rem;          /* 16px */
        line-height: 1.6;
        padding: 0 15px;          /* Защитные отступы по бокам */
    }
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Сброс внешнего отступа для второй кнопки в центрированном варианте */
.hero__actions .btn--secondary {
    margin-left: 0;
}

/* --- Секция: Решения (Solutions) --- */
.solutions {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.solutions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.solution-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 4px;
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.solution-card__icon {
    color: var(--accent-cyan);
    margin-bottom: 24px;
    width: 32px;
    height: 32px;
}

.solution-card__icon svg {
    width: 100%;
    height: 100%;
}

.solution-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.solution-card__text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ========= БЛОК КОНФИДЕНЦИАЛЬНОСТИ ========= */
.confidential-block {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 30% 20%, rgba(0, 242, 254, 0.02), transparent 70%);
    position: relative;
    overflow: hidden;
}

.confidential__grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.confidential__lead {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.4;
    color: var(--text-main);
    border-left: 3px solid var(--accent-cyan);
    padding-left: 24px;
}

.confidential__features {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.confidential__feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.confidential__feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 242, 254, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.confidential__feature h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.confidential__feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.confidential__nda {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.nda-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 40px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-green);
}

/* Визуальная часть с анимацией */
.confidential__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Визуальная часть с анимацией */
.confidential__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.secure-animation {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.secure-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.2));
}

.secure-badge {
    margin-top: 20px;
    background: rgba(19, 26, 44, 0.8);
    backdrop-filter: blur(4px);
    padding: 8px 18px;
    border-radius: 40px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    border: 1px solid rgba(0, 242, 254, 0.4);
    text-align: center;
}

/* --- СТИЛИ ДЛЯ БЛОКА: ПАРТНЕРСТВО & СЕРТИФИКАТ --- */
.partnership-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.partnership-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.partnership-condition {
    background-color: var(--bg-card);
    border-left: 3px solid var(--accent-yellow);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.condition-badge {
    font-family: var(--font-mono);
    color: var(--accent-yellow);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.condition-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

.partnership-certificate {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-svg {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.certificate-svg:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 242, 254, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

/* ========= НОВЫЙ УЗКИЙ БЛОК КОНТАКТОВ ========= */
.contact-strip {
    padding: 60px 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.02), transparent 80%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-strip__container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-strip__card {
    max-width: 900px;
    width: 100%;
    background: rgba(19, 26, 44, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 24px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-strip__card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 32px rgba(0, 242, 254, 0.1);
}

/* Декоративная SVG-графика */
.contact-strip__decor {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-strip__svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.3));
}

/* Текстовая часть */
.contact-strip__content {
    flex: 1;
}

.contact-strip__title {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.contact-strip__text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

.contact-strip__link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: text-shadow 0.2s ease;
    white-space: nowrap;
}

.contact-strip__link:hover {
    text-shadow: 0 0 6px var(--accent-cyan);
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-strip__card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 20px;
    }
    .contact-strip__decor {
        width: 100px;
        height: 100px;
    }
    .contact-strip__title {
        font-size: 20px;
    }
    .contact-strip__text {
        font-size: 14px;
    }
    .contact-strip__link {
        white-space: normal;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .contact-strip {
        padding: 40px 0;
    }
    .contact-strip__card {
        padding: 20px 16px;
    }
    .hero {
        padding-top: 260px; /* Ещё больше отступа для смартфонов с плотной шапкой */
    }
    /* остальные стили остаются без изменений */
}


/* Нижний бар */
.confidential__footer {
    margin-top: 60px;
    background: rgba(19, 26, 44, 0.3);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-left: 3px solid var(--accent-cyan);
}

.confidential__footer-led {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseStatus 2s infinite;
}

.confidential__footer-text {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

/* Адаптивность */
@media (max-width: 992px) {
    .confidential__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .secure-animation {
        width: 260px;
        height: 260px;
        margin: 0 auto;
    }
    .confidential__lead {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .confidential__feature {
        flex-direction: column;
        align-items: flex-start;
    }
    .confidential__feature-icon {
        width: 40px;
        height: 40px;
    }
    .nda-badge {
        font-size: 10px;
    }
}

/* --- Секция: Технологический стек (Tech Stack) --- */
.tech-stack {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background-color: #090d16;
}

.tech-stack__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.tech-card {
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Специфические бэкграунды и рамки для выделения карточек по дизайну */
.tech-card--layer01 {
    background: linear-gradient(145deg, #0d1624, #080d16);
    border-color: rgba(0, 242, 254, 0.15);
}
.tech-card--layer01:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
}

.tech-card--layer02 {
    background: linear-gradient(145deg, #0a181b, #060e11);
    border-color: rgba(16, 185, 129, 0.15);
}
.tech-card--layer02:hover {
    border-color: var(--accent-green);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.tech-card--layer03 {
    background: linear-gradient(145deg, #181514, #0f0c0b);
    border-color: rgba(245, 158, 11, 0.15);
}
.tech-card--layer03:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
}

.tech-card__layer {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.tech-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.tech-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 2px;
    color: var(--text-main);
}

.tech-card__desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Стилизация и явная видимость SVG-изображений */
.tech-card__decor {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 120px;
    height: 120px;
    transition: stroke-width 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.tech-card__decor--layer01 { color: var(--accent-cyan); opacity: 0.18; }
.tech-card__decor--layer02 { color: var(--accent-green); opacity: 0.18; }
.tech-card__decor--layer03 { color: var(--accent-yellow); opacity: 0.18; }

.tech-card:hover .tech-card__decor {
    transform: scale(1.08) translate(-4px, -4px);
    opacity: 0.45;
}

/* ================================================================== */
/* БЛОК А: CI/CD PIPELINES & QUALITY                                 */
/* ================================================================== */
.cicd-pipeline {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 80% 10%, rgba(0,242,254,0.02), transparent);
}

.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* Схема этапов */
.pipeline-diagram {
    background: rgba(19,26,44,0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.pipeline-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.pipeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 70px;
}

.step-icon {
    font-size: 32px;
    background: rgba(0,242,254,0.1);
    border-radius: 60px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border: 1px solid rgba(0,242,254,0.3);
}

.step-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.step-connector {
    position: absolute;
    right: -30px;
    top: 28px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.pipeline-step:last-child .step-connector {
    display: none;
}

.pipeline-metrics {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.metric-chip {
    background: #0a0f1a;
    padding: 8px 16px;
    border-radius: 40px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-green);
    border: 1px solid rgba(16,185,129,0.3);
}

/* Статистика справа */
.pipeline-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    background: rgba(19,26,44,0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.line-chart-svg {
    width: 100%;
    height: auto;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 12px;
}

.coverage-bar-container {
    background: rgba(255,255,255,0.05);
    height: 8px;
    border-radius: 4px;
    margin: 16px 0;
}

.coverage-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    border-radius: 4px;
    width: 0%;
}

.stat-values {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-top: 8px;
}

.pipeline-bottom {
    background: rgba(19,26,44,0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.tech-icon {
    font-family: var(--font-mono);
    font-size: 13px;
    background: rgba(0,242,254,0.08);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(0,242,254,0.2);
    color: var(--accent-cyan);
}

.pipeline-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ================================================================== */
/* БЛОК Б: HIGH AVAILABILITY                                         */
/* ================================================================== */
.ha-architecture {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 20% 80%, rgba(16,185,129,0.02), transparent);
}

.ha-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.ha-diagram {
    background: rgba(19,26,44,0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.cluster-svg {
    width: 100%;
    height: auto;
    max-width: 500px;
}

.ha-metrics {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rto-rpo {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.metric-card-ha {
    background: rgba(19,26,44,0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    flex: 1;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.metric-big {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.metric-big .small {
    font-size: 14px;
    color: var(--text-muted);
}

.progress-ha {
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    margin: 16px 0 8px;
}

.progress-fill-ha {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 2px;
    width: 0%;
}

.metric-comment {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-mono);
}

.ha-features {
    background: rgba(19,26,44,0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ha-feature {
    background: rgba(16,185,129,0.08);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--accent-green);
    border: 1px solid rgba(16,185,129,0.2);
}

.ha-quote {
    background: #070b14;
    border-left: 3px solid var(--accent-cyan);
    padding: 14px 20px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-green);
}

.ha-footer {
    margin-top: 32px;
    background: rgba(19,26,44,0.3);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ha-footer__led {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseStatus 2s infinite;
}

.ha-footer__text {
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
}

/* Адаптивность */
@media (max-width: 992px) {
    .pipeline-grid, .ha-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pipeline-steps {
        justify-content: center;
    }
    .step-connector {
        display: none;
    }
    .metric-chip {
        font-size: 10px;
    }
    .ha-features {
        justify-content: center;
    }
}

/* --- Секция: Рабочий процесс (Workflow) --- */
.workflow {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.workflow__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-step {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 4px;
    position: relative;
    transition: border-color 0.3s ease;
}

.workflow-step:hover {
    border-color: rgba(79, 172, 254, 0.3);
}

.workflow-step__num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: rgba(0, 242, 254, 0.2);
    margin-right: 40px;
    min-width: 50px;
}

.workflow-step__content {
    flex-grow: 1;
    max-width: 850px;
}

.workflow-step__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.workflow-step__text {
    color: var(--text-muted);
    font-size: 15px;
}

.workflow-step__arrow {
    width: 24px;
    height: 24px;
    color: var(--border-color);
    position: absolute;
    right: 40px;
}

/* --- Секция: Дашборд мониторинга (Dashboard) --- */
.dashboard {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background-color: #060911;
}

.dashboard__console {
    background-color: #070a14;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.dashboard__topbar {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard__dots {
    display: flex;
    gap: 8px;
}

.dashboard__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dashboard__dot--red { background-color: #ef4444; }
.dashboard__dot--yellow { background-color: #f59e0b; }
.dashboard__dot--green { background-color: #10b981; }

.dashboard__title-console {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.dashboard__status-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dashboard__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-widget {
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-widget:last-child {
    border-right: none;
}

.metric-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.metric-widget__label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.metric-widget__value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
}

.metric-widget__value--cyan { color: var(--accent-cyan); }
.metric-widget__value--green { color: var(--accent-green); }
.metric-widget__value--yellow { color: var(--accent-yellow); }

.metric-widget__progress {
    height: 3px;
    background-color: rgba(255, 255, 255, 0.03);
    margin-bottom: 12px;
    border-radius: 2px;
    width: 100%;
}

.metric-widget__progress-bar {
    height: 100%;
    border-radius: 2px;
}

.metric-widget__progress-bar--green { background-color: var(--accent-green); }
.metric-widget__progress-bar--yellow { background-color: var(--accent-yellow); }

.metric-widget__footer {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
}

.dashboard__logs {
    padding: 20px;
    background-color: #04060b;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard__log-line {
    color: #cbd5e1;
}

.log-time { color: rgba(255, 255, 255, 0.2); }
.log-info { color: var(--accent-blue); }
.log-success { color: var(--accent-green); }

.dashboard__log-line--blink {
    animation: logBlink 2s infinite ease-in-out;
}

@keyframes logBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* --- Секция: Флагманские продукты (Products Showcase) --- */
.products-showcase {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

/* Двухколоночная сетка для отображения карточек горизонтально */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Карточка перестроена вертикально: контент сверху, терминал снизу */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card__content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.product-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent-yellow);
    padding: 4px 10px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Специфический цвет бейджа для продуктов в разработке */
.product-badge--dev {
    background-color: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
}

.product-card__title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
}

.product-card__text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-features {
    list-style: none;
    margin-bottom: 32px;
}

.product-features li {
    font-size: 14px;
    color: var(--text-main);
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.product-features li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.product-card__actions {
    margin-top: auto;
    width: 100%;
}

.product-card__actions .btn {
    width: 100%;
}

/* Визуальный блок терминала занимает нижнюю часть карточки */
.product-card__visual {
    background-color: #090d16;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.mockup-terminal {
    background-color: #05070c;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    overflow: hidden;
}

.terminal-header {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-header .dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-right: 6px;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
    margin-right: auto;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
}

/* Подсветка синтаксиса */
.t-keyword { color: #f43f5e; }
.t-string { color: #10b981; }
.t-comment { color: #475569; }
.t-type { color: #0ea5e9; }
.t-number { color: #f59e0b; }
.t-indent { padding-left: 20px; }
.t-cursor {
    color: var(--accent-cyan);
    animation: cursorBlink 1s infinite steps(2, start);
}

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

/* ========= КРОСС-ПЛАТФОРМЕННЫЙ БЛОК ========= */
/* ==================== СТИЛИ БЛОКА CROSSPLATFORM ==================== */
.crossplatform {
    padding: 100px 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

/* Линейка сетки в стиле QX Systems */
.crossplatform::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.crossplatform__header {
    margin-bottom: 60px;
    text-align: left;
}

.crossplatform__content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Левая текстовая зона */
.crossplatform__text p {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.crossplatform__text p strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Высокотехнологичные бейджи */
.crossplatform__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.crossplatform__badge {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.crossplatform__badge code {
    color: var(--accent-cyan);
}

.crossplatform__badge:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.05);
}

/* Правая сетка логотипов */
.crossplatform__logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Карточка операционной системы */
.os-logo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.os-logo__icon {
    width: 42px;
    height: 42px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.os-logo__icon svg {
    width: 100%;
    height: 100%;
}

.os-logo__name {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* ==================== ИНДИВИДУАЛЬНЫЕ ХОВЕРЫ И ПОДСВЕТКИ ==================== */

/* Общий сдвиг карточки вверх */
.os-logo:hover {
    transform: translateY(-4px);
}
.os-logo:hover .os-logo__icon {
    transform: scale(1.08);
}
.os-logo:hover .os-logo__name {
    color: var(--text-main);
}

/* 1. Windows: Голубой неон */
.os-logo[data-os="windows"]:hover {
    border-color: #00adef;
    box-shadow: 0 0 25px rgba(0, 173, 239, 0.15);
}
.os-logo[data-os="windows"]:hover .os-logo__icon {
    color: #00adef;
    filter: drop-shadow(0 0 8px rgba(0, 173, 239, 0.6));
}

/* 2. macOS: Серебряный/белый свет */
.os-logo[data-os="macos"]:hover {
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.12);
}
.os-logo[data-os="macos"]:hover .os-logo__icon {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* 3. Linux Kernel: Янтарно-желтый */
.os-logo[data-os="linux"]:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}
.os-logo[data-os="linux"]:hover .os-logo__icon {
    color: var(--accent-yellow);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

/* 4. Debian: Малиново-красный */
.os-logo[data-os="debian"]:hover {
    border-color: #d70a53;
    box-shadow: 0 0 25px rgba(215, 10, 83, 0.15);
}
.os-logo[data-os="debian"]:hover .os-logo__icon {
    color: #d70a53;
    filter: drop-shadow(0 0 8px rgba(215, 10, 83, 0.6));
}

/* 5. Ubuntu: Огненно-оранжевый */
.os-logo[data-os="ubuntu"]:hover {
    border-color: #e95420;
    box-shadow: 0 0 25px rgba(233, 84, 32, 0.15);
}
.os-logo[data-os="ubuntu"]:hover .os-logo__icon {
    color: #e95420;
    filter: drop-shadow(0 0 8px rgba(233, 84, 32, 0.6));
}

/* 6. Red Hat: Насыщенный красный */
.os-logo[data-os="redhat"]:hover {
    border-color: #cc0000;
    box-shadow: 0 0 25px rgba(204, 0, 0, 0.15);
}
.os-logo[data-os="redhat"]:hover .os-logo__icon {
    color: #cc0000;
    filter: drop-shadow(0 0 8px rgba(204, 0, 0, 0.6));
}

/* 7. CentOS: Фиолетово-синий */
.os-logo[data-os="centos"]:hover {
    border-color: #93227d;
    box-shadow: 0 0 25px rgba(147, 34, 125, 0.15);
}
.os-logo[data-os="centos"]:hover .os-logo__icon {
    color: #93227d;
    filter: drop-shadow(0 0 8px rgba(147, 34, 125, 0.6));
}

/* 8. Fedora: Кибер-синий */
.os-logo[data-os="fedora"]:hover {
    border-color: #3c6eb4;
    box-shadow: 0 0 25px rgba(60, 110, 180, 0.15);
}
.os-logo[data-os="fedora"]:hover .os-logo__icon {
    color: #3c6eb4;
    filter: drop-shadow(0 0 8px rgba(60, 110, 180, 0.6));
}

/* 9. ALT Linux: Ярко-синий */
.os-logo[data-os="altlinux"]:hover {
    border-color: #00539f;
    box-shadow: 0 0 25px rgba(0, 83, 159, 0.15);
}
.os-logo[data-os="altlinux"]:hover .os-logo__icon {
    color: #00539f;
    filter: drop-shadow(0 0 8px rgba(0, 83, 159, 0.6));
}

/* 10. Astra Linux: Изумрудно-зеленый */
.os-logo[data-os="astra"]:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}
.os-logo[data-os="astra"]:hover .os-logo__icon {
    color: var(--accent-green);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

/* 11. РЕД ОС: Пурпурно-красный */
.os-logo[data-os="redos"]:hover {
    border-color: #ed1c24;
    box-shadow: 0 0 25px rgba(237, 28, 36, 0.15);
}
.os-logo[data-os="redos"]:hover .os-logo__icon {
    color: #ed1c24;
    filter: drop-shadow(0 0 8px rgba(237, 28, 36, 0.6));
}


/* ==================== НИЖНЯЯ ПАНЕЛЬ СЕКЦИИ ==================== */
.crossplatform__footer {
    margin-top: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.crossplatform__footer-led {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--accent-green);
    animation: ledPulse 2s infinite ease-in-out;
}

.crossplatform__footer-text {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

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

@keyframes ledPulse {
    0%, 100% { opacity: 0.4; filter: drop-shadow(0 0 2px var(--accent-green)); }
    50% { opacity: 1; filter: drop-shadow(0 0 8px var(--accent-green)); }
}


/* ==================== АДАПТИВНОСТЬ КЛАССА ==================== */
@media (max-width: 992px) {
    .crossplatform__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .crossplatform__logos {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .crossplatform__logos {
        grid-template-columns: repeat(2, 1fr);
    }
    .crossplatform {
        padding: 60px 0;
    }
}

/* ========= БЛОК ИМПОРТОЗАМЕЩЕНИЯ ========= */
/* ========= БЛОК ИМПОРТОЗАМЕЩЕНИЯ ========= */
.import-block {
    padding: 100px 0;
    background: radial-gradient(circle at 30% 10%, rgba(0, 242, 254, 0.02), transparent 90%);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.import-block__header {
    text-align: left;
    margin-bottom: 60px;
}

.import-block__grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 60px;
    align-items: start;
}

/* Левая колонка */
.import-block__lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 40px;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 24px;
}

/* Исправленный блок статистики — прижимаем влево */
.import-block__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
    justify-content: flex-start; /* ← главное исправление */
}
/* ИМПОРТОЗАМЕЩЕНИЕ ИСПРАВЛЕННЫЙ БЛОК */
/* --- Стили защиты метрик от выхода за границы экрана QX Systems --- */
.project-hero__metrics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 40px;
    width: 100% !important;
    box-sizing: border-box;
}

.metric-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    min-width: 0 !important; /* Важнейшее свойство: запрещает флекс-элементу распирать родителя */
    box-sizing: border-box;
}

.metric-item__number {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
}

.metric-item__text {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: normal !important; /* Разрешает правильный перенос длинных слов */
    word-wrap: break-word !important; /* Страховка от вылетов длинных строк */
    overflow-wrap: break-word !important;
}

/* Эффектный ховер для премиальности блока метрик */
.metric-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    transform: translateX(2px);
    transition: all 0.3s ease;
}

/* Специфический адаптив для смартфонов */
@media (max-width: 576px) {
    .project-hero__metrics {
        grid-template-columns: 1fr !important; /* На смартфонах метрики выстраиваются в один аккуратный вертикальный столбец */
        gap: 16px !important;
    }

    .metric-item {
        padding: 16px !important;
    }

    .metric-item__number {
        font-size: 32px;
    }
}

/* ИМПОРТОЗАМЕЩЕНИЕ ИСПРАВЛЕНЫЙ БЛОК - КОНЕЦ */
.import-stat {
    background: rgba(19, 26, 44, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 28px;
    text-align: center;
    flex: 0 0 auto; /* карточки не растягиваются */
    min-width: 130px;
    transition: all 0.3s ease;
}

/* Чтобы карточки были примерно одинаковой ширины (опционально) */
.import-stat {
    width: 140px;
}

.import-stat__value {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.import-stat__label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.import-stat:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}


/* Список фич */
.import-block__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.import-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(19, 26, 44, 0.3);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.import-feature:hover {
    border-color: rgba(0, 242, 254, 0.3);
}

.import-feature__icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 242, 254, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.import-feature__text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.import-feature__text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Правая колонка: графика и бейджи */
.import-block__visual {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sovereignty-graphic {
    background: rgba(19, 26, 44, 0.3);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sovereignty-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.sovereignty-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.sovereignty-badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 40px;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.sovereignty-badge:hover {
    background: rgba(0, 242, 254, 0.2);
    transform: translateY(-2px);
}

/* Нижняя панель */
.import-block__footer {
    margin-top: 60px;
    background: rgba(19, 26, 44, 0.3);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-left: 3px solid var(--accent-cyan);
}

.import-footer-led {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseStatus 2s infinite;
}

.import-footer-text {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

/* Адаптивность */
@media (max-width: 992px) {
    .import-block__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .import-block__stats {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .import-stat {
        min-width: 120px;
    }
    .import-feature {
        flex-direction: column;
    }
    .sovereignty-badge {
        font-size: 10px;
    }
}

/* --- Секция: Философия (Philosophy) --- */
.philosophy {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.02), transparent 60%);
}

.philosophy__box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy__title {
    font-size: 36px;
    font-weight: 800;
    margin-top: 16px;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.philosophy__text {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   БЛОК: ENTERPRISE & HIGH-END ВЕБ-РАЗРАБОТКА
   ========================================================================== */
.enterprise-web {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.02) 0%, transparent 70%);
    border-top: 1px solid var(--border-color);
}

.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.enterprise-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.enterprise-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 12px 40px rgba(0, 242, 254, 0.05);
}

.enterprise-card__code-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 24px;
    opacity: 0.7;
}

.enterprise-card__icon {
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.05);
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 242, 254, 0.1);
}

.enterprise-card:nth-child(2) .enterprise-card__icon {
    color: var(--accent-blue);
    background: rgba(0, 114, 255, 0.05);
    border-color: rgba(0, 114, 255, 0.1);
}

.enterprise-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

.enterprise-card__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-grow: 1;
}

.enterprise-card__footer-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-cyan);
    letter-spacing: 1.5px;
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
    opacity: 0.8;
}

.enterprise-card:nth-child(2) .enterprise-card__footer-meta {
    color: var(--accent-blue);
}

/* Строка технического инфобара под карточками */
.enterprise-infobar {
    margin-top: 48px;
    background: rgba(19, 26, 44, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.enterprise-infobar__status {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    flex-shrink: 0;
    animation: pulseStatus 2s infinite;
}

.enterprise-infobar__text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

@keyframes pulseStatus {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Адаптивный слой для нового блока --- */
@media (max-width: 992px) {
    .enterprise-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .enterprise-infobar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
/* ========= БЛОК ОБРАТНОЙ СВЯЗИ ========= */
.contact-engineering {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, #070b14 0%, #0a1020 100%);
}

.contact-engineering__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-engineering__description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-engineering__direct-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-engineering__direct-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease;
}

.contact-engineering__direct-item:hover {
    border-bottom-color: rgba(0, 242, 254, 0.3);
}

.contact-engineering__direct-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 242, 254, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.contact-engineering__direct-label {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-engineering__direct-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-engineering__direct-value:hover {
    color: var(--accent-cyan);
}

.contact-engineering__status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.08);
    padding: 12px 16px;
    border-radius: 40px;
    width: fit-content;
}

.contact-engineering__status-led {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseStatus 2s infinite;
}

.contact-engineering__status-text {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--accent-green);
}

/* Стили формы */
.contact-engineering__form-wrapper {
    background: rgba(19, 26, 44, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(4px);
}

.contact-engineering__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-engineering__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group--full {
    grid-column: span 2;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 14px 8px 14px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group textarea {
    resize: vertical;
    padding-top: 16px;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.1);
}

.input-group label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-group textarea ~ label {
    top: 16px;
    transform: none;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: 6px;
    transform: none;
    font-size: 10px;
    color: var(--accent-cyan);
}

.contact-engineering__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
}

.contact-engineering__privacy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-top: 16px;
}

/* --- Футер (Footer) --- */
/* --- Футер (Footer) --- */
.footer {
    background-color: #00030f;
    border-top: 1px solid var(--border-color);
    padding: 80px 0;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer__info {
    max-width: 400px;
}

.footer__desc {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 14px;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__title {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Телефон */
.footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer__phone-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: stroke 0.3s ease;
}

.footer__phone:hover {
    color: var(--accent-cyan);
    transform: translateX(2px);
}

/* Почта */
.footer__email {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin-bottom: 24px;
    display: inline-block;
}

.footer__email:hover {
    opacity: 0.8;
}

.footer__copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.15);
    font-family: var(--font-mono);
}

/* --- Секция: Инженерная эстетика (Design Philosophy) --- */
.design-philosophy {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.design-philosophy__layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.design-philosophy__lead {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-gradient: 1.4;
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.design-philosophy__description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Принципы дизайна внутри блока */
.design-principles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.design-principle {
    background-color: rgba(255, 255, 255, 0.01);
    border-left: 2px solid var(--border-color);
    padding: 4px 0 4px 20px;
    transition: border-color 0.3s ease;
}

.design-principle:hover {
    border-left-color: var(--accent-cyan);
}

.design-principle__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.design-principle__dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.design-principle__title {
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.design-principle__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Правая визуальная часть: Инженерный чертеж (Blueprint) */
.design-philosophy__visual {
    position: relative;
    width: 100%;
}

.blueprint {
    background-color: #060911;
    border: 1px solid rgba(0, 242, 254, 0.1);
    border-radius: 4px;
    height: 380px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

/* Сетка на заднем плане чертежа */
.blueprint__grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 20px 20px;
    background-image:
            linear-gradient(to right, rgba(0, 242, 254, 0.02) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
}

.blueprint__canvas {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 2;
}

.blueprint__element {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blueprint__label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(0, 242, 254, 0.4);
    letter-spacing: 1px;
}

/* Стилизация внутренних чертежных элементов */
.blueprint__wireframe-capsule {
    height: 38px;
    border: 1px dashed rgba(0, 242, 254, 0.2);
    border-radius: 50px;
    position: relative;
    width: 80%;
}

.blueprint__wireframe-capsule::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    width: 40%;
    height: 1px;
    background-color: rgba(0, 242, 254, 0.15);
    transform: translateY(-50%);
}

.blueprint__wireframe-chart {
    border: 1px solid rgba(255, 255, 255, 0.03);
    background-color: rgba(0, 0, 0, 0.2);
    height: 100px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.blueprint__svg {
    width: 100%;
    height: 100%;
}

.blueprint__point {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    transform: translate(-3px, -3px);
    animation: blueprintPulse 2s infinite ease-in-out;
}

.blueprint__element--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.blueprint__block {
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 2px;
    position: relative;
}

.blueprint__block--active {
    border-color: rgba(79, 172, 254, 0.3);
    background-color: rgba(79, 172, 254, 0.02);
}

.blueprint__block--active::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-blue);
    opacity: 0.5;
}

@keyframes blueprintPulse {
    0%, 100% { transform: translate(-3px, -3px) scale(1); opacity: 1; }
    50% { transform: translate(-3px, -3px) scale(1.5); opacity: 0.4; }
}

/* --- Адаптивность для нового блока --- */
@media (max-width: 992px) {
    .design-philosophy__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .blueprint {
        height: 320px;
    }
}

/* --- Адаптивный дизайн (Media Queries) --- */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .header__container {
        height: auto;
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .hero {
        padding-top: 160px;
        padding-bottom: 80px;
    }
    .hero__title {
        font-size: 36px;
    }
    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .workflow-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .workflow-step__num {
        margin-right: 0;
        min-width: auto;
    }
    .workflow-step__arrow {
        display: none;
    }
    .metric-widget {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .metric-widget:last-child {
        border-bottom: none;
    }
    .product-card__content {
        padding: 32px 24px;
    }
    .section-header__title {
        font-size: 28px;
    }
    .hero__bg-text {
        font-size: 12vw;
    }
}

/* --- Кнопки навигации Вверх/Вниз --- */
.scroll-nav {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    background: rgba(19, 26, 44, 0.6); /* Полупрозрачный var(--bg-card) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.scroll-nav:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.scroll-nav__btn {
    width: 44px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.3s ease;
}

.scroll-nav__btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-cyan);
}

.scroll-nav__btn--down:hover {
    color: var(--accent-blue);
}

.scroll-nav__divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 8px;
}

/* Адаптивность для мобильных экранов, чтобы блок не перекрывал контент */
@media (max-width: 768px) {
    .scroll-nav {
        bottom: 16px;
        right: 16px;
    }
    .scroll-nav__btn {
        width: 40px;
        height: 36px;
    }
}