/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #0b0c10;       
    --bg-dark-accent: #111216;
    --text-main: #c5c6c7;
    --text-bright: #ffffff;
    --text-muted: #9aa0a6;
    --accent-gold: #d4af37;
    --card-bg: #161b22; 
    --glass-border: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

/* =========================================
   2. DYNAMIC BACKGROUND
   ========================================= */
.ambient-light {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(125deg, #0b0c10 0%, #161b22 35%, #1a1f26 50%, #161b22 65%, #0b0c10 100%);
    background-size: 300% 300%;
    z-index: -2;
    animation: metallicShine 15s ease infinite;
}

.scanline {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.015), transparent);
    background-size: 100% 3px;
    z-index: -1;
    pointer-events: none;
}

@keyframes metallicShine { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 15px 0;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.brand-horizontal { display: flex; align-items: center; gap: 12px; cursor: pointer; transition: 0.3s; }
.brand-horizontal:hover { opacity: 0.8; }
.nav-logo-icon { height: 40px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: 'Montserrat', sans-serif; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; color: #fff; }
.brand-sub { font-size: 0.65rem; letter-spacing: 2px; color: var(--accent-gold); text-transform: uppercase; }

nav { display: flex; align-items: center; }
nav a { color: var(--text-muted); font-size: 0.9rem; margin-left: 20px; transition: color 0.3s; font-weight: 500; }
nav a:hover, nav a.active { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.2); }

.contact-btn { border: 1px solid var(--accent-gold); padding: 6px 16px; border-radius: 2px; color: var(--accent-gold) !important; }
.contact-btn:hover { background: var(--accent-gold); color: #000 !important; box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); }

.lang-switcher { display: inline-flex; gap: 8px; margin-left: 25px; font-family: 'Inter', sans-serif; font-size: 0.8rem; align-items: center; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 15px; }
.lang-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0; transition: color 0.3s; font-weight: 600; font-size: 0.8rem; }
.lang-btn:hover, .lang-btn.active { color: var(--accent-gold); }
.lang-divider { color: #333; font-size: 0.8rem; }

/* =========================================
   4. HERO & BUTTONS
   ========================================= */
.hero { min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px 20px 60px 20px; position: relative; }
.hero-logo-container { position: relative; margin-bottom: 2.5rem; display: inline-block; opacity: 0; animation: popIn 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 0.2s; }
.hero-logo-img { width: 170px; border-radius: 12px; position: relative; z-index: 2; filter: drop-shadow(0 0 30px rgba(255,255,255,0.05)); }
.light-flash { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(212,175,55,0.8) 40%, transparent 100%); box-shadow: 0 0 80px 40px rgba(255,255,255,0.3); transform: translate(-50%, -50%) scale(0); border-radius: 50%; animation: flashEffect 1.8s ease-out forwards; z-index: 1; }
.glow-text { font-family: 'Montserrat', sans-serif; font-size: 3.5rem; font-weight: 300; line-height: 1.1; color: transparent; background: linear-gradient(135deg, #ffffff 20%, #a0aec0 80%); -webkit-background-clip: text; background-clip: text; margin-bottom: 1.5rem; text-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 3rem auto; font-weight: 300; }
.buttons-container { display: flex; gap: 20px; justify-content: center; }
.btn { padding: 14px 40px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 600; border-radius: 2px; transition: 0.3s; position: relative; overflow: hidden; cursor: pointer; display: inline-block; text-align: center; border: none; text-decoration: none; }
.btn-primary { background: linear-gradient(180deg, #1f232b, #14161b); color: #fff; border: 1px solid #333; }
.shimmer-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transition: 0.5s; transform: skewX(-20deg); }
.shimmer-btn:hover::before { left: 200%; transition: 0.7s; }
.shimmer-btn:hover { border-color: var(--accent-gold); box-shadow: 0 0 20px rgba(212, 175, 55, 0.15); transform: translateY(-2px); }
.btn-book { background: var(--accent-gold); color: #0b0c10; border: 1px solid var(--accent-gold); font-weight: 700; text-decoration: none; display: inline-block; padding: 12px 30px; border-radius: 4px; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.btn-book:hover { background: #e5bd45; box-shadow: 0 0 30px rgba(212, 175, 55, 0.4); transform: translateY(-2px); color: #000; }

/* =========================================
   5. CARDS (GLOBAL)
   ========================================= */
.glass-panel, .workflow-step, .project-card, .research-card, .executive-card, .blog-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-panel:hover, .glass-panel:active, .workflow-step:hover, .project-card:hover, .research-card:hover, .executive-card:hover, .blog-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.15);
    transform: translateY(-5px);
}

.section-title { text-align: center; font-family: 'Montserrat', sans-serif; font-size: 2rem; color: #fff; margin-bottom: 20px; letter-spacing: 1px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1rem; margin-bottom: 60px; }
.info-section { padding: 80px 20px; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.glass-panel h3 { color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 400; margin-top: 0; font-size: 1.4rem; }
.glass-panel p { color: var(--text-muted); font-size: 0.95rem; }

.workflow-section { padding: 100px 20px; background: rgba(0,0,0,0.2); border-top: 1px solid var(--glass-border); }
.workflow-container { display: flex; justify-content: center; align-items: flex-start; max-width: 1200px; margin: 0 auto; gap: 20px; flex-wrap: wrap; }
.workflow-step { flex: 1; min-width: 250px; padding: 30px; }
.step-number { font-family: 'JetBrains Mono', monospace; font-size: 3rem; color: rgba(255,255,255,0.05); font-weight: 700; position: absolute; top: 10px; right: 20px; transition: 0.3s; }
.workflow-step:hover .step-number { color: rgba(212, 175, 55, 0.15); }
.step-arrow { font-size: 2rem; color: var(--glass-border); padding-top: 40px; font-weight: 300; }

/* =========================================
   6. PROJECTS & RESEARCH
   ========================================= */
.page-header { padding-top: 140px; padding-bottom: 60px; text-align: center; max-width: 800px; margin: 0 auto; }
.page-header h1 { font-family: 'Montserrat', sans-serif; font-size: 3rem; color: #fff; margin: 0 0 15px 0; text-shadow: 0 0 30px rgba(255,255,255,0.1); }
.projects-wrapper, .research-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px 100px 20px; display: flex; flex-direction: column; gap: 80px; }
.project-card { display: flex; align-items: flex-start; gap: 60px; }
.reverse-layout { flex-direction: row-reverse; }
.project-image-col, .project-text-col { flex: 1; }
.img-frame { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--glass-border); background: #000; }
.img-frame img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; opacity: 0.9; }
.img-frame:hover img { transform: scale(1.03); opacity: 1; }
.overlay-tag { position: absolute; top: 20px; left: 20px; background: rgba(20, 22, 27, 0.9); color: var(--accent-gold); padding: 5px 12px; font-size: 0.75rem; text-transform: uppercase; border: 1px solid var(--accent-gold); z-index: 5; }
.project-text-col h2, .research-text h2 { font-family: 'Montserrat', sans-serif; font-size: 2rem; color: #fff; margin-top: 0; margin-bottom: 15px; }
.tech-stack span, .tags span { font-size: 0.8rem; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 4px 10px; margin-right: 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.tech-stack span:hover, .tags span:hover { border-color: var(--accent-gold); color: #fff; }
.case-item { background: rgba(255,255,255,0.02); border-left: 2px solid #333; padding: 20px; margin-bottom: 20px; transition: 0.3s; }
.case-item:hover, .case-item:active { background: rgba(212, 175, 55, 0.03); border-left-color: var(--accent-gold); box-shadow: 0 5px 15px rgba(0,0,0,0.3); transform: translateX(5px); }
.highlight-item { border-left-color: var(--accent-gold); background: linear-gradient(90deg, rgba(212, 175, 55, 0.05), transparent); }
.research-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.journal-badge { background: var(--accent-gold); color: #000; font-weight: 700; font-size: 0.75rem; padding: 4px 12px; border-radius: 2px; text-transform: uppercase; }
.doi-link { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); word-break: break-all; }
.research-content { display: flex; gap: 40px; }
.research-text { flex: 1.2; }
.research-visual { flex: 0.8; display: flex; flex-direction: column; gap: 10px; }
.research-visual img { width: 100%; border-radius: 4px; border: 1px solid #333; }
.caption { font-size: 0.7rem; color: #666; text-align: center; }
.abstract-box { background: rgba(255,255,255,0.03); padding: 20px; border-left: 2px solid var(--text-muted); margin-bottom: 20px; transition: 0.3s; }
.abstract-box:hover { border-left-color: var(--accent-gold); background: rgba(255,255,255,0.05); }

/* =========================================
   8. CONTACT PAGE
   ========================================= */
.contact-section { min-height: 80vh; display: flex; justify-content: center; align-items: center; padding: 100px 20px; }
.executive-card { max-width: 900px; width: 100%; display: flex; gap: 50px; }
.card-visual { flex: 0 0 280px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--glass-border); padding-right: 40px; }
.img-container { width: 220px; height: 220px; position: relative; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent-gold); }
.img-container img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: opacity 0.5s; }
.primary-img { opacity: 1; } .hover-img { opacity: 0; }
.img-container:hover .hover-img, .img-container:active .hover-img { opacity: 1; } .img-container:hover .primary-img, .img-container:active .primary-img { opacity: 0; }
.card-details { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-list { display: flex; flex-direction: column; gap: 30px; margin-bottom: 30px; }
.contact-item { display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.3s; }
.contact-item:hover { transform: translateX(5px); }
.icon-box { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--accent-gold); font-size: 1rem; transition: 0.3s; flex-shrink: 0; }
.contact-item:hover .icon-box { background: var(--accent-gold); color: #000; border-color: var(--accent-gold); }
.card-footer { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.wide-map-container { width: 100%; height: 350px; border: 1px solid var(--accent-gold); border-radius: 6px; overflow: hidden; filter: grayscale(100%) invert(90%) contrast(120%); box-shadow: 0 15px 40px rgba(0,0,0,0.6); }

/* =========================================
   9. LOGO MARQUEE
   ========================================= */
.tech-marquee-section { padding: 60px 0; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.05); overflow: hidden; }
.marquee-container { display: flex; flex-direction: column; gap: 30px; width: 100%; }
.marquee-track { display: flex; gap: 60px; width: max-content; }
.marquee-reverse { animation: scrollLeft 40s linear infinite; }
.marquee-normal { animation: scrollRight 40s linear infinite; }
.tech-logo-item { height: 45px; width: auto; filter: none; opacity: 0.8; transition: 0.3s; min-width: 50px; }
.tech-logo-item:hover { transform: scale(1.1); opacity: 1; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* =========================================
   10. FOOTER & LINKEDIN
   ========================================= */
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-socials { display: flex; gap: 20px; margin-top: 10px; }
.social-icon img { width: 48px !important; height: 48px !important; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.social-icon:hover img { filter: none; opacity: 1; transform: scale(1.1); }
.footer-links { margin-top: 10px; display: flex; gap: 20px; font-size: 0.75rem; }
.footer-links a { color: var(--text-muted); transition: 0.3s; text-decoration: none; }
.footer-links a:hover { color: var(--accent-gold); }

/* =========================================
   11. COOKIE BANNER (LEFT SIDE)
   ========================================= */
/* Закрепляем слева внизу */
.cookie-banner { 
    position: fixed; 
    bottom: 30px; 
    left: 30px; /* СЛЕВА */
    max-width: 350px; 
    background: rgba(22, 27, 34, 0.98); 
    border: 1px solid var(--accent-gold); 
    border-radius: 8px; 
    padding: 25px; 
    z-index: 10000; 
    display: none; 
    animation: slideInUp 0.6s ease forwards; 
}
.btn-accept { background: var(--accent-gold); color: #000; border: none; padding: 8px 20px; border-radius: 2px; font-weight: 700; font-size: 0.8rem; cursor: pointer; flex: 1; transition: 0.3s; }
.btn-decline { background: transparent; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.2); padding: 8px 20px; border-radius: 2px; font-weight: 500; font-size: 0.8rem; cursor: pointer; flex: 1; transition: 0.3s; }

/* =========================================
   13. INSIGHTS / BLOG STYLES
   ========================================= */
.blog-card { padding: 0 !important; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--glass-border); overflow: hidden; }
.blog-img-container { width: 100%; height: 200px; overflow: hidden; border-bottom: 1px solid var(--glass-border); position: relative; }
.blog-img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-img-container img { transform: scale(1.1); }
.blog-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-category { font-family: 'JetBrains Mono'; font-size: 0.7rem; color: var(--accent-gold); margin-bottom: 10px; text-transform: uppercase; }
.blog-title { font-family: 'Montserrat'; font-size: 1.2rem; color: #fff; margin-bottom: 15px; line-height: 1.3; }
.blog-excerpt { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 25px; flex-grow: 1; }
.blog-link { font-size: 0.85rem; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-top: auto; }
.blog-link i { color: #0077b5; }
.lead-magnet-section { padding: 80px 20px; background: rgba(255,255,255,0.02); text-align: center; border-top: 1px solid var(--glass-border); }
.magnet-container { max-width: 800px; margin: 0 auto; background: var(--card-bg); border: 1px solid var(--accent-gold); padding: 50px; border-radius: 8px; }
.magnet-tag { font-family: 'JetBrains Mono'; color: var(--accent-gold); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 15px; display: block; }
.magnet-form { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.email-input { flex: 1; min-width: 250px; padding: 15px 20px; background: #0b0c10; border: 1px solid #333; color: #fff; border-radius: 4px; font-family: 'Inter'; }

/* =========================================
   14. FIXED FLOATING BUTTON (DESKTOP & MOBILE)
   ========================================= */
.floating-report-btn {
    position: fixed;
    bottom: 30px;
    right: 30px; /* СПРАВА ВНИЗУ */
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: 1.2rem;
    box-shadow: 0 0 0 rgba(212, 175, 55, 0.4);
    animation: pulseGold 2s infinite, fadeInMove 1s forwards 1.5s;
    opacity: 0;
    transition: 0.3s;
}

.floating-report-btn:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-5px);
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
}

/* Текст внутри кнопки (появляется при наведении или на мобильном скрыт) */
.floating-text {
    display: none;
    font-family: 'JetBrains Mono';
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 10px;
    white-space: nowrap;
}

.floating-report-btn:hover .floating-text {
    display: block;
}

@keyframes pulseGold { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }

/* =========================================
   12. MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {
    .nav-container { flex-direction: column; gap: 15px; padding: 15px; }
    nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; width: 100%; }
    nav a { margin: 0; font-size: 0.95rem; padding: 5px; }
    .lang-switcher { margin-left: 0; width: 100%; justify-content: center; margin-top: 10px; border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }
    
    .project-card, .research-card, .executive-card { flex-direction: column; gap: 30px; padding: 25px !important; margin-bottom: 20px; }
    .reverse-layout { flex-direction: column; }
    .research-content { flex-direction: column-reverse; }
    .card-visual { border-right: none; border-bottom: 1px solid var(--glass-border); padding-right: 0; padding-bottom: 25px; width: 100%; justify-content: center; display: flex; flex-direction: column; gap: 20px; }
    .map-container { width: 100% !important; margin-top: 20px; }
    .card-footer { flex-direction: column; gap: 20px; align-items: center; text-align: center; }
    .btn, .btn-book, .email-input { width: 100%; }
    .step-arrow { display: none; }
    .tech-logo-item { height: 30px; }
    .glow-text { font-size: 2.2rem; }
    
    /* Мобильный Cookie Banner - на всю ширину внизу */
    .cookie-banner { bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; border-radius: 12px 12px 0 0; border-bottom: none; }
    
    /* Плавающая кнопка чуть выше на мобильном, чтобы не перекрывалась */
    .floating-report-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}

.fade-in { opacity: 0; animation: fadeInMove 1s forwards; }
.fade-in-down { opacity: 0; animation: fadeInDown 0.8s forwards; }
@keyframes fadeInMove { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes flashEffect { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; } 50% { opacity: 0.4; } 100% { transform: translate(-50%, -50%) scale(25); opacity: 0; } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
