/* ========== ПЕРЕМЕННЫЕ ========== */
:root { 
    --brand-red: #9c0404; 
    --bg: #030303; 
    --white: #FFFFFF;
    --grey: rgba(255, 255, 255, 0.4);
    --line: rgba(255, 255, 255, 0.1);
    --aura-base: rgba(156, 4, 4, 0.35);
    --glow: rgba(156, 4, 4, 0.7);
    --aura-strong: rgba(156, 4, 4, 0.9);
    --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--white); font-weight: 300; overflow-x: hidden; -webkit-tap-highlight-color: transparent !important; cursor: none; }
a { color: #fff !important; text-decoration: none !important; transition: 0.3s; cursor: pointer; pointer-events: auto; }

/* ========== КАСТОМНЫЙ КУРСОР ========== */
/* Удалены конфликтующие свойства left/top, добавлено ускорение GPU */
.custom-cursor { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-red); position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9999999; transition: width 0.2s, height 0.2s; box-shadow: 0 0 20px var(--glow), 0 0 40px var(--aura-base); opacity: 0; will-change: transform; transform: translate3d(-50%, -50%, 0); }
.custom-cursor.active { opacity: 1; }
.custom-cursor.hover { width: 40px; height: 40px; background: rgba(156, 4, 4, 0.1); border: 1px solid var(--brand-red); }

/* ========== АНИМАЦИИ ========== */
.fade-in-section, .stagger-item { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-luxe), transform 0.8s var(--ease-luxe); }
.fade-in-section.is-visible, .stagger-item.is-visible { opacity: 1; transform: translateY(0); }

@keyframes shimmer { to { background-position: 200% center; } }
@keyframes premium-pulse { 0% { box-shadow: 0 0 8px rgba(156, 4, 4, 0.3); border-color: rgba(156, 4, 4, 0.3); } 50% { box-shadow: 0 0 25px rgba(156, 4, 4, 0.7); border-color: rgba(156, 4, 4, 0.7); } 100% { box-shadow: 0 0 8px rgba(156, 4, 4, 0.3); border-color: rgba(156, 4, 4, 0.3); } }
@keyframes text-aura-hover { from { text-shadow: 0 0 10px var(--aura-base); } to { text-shadow: 0 0 20px var(--brand-red); color: #fff; } }

/* ========== НАВИГАЦИЯ ========== */
nav { position: fixed; top: 0; left: 0; width: 100%; padding: 25px 4%; display: flex; justify-content: space-between; align-items: center; z-index: 1000000; background: linear-gradient(to bottom, rgba(3,3,3,0.95) 0%, transparent 100%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateZ(0); }
.logo { font-size: 14px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; background: linear-gradient(90deg, #fff 0%, #fff 25%, var(--brand-red) 45%, var(--brand-red) 55%, #fff 75%, #fff 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 7s linear infinite; position: relative; z-index: 1000001; cursor: pointer; }

.nav-right { display: flex; align-items: center; gap: 35px; }
.nav-link { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; text-shadow: 0 0 10px var(--aura-base); cursor: pointer; }
.nav-link:hover { animation: text-aura-hover 0.5s forwards !important; }
.phone-link { padding: 10px 18px; border-radius: 2px; border: 1px solid rgba(156, 4, 4, 0.4); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; animation: premium-pulse 3s infinite ease-in-out; cursor: pointer; }
.phone-link:hover { background: var(--brand-red); box-shadow: 0 0 25px var(--aura-strong); }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1000001; }
.hamburger span { width: 30px; height: 2px; background: #fff; transition: 0.3s; }

/* ========== ГЛАВНЫЙ ЭКРАН ========== */
.hero { position: relative; height: 100vh; display: flex; align-items: flex-end; padding: 0 4% 80px 4%; overflow: hidden; background: #000; }
.video-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #000; transform: translateZ(0); }

/* Черный фон вместо чужой картинки */
.video-poster { position: absolute; inset: 0; background-color: #000; z-index: 1; }

.video-bg iframe { width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; opacity: 0; animation: videoFadeIn 1.5s ease forwards 1s; pointer-events: none; }
@keyframes videoFadeIn { to { opacity: 1; } }

.overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,3,3,0.95) 0%, transparent 50%), linear-gradient(90deg, rgba(3,3,3,0.7) 0%, transparent 60%); z-index: 3; }
.hero-content { position: relative; z-index: 10; max-width: 900px; }
.hero-content h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 0.9; margin-bottom: 20px; color: #fff; }
.hero-content h1 span { color: var(--brand-red); text-shadow: 0 0 20px var(--aura-base); }
.hero-content p { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.7); line-height: 1.6; max-width: 500px; font-weight: 300; }

/* ========== СЕКЦИИ ========== */
.section { padding: 120px 4%; border-top: 1px solid var(--line); position: relative; }
.label { font-size: 10px; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 60px; display: flex; align-items: center; gap: 20px; font-weight: 600; text-shadow: 0 0 10px var(--aura-base); }
.label::after { content: ''; height: 1px; flex-grow: 1; background: linear-gradient(to right, var(--line), transparent); }

.manifesto { padding: 100px 4%; display: grid; grid-template-columns: 1fr 1.5fr; gap: 10%; align-items: center; }
.manifesto-title { font-size: 10px; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.3em; font-weight: 600; text-shadow: 0 0 12px var(--aura-base); }
.manifesto-text { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.15; font-weight: 500; color: #fff; }
.manifesto-text span { color: var(--brand-red); text-shadow: 0 0 20px var(--aura-base); }
.manifesto-sub { margin-top: 30px; font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--grey); line-height: 1.8; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 80px; }
.stat-item { text-align: center; }
.stat-number { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 600; color: var(--brand-red); margin-bottom: 10px; text-shadow: 0 0 30px var(--aura-base); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--grey); }
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.client-logo { aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 600; color: rgba(255,255,255,0.3); transition: 0.4s; }
.client-logo:hover { border-color: var(--brand-red); color: var(--brand-red); box-shadow: 0 10px 40px rgba(156, 4, 4, 0.2); transform: translateY(-5px); }

/* ========== ПРОЕКТЫ ========== */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5vw; }
.case { position: relative; aspect-ratio: 16/9; background: #0a0a0a; overflow: hidden; border-radius: 2px; cursor: pointer; transition: 0.6s; transform: translateZ(0); }
.case:hover { transform: scale(1.02); z-index: 2; box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px var(--aura-base); }
.case img { width: 100%; height: 100%; object-fit: cover; transition: 1.2s; filter: grayscale(0.7) brightness(0.5); }
.case:hover img { filter: grayscale(0) brightness(1); transform: scale(1.08); }
.case-info { position: absolute; inset: 0; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 60%); opacity: 0; transition: 0.5s; }
.case:hover .case-info { opacity: 1; }
.case-info h3 { font-size: clamp(1.6rem, 2vw, 2.2rem); font-weight: 600; color: #fff; margin-bottom: 5px; }
.watch-case-btn { display: inline-block; margin-top: 15px; padding: 12px 25px; border: 1px solid var(--brand-red); border-radius: 2px; font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand-red) !important; width: max-content; transition: 0.3s; }
.watch-case-btn:hover { background: var(--brand-red); color: #fff !important; box-shadow: 0 0 20px var(--glow); }

.hidden-case { display: none; opacity: 0; transform: translateY(20px); transition: 0.5s; }
.hidden-case.show { display: block; opacity: 1; transform: translateY(0); }

/* ========== ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ ========== */
.horizontal-scroll { display: flex; gap: 30px; overflow-x: auto; padding-bottom: 30px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.horizontal-scroll::-webkit-scrollbar { display: none; }
.team-member { flex: 0 0 calc(33.333% - 20px); scroll-snap-align: start; border-top: 1px solid var(--line); padding-top: 30px; transition: 0.4s; }
.team-member:hover { transform: translateY(-5px); }
.team-member::before { content: ''; display: block; width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-red) 0%, rgba(156, 4, 4, 0.3) 100%); margin-bottom: 20px; box-shadow: 0 0 30px rgba(156, 4, 4, 0.3); }
.team-member h4 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; margin-bottom: 10px; color: #fff; }
.team-member p { font-size: 10px; text-transform: uppercase; color: var(--brand-red); letter-spacing: 0.15em; font-weight: 600; text-shadow: 0 0 10px var(--aura-base); }

.journal-card { flex: 0 0 calc(33.333% - 20px); scroll-snap-align: start; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; transition: 0.5s; background: rgba(255,255,255,0.01); cursor: pointer; }
.journal-card:hover { border-color: var(--brand-red); box-shadow: 0 0 30px var(--aura-base); transform: translateY(-8px); }
.j-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.j-img-wrap img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6); transition: 1s; }
.journal-card:hover .j-img-wrap img { filter: grayscale(0); transform: scale(1.05); }
.j-content { padding: 35px; display: flex; flex-direction: column; flex-grow: 1; }
.j-tag { font-size: 10px; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.15em; display: block; margin-bottom: 15px; font-weight: 600; text-shadow: 0 0 8px var(--aura-base);}
.j-title { font-size: 19px; font-weight: 500; line-height: 1.45; color: #fff; margin-bottom: 20px; }

/* ========== СТОИМОСТЬ ========== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.price-card { padding: 55px 45px; border: 1px solid var(--line); transition: 0.6s; border-radius: 2px; display: flex; flex-direction: column; background: rgba(255,255,255,0.005); }
.price-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.25); box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.price-card h3 { font-size: 10px; color: var(--brand-red); text-transform: uppercase; margin-bottom: 30px; letter-spacing: 0.2em; font-weight: 600; text-shadow: 0 0 10px var(--aura-base); }
.price-card .val { font-size: clamp(2rem, 2.8vw, 2.8rem); margin-bottom: 35px; font-weight: 500; color: #fff; }
.price-card ul { list-style: none; flex-grow: 1; margin-bottom: 30px; }
.price-card li { font-size: 13px; color: #ccc; margin-bottom: 18px; line-height: 1.6; border-bottom: 1px solid rgba(255,255,255,0.03); padding-bottom: 12px; }
.premium-pack { border-color: rgba(156, 4, 4, 0.4); box-shadow: 0 0 40px rgba(156, 4, 4, 0.15); transform: scale(1.02); }

.btn-minimal { display: inline-block; padding: 18px 0; width: 100%; text-align: center; border: 1px solid rgba(156, 4, 4, 0.3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; color: #fff !important; cursor: pointer; animation: premium-pulse 3s infinite ease-in-out; transition: 0.4s; background: transparent; border-radius: 2px;}
.btn-minimal:hover { background: var(--brand-red) !important; border-color: var(--brand-red) !important; box-shadow: 0 0 35px var(--aura-strong) !important; transform: translateY(-2px); }
.premium-btn { border-color: var(--brand-red) !important; }

/* ========== КОНТАКТЫ ========== */
.order-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10%; align-items: start; }
.order-info h2 { font-size: clamp(2.8rem, 4.5vw, 4.5rem); font-weight: 500; line-height: 1; margin-bottom: 50px; color: #fff; }
.order-info h2 span { color: var(--brand-red); text-shadow: 0 0 25px var(--aura-base); }
.c-item { margin-bottom: 30px; }
.c-item p { font-size: 10px; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 12px; font-weight: 600; text-shadow: 0 0 8px var(--aura-base); }
.c-link, .c-address { font-size: clamp(1.15rem, 2.2vw, 1.35rem); font-weight: 300; display: block; width: fit-content; transition: 0.4s !important; color: #fff !important; }
.c-link:hover { animation: text-aura-hover 0.5s forwards !important; transform: translateX(5px); }

.form-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line); color: #fff; padding: 28px 0; font-size: 16px; margin-bottom: 45px; outline: none; transition: 0.4s; font-family: inherit; }
.form-input:focus { border-bottom-color: var(--brand-red); box-shadow: 0 15px 15px -15px var(--aura-base); }

/* Политика по центру */
.form-legal { font-size: 11px; color: var(--grey); margin-top: 20px; line-height: 1.6; text-align: center; display: block; }
.form-legal-link { color: var(--brand-red); text-decoration: underline !important; text-underline-offset: 3px; cursor: pointer; pointer-events: auto;}

/* ========== МОДАЛКИ ========== */
.modal { position: fixed; inset: 0; background: rgba(3,3,3,0.98); z-index: 90000; display: none; padding: 140px 4% 80px; overflow-y: auto; backdrop-filter: blur(20px); }
.modal.active { display: block; animation: modalFadeIn 0.4s ease; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.close-case { position: fixed; top: 120px; right: 4%; font-size: 11px; letter-spacing: 0.2em; font-weight: 600; z-index: 100000; padding: 15px 25px; border: 1px solid var(--line); border-radius: 2px; background: rgba(0,0,0,0.5); color: #fff !important; transition: 0.3s; cursor: pointer; text-transform: uppercase; }
.close-case:hover { border-color: var(--brand-red); box-shadow: 0 0 30px var(--aura-base); }

.m-hero { max-width: 1200px; margin: 0 auto 30px; }
.m-hero-tag { font-size: 10px; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.3em; font-weight: 600; display: block; margin-bottom: 10px; text-shadow: 0 0 10px var(--aura-base); }
.m-hero-title { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 600; color: #fff; line-height: 1.1; letter-spacing: -0.02em;}

.m-video-container { width: 100%; height: 80vh; background: #000; margin: 0 auto 80px; max-width: 1200px; border-radius: 2px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 60px rgba(156, 4, 4, 0.4); }
.m-video-container iframe { width: 100%; height: 100%; border: none; }

.m-case-body { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; max-width: 1200px; margin: 0 auto 60px; }
.m-stat { margin-bottom: 25px; }
.m-stat h4 { font-size: 10px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 8px; font-weight: 600;}
.m-stat p { font-size: 16px; color: #fff; }

.m-content-text h2 { font-size: 24px; color: var(--brand-red); margin-bottom: 20px; font-weight: 500; text-shadow: 0 0 10px var(--aura-base);}
.m-content-text p { font-size: 18px; line-height: 1.8; color: #ccc; margin-bottom: 40px; font-weight: 300; }

.project-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 50px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 1200px; margin: 0 auto 60px; }
.metric-item { text-align: center; }
.metric-value { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 600; color: var(--brand-red); text-shadow: 0 0 15px var(--aura-base); margin-bottom: 10px;}
.metric-label { font-size: 10px; text-transform: uppercase; color: var(--grey); letter-spacing: 0.15em; }

.m-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2vw; max-width: 1200px; margin: 0 auto 80px; }
.m-gallery img { width: 100%; border-radius: 2px; }
.gallery-full { grid-column: 1 / -1; }

.m-cta-wrap { text-align: center; padding: 60px 0; max-width: 1200px; margin: 0 auto; }
.m-cta-wrap h2 { font-size: 32px; font-weight: 400; margin-bottom: 40px; color: #fff; }

/* ТОСТ (Уведомление об отправке) */
.toast { position: fixed; bottom: 40px; right: 40px; padding: 20px 30px; background: rgba(3,3,3,0.95); backdrop-filter: blur(10px); border: 1px solid var(--brand-red); border-radius: 2px; font-size: 12px; z-index: 500000; opacity: 0; transform: translateY(20px); transition: 0.4s; box-shadow: 0 0 30px var(--aura-base); color: #fff; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.toast.show { opacity: 1; transform: translateY(0); }

/* === 404 И PRIVACY === */
.page-shell { min-height: 100vh; padding: 140px 4% 80px; max-width: 900px; margin: 0 auto; position: relative; z-index: 10; }
.page-meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand-red); margin-bottom: 20px; text-shadow: 0 0 10px var(--aura-base); }
.page-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 30px; color: #fff; }
.page-text { font-size: 1rem; line-height: 1.7; color: var(--grey); max-width: 600px; margin-bottom: 40px; }
.page-shell h2 { font-size: 1.1rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brand-red); margin: 50px 0 15px; font-weight: 500; }
.page-shell ul { margin: 10px 0 30px 20px; color: var(--grey); line-height: 1.7; font-size: 0.95rem; font-weight: 300; }
.page-shell li { margin-bottom: 8px; }

/* ========== АДАПТИВ (МОБИЛКА) ========== */
@media (max-width: 900px) { 
    nav { padding: 20px 6%; }
    .nav-right { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: rgba(3,3,3,0.98); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; gap: 40px; transition: 0.4s ease; z-index: 9001; }
    .nav-right.active { right: 0; }
    .nav-link { font-size: 16px; color: #fff; }
    .hamburger { display: flex; z-index: 9002;}
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    
    .hero { padding: 0 6% 80px 6%; }
    .manifesto, .section { padding: 100px 6%; }
    .manifesto { grid-template-columns: 1fr; gap: 30px; }
    .grid, .pricing-grid, .order-wrap, .m-case-body { grid-template-columns: 1fr; gap: 40px; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    
    .team-member, .journal-card { flex: 0 0 85vw; } 
    .m-video-container { height: 40vh; margin-bottom: 40px; }
    .project-metrics { grid-template-columns: 1fr; gap: 30px; padding: 30px 0; }
    .close-case { top: 90px; right: 4%; }
    .modal { padding: 100px 4% 60px; }
    .m-gallery { grid-template-columns: 1fr; gap: 20px; }
    
    body { cursor: auto; } .custom-cursor { display: none; }
    a, .case, .btn-minimal, .close-case { cursor: pointer; pointer-events: auto; }
}
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; gap: 30px; } }
