/* ==========================================
   VARIABLES & RESET
   ========================================== */
:root { --color-bg: #FFFFFF; --color-bg-subtle: #F9FAFB; --color-text: #0F172A; --color-text-muted: #64748B; --color-border: #E2E8F0; --color-accent: #0F172A; --font-main: 'Inter', system-ui, sans-serif; --radius-sm: 8px; --radius-md: 16px; --shadow-sm: 0 4px 6px rgba(0,0,0,0.02); --shadow-md: 0 10px 24px rgba(0,0,0,0.04); --transition: 0.4s ease; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); background-color: var(--color-bg); color: var(--color-text); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html, body {
    max-width: 100%;
    overflow-x: clip;
}

/* ==========================================
   GLOBAL UTILITIES
   ========================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 60px 0; }
.bg-subtle { background-color: var(--color-bg-subtle); }
.bg-dark-page { background: #040914; }
.pt-150 { padding-top: 150px; }
.border-top { border-top: 1px solid var(--color-border); }
.border-bottom { border-bottom: 1px solid var(--color-border); }
.eyebrow { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 24px; color: var(--color-text); }
.text-dark { color: #0F172A !important; }

/* ==========================================
   NAVIGATION
   ========================================== */
.nav-wrapper { position: fixed; width: 100%; top: 20px; z-index: 100; display: flex; justify-content: center; pointer-events: none; }
.pill-nav { pointer-events: auto; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--color-border); border-radius: 100px; padding: 8px 8px 8px 24px; display: flex; align-items: center; gap: 40px; box-shadow: var(--shadow-sm); }
.nav-logo { font-size: 16px; font-weight: 800; color: var(--color-text); text-decoration: none;}
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--color-text-muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--color-text); }
.btn-premium { position: relative; background: var(--color-accent); color: #fff; text-decoration: none; padding: 10px 24px; border-radius: 100px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; z-index: 1; transition: box-shadow 0.3s ease; }
.btn-premium::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #334155 0%, #0F172A 100%); z-index: -1; opacity: 0; transition: opacity 0.4s ease; }
.btn-premium::after { content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); z-index: -1; transition: left 0.6s ease-in-out; }
.btn-premium:hover { box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2); }
.btn-premium:hover::before { opacity: 1; }
.btn-premium:hover::after { left: 150%; }
.btn-premium-text { transition: transform 0.3s ease; }
.btn-premium:hover .btn-premium-text { transform: scale(1.03); }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; display: flex; align-items: center; z-index: 1; overflow: hidden; background: #040914; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(4, 9, 20, 0.4) 0%, rgba(4, 9, 20, 0.95) 100%); z-index: 1; pointer-events: none; }
.hero .container { max-width: 1600px; }
.hero-container { position: relative; z-index: 3; color: #fff; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 4vw; }
.hero-content { flex: 1; max-width: 700px; will-change: transform; pointer-events: auto; }
.hero-badge { display: inline-block; padding: 6px 14px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 100px; font-size: 12px; font-weight: 600; margin-bottom: 20px; backdrop-filter: blur(4px); }
.hero-title { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,0.85); line-height: 1.6; }
.hero-canvas-container { position: relative; flex: 0 0 clamp(350px, 35vw, 550px); height: clamp(350px, 35vw, 550px); display: flex; align-items: center; justify-content: center; z-index: 0; pointer-events: none; will-change: transform; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: transparent; will-change: transform, opacity; }
.hero-canvas-active { z-index: 2; pointer-events: auto; }
#typewriter-canvas { z-index: 1; pointer-events: none; }
.js-typewriter-title, .js-typewriter-desc { visibility: hidden; }
.console-cursor { color: #3B82F6; font-weight: 800; animation: blink 1s step-end infinite; margin-left: 4px; vertical-align: baseline; }
.content-overlap { position: relative; margin-top: 100vh; margin-top: 100dvh; z-index: 5; background-color: var(--color-bg); border-radius: 40px 40px 0 0; box-shadow: 0 -20px 40px rgba(0,0,0,0.15); }

/* ==========================================
   PARTNERS MARQUEE
   ========================================== */
.partners-marquee { position: relative; background: #FFFFFF; padding: 24px 0; overflow: hidden; display: flex; align-items: center; border-radius: 40px 40px 0 0; }
.marquee-fade { position: absolute; top: 0; width: 120px; height: 100%; z-index: 10; pointer-events: none; }
.marquee-fade-left { left: 0; background: linear-gradient(to right, #FFFFFF 0%, rgba(255,255,255,0) 100%); }
.marquee-fade-right { right: 0; background: linear-gradient(to left, #FFFFFF 0%, rgba(255,255,255,0) 100%); }
.marquee-track { display: flex; align-items: center; gap: 60px; animation: scroll-left 40s linear infinite; padding-left: 30px; }
.marquee-track:hover { animation-play-state: paused; }
.partner-item { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--color-text); white-space: nowrap; cursor: pointer; opacity: 0.6; filter: grayscale(100%); transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease; }
.partner-item:hover { opacity: 1; transform: scale(1.05); filter: grayscale(0%); }
.partner-logo { height: 32px; width: auto; object-fit: contain; }

/* ==========================================
   METRICS (3D TILT)
   ========================================== */
.metrics { padding: 60px 0; background-color: var(--color-bg); position: relative; z-index: 10; perspective: 1000px; }
.metrics-grid { display: flex; gap: 32px; justify-content: space-between; }
.metric-3d-card { flex: 1; position: relative; perspective: 1000px; cursor: pointer; }
.metric-3d-inner { position: relative; padding: 56px 32px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); text-align: center; transform-style: preserve-3d; transition: transform 0.1s ease, box-shadow 0.3s; box-shadow: var(--shadow-sm); overflow: hidden; }
.metric-3d-card:hover .metric-3d-inner { box-shadow: 0 20px 40px rgba(15,23,42,0.08); border-color: rgba(15,23,42,0.1); transition: transform 0s, box-shadow 0.3s; }
.js-tilt-content { transform: translateZ(40px); transition: transform 0.1s; pointer-events: none; }
.metric-val { display: flex; justify-content: center; align-items: flex-start; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -2px; color: var(--color-text); margin-bottom: 16px; }
.m-plus { font-size: 32px; font-weight: 700; color: #2563EB; margin-top: 4px; margin-left: 4px; }
.metric-text { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--color-text-muted); letter-spacing: 0.5px; }
.metric-glare { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, transparent 60%); opacity: 0; pointer-events: none; mix-blend-mode: overlay; transform: translateZ(1px); transition: opacity 0.3s; }
.metric-3d-card:hover .metric-glare { opacity: 1; }

/* ==========================================
   ABOUT COMPANY (CINEMA & GLASSMORPHISM)
   ========================================== */
.about-cinema { position: relative; height: 250vh; background: #040914;}
.cinema-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cinema-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; perspective: 2000px; }
.cinema-step { position: absolute; width: 100%; max-width: 1020px; padding: 0 24px; opacity: 0; visibility: hidden; transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); transform-style: preserve-3d; transform: translateY(15vh) scale(0.9) rotateX(8deg); }
.cinema-step.is-active { opacity: 1; visibility: visible; transform: translateY(0) scale(1) rotateX(0deg); z-index: 5; }
.cinema-step.is-past { opacity: 0; visibility: hidden; transform: translateY(-15vh) scale(0.95) rotateX(-8deg); }
.center-glass-card { display: flex; align-items: stretch; width: 100%; min-height: 420px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 32px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1); }
.layout-normal { flex-direction: row; }
.layout-reverse { flex-direction: row-reverse; }
.cgc-text { flex: 1.1; padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; background: transparent; }
.glass-label { font-size: 13px; font-weight: 800; text-transform: uppercase; color: #3B82F6; margin-bottom: 12px; letter-spacing: 1px; }
.glass-title { font-size: 38px; font-weight: 700; color: #fff; margin-bottom: 16px; line-height: 1.1; letter-spacing: -0.02em; }
.glass-desc { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 0; max-width: none; }
.cgc-model { flex: 0.9; position: relative; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%); }
.model-scene { position: relative; width: 300px; height: 300px; perspective: 1200px; pointer-events: none; transform: scale(0.85); transform-origin: center; }
.model-pivot { width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.2s ease-out; }
.js-model-core { position: absolute; inset: 0; transform-style: preserve-3d; }
.cinema-step[data-index="0"] .model-scene, .cinema-step[data-index="2"] .model-scene { transform: scale(1.05); }

.m-cube { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.m-face { position: absolute; inset: 0; background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(96, 165, 250, 0.8); box-shadow: inset 0 0 25px rgba(59, 130, 246, 0.5); backdrop-filter: blur(3px); }
.m-clusters { animation: spin3D 25s linear infinite; }
.c-main { animation: floatAnim 4s ease-in-out infinite alternate; }
.c-orbit { position: absolute; }
.o1 { animation: orbit1 8s linear infinite; }
.o2 { animation: orbit2 10s linear infinite; }
.o3 { animation: orbit3 12s linear infinite; }
.m-server { animation: floatAnim 6s ease-in-out infinite alternate; }
.m-blade { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; background: rgba(15, 23, 42, 0.75); border: 1px solid #3B82F6; border-radius: 12px; box-shadow: 0 0 25px rgba(59,130,246,0.3), inset 0 0 40px rgba(59,130,246,0.4); transform: rotateX(60deg) rotateZ(45deg) translateZ(var(--tz)); transform-style: preserve-3d; backdrop-filter: blur(5px); }
.m-blade::after { content: ""; position: absolute; bottom: -2px; left: 20px; width: 40px; height: 4px; background: #10B981; box-shadow: 0 0 15px #10B981, 70px 0 0 #3B82F6, 70px 0 15px #3B82F6; transform: rotateX(-90deg); transform-origin: bottom; }
.b1 { --tz: -80px; }
.b2 { --tz: 0px; }
.b3 { --tz: 80px; }
.m-scanner { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border: 2px solid transparent; border-top-color: #fff; border-bottom-color: #fff; border-radius: 50%; transform: rotateX(60deg) rotateZ(45deg) translateZ(0px); box-shadow: 0 0 40px rgba(255,255,255,0.5); animation: scanMove 3s ease-in-out infinite alternate; }
.m-gyro { animation: spin3D 30s linear infinite reverse; }
.m-ring { position: absolute; left: 50%; top: 50%; width: 280px; height: 280px; margin: -140px 0 0 -140px; border: 2px solid rgba(96, 165, 250, 0.4); border-radius: 50%; box-shadow: 0 0 25px rgba(59,130,246,0.2), inset 0 0 25px rgba(59,130,246,0.2); }
.r1 { transform: rotateX(0deg) rotateY(0deg); border-left: 2px solid #60A5FA; }
.r2 { transform: rotateX(90deg) rotateY(0deg); border-top: 2px solid #60A5FA; }
.r3 { transform: rotateX(0deg) rotateY(90deg); border-right: 2px solid #60A5FA; }

/* ==========================================
   CLUSTERS (10 БИЗНЕС-НАПРАВЛЕНИЙ)
   ========================================== */
.light-clusters-section { position: relative; background: var(--color-bg-subtle); }
.sticky-layout { display: flex; gap: 80px; align-items: flex-start; }
.sticky-panel { flex: 1; position: sticky; top: 0; height: 100vh; display: flex; align-items: center; z-index: 2; }
.sticky-content { position: relative; z-index: 2; }
.sticky-desc { font-size: 16px; margin-bottom: 40px; max-width: 340px; line-height: 1.6; color: var(--color-text-muted); }
.l-progress { display: flex; align-items: center; gap: 24px; }
.l-track { width: 100px; height: 4px; background: rgba(15, 23, 42, 0.1); border-radius: 4px; position: relative; overflow: hidden; }
.l-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: #3B82F6; transition: width 0.3s ease-out; }
.l-numbers { display: flex; align-items: baseline; gap: 8px; }
.l-current { font-size: 28px; font-weight: 800; color: var(--color-text); letter-spacing: -0.02em; }
.l-total { font-size: 14px; font-weight: 600; color: var(--color-text-muted); opacity: 0.7; }
.huge-watermark { position: absolute; top: 50%; left: -5%; transform: translateY(-50%); font-size: 40vh; font-weight: 800; line-height: 0.8; color: #0F172A; opacity: 0.03; z-index: 1; pointer-events: none; letter-spacing: -0.05em; transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); user-select: none; }
.huge-watermark.is-changing { opacity: 0; transform: translateY(-40%) scale(0.95); }
.scroll-panel { flex: 1.2; display: flex; flex-direction: column; gap: 24px; padding: 20vh 0 20vh 0; }
.l-cluster-card { display: flex; flex-direction: column; justify-content: space-between; position: relative; padding: 40px; background: #fff; border: 1px solid var(--color-border); border-radius: 24px; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); opacity: 0.4; transform: scale(0.95) translateX(20px); box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.l-cluster-card.is-active { opacity: 1; transform: scale(1) translateX(0); border-color: rgba(59,130,246,0.3); box-shadow: 0 20px 40px rgba(15,23,42,0.06), 0 0 0 4px rgba(59,130,246,0.05); z-index: 2; }
.l-cluster-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.l-num { font-size: 12px; font-weight: 800; color: #fff; background: #3B82F6; padding: 4px 12px; border-radius: 100px; }
.l-title { font-size: 24px; font-weight: 700; color: var(--color-text); line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.l-desc { font-size: 15px; color: var(--color-text-muted); line-height: 1.7; margin: 0; flex: 1; }
.l-card-footer { margin-top: 24px; display: flex; align-items: center; gap: 8px; color: #3B82F6; font-weight: 700; font-size: 14px; transition: all 0.3s ease; }
.l-btn-icon { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.l-cluster-card:hover .l-btn-text { text-decoration: underline; }
.l-cluster-card:hover .l-btn-icon { transform: translateX(5px); }

/* ==========================================
   ADVANTAGES (REVEAL GRID)
   ========================================== */
.adv-reveal-section { background: #040914; padding: 100px 0; }
.adv-reveal-header { text-align: center; margin-bottom: 56px; }
.adv-reveal-header .section-title { color: #fff; margin-bottom: 8px; }
.reveal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.reveal-card { height: 220px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 32px 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); cursor: default; }
.reveal-card::before { content: ""; position: absolute; bottom: -50%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 60%); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; z-index: 1; }
.reveal-card:hover { background: rgba(255,255,255,0.04); border-color: rgba(59,130,246,0.3); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.reveal-card:hover::before { opacity: 1; }
.rv-num { font-family: monospace; font-size: 14px; font-weight: 700; color: #3B82F6; background: rgba(59,130,246,0.1); padding: 4px 10px; border-radius: 6px; align-self: flex-start; margin-bottom: auto; transition: all 0.3s; z-index: 2; }
.reveal-card:hover .rv-num { background: #3B82F6; color: #fff; }
.rv-content { position: relative; z-index: 2; transform: translateY(40px); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-card:hover .rv-content { transform: translateY(0); }
.rv-title { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 12px 0; line-height: 1.2; letter-spacing: -0.01em; }
.rv-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.5; margin: 0; opacity: 0; transition: opacity 0.4s ease; transition-delay: 0s; }
.reveal-card:hover .rv-desc { opacity: 1; transition-delay: 0.1s; }

/* ==========================================
   INDUSTRIES (COMPACT)
   ========================================== */
.compact-industries { background: #FFFFFF; padding: 100px 0; }
.compact-header { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 48px; }
.compact-header .section-title { margin-bottom: 0; }
.ind-control-panel { display: flex; gap: 40px; align-items: stretch; }
.ind-pills-wrap { flex: 1.5; display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start; }
.ind-pill { padding: 12px 24px; font-size: 15px; font-weight: 600; color: #475569; background: #F1F5F9; border: 1px solid transparent; border-radius: 100px; transition: all 0.3s ease; cursor: pointer; }
.ind-pill:hover { background: #E2E8F0; color: #0F172A; }
.ind-pill.is-active { background: #0F172A; color: #FFFFFF; box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2); }
.ind-cards-viewport { flex: 1; display: grid; perspective: 1000px; }
.ind-card { grid-area: 1 / 1; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 24px; padding: 40px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 10px 30px rgba(15, 23, 42, 0); opacity: 0; transform: translateX(40px) scale(0.95); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; z-index: 1; }
.ind-card.is-active { opacity: 1; transform: translateX(0) scale(1); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05); pointer-events: auto; z-index: 2; }
.ind-card-title { font-size: 20px; font-weight: 700; color: #0F172A; margin: 0 0 12px 0; }
.ind-card-desc { font-size: 16px; color: #475569; line-height: 1.6; margin: 0; }

/* ==========================================
   COMPETENCIES (SPECS)
   ========================================== */
.compact-specs { background: #F8FAFC; padding: 100px 0; }
.spec-table { display: flex; flex-direction: column; border-top: 2px solid #0F172A; }
.spec-row { display: flex; gap: 40px; padding: 40px 0; border-bottom: 1px solid #E2E8F0; transition: background 0.3s ease; }
.spec-row:hover { background: #F1F5F9; }
.spec-label { flex: 0 0 300px; font-size: 20px; font-weight: 700; color: #0F172A; line-height: 1.3; }
.spec-value { flex: 1; }
.spec-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.spec-list li { position: relative; padding-left: 24px; font-size: 16px; color: #475569; line-height: 1.6; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: #3B82F6; border-radius: 50%; }
.spec-list strong { color: #0F172A; font-weight: 700; }

/* ==========================================
   PORTFOLIO PAGE (ПРОЕКТЫ)
   ========================================== */
.portfolio-main {margin-top: 50px;}
.portfolio-header { padding: 60px 0 24px 0; }
.ph-layout { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; }
.ph-title { font-size: 40px; font-weight: 800; color: var(--color-text); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.ph-desc-col { max-width: 420px; }
.ph-desc { font-size: 15px; color: var(--color-text-muted); line-height: 1.5; margin: 0; }

.portfolio-filters { padding: 24px 0 32px 0; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; max-width: 100%; margin: 0; }
.f-pill { padding: 8px 20px; background: #fff; border: 1px solid var(--color-border); border-radius: 100px; color: #475569; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: var(--shadow-sm); }
.f-pill:hover { background: #F1F5F9; color: var(--color-text); }
.f-pill.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; box-shadow: 0 4px 12px rgba(15,23,42,0.15); }

.case-stack { display: flex; flex-direction: column; gap: 24px; max-width: 1100px; margin: 0 auto; }
.case-card-complex { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 32px; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.02); opacity: 1; }
.case-card-complex:hover { border-color: #CBD5E1; box-shadow: 0 12px 24px rgba(15,23,42,0.06); transform: translateY(-2px); }

.ccc-header { margin-bottom: 24px; border-bottom: 1px solid var(--color-border); padding-bottom: 16px; }
.ccc-client { display: block; font-size: 12px; font-weight: 700; color: #3B82F6; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.ccc-title { font-size: 26px; font-weight: 700; color: var(--color-text); line-height: 1.2; letter-spacing: -0.02em; margin: 0; }

.ccc-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.ccc-visual { position: relative; border-radius: 12px; overflow: hidden; height: 260px; border: 1px solid var(--color-border); }
.ccc-img-placeholder { width: 100%; height: 100%; background: #F1F5F9;}
.ccc-img-placeholder img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;  }
.case-card-complex:hover img { transform: scale(1.03); }

.ccc-info { display: flex; flex-direction: column; gap: 16px; }
.ccc-section { display: flex; flex-direction: column; gap: 4px; }
.ccc-label { font-size: 11px; font-weight: 800; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }
.ccc-text { font-size: 14px; color: #334155; line-height: 1.6; margin: 0; }

.ccc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ccc-list li { position: relative; padding-left: 18px; font-size: 14px; color: #475569; line-height: 1.5; }
.ccc-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: #3B82F6; border-radius: 50%; }

.ccc-tags { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ccc-tags span { font-size: 11px; font-weight: 700; color: #2563EB; background: #EFF6FF; padding: 4px 12px; border-radius: 100px; border: 1px solid #BFDBFE; }

.p-empty-state { text-align: center; padding: 40px 0; color: #64748B; font-size: 15px; width: 100%; }
.p-card.is-hidden { transform: scale(0.95); opacity: 0; pointer-events: none; position: absolute; }

/* ==========================================
   FOOTER
   ========================================== */
.nt-footer { background: #040914; padding-top: 60px; position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,0.05); margin-bottom: -220px;}
.nt-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 80px; align-items: start; }
.nt-f-logo { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin: 0 0 12px 0; line-height: 1; }
.nt-f-slogan { font-size: 16px; color: #3B82F6; font-weight: 500; margin: 0; }
.nt-f-contacts { display: flex; flex-direction: column; gap: 32px; }
.nt-f-block { display: flex; flex-direction: column; gap: 8px; }
.nt-f-label { font-size: 12px; text-transform: uppercase; color: rgba(255,255,255,0.4); letter-spacing: 1px; font-weight: 700; }
.nt-f-text { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.6; margin: 0; }
.nt-f-link { font-size: 18px; font-weight: 600; color: #fff; text-decoration: none; transition: color 0.3s; width: fit-content; }
.nt-f-link:hover { color: #3B82F6; }
.nt-f-map { width: 100%; height: 250px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); }
.nt-f-map iframe { width: 100%; height: 100%; filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(85%); transition: filter 0.4s ease; }
.nt-f-map:hover iframe { filter: invert(0%) hue-rotate(0deg) brightness(100%) contrast(100%); }
.nt-f-bottom { padding: 24px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.nt-f-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0; }

   /* ANIMATIONS */
@keyframes spin3D { to { transform: rotateX(360deg) rotateY(360deg); } }
@keyframes floatAnim { 0% { transform: translateY(-15px); } 100% { transform: translateY(15px); } }
@keyframes orbit1 { from { transform: rotateY(0deg) translateX(140px) rotateX(0deg); } to { transform: rotateY(360deg) translateX(140px) rotateX(360deg); } }
@keyframes orbit2 { from { transform: rotateZ(0deg) translateY(140px) rotateY(0deg); } to { transform: rotateZ(360deg) translateY(140px) rotateY(360deg); } }
@keyframes orbit3 { from { transform: rotateX(0deg) translateZ(140px) rotateZ(0deg); } to { transform: rotateX(360deg) translateZ(140px) rotateZ(360deg); } }
@keyframes scanMove { 0% { transform: rotateX(60deg) rotateZ(45deg) translateZ(-120px) scale(0.9); opacity: 0.5; } 100% { transform: rotateX(60deg) rotateZ(45deg) translateZ(120px) scale(1.1); opacity: 1; } }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.fade-up { opacity: 0; transform: translateY(40px) scale(0.96); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.show { opacity: 1; transform: translateY(0) scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }



   /* БЕЗОПАСНЫЙ АДАПТИВ (ДЛЯ ВСЕХ ЭКРАНОВ) */

/* --- Планшеты --- */
@media (max-width: 1024px) {
    .reveal-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .nt-footer-grid { grid-template-columns: 1fr 1fr; }
    .nt-f-map { grid-column: span 2; }
    
    .reveal-card { height: auto !important; min-height: 180px; }
    .rv-content { transform: translateY(0) !important; margin-top: 16px; }
    .rv-desc { opacity: 1 !important; }
    
    .reveal-card:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.05); }
}

/* --- Небольшие планшеты --- */
@media (max-width: 992px) {
    .section-padding { padding: 80px 0; }
    .pill-nav { gap: 16px; padding: 8px 12px 8px 24px; width: 95%; justify-content: space-between; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 12px; }
    .btn-premium { padding: 8px 16px; font-size: 12px; }

    .hero-container { 
        flex-direction: column; 
        text-align: center; 
        justify-content: center; 
        align-items: center; 
        padding-top: 100px; 
        gap: 24px; 
    }
    .hero-content { 
        flex: 0 0 auto; 
        max-width: 100%; 
        margin-bottom: 0; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
    .hero-title { font-size: 40px; }
    .hero-canvas-container { 
        height: 35vh;
        flex: 0 0 35vh; 
    }
    
    /* 10 направлений */
    .sticky-layout { flex-direction: row; gap: 32px; top: 0; }
    .scroll-panel { padding: 15vh 0; }
    .huge-watermark { font-size: 25vh; left: -15%; }
    
    /* БЛОК "О КОМПАНИИ" - ТОЧНЫЙ МАТЕМАТИЧЕСКИЙ АДАПТИВ */
    .center-glass-card { flex-direction: column !important; min-height: auto; text-align: center; }
    .cgc-text { flex: auto; padding: 32px 32px 16px 32px; background: transparent; }
    
    .cgc-model { 
        flex: none !important; 
        height: 220px !important; 
        min-height: 220px !important; 
        margin: 0; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        overflow: visible !important; 
    }
    
    .model-scene, 
    .cinema-step[data-index="0"] .model-scene, 
    .cinema-step[data-index="2"] .model-scene { 
        transform: scale(0.65) !important; 
    }
    
    /* Остальное */
    .ind-control-panel { flex-direction: column; }
    .ind-cards-viewport { min-height: 200px; }
    .ind-card { transform: translateY(20px) scale(0.95); }
    .ind-card.is-active { transform: translateY(0) scale(1); }
    .ph-layout { flex-direction: column; align-items: flex-start; gap: 16px; }
    .ph-title { font-size: 32px; }
    .ccc-body { grid-template-columns: 1fr; gap: 24px; }
    .ccc-visual { height: 250px; }
    .case-card-complex { padding: 32px; }
}

/* --- Мобильные телефоны (до 768px) --- */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 28px; margin-bottom: 16px; }
    .portfolio-header { padding: 80px 0 16px 0; }
    .portfolio-header h1 { font-size: 32px !important; }
    
    .nav-links { display: none; }
    .pill-nav { padding: 8px 12px 8px 20px; gap: 16px; width: 90%; justify-content: space-between; }
    .btn-premium { padding: 8px 16px; font-size: 12px; }
    
    .hero-title { font-size: 32px; }
    .hero-canvas-container { display: none !important; }
    .hero-container { padding-top: 100px; }
    
    .metrics-grid { flex-direction: column; gap: 16px; }
    .metric-3d-inner { padding: 32px 24px; }
    
    /* БЛОК "О КОМПАНИИ" - 768px */
    .cinema-step { padding: 0 16px; }
    .cgc-text { padding: 24px 24px 8px 24px; }
    .glass-title { font-size: 26px; margin-bottom: 12px; }
    .glass-desc { font-size: 14px; }
    
    .cgc-model { 
        height: 180px !important; 
        min-height: 180px !important; 
    }
    
    .model-scene, 
    .cinema-step[data-index="0"] .model-scene, 
    .cinema-step[data-index="2"] .model-scene { 
        transform: scale(0.55) !important; 
    }
    
    /* 10 направлений (в колонку) */
    .sticky-layout { flex-direction: column; gap: 32px; top: 0; }
    .sticky-panel { height: auto; position: relative; padding-top: 40px; width: 100%; }
    .sticky-desc { max-width: 100%; }
    .scroll-panel { padding: 0 0 60px 0; width: 100%; }
    .huge-watermark { display: none; }
    
    .l-cluster-card { padding: 24px; }
    
    .reveal-grid { grid-template-columns: 1fr; }
    .reveal-card { height: auto; min-height: 160px; padding: 24px; }
    .rv-content { transform: translateY(0); margin-top: 16px; }
    .rv-desc { opacity: 1; }
    .reveal-card:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.05); }
    
    .ind-pills-wrap { 
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: 10px 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
        padding-bottom: 16px;
        margin-bottom: 8px;
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }
    .ind-pills-wrap::-webkit-scrollbar { 
        display: none; 
    }
    
    .ind-pill { 
        width: auto;
        white-space: nowrap;
        padding: 10px 18px; 
        font-size: 13px; 
        min-height: auto;
        display: inline-block;
    }
    
    .ind-card { 
        padding: 24px; 
        min-height: 180px; 
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .ind-card-title { font-size: 18px; margin-bottom: 8px; }
    .ind-card-desc { font-size: 14px; line-height: 1.5; margin: 0; }
    
    .spec-row { flex-direction: column; gap: 12px; padding: 24px 0; }
    .spec-label { flex: auto; font-size: 18px; }
    
    .nt-footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
    .nt-f-map { grid-column: span 1; height: 250px; }
    .nt-footer { padding-top: 60px; }
    
    .case-card-complex { padding: 24px; }
    .ccc-title { font-size: 22px; }
    .f-pill { padding: 8px 16px; font-size: 13px; }
}

/* --- (от 365px до 400px) --- */
@media (max-width: 400px) {
    .hero-title { font-size: 28px; }
    .btn-premium-text { font-size: 0; }
    .btn-premium-text::after { content: "Связаться"; font-size: 11px; letter-spacing: 0.5px; }
    .pill-nav { width: 95%; padding: 8px 8px 8px 16px; gap: 8px; }
    .btn-premium { padding: 8px 12px; font-size: 11px; }
    
    .metrics-grid { gap: 12px; }
    .metric-val { font-size: 40px; }
    .m-plus { font-size: 24px; }

    /* БЛОК "О КОМПАНИИ" - МИНИ-ЭКРАНЫ */
    .cgc-text { padding: 20px 16px 8px 16px; }
    .glass-title { font-size: 22px; margin-bottom: 8px; }
    .glass-desc { font-size: 13px; line-height: 1.5; }
    
    .cgc-model { 
        height: 140px !important; 
        min-height: 140px !important; 
    }
    
    .model-scene, 
    .cinema-step[data-index="0"] .model-scene, 
    .cinema-step[data-index="2"] .model-scene { 
        transform: scale(0.4) !important; 
    }
    
    .case-card-complex { padding: 20px 16px; }
    .ccc-visual { height: 180px; }
    .ccc-client { font-size: 12px; }
    .ccc-title { font-size: 18px; }
    
    .l-cluster-card { padding: 16px; }
    .l-desc { font-size: 13px; }
    .l-card-footer { font-size: 12px; flex-wrap: wrap; margin-top: 16px; }
    .reveal-card { padding: 16px; }
    .ind-pill { padding: 6px 12px; font-size: 12px; }
    .ind-card { padding: 16px; }
    .nt-f-logo { font-size: 24px; }
    .nt-f-map { height: 200px; }
}

/* ==========================================
   ГЛОБАЛЬНОЕ УДАЛЕНИЕ ПУСТОТ (ВЫСОТЫ БЛОКОВ)
   ========================================== */

.section-padding,
.metrics,
.adv-reveal-section,
.compact-industries,
.compact-specs {
    padding: 50px 0 !important;
}

