:root {
            --color-dark: #071e33;    
            --color-primary: #4ac8ed; 
            --color-light: #f4f7f6;
            --color-text: #4a4a4a;
            --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth; 
        }

        body {
            font-family: 'Montserrat', sans-serif;
            color: var(--color-text);
            background-color: #fff;
            line-height: 1.6;
            overflow-x: hidden;
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }


        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 25px 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            transition: var(--transition);
            background: transparent;
        }

        .navbar.scrolled {
            background: rgba(7, 30, 51, 0.95);
            padding: 15px 50px;
            backdrop-filter: blur(10px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        }

        .logo {
            font-size: 24px;
            font-weight: 800;
            color: #fff;
            letter-spacing: 1px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
        }

        .logo img {
            margin-right: 10px;
            object-fit: contain;
        }

        .logo span { color: var(--color-primary); }

        .nav-links { display: flex; gap: 30px; }
        
        .nav-links a {
            color: #fff;
            font-weight: 600;
            font-size: 14px;
            text-transform: uppercase;
            position: relative;
            transition: var(--transition);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--color-primary);
            transition: var(--transition);
        }

        .nav-links a:hover::after { width: 100%; }
        .nav-links a:hover { color: var(--color-primary); }

        .hero {
            height: 100vh;
            background: linear-gradient(rgba(7, 30, 51, 0.7), rgba(7, 30, 51, 0.8)), 
                        url('images/bg.jpg') center/cover fixed;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: #fff;
            padding: 0 20px;
        }

        .hero-content h1 {
            font-size: 5rem;
            font-weight: 800;
            margin-bottom: 20px;
            line-height: 1.1;
            text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
            opacity: 0;
            transform: translateY(50px);
            animation: fadeUp 1s forwards 0.5s;
        }

        .hero-content p {
            font-size: 1.5rem;
            font-weight: 300;
            margin-bottom: 40px;
            color: #ddd;
            opacity: 0;
            transform: translateY(50px);
            animation: fadeUp 1s forwards 0.8s;
        }

        .btn-primary {
            display: inline-block;
            padding: 15px 40px;
            background: var(--color-primary);
            color: var(--color-dark);
            font-weight: 800;
            text-transform: uppercase;
            border-radius: 50px;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
            z-index: 1;
            opacity: 0;
            transform: translateY(50px);
            animation: fadeUp 1s forwards 1.1s;
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 0; height: 100%;
            background: #fff;
            z-index: -1;
            transition: var(--transition);
        }

        .btn-primary:hover::before { width: 100%; }
        .btn-primary:hover { color: var(--color-primary); box-shadow: 0 10px 20px rgba(74, 200, 237, 0.4); }

        .section { padding: 100px 10%; }
        .section-light { background: var(--color-light); }
        .section-map { padding: 0; display: flex; } 
        
        .section-title {
            text-align: center;
            font-size: 2.5rem;
            color: var(--color-dark);
            margin-bottom: 60px;
            font-weight: 800;
        }

        .section-title span { color: var(--color-primary); }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }

        .about-img {
            width: 100%;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            transition: var(--transition);
        }

        .about-img:hover { transform: scale(1.02); }

        .about-text h3 {
            font-size: 2rem;
            color: var(--color-dark);
            margin-bottom: 20px;
        }

        .about-text p { margin-bottom: 20px; font-size: 1.1rem; }

        .about-features {
            margin: 25px 0;
            list-style: none;
            padding: 0;
        }

        .about-features li {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
            font-size: 1.05rem;
            color: var(--color-text);
        }

        .about-features i {
            color: var(--color-primary);
            font-size: 1.3rem;
            margin-right: 15px;
            margin-top: 3px;
            min-width: 25px;
            text-align: center;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .gallery-item {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            height: 300px;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .gallery-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(7, 30, 51, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: var(--transition);
        }

        .gallery-overlay i {
            color: #fff;
            font-size: 3rem;
            transform: scale(0);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .gallery-item:hover img { transform: scale(1.1); }
        .gallery-item:hover .gallery-overlay { opacity: 1; }
        .gallery-item:hover .gallery-overlay i { transform: scale(1); }

        .mobile-gallery-item {
            display: none;
        }

        .lightbox-modal {
            position: fixed;
            z-index: 10005;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden; /* Правильный способ скрытия для плавной анимации */
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .lightbox-modal.show {
            opacity: 1;
            visibility: visible;
        }

        .lightbox-content {
            max-width: 90%;
            max-height: 90vh;
            border-radius: 8px;
            box-shadow: 0 5px 25px rgba(0,0,0,0.5);
            transform: scale(0.8);
            transition: transform 0.3s ease;
            object-fit: contain;
        }

        .lightbox-modal.show .lightbox-content {
            transform: scale(1);
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
            z-index: 10006;
        }

        .lightbox-close:hover,
        .lightbox-close:focus {
            color: var(--color-primary);
        }

        .modal-box {
            background: #fff;
            padding: 40px;
            border-radius: 12px;
            width: 90%;
            max-width: 450px;
            position: relative;
            text-align: center;
            transform: scale(0.8);
            transition: transform 0.3s ease;
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        }

        .lightbox-modal.show .modal-box {
            transform: scale(1);
        }

        .modal-box h3 {
            color: var(--color-dark);
            margin-bottom: 10px;
            font-size: 1.8rem;
        }

        .modal-box p {
            color: #666;
            margin-bottom: 25px;
            font-size: 0.95rem;
            line-height: 1.4;
        }

        .modal-box input, .modal-box textarea {
            width: 100%;
            padding: 12px 15px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-family: inherit;
            font-size: 1rem;
            transition: var(--transition);
        }

        .modal-box input:focus, .modal-box textarea:focus {
            border-color: var(--color-primary);
            outline: none;
            box-shadow: 0 0 5px rgba(74, 200, 237, 0.3);
        }

        .modal-close, .lightbox-close {
            position: absolute;
            top: 15px;
            right: 25px;
            color: #aaa;
            font-size: 35px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
            transition: color 0.3s ease;
            z-index: 10006;
        }

        .lightbox-close {
            color: #f1f1f1;
            top: 20px;
            right: 35px;
        }

        .modal-close:hover, .lightbox-close:hover {
            color: var(--color-primary);
        }

        .carousel-wrapper {
            overflow: hidden;
            width: 100%;
            white-space: nowrap;
            position: relative;
            padding: 20px 0;
        }

        .carousel-wrapper::before,
        .carousel-wrapper::after {
            content: "";
            position: absolute;
            top: 0;
            width: 150px;
            height: 100%;
            z-index: 2;
        }
        .carousel-wrapper::before {
            left: 0;
            background: linear-gradient(to right, var(--color-light) 0%, transparent 100%);
        }
        .carousel-wrapper::after {
            right: 0;
            background: linear-gradient(to left, var(--color-light) 0%, transparent 100%);
        }

        .carousel-track {
            display: inline-flex;
            animation: scroll-carousel 25s linear infinite;
            gap: 40px;
            padding-left: 40px; 
        }

        .carousel-track:hover {
            animation-play-state: paused;
        }

        .client-card {
            width: 200px;
            height: 100px;
            background: #fff;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            font-weight: 800;
            color: var(--color-dark);
            font-size: 1.2rem;
            flex-shrink: 0;
            transition: var(--transition);
            border: 2px solid transparent;
            padding: 15px;
        }

        .client-card img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .client-card:hover {
            transform: translateY(-5px);
            border-color: var(--color-primary);
            box-shadow: 0 15px 30px rgba(74, 200, 237, 0.2);
        }

        @keyframes scroll-carousel {
            0% { transform: translateX(0); }
            100% { transform: translateX(calc(-50% - 20px)); } 
        }

        .footer {
            background: var(--color-dark);
            color: #fff;
            padding: 80px 10% 30px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 60px;
        }

        .footer-col h4 {
            font-size: 1.5rem;
            margin-bottom: 25px;
            color: var(--color-primary);
        }

        .footer-links li { margin-bottom: 15px; }
        .footer-links a { transition: var(--transition); }
        .footer-links a:hover { color: var(--color-primary); padding-left: 10px; }
        
        .footer-links i {
            color: var(--color-primary);
            margin-right: 10px;
            width: 20px;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255,255,255,0.1);
            color: #888;
        }

        .reveal {
            opacity: 0;
            transform: translateY(60px);
            transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), 
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
        }
        
        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        .delay-1 { transition-delay: 0.1s; }
        .delay-2 { transition-delay: 0.2s; }
        .delay-3 { transition-delay: 0.3s; }

        @keyframes fadeUp {
            to { opacity: 1; transform: translateY(0); }
        }

        .countup-section {
            background-attachment: fixed;
            background-size: cover;
            background-position: center;
            position: relative;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 40px;
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .stat-value {
            font-size: 4.5rem;
            font-weight: 800;
            color: var(--color-primary);
            line-height: 1;
            margin-bottom: 10px;
            display: flex;
            justify-content: center;
            align-items: baseline;
            text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
        }

        .stat-label {
            font-size: 1.1rem;
            font-weight: 600;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 2px;
        }


       @media (max-width: 768px) {
            .hero {
                height: 70vh; 
                min-height: 450px; 
            }
            
            .hero-content h1 { font-size: 2.8rem; }
            .hero-content p { font-size: 1.1rem; }
            .about-grid { grid-template-columns: 1fr; gap: 40px;}

            .reveal {
                transition: opacity 0.8s ease, transform 0.8s ease !important;
            }
            
            .desktop-about-img {
                display: none !important;
            }

            .mobile-gallery-item {
                display: block !important;
            }

            .navbar { 
                display: none !important; 
            }

            .navbar.scrolled {
                display: none !important;
            }

            .logo {
                width: auto;
                margin-bottom: 0;
            }
            
            .menu-toggle {
                display: block;
            }

            .nav-links { 
                width: 100%;
                flex-direction: column;
                align-items: center;
                background: rgba(7, 30, 51, 0.98);
                position: absolute;
                top: 100%; 
                left: 0;
                padding: 20px 0;
                box-shadow: 0 10px 20px rgba(0,0,0,0.2);
                gap: 20px; 
                
                opacity: 0;
                visibility: hidden;
                transform: translateY(-20px);
                transition: all 0.3s ease;
            }
            
            .nav-links.active {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }

            .nav-links a {
                font-size: 16px;
                display: block;
            }
            
            .section { padding: 60px 5%; }
            .section-title { font-size: 2rem; margin-bottom: 40px; }

            .stats-grid { gap: 20px; }
            .stat-value { font-size: 3rem; }
            
            .carousel-wrapper::before,
            .carousel-wrapper::after {
                width: 30px; 
            }
        }

        #preloader {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999;
        width: 100%;
        height: 100%;
        overflow: visible;
        background: #FFFFFF url('images/android-icon-192x192.png') no-repeat center center;
        }

        .visible {
        visibility: visible;
        opacity: 1;
        transition: opacity 2s linear;
        }

        .hidden {
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s 2s, opacity 2s linear;
        }

        .brd1 {
        border-bottom-style:outset;
        border-bottom-width:4px;
        border-bottom-color:#6699cc;
        background: none; 
        padding: 10px; 
        }