:root {
            --brand-green: #008751;
            --brand-green-dark: #005c36;
            --brand-green-header: rgba(0, 135, 81, 0.95);
            
            --text-main: #2c3e50;
            --text-light: #5d6d7e;
            
            --c-red: #E5252A;
            --c-orange: #E8632B;
            --c-yellow: #FDC727;
            --c-green: #69B54B;
            --c-blue: #2F3B8A;
            --c-purple: #7F3188;

            --bg-red: #fff5f5;
            --bg-orange: #fff8f0;
            --bg-yellow: #fffff0;
            --bg-green: #f0fff5;
            --bg-blue: #f0f8ff;
            --bg-purple: #fcf0ff;
            --bg-white: #ffffff;

            --gutter: 24px;
            --max-width: 1280px;
            --radius: 20px;
        }

        *, *::before, *::after {
            box-sizing: border-box;
        }

        html { scroll-behavior: smooth; }
        
        body {
            font-family: 'Manrope', sans-serif;
            color: var(--text-main);
            margin: 0;
            padding: 0;
            line-height: 1.7;
            width: 100%;
            background-color: var(--bg-white);
            overflow-x: hidden;
            -webkit-text-size-adjust: 100%; 
        }

        h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
        p { margin-bottom: 1.5em; }
        a { text-decoration: none; color: inherit; transition: 0.3s ease; }
        ul { list-style: none; padding: 0; margin: 0; }
        
        .container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }

        .header {
            background-color: var(--brand-green-header); backdrop-filter: blur(10px);
            box-shadow: 0 4px 20px rgba(0, 135, 81, 0.2); padding: 15px 0;
            position: fixed; width: 100%; top: 0; z-index: 1000; color: white;
        }

        .link-interactive {
            color: var(--brand-green); font-weight: 700; text-decoration: none;
            position: relative; transition: color 0.3s ease;
            background-image: linear-gradient(var(--brand-green), var(--brand-green));
            background-position: 0% 100%; background-repeat: no-repeat; background-size: 0% 2px;
        }
        .link-interactive:hover {
            color: var(--brand-green-dark);
            background-size: 100% 2px;
            cursor: pointer;
        }

        .header__inner { display: flex; align-items: center; justify-content: space-between; }

        .logo-wrap {
            display: flex; align-items: center; gap: 12px;
            color: white; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.5px;
        }
        .logo-wrap svg { width: 32px; height: 32px; fill: white; }

        .nav-menu { display: flex; gap: 30px; }
        .nav-menu a { font-weight: 500; font-size: 0.95rem; position: relative; color: rgba(255,255,255,0.9); }
        .nav-menu a:hover { color: white; }
        .nav-menu a::after {
            content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
            background: white; transition: width 0.3s;
        }
        .nav-menu a:hover::after { width: 100%; }

        .header-actions { display: flex; align-items: center; gap: 25px; }
        
        .btn-login {
            background: white; color: var(--brand-green);
            padding: 8px 22px; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
            display: flex; align-items: center; gap: 8px; transition: all 0.3s;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        .btn-login:hover { background: #f0f0f0; transform: translateY(-2px); }

        .contacts-mini { text-align: right; font-size: 0.85rem; line-height: 1.3; }
        .contacts-mini a { display: block; font-weight: 700; color: white; }
        .contacts-mini span { color: rgba(255,255,255,0.7); }

        .hero {
            min-height: 95vh; padding-top: 80px;
            display: flex; align-items: center;
            background: radial-gradient(circle at 70% 30%, rgba(0, 135, 81, 0.1) 0%, #ffffff 70%);
            position: relative; overflow: hidden;
        }
        .hero::before {
            content: ''; position: absolute; top: -10%; right: -10%; width: 60vw; height: 50vw;
            background: radial-gradient(circle, rgba(0,135,81,0.1) 0%, transparent 70%);
            border-radius: 50%; z-index: 0;
        }
        .hero__grid {
            display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; position: relative; z-index: 1;
        }
        .hero__content h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; color: var(--brand-green-dark); }
        .hero__content p { font-size: 1.25rem; color: var(--text-light); max-width: 550px; margin-bottom: 40px; }
        .badges-row { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; }
        .badge {
            background: white; border: 1px solid rgba(0,0,0,0.08); padding: 8px 16px; border-radius: 30px;
            font-size: 0.9rem; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            display: flex; align-items: center; gap: 8px; color: var(--text-main);
        }

        .about { padding: 120px 0; background: white; position: relative; }
        .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
        .about-text h2 { font-size: 2.8rem; margin-bottom: 30px; color: var(--brand-green-dark); }
        .about-text p { color: var(--text-light); margin-bottom: 20px; font-size: 1.1rem; }
        .features-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
        .feature-card {
            background: #f8fcf9; padding: 30px; border-radius: var(--radius);
            transition: transform 0.3s; border: 1px solid transparent;
        }
        .feature-card:hover { transform: translateY(-5px); background: white; border-color: rgba(0,135,81,0.2); box-shadow: 0 10px 30px rgba(0,135,81,0.08); }
        .feature-card h3 { color: var(--brand-green); font-size: 2.5rem; margin-bottom: 5px; }
        .feature-card span { font-weight: 600; display: block; }

        .spectrum-container { position: relative; }
        .split-layout { display: flex; flex-direction: row; }

        .sticky-col {
            width: 50%; height: 100vh; position: sticky; top: 0;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            background: #ffffff; border-right: 1px solid rgba(0,0,0,0.05); z-index: 20;
        }

        .interactive-logo {
            width: 100%; display: flex; justify-content: center;
        }

        #realLogo {
            width: 400px; 
            height: 400px;
            transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
            filter: drop-shadow(0 20px 50px rgba(0,0,0,0.08));
            transform-origin: center center;
            transform-box: fill-box;
        }

        #realLogo path { 
            transition: opacity 0.4s ease, filter 0.4s ease; 
            transform-origin: center; 
            cursor: pointer;
        }
        .st0{fill:#69B54B;} .st1{fill:#FDC727;} .st2{fill:#E8632B;} 
        .st3{fill:#E5252A;} .st4{fill:#7F3188;} .st5{fill:#2F3B8A;}

        .sticky-label {
            margin-top: 40px; font-size: 1.8rem; font-weight: 800;
            height: 40px; text-align: center; color: var(--text-main);
            opacity: 0; transform: translateY(10px); transition: 0.4s;
        }
        .sticky-label.visible { opacity: 1; transform: translateY(0); }

        .scroll-col {
            width: 50%; position: relative;
            background-color: var(--bg-white);
            transition: background-color 0.8s ease;
            overflow: hidden;
        }

        .phantom-logo {
            position: fixed; top: 50%; right: -15%; width: 80vh; height: 80vh;
            transform: translateY(-50%); z-index: 0; opacity: 0.06; pointer-events: none;
            transition: stroke 0.8s ease;
        }
        .phantom-logo svg { width: 100%; height: 100%; animation: spinPhantom 60s linear infinite; }
        @keyframes spinPhantom { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

        .scroll-section {
            min-height: 85vh; display: flex; flex-direction: column; justify-content: center;
            padding: 60px 80px; position: relative; z-index: 1;
        }


        .glass-card {
            position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; 
            padding: 50px 60px; min-height: 40px; max-width: 900px; margin: 0 auto;
            background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(15px);
            border-radius: 30px; border: 1px solid rgba(255,255,255,0.8); box-shadow: 0 20px 50px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .glass-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); background: rgba(255, 255, 255, 0.85); }
        .card-bg-icon {
            position: absolute; right: -20px; bottom: -40px; font-size: 300px; line-height: 1;
            opacity: 0.08; transform: rotate(-15deg); pointer-events: none; z-index: 0; 
            transition: all 0.5s ease;
        }
        .glass-card:hover .card-bg-icon { transform: rotate(0deg) scale(1.1); opacity: 0.12; right: 0; }
        .card-content { position: relative; z-index: 2; max-width: 100%; text-align: left; }
        .glass-card h3 { font-size: 3rem; margin: 0 0 15px 0; line-height: 1.1; font-weight: 800; }
        .section-lead { display: block; font-size: 1.25rem; font-weight: 600; margin-bottom: 25px; opacity: 0.8; max-width: 100%; }
        .card-content p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 35px; color: var(--text-main); max-width: 100%; }

        .sec-red .card-bg-icon { color: var(--c-red); }
        .sec-orange .card-bg-icon { color: var(--c-orange); }
        .sec-yellow .card-bg-icon { color: #d6a40d; }
        .sec-green .card-bg-icon { color: var(--c-green); }
        .sec-blue .card-bg-icon { color: var(--c-blue); }
        .sec-purple .card-bg-icon { color: var(--c-purple); }

        /* блок ZR */
        .core-ecosystem { background-color: transparent; padding: 100px 0 140px; position: relative; z-index: 5; }
        .badge-tech {
            display: inline-block;
            background: rgba(0, 135, 81, 0.1); color: var(--brand-green);
            font-weight: 700; font-size: 0.85rem;
            padding: 6px 16px; border-radius: 30px; margin-bottom: 20px;
            text-transform: uppercase; letter-spacing: 1px;
        }
        .section-header-center { text-align: center; max-width: 700px; margin: 0 auto 40px; }
        .section-header-center h2 {
            font-size: 3rem; font-weight: 800; margin-bottom: 20px; margin-top: 15px;
            background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text; color: var(--brand-green); 
        }
        .ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
        .eco-card {
            background: rgba(255, 255, 255, 0.92); border-radius: 24px; padding: 35px;
            transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
            border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 10px 40px rgba(0,0,0,0.04);
            display: flex; flex-direction: column; overflow: hidden;
        }
        .eco-card:hover {
            transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0, 135, 81, 0.1);
            background: #ffffff; border-color: rgba(0, 135, 81, 0.2);
        }
        .card-main {
            grid-column: span 3; display: flex; flex-direction: row; align-items: center;
            justify-content: space-between; min-height: 320px;
            background: linear-gradient(100deg, rgba(255,255,255,0.95) 0%, rgba(240,255,245,0.9) 100%);
        }
        .eco-card-content { flex: 1; padding-right: 40px; z-index: 2; }
        .eco-tag {
            display: inline-block; font-size: 0.8rem; font-weight: 700;
            padding: 5px 12px; border-radius: 6px; margin-bottom: 15px;
        }
        .tag-green { background: var(--brand-green); color: white; }
        .card-main h3 { font-size: 2.2rem; margin-bottom: 15px; color: var(--text-main); }
        .card-main p { font-size: 1.05rem; max-width: 500px; margin-bottom: 25px; }
        .eco-specs { display: flex; gap: 12px; flex-wrap: wrap; }
        .eco-specs span {
            font-size: 0.75rem; font-weight: 600; color: var(--text-light);
            background: white; padding: 8px 14px; border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.03);
            display: flex; align-items: center; gap: 6px;
        }
        .eco-specs i { color: var(--brand-green); }
        .spec-group { display: flex; gap: 6px; flex-wrap: wrap; }
        /*
        .eco-specs span {
            background: #f8fcf9; border: 1px solid rgba(0, 135, 81, 0.08);
            padding: 6px 12px; border-radius: 8px; font-size: 0.8rem;
            font-weight: 700; color: var(--text-main); display: flex;
            align-items: center; gap: 6px; transition: all 0.3s ease; white-space: nowrap;
        } */
        .eco-specs span i { color: var(--brand-green); font-size: 1rem; }
        .eco-card-image.main-img { flex: 0.8; display: flex; justify-content: center; position: relative; }
        .main-img img {
            max-width: 100%; height: auto; max-height: 280px;
            filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
            transition: transform 0.5s ease;
        }
        .card-main:hover .main-img img {
            transform: scale(1.03) rotate(-1deg);
        }
        .card-std { justify-content: space-between; }
        .eco-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
        .icon-circle { 
            width: 48px; height: 48px; border-radius: 14px; 
            display: flex; align-items: center; justify-content: center; 
            font-size: 1.3rem; transition: 0.3s;
        }
        .c-blue { background: var(--bg-blue); color: var(--c-blue); }
        .c-green { background: var(--bg-green); color: var(--c-green); }
        .c-orange { background: var(--bg-orange); color: var(--c-orange); }
        .c-purple { background: var(--bg-purple); color: var(--c-purple); }

        .card-std:hover .c-blue { background: var(--c-blue); color: white; }
        .card-std:hover .c-orange { background: var(--c-orange); color: white; }
        .card-std:hover .c-purple { background: var(--c-purple); color: white; }

        .mini-img img {
            height: 90px;
            width: auto;
            object-fit: contain;
            transition: transform 0.4s;
            filter: drop-shadow(0 5px 15px rgba(0,0,0,0.08));
        }
        .card-std:hover .mini-img img {
            transform: scale(1.1) translateY(-5px);
        }

        .card-std h3 {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: var(--text-main);
        }
        .card-std p {
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 0;
            opacity: 0.8;
        }

        .carousel-container { 
            position: relative; width: 100%; height: 350px; perspective: 1000px; display: flex; 
            align-items: center; justify-content: center; overflow: visible; 
        }
        .card-main:hover .main-img .slide { transform: translate(-50%, -50%) scale(1.02); }
        .slide {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95);
            max-width: 90%; max-height: 85%; opacity: 0; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none; object-fit: contain;
        }
        .slide.active { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; z-index: 2; }
        .slide:not(.active) { transform: translate(-50%, -50%) scale(0.95); z-index: 1; }
        .carousel-dots {
            position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
            display: flex; gap: 10px; z-index: 15; background: rgba(255,255,255,0.5);
            padding: 5px 12px; border-radius: 20px; backdrop-filter: blur(4px);
        }
        .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 135, 81, 0.2); cursor: pointer; transition: all 0.3s ease; }
        .dot.active { background: var(--brand-green); width: 18px; border-radius: 10px; }
        .carousel-nav {
            position: absolute; top: 50%; transform: translateY(-50%); background: white;
            border: none; width: 40px; height: 40px; border-radius: 50%; display: flex;
            align-items: center; justify-content: center; cursor: pointer; z-index: 20;
            color: var(--brand-green); box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .carousel-container:hover .carousel-nav { opacity: 1; visibility: visible; }
        .carousel-nav.prev { left: 0px; }
        .carousel-nav.next { right: 0px; }
        .carousel-nav:hover { background: var(--brand-green); color: white; transform: translateY(-50%) scale(1.1); }
        .slide {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.08); opacity: 0;
            transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                        transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none; max-width: 90%; max-height: 85%; object-fit: contain; will-change: opacity, transform;
        }

        #zrCarousel {
            touch-action: pan-y !important;
        }

        #zrCarousel .slide {
            pointer-events: none !important; 
            user-select: none !important;
            -webkit-user-drag: none !important;
        }

        #zrCarousel .carousel-nav, 
        #zrCarousel .carousel-dots {
            pointer-events: auto !important;
            z-index: 10;
        }

        /*карусель-лого*/
        .scroll-section.in-view .glass-card { opacity: 1; transform: translateY(0); }

        .scroll-section h3 { font-size: 2.2rem; margin-bottom: 20px; }
        .section-lead { font-size: 1.3rem; font-weight: 500; color: var(--text-main); margin-bottom: 15px; }
        
        .btn-outline {
            display: inline-block; text-align: center; margin-top: 25px; padding: 12px 28px;
            border-radius: 50px; font-weight: 700; font-size: 0.95rem;
            border: 2px solid transparent; background: white;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; cursor: pointer;
        }
        .btn-outline:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

        .sec-red h3 { color: var(--c-red); }
        .sec-red .btn-outline { color: var(--c-red); border-color: rgba(229, 37, 42, 0.2); }
        .sec-red .btn-outline:hover { background: var(--c-red); color: white; }

        .sec-orange h3 { color: var(--c-orange); }
        .sec-orange .btn-outline { color: var(--c-orange); border-color: rgba(232, 99, 43, 0.2); }
        .sec-orange .btn-outline:hover { background: var(--c-orange); color: white; }

        .sec-yellow h3 { color: #d6a40d; }
        .sec-yellow .btn-outline { color: #d6a40d; border-color: rgba(253, 199, 39, 0.2); }
        .sec-yellow .btn-outline:hover { background: var(--c-yellow); color: #333; }

        .sec-green h3 { color: var(--c-green); }
        .sec-green .btn-outline { color: var(--c-green); border-color: rgba(105, 181, 75, 0.2); }
        .sec-green .btn-outline:hover { background: var(--c-green); color: white; }

        .sec-blue h3 { color: var(--c-blue); }
        .sec-blue .btn-outline { color: var(--c-blue); border-color: rgba(47, 59, 138, 0.2); }
        .sec-blue .btn-outline:hover { background: var(--c-blue); color: white; }

        .sec-purple h3 { color: var(--c-purple); }
        .sec-purple .btn-outline { color: var(--c-purple); border-color: rgba(127, 49, 136, 0.2); }
        .sec-purple .btn-outline:hover { background: var(--c-purple); color: white; }

        .card-main .btn-outline { color: var(--brand-green); border-color: rgba(0, 135, 81, 0.2); }
        .card-main .btn-outline:hover { background: var(--brand-green); color: white; }


        /*галерея с продукцией*/
        .projects-gallery { padding: 100px 0 140px; background-color: transparent; position: relative; z-index: 5; }
        .gallery-wrapper { position: relative; /* display: flex; align-items: center; */ margin-top: 40px; padding: 0 60px; max-width: 100%; }
        .gallery-track {
            display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
            padding: 40px; scroll-padding-left: 40px; scrollbar-width: none; -ms-overflow-style: none; cursor: grab;
        }
        .gallery-track::-webkit-scrollbar { display: none; }
        .gallery-track:active { cursor: grabbing; scroll-behavior: auto; }
        /* БАЗОВЫЙ РАЗМЕР (СТАНДАРТНЫЙ ПК): 3 КАРТОЧКИ 
        Формула: (100% шир. - 30px паддинга трека - 40px на два gap) / 3 */
        .g-slide { flex: 0 0 calc((100% - 70px) / 3); /*flex: 0 0 340px; calc(33.333% - 16px);*/ scroll-snap-align: start; user-select: none; scroll-snap-stop: always !important; }
        .g-slide-inner {
            background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-radius: var(--radius);
            padding: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.04);transition: transform 0.4s ease, box-shadow 0.4s ease;
            border: 1px solid rgba(0, 135, 81, 0.05); height: 100%; display: flex; flex-direction: column;
        }
        .g-slide:hover .g-slide-inner {
            transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 135, 81, 0.12); 
            border-color: rgba(0, 135, 81, 0.2); background: #ffffff;
        }

        .g-img-wrap { width: 100%; height: 240px; border-radius: 14px; overflow: hidden; position: relative; background: #ffffff; }
        .g-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s ease; }
        .g-hover-overlay {
            position: absolute; inset: 0; background: rgba(0, 135, 81, 0.4); display: flex; align-items: center;
            justify-content: center; opacity: 0; transition: 0.4s ease; backdrop-filter: blur(2px);
        }

        .g-hover-overlay i { font-size: 3rem; color: white; transform: scale(0.5); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        .g-slide:hover .g-img-wrap img { transform: scale(1.08); }
        .g-slide:hover .g-hover-overlay { opacity: 1; }
        .g-slide:hover .g-hover-overlay i { transform: scale(1); }

        .g-info { padding: 20px 10px 10px; text-align: center; }
        .g-info h4 { font-size: 0.8rem; color: var(--text-main); margin-bottom: 5px; }
        .g-info span { font-size: 0.9rem; color: var(--brand-green); font-weight: 600; }

        .g-nav {
            position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: white;
            border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: flex; align-items: center;
            justify-content: center; font-size: 1.5rem; color: var(--brand-green); cursor: pointer; z-index: 10; transition: all 0.3s;
        }
        .g-nav:hover { background: var(--brand-green); color: white; transform: translateY(-50%) scale(1.1); }
        .g-prev { left: -25px; }
        .g-next { right: -25px; }

        .custom-lightbox { 
            position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center;
            justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s ease;
        }
        .custom-lightbox.active { opacity: 1; visibility: visible; }
        .lightbox-backdrop { position: absolute; inset: 0; background: rgba(26, 37, 47, 0.85); backdrop-filter: blur(10px); }
        .lightbox-content-wrapper {
            position: relative; z-index: 2; background: white; border-radius: 20px; width: fit-content; min-width: 150px; 
            max-width: 95vw; max-height: 95vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.4);
            transform: scale(0.95) translateY(20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .custom-lightbox.active .lightbox-content-wrapper { transform: scale(1) translateY(0); }
        .lightbox-image-container { 
            width: fit-content; margin: 0 auto; height: auto; background: transparent; display: flex; max-height: 75vh; 
            align-items: center; justify-content: center; position: relative; 
        }
        .lightbox-image-container img { 
            width: auto; height: auto; max-width: 100%; max-height: 75vh; 
            opacity: 0; transition: opacity 0.3s ease; display: block; 
        }
        .lightbox-image-container img.loaded { opacity: 1; }
        .lightbox-text-container { 
            padding: 25px 30px; background: white; text-align: center; 
            width: 0; min-width: 100%; box-sizing: border-box; width: 0; min-width: 100%;  
            word-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
        }
        .lightbox-text-container h3 { font-size: 1.8rem; color: var(--brand-green-dark); margin-bottom: 10px; }
        .lightbox-text-container p { font-size: 1.05rem; color: var(--text-light); margin: 0; line-height: 1.6; }
        .lightbox-close {
            position: absolute; top: 25px; right: 25px; width: 45px; height: 45px; border-radius: 50%; 
            background: rgba(255,255,255,0.1); border: none; color: white; font-size: 1.5rem; display: flex; 
            align-items: center; justify-content: center; cursor: pointer; z-index: 3; transition: 0.3s;
        }
        .lightbox-close:hover { background: var(--c-red); transform: rotate(90deg); }
        .lb-nav { 
            position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px;
            border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
            color: white; font-size: 2rem; display: flex; align-items: center; justify-content: center;
            cursor: pointer; z-index: 3; transition: 0.3s;
        }
        .lb-nav:hover { background: white; color: var(--brand-green); transform: translateY(-50%) scale(1.1); }
        .lb-prev { left: 40px; }
        .lb-next { right: 40px; }

        /* Бейджики характеристик */
        .lb-specs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
        .lb-specs span {
            font-size: 0.85rem; font-weight: 700; color: var(--text-main); background: rgba(0, 135, 81, 0.08);
            padding: 6px 16px; border-radius: 30px; display: flex; align-items: center; gap: 6px; transition: all 0.3s ease;
        }
        .lb-specs span i { color: var(--brand-green); font-size: 1.1rem; }
        .lb-specs span:hover { background: var(--brand-green); color: white; transform: translateY(-2px); }
        .lb-specs span:hover i { color: white; }

        /* подвал */
        .site-footer {
            background-color: #1a252f; color: #bdc3c7; padding: 80px 0 10px; font-size: 0.95rem;
        }
        .footer-container {
            max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter);
            display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 0.5fr)); gap: 30px;
        }
        .footer-title { color: white; font-size: 0.8rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.2px; }
        .footer-links li { margin-bottom: 4px; }
        .site-footer a:hover { color: var(--brand-green); }
        .footer-contact-item { margin-top: 20px; color: white; display: flex; align-items: center; gap: 10px; }
        
        .footer-social-icons { display: flex; gap: 15px; margin-top: 25px; }
        .footer-social-icons a {
            width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
            border-radius: 50%; background: rgba(255,255,255,0.05); color: white; color: #ffffff; transition: 0.3s;
        }
        .footer-social-icons a:hover { background: var(--brand-green); color: #ffffff !important; transform: translateY(-3px); }
        .footer-bottom-bar {
            border-top: 1px solid rgba(255,255,255,0.05); margin-top: 60px; padding-top: 20px; text-align: center; color: #7f8c8d; font-size: 0.85rem;
        }


        /* менюшка на мобильные */
        .mobile-only { display: none; }
        .burger-btn {
            background: none; border: none; cursor: pointer;
            width: 30px; height: 20px;
            position: relative; z-index: 3000;
            padding: 0; display: none;
            flex-direction: column; justify-content: space-between;
        }
        .burger-btn span { display: block; width: 100%; height: 2px; background-color: white; border-radius: 4px; transition: all 0.4s; }
        .burger-btn.open { opacity: 0; pointer-events: none; transform: translateX(10px); }

        /* анимация превращения полосок в крестик, если захотим
        .burger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(8px, 6px); }
        .burger-btn.open span:nth-child(2) { opacity: 0; }
        .burger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -8px); }
        */

        .mobile-menu-overlay {
            position: fixed; top: 0; right: 0;
            width: 100%; height: 100vh; height: 100dvh;
            background: rgba(44, 62, 80, 0.8);
            z-index: 2999;
            opacity: 0; visibility: hidden;
            transition: all 0.4s ease;
            backdrop-filter: blur(8px);
        }
        .mobile-menu-content {
            position: absolute; top: 0; right: -100%;
            width: 85%; max-width: 360px; height: 100%;
            background: #ffffff;
            padding: 80px 30px 40px;
            box-shadow: -10px 0 40px rgba(0,0,0,0.2);
            display: flex; flex-direction: column;
            transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        }
        .mobile-menu-overlay.active { opacity: 1; visibility: visible; }
        .mobile-menu-overlay.active .mobile-menu-content { right: 0; }
        .close-menu-btn {
            position: absolute; top: 25px; right: 25px;
            background: rgba(0,0,0,0.05); border: none;
            width: 40px; height: 40px; border-radius: 50%;
            font-size: 1.5rem; color: var(--text-main);
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: 0.3s;
        }
        .close-menu-btn:hover { background: var(--c-red); color: white; transform: rotate(90deg); }
        .mobile-nav-links { display: flex; flex-direction: column; gap: 25px; margin-bottom: 40px; }
        .m-link { font-size: 1.6rem; font-weight: 800; color: var(--text-main); transition: 0.4s ease; }
        .mobile-menu-overlay.active .m-link { transform: translateX(0); opacity: 1; }
        .mobile-menu-overlay.active .m-link:nth-child(1) { transition-delay: 0.1s; }
        .mobile-menu-overlay.active .m-link:nth-child(2) { transition-delay: 0.2s; }
        .mobile-menu-overlay.active .m-link:nth-child(3) { transition-delay: 0.3s; }

        .m-link:hover { color: var(--brand-green); }

        .mobile-divider { border-top: 2px solid rgba(0,0,0,0.05); margin: 0 0 30px; }

        .mobile-contacts-block { margin-top: auto; }
        .m-phone { font-size: 1.4rem; font-weight: 800; color: var(--brand-green); margin-bottom: 5px; display: block; }
        .m-email { color: var(--text-light); font-size: 1rem; margin-bottom: 25px; display: block; }
        .m-socials { display: flex; gap: 20px; }
        .m-socials a {
            width: 45px; height: 45px; border-radius: 50%;
            background: var(--brand-green-dark);
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem; transition: 0.3s;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
            text-decoration: none;
        }
        .m-socials a i { color: #ffffff; font-size: 1.3rem; }
        .m-socials a:hover { background: var(--brand-green); color: white; transform: translateY(-3px); }

        .m-btn-full {
            margin-top: 30px; width: 100%; justify-content: center; padding: 15px;
            background: var(--brand-green); color: white; border: none;
            font-weight: 700; border-radius: 50px; display: flex; align-items: center; gap: 10px;
        }

        /* глобальные разделители между фрагментами сайта */
        .site-divider {
            display: flex; align-items: center; justify-content: center; width: 100%;
            height: 80px; position: relative; z-index: 10; background-color: transparent; margin: 10px 0;
        }

        .site-divider::before,
        .site-divider::after {
            content: ''; display: block; width: 25vw; max-width: 250px; height: 1px;
            background: linear-gradient(90deg, transparent, rgba(0, 135, 81, 0.25));
        }

        .site-divider::after {
            background: linear-gradient(270deg, transparent, rgba(0, 135, 81, 0.25));
        }

        .site-divider img.divider-logo {
            width: 32px; height: 32px; margin: 0 25px; opacity: 0.7; 
            filter: drop-shadow(0 4px 8px rgba(0, 135, 81, 0.15));
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
        }

        /* Интерактивная деталь: при наведении логотип оживает */
        .site-divider:hover img.divider-logo {
            transform: scale(1.15) rotate(15deg);
            opacity: 1;
        }

        .spectrum-divider {
            display: none; /* На десктопе они не нужны, там дизайн "слайдами" */
        }

        /*РАЗДЕЛИТЕЛИ В КАРУСЕЛИ ЛОГОТИПА*/
        .scroll-col {
            --active-accent: rgba(0, 135, 81, 0.4); 
            --active-shadow: rgba(0, 135, 81, 0.1);
        }

        @media (max-width: 992px) {
            
            h1, h2, h3, .logo-wrap { hyphens: auto; overflow-wrap: break-word; }

            /* шапка */
            .header-actions { display: none !important; }
            .section-header-center h2 { font-size: 1.8rem !important; padding: 0 10px; }
            
            /* менюшка в шапке */
            .desktop-only { display: none !important; }
            .burger-btn.mobile-only { display: flex; }
            .logo-wrap { font-size: 1rem; }
            .logo-wrap img { width: 24px; height: 24px; }
            
            /* основа */
            .hero { 
                min-height: auto; padding-top: 120px; padding-bottom: 60px; 
                text-align: center; display: flex; align-items: center; justify-content: center; 
            }
            .hero__grid { display: flex; width: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
            .hero::before { width: 100vw; height: 100vw; top: -20%; right: -20%; }
            .badges-row { justify-content: center; gap: 10px; }
            .hero__content { display: flex; flex-direction: column; align-items: center; width: 100%; }
            .hero__content h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 20px; word-wrap: break-word; word-break: keep-all; }
            .hero__content p { font-size: 1.1rem; margin: 0 auto 30px; max-width: 100%; }
            .hero__visual { display: none; }
            
            /*о нас*/
            .about-text { text-align: center; }
            .about-text h2 { text-align: center; margin-left: auto; margin-right: auto; font-size: 2.2rem; }
            .about-text p { text-align: center; max-width: 100%; margin-left: auto; margin-right: auto; }
            .about-grid { grid-template-columns: 1fr; gap: 40px; }
            .container { padding: 0 20px; width: 100%; box-sizing: border-box; }
            .about-grid { gap: 30px; }
            .features-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; }
            .feature-card { padding: 20px 15px; min-height: auto; }
            .feature-card h3 { font-size: 1.3rem !important; word-break: normal; margin-bottom: 5px; }
            .feature-card span { font-size: 0.85rem; line-height: 1.3; }

            .phantom-logo { display: none; }

            /*карусель*/
            .split-layout { display: block !important; flex-direction: column !important; width: 100%; position: relative; }
            .sticky-col { 
                display: flex !important; position: -webkit-sticky !important; position: sticky !important;
                top: 56px; margin-top: 0; padding-top: 15px; width: 100% !important;; z-index: 50; 
                padding: 10px 0; min-height: 140px; height: 180px; 
                background-color: var(--bg-white); transition: background-color 0.4s ease;
                flex-direction: column; justify-content: flex-start; align-items: center; border: none;
                /*margin-bottom: -50px;*/
                -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
                mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
            }
            #realLogo { width: 100px; height: 100px; margin-bottom: 5px; flex-shrink: 0; /*filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));*/ }
            .spectrum-container { padding-top: 0; overflow: visible; position: relative; background-color: transparent; transition: background-color 0.4s ease; }
            .sticky-label { font-size: 1.1rem; margin-top: 0; height: auto; opacity: 1; text-shadow: 0 2px 10px rgba(255,255,255,0.8); /*color: inherit;*/ }
            .scroll-col { width: 100% !important; padding-bottom: 0; background-color: transparent !important; position: relative; z-index: 10; }
            .scroll-section { 
                min-height: 70vh; padding: 160px 20px 60px; width: 100%; display: flex;
                align-items: flex-start; justify-content: center; overflow: visible;
            }
            .glass-card { width: 100%; max-width: 100%; padding: 30px 20px; margin: 0 auto; box-sizing: border-box;
                /*padding: 40px 25px; margin-top: 0; background: rgba(255, 255, 255, 0.95); border-radius: 24px;
                display: flex; flex-direction: column-reverse; text-align: center; width: 100%; max-width: 100%; 
                margin: 0; box-shadow: 0 15px 40px rgba(0,0,0,0.08);*/
            }
            .glass-card h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
            .section-lead { font-size: 0.95rem !important; line-height: 1.4; margin-bottom: 15px !important; opacity: 0.9; }
            .glass-card p { font-size: 0.88rem !important; line-height: 1.6; margin-bottom: 20px !important; color: var(--text-main); }
            .card-content-row { display: contents; }
            .card-icon-area { height: auto; margin-bottom: 20px; justify-content: center; display: flex; }
            .icon-circle { width: 100px; height: 100px; font-size: 3.5rem; }
            .card-bg-icon { font-size: 150px; right: 50%; transform: translateX(50%); bottom: 10px; opacity: 0.05; }
            .btn-outline { width: 100%; margin-top: 20px; padding: 14px; box-sizing: border-box; }
            
            /*разделители в секции карусели*/
            .scroll-section + .scroll-section::before {
                content: '';
                position: absolute;
                top: 50px; 
                left: 50%;
                transform: translateX(-50%);
                width: 45px;
                height: 5px;
                border-radius: 10px;
                opacity: 0.85;
                z-index: 5;
                
                background-color: var(--active-accent);
                box-shadow: 0 3px 12px var(--active-shadow);
                
                transition: background-color 0.4s ease, box-shadow 0.4s ease;
            }

            /* Привязываем цвета к конкретным классам разделителей */
            .div-red span    { background-color: var(--c-red); box-shadow: 0 3px 12px rgba(229, 37, 42, 0.35); }
            .div-yellow span { background-color: #d6a40d; box-shadow: 0 3px 12px rgba(253, 199, 39, 0.35); }
            .div-green span  { background-color: var(--c-green); box-shadow: 0 3px 12px rgba(105, 181, 75, 0.35); }
            .div-blue span   { background-color: var(--c-blue); box-shadow: 0 3px 12px rgba(47, 59, 138, 0.35); }        

            /*блок с ZR*/
            .ecosystem-grid { grid-template-columns: 1fr; gap: 20px; }
            .card-main { 
                display: flex; grid-column: span 1; padding: 40px 20px !important;
                flex-direction: column; text-align: center; align-items: center;
                height: auto !important; position: relative !important; overflow: visible !important;
            }
            .eco-card-content { padding-right: 0; display: contents; flex-direction: column; align-items: center; }
            .eco-specs { order: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; width: 100%; }
            .eco-specs span { font-size: 0.75rem; padding: 6px 10px; white-space: nowrap; }
            .spec-group { justify-content: center; }
            .eco-specs span { font-size: 0.75rem; padding: 5px 10px; }
            .main-img { 
                order: 4; margin-bottom: 20px; width: 100%; display: block; justify-content: center; 
                position: relative; align-items: center; min-height: 250px;
            }
            .main-img img { max-width: 220px; height: auto; }
            .main-img .slide { max-width: 85% !important; max-height: 90% !important; }
            .card-main h3 { order: 2; font-size: 1.6rem !important; width: 100%; margin-bottom: 15px; }
            .card-main p { order: 3; font-size: 0.95rem; width: 100%; margin-bottom: 25px; }
            .eco-card-top { margin-bottom: 15px; }
            .card-text { order: 5; width: 100%; margin-top: 20px; }
            .card-text .btn-outline { width: 100%; margin-top: 0; }

            /*.carousel-nav { display: none; }*/
            .carousel-dots { display: flex; }
            .carousel-container { height: 280px; margin: 15px 0; overflow: visible; position: relative !important; width: 100% !important; display: flex !important; }
            .carousel-dots { bottom: -20px; }

            /*галерея продукции*/
            .gallery-wrapper { padding: 0 10px; }
            .gallery-track { gap: 20px; padding: 30px 20px; scroll-padding-left: 20px; }
            .g-slide { /*flex: 0 0 calc(50% - 12px);*/ flex: 0 0 calc((100% - 50px) / 2); scroll-snap-stop: always !important; }
            
            .g-nav { display: none; }
            .gallery-track { gap: 16px; padding: 20px 0;}
            .lb-nav { 
                display: flex !important; width: 45px;  height: 45px; font-size: 1.5rem;
                background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.2); color: white; z-index: 999999; 
            }
            .lb-prev { left: 10px; }
            .lb-next { right: 10px; }

            .carousel-dots .dot { width: 8px; height: 8px; }
            .carousel-dots .dot.active { width: 20px; }

            /*подвал*/
            .site-footer { position: relative; z-index: 100; background-color: #1a252f; }
        }

        @media (max-width: 768px) {
            .glass-card { padding: 40px 25px; min-height: auto; text-align: center; }
            .card-content { text-align: center; max-width: 100%; }
            .section-lead, .card-content p { max-width: 100%; }
            .glass-card h3 { font-size: 2.2rem; }
            .card-bg-icon { font-size: 200px; right: 50%; transform: translateX(50%); bottom: 10px; opacity: 0.05; }
            .glass-card:hover .card-bg-icon { transform: translateX(50%) scale(1.1); right: 50%; }
            .btn-outline { width: 100%; }

            .footer-container { grid-template-columns: 1fr 1fr !important; gap: 30px 20px; }
            .footer-column:last-child { grid-column: span 2; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }
            .footer-social-icons { justify-content: center; }
            .footer-contact-item { justify-content: center; }

            .site-divider::before,
            .site-divider::after { width: 30vw; }
            .site-divider { height: 60px; }
            .site-divider img.divider-logo { width: 26px; height: 26px; margin: 0 15px; }

            }

        @media (max-width: 380px) { 
            .sticky-col { top: 55px; min-height: 140px; }
            #realLogo { width: 80px; height: 80px; }
            .sticky-label { font-size: 1rem; }
            .glass-card h3 { font-size: 1.8rem; }
        }

        @media (max-width: 1100px) {
            .ecosystem-row { grid-template-columns: repeat(2, 1fr); gap: 60px 30px; }
        }

        @media (max-width: 600px) {
            .ecosystem-row { grid-template-columns: 1fr; gap: 60px; }
            .eco-visual::before { opacity: 0.5; width: 200px; height: 200px; }
        }

        @media (min-width: 993px) and (max-width: 1200px) {
            .ecosystem-grid { grid-template-columns: repeat(3, 1fr); }
            .card-main h3 { font-size: 1.8rem; }
        }

        @media (min-width: 1200px) {
            .projects-gallery .container { max-width: 1350px; }
            .g-slide { flex: 0 0 calc((100% - 90px) / 4); }
        }

        @media (max-width: 600px) {
            .g-slide { flex: 0 0 85%; scroll-snap-align: center;}
            .gallery-track { scroll-padding-left: 0; }
            .lightbox-content-wrapper { width: 95%; max-height: 80vh; }
            .lightbox-text-container { padding: 15px; }
            .lightbox-text-container h3 { font-size: 1.3rem; }
            .lightbox-image-container { max-height: 60vh; /*height: 45vh;*/ }
            .lightbox-image-container img { max-height: 60vh; }
            .lightbox-close { top: 15px; right: 15px; width: 35px; height: 35px; font-size: 1.2rem; }

            .lb-specs { gap: 6px; margin-bottom: 15px; }
            .lb-specs span { font-size: 0.75rem; padding: 5px 12px; }
            .lb-specs span i { font-size: 0.95rem; }
        }
