html {
            font-size:16px;
        }
    
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #1e3a5f;
            --secondary-color: #2c5282;
            --accent-color: #3182ce;
            --success-color: #38a169;
            --error-color: #e53e3e;
            --text-dark: #1a202c;
            --text-gray: #4a5568;
            --bg-light: #f7fafc;
            --bg-white: #ffffff;
            --border-color: #e2e8f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

/* Альтернативная зеленая тема */
[data-theme="green"] {
    --primary-color: #1B5E20;
    --secondary-color: #2E7D32;
    --accent-color: #4CAF50;
    --success-color: #66BB6A;
    --error-color: #e53e3e;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --bg-light: #E8F5E8;
    --bg-white: #ffffff;
    --border-color: #C8E6C9;
    --shadow: 0 4px 6px rgba(27, 94, 32, 0.05);
    --shadow-hover: 0 10px 25px rgba(27, 94, 32, 0.15);
}

/* Кнопка переключения темы */
.theme-toggle-btn {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1002;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* Плавные переходы для всех элементов */
body,
header,
.main-site-nav,
.hero,
.features,
.tech-stack,
.modules-panel,
.process,
.clients,
.testimonials,
.pricing,
.cta,
footer {
    transition: all 0.5s ease;
}

/* Специфичные адаптации для зеленой темы */
[data-theme="green"] .hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

[data-theme="green"] .hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="green"] .cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

[data-theme="green"] .section-badge {
    background: var(--bg-light);
    color: var(--accent-color);
}

[data-theme="green"] .feature-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

[data-theme="green"] .achievement-card:hover,
[data-theme="green"] .feature-card:hover,
[data-theme="green"] .tech-card:hover,
[data-theme="green"] .testimonial-card:hover,
[data-theme="green"] .pricing-card:hover {
    box-shadow: var(--shadow-hover);
}

        body {
            font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background: var(--bg-white);
            overflow-x: hidden;
            padding-top: 136px; /* Увеличиваем с 120px до 128px - до 136 */
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Main site navigation - первое меню с логотипом */
        .main-site-nav {
            background: var(--bg-white);
            border-bottom: 1px solid var(--border-color);
            padding: 15px 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1001;
            box-shadow: var(--shadow);
        }

        .main-site-nav .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo a {
            text-decoration: none;
            color: inherit;
        }

        .logo-text {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
            letter-spacing: -0.5px;
        }

        .logo-subtitle {
            font-size: 10px;
            color: var(--text-gray);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 2px;
        }

        .main-nav-links {
            display: flex;
            gap: 50px;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .main-nav-links li {
            position: relative;
        }

        /* ===== ОСНОВНЫЕ СТИЛИ ПОДМЕНЮ ===== */
        .submenu-dropdown {
            /* Позиционирование */
            position: absolute;
            top: 100%;
            left: 0;
            z-index: 9999;

            /* Размеры и отступы */
            min-width: 260px;
            max-width: 320px;
            padding: 12px 0;
            margin: 0;

            /* Внешний вид */
            background: #ffffff;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);

            /* Текст */
            list-style: none;
            font-size: 15px;
            line-height: 1.5;

            /* Анимация */
            display: none;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        /* Показываем при наведении */
        .main-nav-links li:hover .submenu-dropdown {
            display: block;
            opacity: 1;
        }

        /* ===== ПУНКТЫ ПОДМЕНЮ ===== */
        .submenu-dropdown li {
            position: relative;
            margin: 0;
            padding: 0;
            width: 100%;
            border-bottom: 1px solid #f0f0f0;
        }

        .submenu-dropdown li:last-child {
            border-bottom: none;
        }

        /* ===== ССЫЛКИ В ПОДМЕНЮ ===== */
        .submenu-dropdown li a {
            display: block;
            padding: 12px 20px;
            margin: 0;

            /* Текст */
            font-size: 14px;
            font-weight: normal;
            color: #333333;
            text-decoration: none;
            white-space: normal;
            word-wrap: break-word;
            line-height: 1.4;

            /* Фон */
            background: transparent;
            transition: all 0.2s ease;
        }

        /* Ховер эффект */
        .submenu-dropdown li a:hover {
            background: #f8f9fa;
            color: #0056b3;
            padding-left: 25px;
        }

        /* Активный пункт */
        .submenu-dropdown li.active a,
        .submenu-dropdown li.current a {
            background: #e9ecef;
            color: #0056b3;
            font-weight: 600;
        }

        /* ===== СТРЕЛКА У РОДИТЕЛЯ ===== */
        .arrow {
            display: inline-block;
            margin-left: 8px;
            font-size: 12px;
            color: #999;
            transition: transform 0.2s;
        }

        /* Переворачиваем стрелку при наведении */
        .main-nav-links li:hover .arrow {
            transform: rotate(180deg);
            color: #0056b3;
        }

        /* ===== АДАПТАЦИЯ ДЛЯ РАЗНЫХ ЭКРАНОВ ===== */

        /* Большие экраны - выравнивание по правому краю */
        @media (min-width: 1400px) {
            .main-nav-links li:last-child .submenu-dropdown,
            .main-nav-links li:nth-last-child(2) .submenu-dropdown {
                left: auto;
                right: 0;
            }
        }

        /* Средние экраны - центрирование */
        @media (max-width: 1199px) {
            .submenu-dropdown {
                min-width: 220px;
            }
        }

        /* Планшеты - горизонтальное меню */
        @media (max-width: 991px) {
            .main-nav-links {
                flex-wrap: wrap;
            }

            .submenu-dropdown {
                position: absolute;
                min-width: 200px;
            }
        }

        /* Мобильные - вертикальное меню */
        @media (max-width: 768px) {
            .main-nav-links li {
                position: static;
                width: 100%;
            }

            .submenu-dropdown {
                position: static;
                width: 100%;
                max-width: 100%;
                box-shadow: none;
                border: none;
                border-left: 3px solid #0056b3;
                border-radius: 0;
                margin-left: 20px;
                padding: 5px 0;
                background: #fafafa;
            }

            .submenu-dropdown li a {
                padding: 10px 15px;
                font-size: 15px;
            }

            .arrow {
                float: right;
                margin-top: 3px;
            }
        }

        /* ===== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ===== */

        /* Затемнение фона при наведении на родителя */
        .main-nav-links li.has-submenu:hover > a {
            background: #f8f9fa;
            border-radius: 4px 4px 0 0;
        }

        /* Иконка для пунктов с подменю */
        .main-nav-links li.has-submenu > a {
            position: relative;
            padding-right: 30px;
        }

        /* Улучшенная стрелка */
        .main-nav-links li.has-submenu > a .arrow {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
        }

        /* Широкие подменю для контента */
        .submenu-dropdown.wide {
            min-width: 400px;
            display: flex;
            flex-wrap: wrap;
        }

        .submenu-dropdown.wide li {
            width: 50%;
            border-bottom: none;
        }

        /* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .main-nav-links li:hover .submenu-dropdown {
            animation: fadeIn 0.2s ease forwards;
        }

        .main-nav-links a {
            color: var(--text-gray);
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            position: relative;
        }

        .main-nav-links a:after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-color);
            transition: width 0.3s;
        }

        .main-nav-links a:hover {
            color: var(--primary-color);
        }

        .main-nav-links a:hover:after {
            width: 100%;
        }

        .header-contact {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        .phone {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.3s;
        }

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

        .header-cta {
            font-size: 12px;
            color: var(--text-gray);
        }

        /* Header - второе меню продукта */
        header {
            background: var(--bg-light);
            border-bottom: 1px solid var(--border-color);
            position: fixed;
            top: 88px; /* Увеличиваем с 72px до 76px - до 88*/
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: var(--shadow);
        }
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 28px 0; /* Увеличиваем с 12px до 16px -- до 28 */
        }
        .product-logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .product-logo-text {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-color);
            letter-spacing: -0.3px;
        }

        .product-logo-subtitle {
            font-size: 10px;
            color: var(--text-gray);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 2px;
        }

        .nav-links {
            display: flex;
            gap: 30px;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-gray);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
        }

        .nav-links a:after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-color);
            transition: width 0.3s;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        .nav-links a:hover:after {
            width: 100%;
        }

        /* ===== МОБИЛЬНОЕ МЕНЮ ===== */

/* Кнопка открытия */
.mobile-menu-btn {
    display: none;
    font-size: 28px;
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mobile-menu-btn:active {
    transform: scale(0.9);
}

/* Оверлей */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Контейнер меню */
.mobile-menu-container {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-container.active {
    left: 0;
    display: block;
}

/* Шапка меню */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.mobile-menu-close {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.2s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

/* Контент меню */
.mobile-menu-content {
    padding: 20px;
}

/* Секции */
.nav-section {
    margin-bottom: 30px;
}

.nav-section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.nav-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

/* Уровни меню */
.mobile-nav-level-1,
.mobile-nav-level-2,
.mobile-nav-level-3 {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Пункты меню */
.mobile-nav-level-1 li,
.mobile-nav-level-2 li,
.mobile-nav-level-3 li {
    position: relative;
    margin-bottom: 2px;
}

/* Ссылки */
.mobile-nav-level-1 li a,
.mobile-nav-level-2 li a,
.mobile-nav-level-3 li a {
    display: block;
    padding: 12px 40px 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-level-1 li a:hover,
.mobile-nav-level-2 li a:hover,
.mobile-nav-level-3 li a:hover {
    background: #f5f5f5;
    padding-left: 20px;
}

/* Активный пункт */
.mobile-nav-level-1 li.active > a,
.mobile-nav-level-2 li.active > a,
.mobile-nav-level-3 li.active > a {
    background: #0056b3;
    color: #fff;
}

.mobile-nav-level-1 li.active > a:hover,
.mobile-nav-level-2 li.active > a:hover,
.mobile-nav-level-3 li.active > a:hover {
    background: #004494;
}

/* Родительский активный пункт */
.mobile-nav-level-1 li.parent-active > a,
.mobile-nav-level-2 li.parent-active > a {
    background: #e9ecef;
    color: #0056b3;
    font-weight: 600;
}

/* Кнопка открытия подменю */
.toggle-submenu {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.toggle-submenu:hover {
    background: #f0f0f0;
}

.toggle-submenu.active {
    transform: rotate(180deg);
    color: #0056b3;
}

/* Подменю (скрыто по умолчанию) */
.mobile-nav-level-2,
.mobile-nav-level-3 {
    display: none;
    padding-left: 15px;
    margin-top: 5px;
}

.mobile-nav-level-2.active,
.mobile-nav-level-3.active {
    display: block;
}

/* Стили для 2 уровня */
.mobile-nav-level-2 li a {
    font-size: 15px;
    padding: 10px 40px 10px 15px;
    background: #f8f9fa;
}

/* Стили для 3 уровня */
.mobile-nav-level-3 li a {
    font-size: 14px;
    padding: 8px 40px 8px 15px;
    background: #f0f2f4;
}

/* Отступы для вложенности */
.mobile-nav-level-2 {
    border-left: 2px solid #dee2e6;
}

.mobile-nav-level-3 {
    border-left: 2px solid #ced4da;
}

/* Второй блок - разделы всегда видны */
.nav-section .mobile-nav-level-3 {
    display: block !important;
    border-left: 2px solid var(--accent-color, #0056b3);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav-links {
        display: none;
    }
}
        .nav-divider {
            height: 1px;
            background: var(--border-color);
            margin: 10px 0;
        }

        .nav-section-title {
            font-size: 15px;
            color: var(--text-gray);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 10px 0 5px 0;
            font-weight: 600;            
        }

        .mobile-nav-links>li>a {
			color: var(--text-gray);
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
            opacity: 0.3;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 30px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .hero h1 {
            font-size: 52px;
            font-weight: 700;
            margin-bottom: 20px;
            letter-spacing: -1px;
            line-height: 1.2;
        }

        .hero .subtitle {
            font-size: 20px;
            margin-bottom: 40px;
            opacity: 0.9;
            line-height: 1.6;
            max-width: 700px;
        }

        .hero-stats {
            display: flex;
            gap: 60px;
            margin-bottom: 40px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
        }

        .stat-number {
            font-size: 36px;
            font-weight: 700;
        }

        .stat-label {
            font-size: 14px;
            opacity: 0.8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

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

        .btn {
            display: inline-block;
            padding: 16px 32px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            cursor: pointer;
            border: none;
            font-size: 15px;
            letter-spacing: 0.3px;
        }

        .btn-primary {
            background: white;
            color: var(--primary-color);
            box-shadow: var(--shadow);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-hover);
        }

        .btn-secondary {
            background: transparent;
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .btn-secondary:hover {
         	background: rgba(255, 255, 255, 0.1);
            color: white;
            border-color: rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(5px);
        }

	    .btn-secondary:focus {
            color: white;
        }

        /* Research Section */
        .research {
            padding: 100px 0;
            background: var(--bg-white);
        }

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

        .section-badge {
            display: inline-block;
            background: var(--bg-light);
            color: var(--accent-color);
            padding: 6px 16px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 42px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 20px;
            letter-spacing: -0.5px;
        }

        .section-subtitle {
            font-size: 18px;
            color: var(--text-gray);
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.7;
        }

        .research-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
            margin-top: 80px;
        }

        .research-text h3 {
            font-size: 28px;
            margin-bottom: 20px;
            color: var(--text-dark);
        }

        .research-text p {
            font-size: 16px;
            color: var(--text-gray);
            margin-bottom: 20px;
            line-height: 1.8;
        }

        .research-achievements {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 40px;
        }

        .achievement-card {
            padding: 20px;
            background: var(--bg-light);
            border-radius: 8px;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .achievement-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .achievement-number {
            font-size: 32px;
            font-weight: 700;
            color: var(--accent-color);
            margin-bottom: 5px;
        }

        .achievement-text {
            font-size: 14px;
            color: var(--text-gray);
        }

        .research-visual {
            background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
            padding: 40px;
            border-radius: 12px;
            box-shadow: var(--shadow-hover);
        }

        .research-partners {
            margin-top: 40px;
        }

        .partners-label {
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-gray);
            margin-bottom: 20px;
        }

        .partners-list {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
        }

        .partner-item {
            padding: 10px 20px;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 14px;
            color: var(--text-gray);
            transition: transform 0.3s;
        }

        .partner-item:hover {
            transform: translateY(-3px);
        }

        /* Features Section */
        .features {
            padding: 100px 0;
            background: var(--bg-light);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
            margin-top: 60px;
        }

        .feature-card {
            background: white;
            padding: 40px 30px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
            opacity: 0;
            transform: translateY(20px);
        }

        .feature-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .feature-card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-5px);
        }

        .feature-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
        }

        .feature-icon svg {
            width: 30px;
            height: 30px;
            fill: white;
        }

        .feature-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--text-dark);
        }

        .feature-description {
            font-size: 15px;
            color: var(--text-gray);
            line-height: 1.7;
        }

        /* Technology Stack */
        .tech-stack {
            padding: 100px 0;
            background: white;
        }

        .tech-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin-top: 60px;
        }

        .tech-card {
            text-align: center;
            padding: 30px 20px;
            background: var(--bg-light);
            border-radius: 8px;
            transition: all 0.3s;
            opacity: 0;
            transform: translateY(20px);
        }

        .tech-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .tech-card:hover {
            background: white;
            box-shadow: var(--shadow-hover);
            transform: translateY(-5px);
        }

        .tech-icon {
            font-size: 48px;
            margin-bottom: 15px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tech-name {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        .tech-description {
            font-size: 13px;
            color: var(--text-gray);
        }

        /* Interactive Modules Panel Section */
        .modules-panel {
            padding: 100px 0;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            color: var(--text-dark);
        }

        .modules-panel-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .modules-panel-header h2 {
            font-size: 42px;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--text-dark);
        }

        .modules-panel-header p {
            font-size: 18px;
            color: var(--text-gray);
            max-width: 700px;
            margin: 0 auto;
        }

        /* Фильтры групп */
        .group-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-bottom: 40px;
        }

        .filter-btn {
            padding: 12px 24px;
            border: 2px solid var(--accent-color);
            background: transparent;
            color: var(--accent-color);
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

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

        .filter-btn.active {
            background: var(--accent-color);
            color: white;
            box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
        }

.modules-interactive-container {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Сетка плиток - занимает оставшееся место */
.info-panel-floating {
	position: absolute;
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    color: var(--text-dark);
    max-height: calc(100vh - 200px);
	max-width: 400px;
    
    /* Чтобы не выходило за границы */
    max-height: 90vh;
}

/* ===== СОСТОЯНИЯ ПАНЕЛИ ===== */
.info-panel-floating.absolute-top {
    position: absolute;
    top: 40px;
    right: 40px;
    bottom: auto;
    left: auto;
}

.info-panel-floating.absolute-bottom {
    position: absolute;
    top: auto;
    right: 40px;
    bottom: 40px;
    left: auto;
}

.info-panel-floating.sticky-top {
    top: 160px; /* Отступ от верхнего меню */
    transform: translateY(0); /* Сбрасываем центрирование */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.info-panel-floating.sticky-bottom {
    top: auto;
    bottom: 40px;
    transform: translateY(0);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Фиксированное положение при скролле */
.info-panel-floating.fixed {
    position: fixed;
    top: 160px;
    z-index: 100;
    margin-left: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Абсолютное позиционирование внизу контейнера */
.info-panel-floating.absolute {
    position: absolute;
    bottom: 40px;
    right: 40px;
}

/* Обертка для сохранения места при фиксации */
/* Обертка для панели */
.panel-wrapper {
    flex: 0 0 400px;
    position: relative;
    width: 400px;
    display: flex;
}

/* Стилизация скроллбара */
.info-panel-floating::-webkit-scrollbar {
    width: 6px;
}

.info-panel-floating::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.info-panel-floating::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.info-panel-floating::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Заголовки */
.info-panel-floating h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}

.info-panel-floating h3 {
    color: var(--text-dark);
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.info-panel-floating ul {
    list-style: none;
    padding-left: 0;
}

.info-panel-floating li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    color: var(--text-gray);
    line-height: 1.4;
    font-size: 0.9rem;
}

.info-panel-floating li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 4px;
}

/* Коррекция при приближении к границам */
@media (max-height: 700px) {
    .info-panel-floating {
        top: 20px;
        transform: none;
        max-height: calc(100vh - 40px);
    }
}

/* Адаптация для планшетов */
@media (max-width: 1200px) {
    .info-panel-floating {
        width: 350px;
        flex: 0 0 350px;
    }
    
    .panel-wrapper {
        flex: 0 0 350px;
        width: 350px;
    }
}

@media (max-width: 1024px) {
    .modules-interactive-container {
        flex-direction: column;
    }
    
    .info-panel-floating {
        position: static; /* На мобильных обычный поток */
        top: auto;
        transform: none;
        max-height: none;
		width: 100%;
		flex: none;
    }
    
    .info-panel-floating.fixed {
        position: static;
        top: auto;
        width: 100%;
    }
    
    .panel-wrapper {
        flex: none;
        width: 100%;
    }
    
    .modules-grid {
        width: 100%;
    }
}

        .module-tile {
            aspect-ratio: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 8px;
            position: relative;
            overflow: hidden;
        }

        .module-tile:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            z-index: 10;
        }

        .module-tile.active {
            transform: scale(1.1);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
            border: 3px solid #fff;
          	z-index: 10;
        }

        .module-tile.dimmed {
            opacity: 0.3;
            filter: grayscale(70%);
            transform: scale(0.95);
        }

        .module-tile.dimmed:hover {
            opacity: 0.5;
            transform: scale(0.95) translateY(-2px);
        }

        .module-icon {
            font-size: 1.5rem;
            padding: 8px;
            padding-bottom: 20px;
        }

        .module-name {
            font-size: 0.7rem;
            text-align: center;
            line-height: 1.1;
            font-weight: 500;
        }

        .info-panel {
            max-height: 560.03px;
            width: 450px;
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            /*max-height: 70vh;/**/
            overflow-y: auto;
            color: var(--text-dark);
            /* Стилизация скроллбара */
            scrollbar-width: thin;
            scrollbar-color: var(--accent-color) var(--bg-light);
        }

        /* Стилизация скроллбара для WebKit браузеров */
        .info-panel::-webkit-scrollbar {
            width: 8px;
        }

        .info-panel::-webkit-scrollbar-track {
            background: var(--bg-light);
            border-radius: 10px;
        }

        .info-panel::-webkit-scrollbar-thumb {
            background: var(--accent-color);
            border-radius: 10px;
            transition: background 0.3s;
        }

        .info-panel::-webkit-scrollbar-thumb:hover {
            background: var(--primary-color);
        }

        .info-panel h2 {
            color: var(--primary-color);
            margin-bottom: 20px;
            font-size: 1.5rem;
            border-bottom: 3px solid var(--accent-color);
            padding-bottom: 10px;
        }

        .info-panel h3 {
            color: var(--text-dark);
            margin-top: 20px;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .info-panel ul {
            list-style: none;
            padding-left: 0;
        }

        .info-panel li {
            padding: 6px 0;
            padding-left: 20px;
            position: relative;
            color: var(--text-gray);
            line-height: 1.5;
            font-size: 0.9rem;
        }

        .info-panel li:before {
            content: "•";
            color: var(--accent-color);
            font-weight: bold;
            position: absolute;
            left: 8px;
        }

        .default-message {
            text-align: center;
            color: var(--text-gray);
            padding: 40px 20px;
        }

        .default-message h2 {
            border: none;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        /* Implementation Process */
        .process {
            padding: 100px 0;
            background: white;
        }

        .process-timeline {
            position: relative;
            margin-top: 60px;
        }

        .process-line {
            position: absolute;
            top: 30px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--border-color);
            z-index: 0;
        }

        .process-steps {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            position: relative;
            z-index: 1;
        }

        .process-step {
            text-align: center;
        }

        .step-number {
            width: 60px;
            height: 60px;
            background: white;
            border: 2px solid var(--border-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 20px;
            font-weight: 600;
            color: var(--text-gray);
            transition: all 0.3s;
        }

        .process-step:hover .step-number {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .step-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-dark);
        }

        .step-description {
            font-size: 14px;
            color: var(--text-gray);
            line-height: 1.6;
        }

        /* Clients Section - Continuous Scroll */
        .clients {
            padding: 100px 0;
            background: var(--bg-light);
        }

        .clients-slider-wrapper {
            margin-top: 60px;
            overflow: hidden;
            position: relative;
            background: white;
            border-radius: 12px;
            padding: 20px 0;
            box-shadow: var(--shadow);
        }

        .clients-slider {
            display: flex;
            gap: 30px;
            /*animation: continuousScroll 30s linear infinite;/**/
            width: max-content;
            will-change: transform;
        }

        .clients-slider:hover {
            /*animation-play-state: paused;/**/
        }

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

        .client-card {
            background: white;
            /*width: 300px;/**/
            padding: 10px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            /*text-align: center;
            height: 120px; /**/          
            transition: all 0.3s;            
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            min-width: 280px;
            flex-shrink: 0;
            box-shadow: var(--shadow);
            gap: 8px;
        }

        .client-card > img {
			border-radius: 8px;
            /*border: 1px solid var(--border-color);/**/
            height: 120px;
            width: -webkit-fill-available;
        }

        .client-card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-5px);
        }

        .client-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-gray);
            line-height: 1.4;
        }

        /* Testimonials */
        .testimonials {
            padding: 100px 0;
            background: white;
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 40px;
            margin-top: 60px;
        }

        .testimonial-card {
            padding: 40px;
            background: var(--bg-light);
            border-radius: 12px;
            position: relative;
            transition: transform 0.3s;
            display: flex;
      		justify-content: space-between;
    		flex-direction: column;
        }

        .testimonial-card:hover {
            transform: translateY(-5px);
        }

        .quote-icon {
            position: absolute;
            top: 30px;
            right: 30px;
            font-size: 60px;
            color: var(--primary-color);
            opacity: 0.1;
        }

        .testimonial-text {
            font-size: 16px;
            color: var(--text-gray);
            line-height: 1.8;
            margin-bottom: 30px;
            position: relative;
            z-index: 1;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .author-avatar {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
        }

        .author-info {
            flex: 1;
        }

        .author-name {
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 3px;
        }

        .author-position {
            font-size: 14px;
            color: var(--text-gray);
        }

        .author-company {
            font-size: 13px;
            color: var(--accent-color);
            margin-top: 2px;
        }

        /* Pricing */
        .pricing {
            padding: 100px 0;
            background: var(--bg-light);
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
            margin-top: 60px;
        }

        .pricing-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
            opacity: 0;
            transform: translateY(20px);
        }

        .pricing-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .pricing-card.featured {
            border: 2px solid var(--accent-color);
            transform: scale(1.05);
            box-shadow: var(--shadow-hover);
        }

        .pricing-header {
            padding: 40px 30px;
            background: var(--bg-light);
            text-align: center;
        }

        .pricing-card.featured .pricing-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
        }

        .pricing-name {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .pricing-description {
            font-size: 14px;
            opacity: 0.8;
        }

        .pricing-price {
            font-size: 32px;
            font-weight: 700;
            margin: 20px 0;
            color: var(--primary-color);
        }

        .pricing-card.featured .pricing-price {
            color: white;
        }

        .pricing-body {
            padding: 40px 30px;
        }

        .pricing-features {
            list-style: none;
            margin-bottom: 40px;
        }

        .pricing-features li {
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
            font-size: 15px;
            color: var(--text-gray);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .pricing-features li:last-child {
            border-bottom: none;
        }

        .check-icon {
            color: var(--accent-color);
        }

        .pricing-cta {
            text-align: center;
        }

        /* Modal Windows */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .modal.active {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            padding: 40px;
            width: 100%;
            max-width: 500px;
            box-shadow: var(--shadow-hover);
            transform: translateY(-20px);
            transition: transform 0.3s;
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal.active .modal-content {
            transform: translateY(0);
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-gray);
        }

        .modal-title {
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--primary-color);
        }

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

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

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 15px;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--accent-color);
        }

        .form-error {
            color: var(--error-color);
            font-size: 13px;
            margin-top: 5px;
            display: none;
        }

        .form-group.error .form-error {
            display: block;
        }

        .form-group.error input,
        .form-group.error textarea,
        .form-group.error select {
            border-color: var(--error-color);
        }

        .form-success {
            display: none;
            text-align: center;
            padding: 30px;
        }

        .form-success-icon {
            font-size: 60px;
            color: var(--success-color);
            margin-bottom: 20px;
        }

        .form-loading {
            display: none;
            text-align: center;
            padding: 20px;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            border-top-color: var(--accent-color);
            animation: spin 1s ease-in-out infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* CTA Section */
        .cta {
            padding: 100px 0;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            text-align: center;
            position: relative;
        }

        .cta h2 {
            font-size: 42px;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .cta p {
            font-size: 18px;
            margin-bottom: 40px;
            opacity: 0.9;
        }

        /* Центрирование кнопок в CTA */
        .cta .hero-buttons {
            justify-content: center;
        }

        .contact-info {
            display: flex;
            justify-content: center;
            gap: 60px;
            margin-top: 60px;
            flex-wrap: wrap;
        }

        .contact-item {
            font-size: 16px;
        }

        .contact-label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.7;
            margin-bottom: 5px;
        }

        .contact-value {
            font-size: 20px;
            font-weight: 600;
        }

        /* Footer */
        footer {
            background: var(--text-dark);
            color: white;
            padding: 60px 0 30px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 60px;
            margin-bottom: 40px;
        }

        .footer-about h3 {
            font-size: 20px;
            margin-bottom: 20px;
        }

        .footer-about p {
            font-size: 14px;
            opacity: 0.8;
            line-height: 1.7;
            margin-bottom: 20px;
        }

        .footer-column h4 {
            font-size: 16px;
            margin-bottom: 20px;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            font-size: 14px;
            opacity: 0.7;
            transition: opacity 0.3s;
        }

        .footer-links a:hover {
            opacity: 1;
        }

        .footer-bottom {
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .copyright {
            font-size: 14px;
            opacity: 0.7;
        }

        .footer-badges {
            display: flex;
            gap: 20px;
        }

        .footer-badge {
            padding: 5px 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            font-size: 12px;
            opacity: 0.8;
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: var(--shadow-hover);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 999;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background: var(--secondary-color);
            transform: translateY(-3px);
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .features-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .tech-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .footer-content {
                grid-template-columns: 1fr 1fr;
                gap: 40px;
            }

            .modules-interactive-container {
                flex-direction: column;
            }
            
            .info-panel {
                width: 100%;
            }
            
            .modules-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        @media (max-width: 768px) {
            body {
                padding-top: 72px; /* Уменьшаем для мобильных - только одно меню */
            }
          
            .theme-toggle-btn {
                top: 80px;
                right: 15px;
                width: 45px;
                height: 45px;
                font-size: 18px;
            }

            .hero h1 {
                font-size: 36px;
            }

            /* Скрываем десктопные меню на мобильных */
            .main-nav-links {
                display: none;
            }

            .nav-links {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

            .header-contact {
                display: none;
            }

            /* Показываем объединенное мобильное меню */
            .mobile-nav-links.active {
                display: flex;
            }

            /* Скрываем второе меню на мобильных */
            header {
                display: none;
            }

            .features-grid,
            .tech-grid,
            .pricing-grid {
                grid-template-columns: 1fr;
            }

            .research-content,
            .testimonials-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .process-steps {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .hero-stats {
                flex-direction: column;
                gap: 20px;
            }
            
            .research-achievements {
                grid-template-columns: 1fr;
            }
            
           
            .contact-info {
                flex-direction: column;
                gap: 30px;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
            }
            
            .footer-bottom {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }

            .modules-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 8px;
            }
            
            .module-icon {
                font-size: 1.2rem;
            }
            
            .module-name {
                font-size: 0.6rem;
            }

            .modules-panel-header h2 {
                font-size: 32px;
            }

            .client-card {
                min-width: 220px;
                /*height: 100px;
                padding: 20px;/**/
            }
          
            .client-card > img {
               height: 100px;
            }
            
            .client-name {
                font-size: 13px;
            }

            .group-filters {
                gap: 8px;
            }

            .filter-btn {
                padding: 10px 18px;
                font-size: 12px;
            }
        }

        @media (max-width: 480px) {
            .modules-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .client-card {
                min-width: 180px;
                /*height: 80px;
                padding: 15px;/**/
            }
          
            .client-card > img {
               height: 80px;
            }
            
            .client-name {
                font-size: 12px;
            }

            .filter-btn {
                padding: 8px 16px;
                font-size: 11px;
            }
        }

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ ШКАЛ ===== */
.scale-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.scale-modal.active {
    display: flex;
    opacity: 1;
}

.scale-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.scale-modal.active .scale-modal-content {
    transform: scale(1);
}

.scale-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.2s;
}

.scale-modal-close:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

/* Адаптация сетки для модального окна */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    flex: 2;
    min-width: 0;
}

/* На мобильных */
@media (max-width: 768px) {
    .modules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .scale-modal-content {
        padding: 20px;
        width: 95%;
    }
}