/* ====================================================
   KSimatic - Основные стили
   ==================================================== */

/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ CSS ===== */
:root {
    /* ЦВЕТОВАЯ ПАЛИТРА - Серо-стальная */
    --color-black: #000000;
    --color-dark: #111827;
    --color-gray: #1f2937;
    --color-light-gray: #9ca3af;
    --color-white: #ffffff;
    --color-off-white: #f9fafb;
    
    /* Основной акцент - серо-стальной */
    --color-primary: #4b5563;
    --color-primary-light: #9ca3af;
    --color-primary-dark: #374151;
    
    /* Дополнительные акценты */
    --color-accent: #3b82f6;
    --color-accent-light: #60a5fa;
    --color-accent-dark: #2563eb;
    
    /* Размеры навигации */
    --navbar-height: 70px;
    --navbar-height-mobile: 60px;
    --transition-speed: 0.2s;
    
    /* Ширина контейнеров */
    --container-max-width: 1400px;
    --container-padding: 2rem;
    --container-padding-mobile: 1rem;
    
    /* ШРИФТЫ с оптимизацией загрузки */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 
                Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-main);
    color: var(--color-gray);
    line-height: 1.6;
    background-color: var(--color-white);
    padding-top: var(--navbar-height);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Класс, который добавится после загрузки Inter */
.fonts-loaded {
    font-family: 'Inter', var(--font-main);
}

@media (max-width: 991px) {
    html {
        scroll-padding-top: var(--navbar-height-mobile);
    }
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75em;
    color: var(--color-dark);
}

.fonts-loaded h1,
.fonts-loaded h2,
.fonts-loaded h3,
.fonts-loaded h4,
.fonts-loaded h5,
.fonts-loaded h6 {
    font-family: 'Inter', var(--font-main);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-primary-dark);
}

strong, b {
    font-weight: 600;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== КОНТЕЙНЕРЫ ДЛЯ ВСЕГО САЙТА ===== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== НАВИГАЦИОННАЯ ПАНЕЛЬ ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--navbar-height);
    background-color: var(--color-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: var(--font-main);
    font-weight: 500;
}

.fonts-loaded .navbar {
    font-family: 'Inter', var(--font-main);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1040;
}

.navbar-logo {
    height: 28px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar-phone-mobile {
    display: none;
    text-decoration: none;
    z-index: 1040;
}

.phone-text-mobile {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.navbar-phone-mobile:hover .phone-text-mobile {
    color: var(--color-primary-light);
}

.navbar-toggler {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1040;
}

.navbar-toggler-icon {
    display: block;
    width: 22px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.9);
    left: 0;
    transition: transform 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    bottom: -6px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-collapse {
    display: flex;
    flex-grow: 1;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 40px;
}

.nav-link:hover {
    color: var(--color-primary-light);
    background-color: rgba(155, 155, 155, 0.1);
}

.nav-link.active {
    color: var(--color-primary-light);
    background-color: rgba(155, 155, 155, 0.15);
    font-weight: 600;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-phone-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color var(--transition-speed) ease;
    font-size: 0.95rem;
}

.nav-phone-link:hover {
    color: var(--color-primary-light);
}

/* Иконки навигации - фиксированные размеры для предотвращения скачков */
.nav-phone-link i,
.dropdown-toggle .bi {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    font-size: 1.1rem;
    line-height: 1;
    vertical-align: -0.125em;
    margin-right: 0.5rem;
    opacity: 0.9;
    /* Гарантируем неизменяемый размер */
    contain: layout;
}

/* ===== ВЫПАДАЮЩИЕ МЕНЮ ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 220px;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    background-color: var(--color-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    min-height: 36px;
}

.dropdown-item:hover {
    color: var(--color-primary-light);
    background-color: rgba(155, 155, 155, 0.1);
}

.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== ДЕСКТОПНАЯ ВЕРСИЯ (≥ 992px) ===== */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .dropdown > .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown:hover > .nav-link.dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    /* ГРАДИЕНТНОЕ ПОДЧЕРКИВАНИЕ ДЛЯ ВСЕХ АКТИВНЫХ ПУНКТОВ МЕНЮ (включая dropdown) */
    .nav-link.active {
        position: relative;
    }
    
    .nav-link.active::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: calc(100% - 2rem);
        height: 2px;
        background: linear-gradient(90deg, 
            var(--color-primary) 0%, 
            var(--color-primary-light) 50%, 
            var(--color-primary) 100%
        );
        transform: translateX(-50%);
        border-radius: 1px;
        opacity: 0.8;
        /* Плавное появление для предотвращения скачков */
        transition: opacity 0.4s ease;
    }
    
    /* Градиент для активных выпадающих меню */
    .dropdown.active > .nav-link {
        color: var(--color-primary-light);
        background-color: rgba(156, 163, 175, 0.15);
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-phone-mobile,
    .navbar-toggler {
        display: none;
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (≤ 991px) ===== */
@media (max-width: 991px) {
    body {
        padding-top: var(--navbar-height-mobile);
    }
    
    .navbar {
        height: var(--navbar-height-mobile);
        padding: 0.5rem 0;
    }
    
    .navbar .container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 1rem;
        padding: 0 var(--container-padding-mobile);
    }
    
    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
        margin-left: auto;
    }
    
    .navbar-phone-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
        margin: 0 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
    
    .navbar-collapse {
        position: fixed;
        top: var(--navbar-height-mobile);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-dark);
        display: flex;
        flex-direction: column;
        z-index: 1020;
        padding: var(--container-padding-mobile);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        width: 100%;
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        flex-grow: 1;
    }
    
    .nav-item {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .nav-link {
        padding: 0.875rem 1rem;
        width: 100%;
        border-radius: 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Стрелка для dropdown на мобильных */
    .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.5em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid rgba(255, 255, 255, 0.9);
        border-right: 0.3em solid transparent;
        border-left: 0.3em solid transparent;
        border-bottom: 0;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active > .dropdown-toggle::after {
        transform: rotate(180deg);
        border-top-color: var(--color-primary-light);
    }
    
    .dropdown-menu {
        position: static;
        width: calc(100% - 1rem);
        margin: 0.5rem 0 0.5rem 1rem;
        background-color: rgba(31, 41, 55, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border-radius: 6px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        min-width: unset;
    }

    .dropdown.active .dropdown-menu {
        max-height: 80vh;
        opacity: 1;
        overflow-y: hidden;
    }
    
    .dropdown-item {
        padding: 0.625rem 1rem;
        font-size: 0.95rem;
        min-height: 42px;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .dropdown-item:hover {
        color: var(--color-primary-light);
        background-color: rgba(155, 155, 155, 0.1);
    }
    
    /* ГРАДИЕНТ ДЛЯ АКТИВНЫХ МЕНЮ НА МОБИЛЬНЫХ */
    .dropdown.active > .nav-link {
        background-color: rgba(156, 163, 175, 0.15);
        color: var(--color-primary-light);
        border-left: 3px solid;
        border-image: linear-gradient(
            to bottom,
            var(--color-primary) 0%,
            var(--color-primary-light) 100%
        ) 1;
        border-image-slice: 1;
    }
    
    /* ГРАДИЕНТНОЕ ПОДЧЕРКИВАНИЕ ДЛЯ ВСЕХ АКТИВНЫХ ССЫЛОК НА МОБИЛЬНЫХ */
    .nav-link.active {
        position: relative;
        color: var(--color-primary-light);
        background-color: rgba(156, 163, 175, 0.15);
        font-weight: 600;
    }
    
    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, 
            var(--color-primary) 0%, 
            var(--color-primary-light) 50%, 
            var(--color-primary) 100%
        );
        border-radius: 1px;
        opacity: 0.8;
        /* Плавное появление */
        transition: width 0.4s ease, opacity 0.4s ease;
    }
    
    .nav-divider,
    .nav-phone-link {
        display: none;
    }
}

/* ФИКС ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ */
@media (max-width: 400px) {
    .navbar-phone-mobile {
        max-width: 150px;
    }
    
    .phone-text-mobile {
        font-size: 0.85rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.75rem;
        min-height: 44px;
    }
    
    .dropdown-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        min-height: 38px;
    }
}

/* УЧЁТ PREFERS-REDUCED-MOTION */
@media (prefers-reduced-motion: reduce) {
    .navbar-collapse,
    .dropdown > .dropdown-menu,
    .dropdown-menu,
    .nav-link,
    .dropdown-item,
    .nav-link.active::after,
    .nav-link.active::before {
        transition: none;
    }
}

/* ===== ОСНОВНОЙ КОНТЕНТ САЙТА ===== */
.card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== ОПТИМИЗИРОВАННАЯ ГЕРОЙ-СЕКЦИЯ ===== */
.hero-section {
    background-color: var(--color-dark);
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    contain: layout paint style;
    /* Предотвращаем скачки */
    font-family: var(--font-main);
}

/* Контейнер для анимации */
.hero-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Упрощённые анимированные элементы */
.tech-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
    contain: layout;
}

/* Потоки данных */
.data-stream {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(156, 163, 175, 0.6) 20%, 
        var(--color-primary-light) 50%,
        rgba(156, 163, 175, 0.6) 80%, 
        transparent 100%
    );
    box-shadow: 
        0 0 15px rgba(156, 163, 175, 0.5),
        0 0 8px rgba(255, 255, 255, 0.3);
    animation: dataStream 5s linear infinite;
    z-index: 2;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Сканирующие лучи */
.scan-beam {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(156, 163, 175, 0.7) 30%, 
        var(--color-primary-light) 50%,
        rgba(156, 163, 175, 0.7) 70%, 
        transparent 100%
    );
    filter: blur(1px);
    animation: scanBeam 8s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

/* ===== ОПТИМИЗИРОВАННЫЕ АНИМАЦИИ ===== */
@keyframes dataStream {
    0% { transform: translateX(-100%) rotate(var(--stream-angle, 0deg)); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateX(100%) rotate(var(--stream-angle, 0deg)); opacity: 0; }
}

@keyframes scanBeam {
    0% { 
        transform: translateX(-100%) rotate(var(--beam-angle, 0deg)); 
        opacity: 0; 
    }
    10% { opacity: 0.6; }
    20% { opacity: 0.3; }
    30% { opacity: 0.6; }
    40% { opacity: 0.3; }
    50% { opacity: 0.6; }
    90% { opacity: 0.1; }
    100% { 
        transform: translateX(100%) rotate(var(--beam-angle, 0deg)); 
        opacity: 0; 
    }
}

/* ===== КОНТЕНТ HERO ===== */
.hero-content {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    border: 1px solid rgba(156, 163, 175, 0.15);
    /* Фиксируем размеры для предотвращения CLS */
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-rendering: optimizeLegibility;
    /* Фиксируем высоту текста */
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    /* Фиксируем высоту */
    line-height: 1.6;
    min-height: 4.5em;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    /* Фиксируем высоту */
    min-height: 60px;
}

/* Кнопки */
.btn-hero-primary,
.btn-hero-outline {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Фиксируем размеры */
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-hero-primary:hover,
.btn-hero-outline:hover {
    background-color: rgba(156, 163, 175, 0.2);
    color: var(--color-primary-light);
    border-color: rgba(156, 163, 175, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-hero-primary i,
.btn-hero-outline i {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 0.75rem;
    /* Фиксируем размер иконок */
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== ГРАДИЕНТНЫЙ ПЕРЕХОД ===== */
.hero-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(17, 24, 39, 0.4) 30%,
        rgba(17, 24, 39, 0.8) 70%,
        var(--color-dark) 100%
    );
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.transition-stream {
    position: absolute;
    bottom: 0;
    width: 2px;
    height: 80px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(156, 163, 175, 0.4) 20%,
        var(--color-primary-light) 50%,
        rgba(156, 163, 175, 0.4) 80%,
        transparent 100%
    );
    animation: transitionStreamFlow 3s ease-in-out infinite;
    animation-delay: var(--stream-delay, 0s);
    opacity: 0.7;
    filter: blur(1px);
    box-shadow: 
        0 0 10px rgba(156, 163, 175, 0.3),
        0 0 5px rgba(156, 163, 175, 0.2);
    will-change: transform, opacity;
}

@keyframes transitionStreamFlow {
    0%, 100% {
        transform: translateY(0) scaleY(0.3);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-40px) scaleY(1);
        opacity: 0.8;
    }
}

/* ===== ОПТИМИЗАЦИЯ ДЛЯ PREFERS-REDUCED-MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .data-stream,
    .scan-beam,
    .transition-stream {
        animation: none;
    }
    
    .transition-stream {
        opacity: 0.4;
        height: 60px;
    }
}

/* ===== АДАПТИВНОСТЬ (ИСПРАВЛЕННАЯ) ===== */

/* Планшеты и ноутбуки (≤1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
        min-height: 3.9rem;
    }
    
    .hero-description {
        min-height: 4em;
    }
}

/* Планшеты (≤991px) */
@media (max-width: 991px) {
    .hero-section {
        padding: 5rem 0;
        min-height: 550px;
        contain: layout paint;
    }
    
    .hero-title {
        font-size: 2.6rem;
        min-height: 3.4rem;
        line-height: 1.25;
    }
    
    .hero-description {
        font-size: 1.2rem;
        min-height: 3.8em;
        line-height: 1.5;
    }
    
    .hero-content {
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.25);
        min-height: 380px;
    }
    
    .btn-hero-primary,
    .btn-hero-outline {
        padding: 0.9rem 1.8rem;
        font-size: 1.05rem;
        height: 52px;
    }
    
    .hero-transition {
        height: 80px;
    }
    
    .transition-stream {
        height: 60px;
        width: 1.5px;
    }
}

/* Большие мобильные (≤768px) */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        min-height: 2.9rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        min-height: 3.5em;
        line-height: 1.45;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        min-height: 130px;
    }
    
    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        max-width: 320px;
        padding: 0.875rem 1.5rem;
        height: 50px;
    }
    
    .tech-network {
        opacity: 0.7;
    }
    
    .hero-transition {
        height: 60px;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(17, 24, 39, 0.6) 50%,
            var(--color-dark) 100%
        );
    }
    
    .transition-stream {
        height: 40px;
        width: 1px;
        opacity: 0.6;
    }
}

/* Средние мобильные (≤576px) */
@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 1.9rem;
        min-height: 2.5rem;
        line-height: 1.15;
    }
    
    .hero-description {
        font-size: 1rem;
        min-height: 3.2em;
        line-height: 1.4;
    }
    
    .hero-content {
        padding: 1.2rem;
        background: rgba(0, 0, 0, 0.3);
        min-height: 350px;
    }
    
    .data-stream {
        height: 2px;
    }
    
    .hero-transition {
        height: 40px;
    }
    
    .transition-stream {
        height: 30px;
        width: 0.8px;
        opacity: 0.5;
    }
}

/* Маленькие мобильные (≤400px) */
@media (max-width: 400px) {
    .hero-section {
        min-height: 420px;
    }
    
    .hero-title {
        font-size: 1.7rem;
        min-height: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-content {
        min-height: 320px;
    }
    
    .hero-transition {
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(17, 24, 39, 0.8) 100%
        );
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .transition-stream {
        height: 25px;
        width: 0.6px;
        opacity: 0.4;
    }
}

/* Минимальные экраны (≤360px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
        min-height: 2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        min-height: 3em;
    }
    
    .hero-transition {
        height: 30px;
    }
    
    .transition-stream {
        height: 20px;
        width: 0.5px;
        opacity: 0.35;
    }
    
    .transition-stream:nth-child(2),
    .transition-stream:nth-child(4) {
        display: none;
    }
}

/* ===== СЕКЦИЯ КЛЮЧЕВЫХ УСЛУГ (СЕРО-СТАЛЬНАЯ ПАЛИТРА) ===== */
/* Только цвета сайта, изящные эффекты */

.services-section {
    background-color: var(--color-white);
    padding: 5rem 0;
    position: relative;
}

/* Заголовок слева с подчеркиванием */
.services-heading {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1.25rem;
    display: inline-block;
}

/* Техно-элемент перед заголовком (металлический отблеск) */
.services-heading::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(
        135deg,
        var(--color-primary-dark) 0%,
        var(--color-primary) 50%,
        var(--color-primary-light) 100%
    );
    border-radius: 2px;
    box-shadow: 
        0 0 8px rgba(75, 85, 99, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* Подчеркивание: металлический градиент */
.services-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 180px;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--color-primary) 0%,
        rgba(156, 163, 175, 0.5) 50%,
        transparent 100%
    );
    border-radius: 1px;
}

/* Обёртка для кликабельной карточки */
.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
}

.service-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Карточка услуги */
.service-item {
    padding: 2.5rem 2rem 2rem 2rem;
    background-color: var(--color-off-white);
    border-radius: 12px;
    border: 1px solid rgba(75, 85, 99, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Тонкая левая полоска - металлический блеск */
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--color-primary-light) 10%,
        var(--color-primary) 50%,
        var(--color-primary-light) 90%,
        transparent 100%
    );
    opacity: 0.5;
    transition: all 0.4s ease;
}

/* Лёгкая тень от полоски для объёма */
.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 3px;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Стрелка (скрыта, появляется плавно) */
.service-arrow {
    position: absolute;
    right: 2rem;
    top: 2.5rem;
    color: var(--color-primary);
    font-size: 1.3rem;
    opacity: 0;
    transform: translateX(-8px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Заголовок услуги */
.service-title {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    padding-right: 3rem;
    transition: color 0.3s ease;
    position: relative;
}

/* Лёгкая линия под заголовком (появляется при hover) */
.service-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        var(--color-primary) 0%,
        transparent 100%
    );
    transition: width 0.3s ease 0.1s;
}

/* Описание услуги */
.service-description {
    color: var(--color-gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* ===== ИЗЯЩНЫЕ ЭФФЕКТЫ ПРИ HOVER ===== */

.service-link:hover .service-item {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(75, 85, 99, 0.05);
    border-color: rgba(75, 85, 99, 0.15);
}

/* Полоска становится ярче и шире с металлическим сиянием */
.service-link:hover .service-item::before {
    opacity: 0.9;
    width: 4px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        var(--color-primary-light) 20%,
        var(--color-primary) 50%,
        var(--color-primary-light) 80%,
        rgba(255, 255, 255, 0.3) 100%
    );
    box-shadow: 
        0 0 12px rgba(156, 163, 175, 0.4),
        inset 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Появляется свечение от полоски */
.service-link:hover .service-item::after {
    opacity: 0.6;
}

/* Стрелка плавно появляется с лёгкой анимацией */
.service-link:hover .service-arrow {
    opacity: 0.8;
    transform: translateX(0) scale(1);
    text-shadow: 0 0 8px rgba(156, 163, 175, 0.3);
}

/* Подчеркивание заголовка раскрывается */
.service-link:hover .service-title::after {
    width: 60px;
}

/* Заголовок становится чуть темнее */
.service-link:hover .service-title {
    color: var(--color-black);
}

/* Описание становится чуть светлее */
.service-link:hover .service-description {
    color: var(--color-primary);
}

/* ===== СЕТКА УСЛУГ ===== */

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1199px) {
    .services-heading::before {
        left: -2rem;
    }
    
    .services-heading::after {
        width: 150px;
    }
}

@media (max-width: 991px) {
    .services-section {
        padding: 4rem 0;
    }
    
    .services-heading {
        font-size: 2.2rem;
        margin-bottom: 3rem;
        padding-bottom: 1rem;
    }
    
    .services-heading::before {
        left: -1.75rem;
        width: 10px;
        height: 10px;
    }
    
    .services-heading::after {
        width: 130px;
        height: 1.5px;
    }
    
    .services-list {
        gap: 2rem;
    }
    
    .service-item {
        padding: 2rem 1.75rem 1.75rem 1.75rem;
    }
    
    .service-arrow {
        right: 1.75rem;
        top: 2rem;
        font-size: 1.25rem;
    }
    
    .service-title {
        font-size: 1.25rem;
        padding-right: 2.5rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 3.5rem 0;
    }
    
    .services-heading {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .services-heading::before {
        left: -1.5rem;
        width: 8px;
        height: 8px;
    }
    
    .services-heading::after {
        width: 110px;
    }
    
    .services-list {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        max-width: 600px;
    }
    
    .service-item {
        padding: 1.75rem 1.5rem 1.5rem 1.5rem;
    }
    
    .service-arrow {
        right: 1.5rem;
        top: 1.75rem;
        font-size: 1.2rem;
    }
    
    .service-title {
        font-size: 1.2rem;
        margin-bottom: 0.875rem;
        padding-right: 2.25rem;
    }
    
    .service-title::after {
        bottom: -3px;
    }
    
    .service-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .services-section {
        padding: 3rem 0;
    }
    
    .services-heading {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        padding-bottom: 0.875rem;
    }
    
    .services-heading::before {
        left: -1.25rem;
    }
    
    .services-heading::after {
        width: 90px;
    }
    
    .services-list {
        gap: 1.5rem;
    }
    
    .service-item {
        padding: 1.5rem 1.25rem 1.25rem 1.25rem;
        border-radius: 10px;
    }
    
    .service-item::before {
        width: 2px;
    }
    
    .service-link:hover .service-item::before {
        width: 3px;
    }
    
    .service-arrow {
        right: 1.25rem;
        top: 1.5rem;
        font-size: 1.15rem;
    }
    
    .service-title {
        font-size: 1.15rem;
        padding-right: 2rem;
    }
    
    .service-title::after {
        width: 0;
        height: 0.5px;
    }
    
    .service-link:hover .service-title::after {
        width: 40px;
    }
    
    .service-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 400px) {
    .services-section {
        padding: 2.5rem 0;
    }
    
    .services-heading {
        font-size: 1.6rem;
        margin-left: 1.25rem;
    }
    
    .services-heading::before {
        left: -1rem;
        width: 6px;
        height: 6px;
    }
    
    .services-heading::after {
        width: 70px;
    }
    
    .services-list {
        gap: 1.25rem;
    }
    
    .service-item {
        padding: 1.25rem 1rem 1rem 1rem;
    }
    
    .service-arrow {
        right: 1rem;
        top: 1.25rem;
        font-size: 1.1rem;
    }
    
    .service-title {
        font-size: 1.1rem;
        padding-right: 1.75rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
}

/* ===== ТЕХНОЛОГИИ И СТЕК (ПОЛНЫЙ КОД) ===== */
/* Переиспользуем максимально существующие стили */

/* Подзаголовок секции (не h3) */
.subsection-heading {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 1.6rem;
    margin: 0 0 2rem 0;
    padding-bottom: 0.75rem;
    position: relative;
    display: block;
}

/* Подчеркивание подзаголовка */
.subsection-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--color-primary) 0%,
        rgba(156, 163, 175, 0.4) 70%,
        transparent 100%
    );
    border-radius: 1px;
}

/* Сетка технологий (4 колонки для 8 карточек) */
.technologies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки на десктопе */
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 0 3rem 0;
}

/* Иконка в карточке технологии - ОРИГИНАЛЬНЫЕ ЦВЕТА */
.tech-section-icon {
    font-size: 1.4rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Цвета иконок для каждой технологии */
.tech-section-icon.bi-grid-3x3-gap { /* SCADA */
    color: #4f46e5; /* Индиго */
}

.tech-section-icon.bi-bar-chart { /* MES */
    color: #10b981; /* Изумрудный */
}

.tech-section-icon.bi-cpu { /* PLC контроллеры */
    color: #f59e0b; /* Янтарный */
}

.tech-section-icon.bi-plug { /* OPC серверы */
    color: #ef4444; /* Красный */
}

.tech-section-icon.bi-database { /* Базы данных */
    color: #8b5cf6; /* Фиолетовый */
}

.tech-section-icon.bi-easel { /* Средства визуализации */
    color: #3b82f6; /* Синий */
}

.tech-section-icon.bi-shuffle { /* Интеграционные шины */
    color: #06b6d4; /* Бирюзовый */
}

.tech-section-icon.bi-door-open { /* Корпоративные порталы */
    color: #f97316; /* Оранжевый */
}

/* Эффект при наведении на карточку */
.service-link:hover .tech-section-icon {
    transform: scale(1.1);
}

/* Для карточек стека - ОРИГИНАЛЬНЫЕ ЦВЕТА */
.stack-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

/* Цвета иконок для стеков */
.stack-icon.bi-code-slash { /* Frontend */
    color: #3b82f6; /* Синий React/Vue */
}

.stack-icon.bi-server { /* Backend */
    color: #10b981; /* Зеленый Python/Java/.NET */
}

.stack-icon.bi-database { /* Базы данных */
    color: #8b5cf6; /* Фиолетовый PostgreSQL */
}

.stack-icon.bi-cloud { /* Инфраструктура */
    color: #f59e0b; /* Оранжевый Docker/Kubernetes */
}

.stack-icon.bi-plug { /* Промышленные протоколы */
    color: #ef4444; /* Красный OPC/Modbus */
}

.stack-icon.bi-shuffle { /* Интеграция */
    color: #06b6d4; /* Бирюзовый Kafka/RabbitMQ */
}

.stack-heading {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
}

.stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stack-list li {
    color: var(--color-gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.stack-list li::before {
    content: '•';
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Эффект при наведении на карточку стека */
.service-link:hover .stack-icon {
    transform: scale(1.1);
}

.service-link:hover .stack-list li {
    color: var(--color-dark);
}

.service-link:hover .stack-list li::before {
    color: var(--color-accent);
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1199px) {
    .subsection-heading::after {
        width: 80px;
    }
    
    .technologies-grid {
        grid-template-columns: repeat(4, 1fr); /* Оставляем 4 колонки */
    }
}

@media (max-width: 991px) {
    .subsection-heading {
        font-size: 1.5rem;
        padding-bottom: 0.625rem;
    }
    
    .technologies-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    .tech-section-icon {
        font-size: 1.3rem;
    }
    
    .stack-icon {
        font-size: 1.3rem;
        margin-right: 0.875rem;
    }
    
    .stack-heading {
        font-size: 1.2rem;
    }
    
    .stack-list li {
        font-size: 0.95rem;
        padding-left: 1.25rem;
    }
}

@media (max-width: 768px) {
    .subsection-heading {
        font-size: 1.4rem;
    }
    
    .subsection-heading::after {
        width: 70px;
        height: 1.5px;
    }
    
    .technologies-grid {
        grid-template-columns: repeat(2, 1fr); /* Оставляем 2 колонки */
        gap: 1rem;
    }
    
    .tech-section-icon {
        font-size: 1.2rem;
    }
    
    .stack-icon {
        font-size: 1.2rem;
        margin-right: 0.75rem;
    }
    
    .stack-heading {
        font-size: 1.15rem;
    }
    
    .stack-list li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        padding-left: 1.1rem;
    }
}

@media (max-width: 576px) {
    .subsection-heading {
        font-size: 1.3rem;
        padding-bottom: 0.5rem;
    }
    
    .subsection-heading::after {
        width: 60px;
    }
    
    .technologies-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
        gap: 0.875rem;
        margin-bottom: 2rem;
    }
    
    .stack-list li {
        font-size: 0.875rem;
        padding-left: 1rem;
    }
}

@media (max-width: 400px) {
    .subsection-heading {
        font-size: 1.2rem;
    }
    
    .subsection-heading::after {
        width: 50px;
    }
    
    .technologies-grid {
        gap: 0.75rem;
    }
    
    .tech-section-icon {
        font-size: 1.1rem;
    }
    
    .stack-icon {
        font-size: 1.1rem;
    }
    
    .stack-heading {
        font-size: 1.1rem;
    }
}

/* ===== ОПТИМИЗИРОВАННАЯ СЕКЦИЯ: ОТРАСЛЕВЫЕ РЕШЕНИЯ ===== */
.industries-section {
    background-color: var(--color-white);
    padding: 5rem 0;
    position: relative;
    contain: layout style;
}

.industries-section .subsection-heading {
    color: var(--color-dark);
}

.industries-section .subsection-heading::after {
    background: linear-gradient(90deg, 
        var(--color-primary) 0%,
        rgba(156, 163, 175, 0.5) 70%,
        transparent 100%
    );
}

/* Карточки строк */
.industry-row {
    margin-bottom: 4rem;
    padding: 2.5rem 2rem;
    background-color: var(--color-dark);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--color-white);
    contain: layout paint;
}

.industry-row:hover {
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.industry-row .subsection-heading {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.industry-row .subsection-heading::after {
    background: linear-gradient(90deg, 
        var(--color-primary-light) 0%,
        rgba(156, 163, 175, 0.6) 70%,
        transparent 100%
    );
}

/* Сетка */
.industry-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: start;
}

.industry-main-solution {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Карточка решения */
.solution-card {
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
    height: auto;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.solution-card:hover {
    transform: translateY(-3px);
    background-color: rgba(156, 163, 175, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.solution-title-large {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.solution-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== ОПТИМИЗИРОВАННЫЙ АНИМАЦИОННЫЙ БЛОК ===== */
.industry-animation {
    width: 160px;
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.icon-reveal-container {
    position: relative;
    width: 120px;
    height: 120px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    contain: layout paint;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.icon-reveal-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: 
        radial-gradient(
            circle at 50% 50%,
            rgba(34, 197, 94, 0.18) 0%,
            rgba(34, 197, 94, 0.12) 25%,
            rgba(34, 197, 94, 0.08) 50%,
            rgba(34, 197, 94, 0.03) 75%,
            transparent 90%
        ),
        repeating-linear-gradient(
            to right,
            transparent,
            transparent 59px,
            rgba(34, 197, 94, 0.14) 59px,
            rgba(34, 197, 94, 0.14) 60px
        ),
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 59px,
            rgba(34, 197, 94, 0.14) 59px,
            rgba(34, 197, 94, 0.14) 60px
        );
    background-size: 100% 100%, 60px 60px, 60px 60px;
    opacity: 0.7;
    z-index: 1;
    animation: gridMove 120s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.noise-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 3px;
    padding: 10px;
    opacity: 0;
    z-index: 2;
    animation: noiseFadeIn 0.5s ease forwards;
    contain: layout;
    will-change: opacity, transform;
}

.noise-pixel {
    background-color: rgba(34, 197, 94, 0.15);
    border-radius: 3px;
    opacity: 0.7;
    transform: scale(0.8);
    box-shadow: 
        0 0 6px rgba(34, 197, 94, 0.4),
        inset 0 0 4px rgba(255, 255, 255, 0.2);
    will-change: opacity, transform, box-shadow;
    animation: noiseReveal 0.5s ease forwards;
}

.industry-animation[data-icon="droplet"] .noise-pixel {
    background-color: rgba(34, 197, 94, 0.2);
}

.industry-animation[data-icon="gear"] .noise-pixel {
    background-color: rgba(34, 197, 94, 0.15);
}

.industry-animation[data-icon="lightning"] .noise-pixel {
    background-color: rgba(250, 204, 21, 0.15);
}

.industry-animation[data-icon="building"] .noise-pixel {
    background-color: rgba(34, 197, 94, 0.12);
}

.industry-animation[data-icon="bank"] .noise-pixel {
    background-color: rgba(139, 92, 246, 0.15);
}

.industry-animation[data-icon="truck"] .noise-pixel {
    background-color: rgba(239, 68, 68, 0.15);
}

.icon-final {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    color: rgba(255, 255, 255, 0.95);
    z-index: 3;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.6));
    animation: iconReveal 1s ease forwards;
    animation-delay: 1.2s;
    will-change: opacity, transform, filter;
    transform: translateZ(0);
}

.icon-final::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(34, 197, 94, 0.4) 0%,
        rgba(34, 197, 94, 0.2) 30%,
        transparent 60%
    );
    opacity: 0;
    z-index: -1;
    animation: contourGlow 2s ease-in-out infinite;
    animation-delay: 2s;
    will-change: opacity, transform;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        rgba(34, 197, 94, 0.3) 0%,
        rgba(34, 197, 94, 0.15) 40%,
        transparent 70%
    );
    animation: squareGlow 3s ease-in-out infinite;
    animation-delay: 1.8s;
    will-change: opacity, transform;
}

@keyframes gridMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -30px) rotate(0.2deg); }
}

@keyframes noiseFadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes noiseReveal {
    0% {
        opacity: 0.8;
        transform: scale(1) translate(var(--tx, 0), var(--ty, 0));
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.9) translate(0, 0);
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
        box-shadow: 0 0 5px transparent;
    }
}

@keyframes iconReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-15deg);
        filter: drop-shadow(0 0 0 transparent) blur(3px);
    }
    60% {
        opacity: 0.9;
        transform: scale(1.05) rotate(5deg);
        filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.7)) blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
    }
}

@keyframes contourGlow {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes squareGlow {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(0.98);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.02);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .icon-reveal-container {
        animation-play-state: paused;
    }
    
    .icon-reveal-container.in-viewport {
        animation-play-state: running;
    }
}

@media (max-width: 768px) {
    .icon-reveal-container::before {
        animation-duration: 180s;
        opacity: 0.5;
    }
    
    .noise-layer {
        gap: 2px;
        padding: 8px;
    }
    
    .icon-final {
        font-size: 60px;
    }
}

@media (max-width: 576px) {
    .icon-reveal-container::before {
        animation-duration: 240s;
        opacity: 0.4;
    }
    
    .noise-layer {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 1px;
        padding: 6px;
    }
    
    .icon-final {
        font-size: 50px;
        animation-delay: 0.8s;
    }
    
    .icon-final::after {
        animation-delay: 1.5s;
    }
    
    .icon-glow {
        animation-delay: 1.2s;
    }
}

@media (max-width: 400px), (max-height: 600px) {
    .icon-reveal-container::before {
        animation: none;
        opacity: 0.3;
    }
    
    .noise-layer {
        display: none;
    }
    
    .icon-final {
        animation: none;
        opacity: 1;
        transform: none;
        filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.4));
    }
    
    .icon-final::after,
    .icon-glow {
        animation: none;
        opacity: 0.1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .icon-reveal-container::before,
    .noise-layer,
    .icon-final,
    .icon-final::after,
    .icon-glow {
        animation: none;
    }
    
    .icon-final {
        opacity: 1;
        transform: none;
        filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.4));
    }
    
    .icon-final::after,
    .icon-glow {
        opacity: 0.1;
    }
    
    .noise-layer {
        display: none;
    }
    
    .industry-row:hover,
    .solution-card:hover {
        transform: none;
    }
}

.icon-reveal-container,
.icon-reveal-container::before,
.icon-final,
.icon-final::after,
.icon-glow,
.noise-pixel {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.industry-solutions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    justify-content: flex-start;
}

.solutions-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.solution-item-small {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.875rem 1rem;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.solution-item-small:hover {
    background-color: rgba(156, 163, 175, 0.2);
    color: var(--color-primary-light);
    transform: translateX(5px);
    border-color: rgba(156, 163, 175, 0.4);
}

.solution-item-small:hover .solution-arrow {
    color: var(--color-primary-light);
    transform: translateX(3px);
}

.solution-arrow {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.solution-item-small span {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 991px) {
    .industry-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .industry-animation {
        order: 1;
        margin: 0 auto;
        width: 140px;
        height: 140px;
    }
    
    .industry-main-solution {
        order: 2;
    }
    
    .industry-solutions-list {
        order: 3;
    }
    
    .icon-reveal-container {
        width: 100px;
        height: 100px;
    }
    
    .icon-final {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .industries-section {
        padding: 4rem 0;
    }
    
    .industry-row {
        padding: 2rem 1.5rem;
    }
    
    .industry-animation {
        width: 120px;
        height: 120px;
    }
    
    .icon-reveal-container {
        width: 90px;
        height: 90px;
    }
    
    .icon-final {
        font-size: 50px;
    }
    
    .solution-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .solution-title-large {
        font-size: 1.25rem;
    }
    
    .solution-item-small {
        padding: 0.75rem 0.875rem;
    }
}

@media (max-width: 576px) {
    .industry-row {
        padding: 1.5rem 1rem;
    }
    
    .industry-animation {
        width: 100px;
        height: 100px;
    }
    
    .icon-reveal-container {
        width: 80px;
        height: 80px;
    }
    
    .icon-final {
        font-size: 45px;
    }
    
    .solution-card {
        padding: 1.25rem;
    }
    
    .solution-title-large {
        font-size: 1.15rem;
    }
    
    .solution-item-small {
        padding: 0.625rem 0.75rem;
    }
    
    .solution-item-small span {
        font-size: 0.9rem;
    }
}

/* ===== СЕКЦИЯ СОТРУДНИЧЕСТВА ===== */

/* Специальный класс для секции */
.cooperation-section {
    /* padding-top: 3rem; 
    padding-bottom: 5rem;*/
    background-color: var(--color-white);
    position: relative;
}


/* Остальные стили остаются как есть */
.cooperation-description {
    padding-left: 2rem;
    border-left: 1px solid;
    border-image: linear-gradient(
        to bottom,
        transparent 10%,
        rgba(75, 85, 99, 0.5) 50%,
        transparent 90%
    ) 1;
    margin: 0 0 2rem 0;
}

.cooperation-text {
    color: var(--color-gray);
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 0 3rem 0;
}

/* Контейнеры для логотипов вузов */
.cooperation-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    overflow: hidden;
    padding: 12px;
}

/* Логотипы вузов */
.logo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Фоны для логотипов */
.cooperation-logo-mendeleev {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.9) 100%);
    border: 1px solid rgba(213, 43, 30, 0.15);
}

.cooperation-logo-gubkin {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.9) 100%);
    border: 1px solid rgba(0, 86, 179, 0.15);
}

/* Эффекты при наведении */
.service-link:hover .cooperation-logo {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.service-link:hover .logo-image {
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 1199px) {
    .cooperation-logo {
        width: 70px;
        height: 70px;
        padding: 10px;
    }
}

@media (max-width: 991px) {
    .cooperation-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 600px;
        margin: 0 auto 2.5rem auto;
    }
    
    .cooperation-logo {
        width: 65px;
        height: 65px;
        padding: 8px;
    }
    
    .cooperation-description {
        margin: 0 0 1.5rem 0;
    }
}

@media (max-width: 768px) {
    .cooperation-text {
        font-size: 1rem;
    }
    
    .cooperation-logo {
        width: 60px;
        height: 60px;
        padding: 6px;
    }
    
    .cooperation-description {
        padding-left: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .cooperation-section {
        padding-top: 2rem; /* На мобильных меньше */
        padding-bottom: 4rem;
    }
    
    .cooperation-description {
        padding-left: 1rem;
        border-left: none;
        border-image: none;
    }
    
    .cooperation-logo {
        width: 55px;
        height: 55px;
        padding: 5px;
    }
    
    .cooperation-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-link:hover .cooperation-logo {
        transform: scale(1.03) rotate(3deg);
    }
    
    .service-link:hover .logo-image {
        transform: scale(1.05);
    }
}

@media (max-width: 400px) {
    .cooperation-logo {
        width: 50px;
        height: 50px;
        padding: 4px;
    }
    
    .service-title {
        font-size: 1rem;
    }
}

/* ===== СЕКЦИЯ ФОРМЫ ОБРАТНОЙ СВЯЗИ ===== */
.contact-form-section {
    background-color: var(--color-white);
}

/* Тёмный фон формы */
.contact-form-dark {
    background-color: var(--color-dark);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* ===== ТЕКСТОВАЯ ЧАСТЬ С СЕТКОЙ И ЛУЧАМИ ===== */
.contact-promo {
    position: relative;
    padding-right: 3rem;
    margin-bottom: 3rem;
    flex: 1;
    overflow: hidden;
}

/* Контейнер для лучей */
.contact-beams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Лучи */
.contact-beams .data-stream {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(156, 163, 175, 0.4) 20%, 
        var(--color-primary-light) 50%,
        rgba(156, 163, 175, 0.4) 80%, 
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(156, 163, 175, 0.3);
    animation: dataStream 5s linear infinite;
    opacity: 0.7;
}

/* Сетка только для текстовой части */
.contact-promo::before {
    content: '';
    position: absolute;
    top: -3rem;
    left: -3rem;
    right: 3rem;
    bottom: -3rem;
    background: 
        radial-gradient(
            circle at 30% 40%,
            rgba(34, 197, 94, 0.18) 0%,
            rgba(34, 197, 94, 0.08) 25%,
            transparent 50%
        ),
        repeating-linear-gradient(
            to right,
            transparent,
            transparent 59px,
            rgba(34, 197, 94, 0.08) 59px,
            rgba(34, 197, 94, 0.08) 60px
        ),
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 59px,
            rgba(34, 197, 94, 0.08) 59px,
            rgba(34, 197, 94, 0.08) 60px
        );
    background-size: 100% 100%, 60px 60px, 60px 60px;
    opacity: 0.7;
    z-index: 0;
    animation: gridMove 90s linear infinite;
    pointer-events: none;
}

/* Промо-текст и особенности */
.contact-promo-text,
.contact-features {
    position: relative;
    z-index: 2;
}

.contact-promo-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Особенности списка */
.contact-features .feature-item {
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-features .feature-icon {
    color: var(--color-primary-light);
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ===== ВЕРТИКАЛЬНАЯ ЧЕРТА И ФОРМА ===== */
.contact-form-container {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    position: relative;
    z-index: 3;
}

/* Вертикальная черта */
.contact-divider {
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 10%,
        rgba(156, 163, 175, 0.5) 50%,
        transparent 90%
    );
    flex-shrink: 0;
}

/* Форма */
.contact-form {
    flex: 1;
}

/* ===== СТИЛИ ПОЛЕЙ ФОРМЫ ===== */
.form-control-light {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
}

.form-control-light::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control-light:focus {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: var(--color-primary-light);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.3);
}

/* ===== СТИЛИ ДЛЯ ВЫПАДАЮЩЕГО СПИСКА ===== */
.form-select-light {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Опции выпадающего списка */
.form-select-light option {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
}

/* Группы опций */
.form-select-light optgroup {
    background-color: var(--color-primary-dark);
    color: var(--color-primary-light);
    font-weight: 600;
    padding: 0.5rem;
}

/* Состояние фокуса */
.form-select-light:focus {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: var(--color-primary-light);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.3);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* Неактивное состояние */
.form-select-light:disabled {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
}

/* Чекбокс */
.form-check-light {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.form-check-light:checked {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.form-check-label-light {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
}

/* Кнопка */
.contact-form .btn-hero-primary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-form .btn-hero-primary:hover {
    background-color: rgba(156, 163, 175, 0.3);
    color: var(--color-primary-light);
    border-color: rgba(156, 163, 175, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (min-width: 992px) {
    .contact-form-dark {
        flex-direction: row;
        min-height: 500px;
    }
    
    .contact-promo {
        flex: 0 0 45%;
        margin-bottom: 0;
        padding-right: 3rem;
    }
    
    .contact-form-container {
        flex: 0 0 55%;
        padding-left: 3rem;
    }
    
    .contact-divider {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 1px;
    }
    
    /* Ограничиваем лучи текстовой частью */
    .contact-beams {
        right: 3rem;
    }
}

@media (max-width: 1199px) {
    .contact-form-dark {
        padding: 2.5rem;
    }
}

@media (max-width: 991px) {
    .contact-form-dark {
        padding: 2rem;
        flex-direction: column;
    }
    
    .contact-promo {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .contact-form-container {
        gap: 0;
        padding-left: 0;
    }
    
    .contact-divider {
        display: none;
    }
    
    /* На мобильных ограничиваем сетку и лучи */
    .contact-promo::before {
        right: -2rem;
        bottom: -2rem;
    }
    
    .contact-beams {
        right: 0;
    }
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 4rem 0;
    }
    
    .contact-form-dark {
        padding: 1.75rem;
    }
    
    .contact-promo-text {
        font-size: 1.2rem;
    }
    
    /* Уменьшаем лучи на планшетах */
    .contact-beams .data-stream {
        height: 1.5px;
        opacity: 0.6;
    }
}

@media (max-width: 576px) {
    .contact-form-section {
        padding: 3rem 0;
    }
    
    .contact-form-dark {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .contact-promo-text {
        font-size: 1.1rem;
    }
    
    .form-control-light,
    .form-select-light {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .btn-hero-primary {
        padding: 0.875rem;
        font-size: 1.05rem;
    }
    
    /* Ещё меньше лучи на мобильных */
    .contact-beams .data-stream {
        height: 1px;
        opacity: 0.5;
    }
}

@media (max-width: 400px) {
    .contact-form-dark {
        padding: 1.25rem;
    }
}

/* ===== ФУТЕР СИСТЕМНОГО ИНТЕГРАТОРА ===== */
.site-footer {
    background-color: var(--color-dark);
    color: #ffffff;
    padding: 0;
    margin-top: 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-primary-light);
}

/* ГОРИЗОНТАЛЬНЫЕ ЛИНИИ С ГРАДИЕНТОМ */
.footer-row {
    border-bottom: none;
    background-image: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.25) 50%, 
        transparent 100%
    );
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: bottom center;
    padding: 3rem 0;
}

/* Убрать градиент у последнего ряда */
.footer-row:last-child {
    background-image: none;
}

.footer-logo {
    height: 40px;
    width: auto;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
    font-weight: 400;
}

/* ЗАГОЛОВКИ С ГРАДИЕНТНЫМ ПОДЧЕРКИВАНИЕМ */
.footer-heading {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}

/* УБИРАЕМ СТАРОЕ ПОДЧЕРКИВАНИЕ */
.footer-heading::after {
    display: none;
}

/* НОВОЕ ГРАДИЕНТНОЕ ПОДЧЕРКИВАНИЕ ДЛЯ "ПРОДУКТЫ", "УСЛУГИ", "ОТРАСЛИ" */
.footer-heading::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--color-primary) 0%, 
        var(--color-primary-light) 50%, 
        var(--color-primary) 100%
    );
    border-radius: 1px;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.5;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--color-primary-light);
    transform: translateX(5px);
}

.contact-heading {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.contact-heading::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--color-primary) 0%, 
        var(--color-primary-light) 100%
    );
    border-radius: 1px;
}

.contact-block {
    margin-bottom: 1.5rem;
}

.contact-link {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--color-primary-light);
}

.contact-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.contact-note {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
}

/* ВЕРТИКАЛЬНАЯ ЛИНИЯ С ГРАДИЕНТОМ */
.social-section {
    padding-left: 2rem;
    border-left: 1px solid;
    border-image: linear-gradient(
        to bottom,
        transparent 10%,
        rgba(156, 163, 175, 0.5) 50%,
        transparent 90%
    ) 1;
}

@media (max-width: 991px) {
    .social-section {
        padding-left: 0;
        border-left: none;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        background-image: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.25) 50%, 
            transparent 100%
        );
        background-size: 100% 1px;
        background-repeat: no-repeat;
        background-position: top center;
    }
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(156, 163, 175, 0.2);
    color: var(--color-primary-light);
    border-color: rgba(156, 163, 175, 0.4);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
}

.social-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.copyright p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

.copyright .small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legal-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
}

.legal-link:hover {
    color: var(--color-primary-light);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: 1px solid;
}

.btn-outline-light:hover {
    background-color: rgba(156, 163, 175, 0.2);
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    transform: translateY(-2px);
}

/* ТЕХНОЛОГИЧЕСКИЕ ТЕГИ С ГРАДИЕНТОМ */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    background-image: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.25) 50%, 
        transparent 100%
    );
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: top center;
}

.tech-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: rgba(156, 163, 175, 0.2);
    color: var(--color-primary-light);
    border-color: rgba(156, 163, 175, 0.4);
    transform: translateY(-1px);
}

/* ===== АДАПТИВНОСТЬ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ ===== */

@media (max-width: 576px) {
    .navbar-logo {
        height: 24px;
    }
    
    .phone-text-mobile {
        font-size: 0.85rem;
        padding: 0.25rem;
        max-width: 150px;
    }
    
    .navbar-collapse {
        padding: 0.75rem;
    }
    
    .nav-link {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .dropdown-item {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .phone-text-mobile {
        font-size: 0.75rem;
        max-width: 120px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.625rem 0.75rem;
    }
    
    .dropdown-item {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .dropdown-menu {
        width: calc(100% - 0.5rem);
        margin-left: 0.5rem;
    }
    
    .navbar .container {
        gap: 0.5rem;
        padding: 0 0.75rem;
    }
}

/* ===== АДАПТИВНОСТЬ ФУТЕРА ===== */
@media (max-width: 1199px) {
    .footer-slogan {
        font-size: 0.9rem;
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .site-footer {
        margin-top: 4rem;
    }
    
    .footer-row {
        padding: 2.5rem 0;
    }
    
    .footer-slogan {
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .social-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-heading {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .contact-heading {
        font-size: 0.85rem;
    }
    
    .contact-link,
    .contact-text {
        font-size: 1rem;
    }
    
    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-tags {
        justify-content: flex-start;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .footer-logo {
        height: 35px;
    }
    
    .footer-slogan {
        font-size: 0.85rem;
    }
    
    .copyright p {
        font-size: 0.85rem;
    }
    
    .copyright .small {
        font-size: 0.8rem;
    }
    
    .legal-link {
        font-size: 0.85rem;
    }
    
    .btn-outline-light {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .social-link {
        padding: 0.6rem 0.8rem;
    }
    
    .social-link i {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
    
    .social-text {
        font-size: 0.85rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .footer-actions {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .tech-tags {
        gap: 0.5rem;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
