/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #000; font-family: 'Inter', sans-serif; color: white; overflow-x: hidden; width: 100%; }
a { text-decoration: none; color: inherit; }

/* --- HERO --- */
.hero { position: relative; height: 100vh; overflow: hidden; display: flex; justify-content: center; align-items: center; text-align: center; }
.parallax-bg { position: absolute; top: 0; left: 0; width: 100%; height: 120%; z-index: -2; will-change: transform; }
#bg-video { width: 100%; height: 100%; object-fit: cover; }
.overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    /* rgba(0,0,0, 0.5) — здесь 0.5 это плотность черного. Сделай меньше для яркости */
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%),
                linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
    z-index: -1; 
}

.content h1 { font-size: clamp(2.2rem, 10vw, 5rem); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; font-weight: 700; text-shadow: 0 0 30px rgba(0,0,0,0.8); }
.occupation { font-size: 1.2rem; letter-spacing: 0.6em; font-weight: 300; text-transform: uppercase; margin-bottom: 30px; color: #fff; }
.subtitle { font-size: 1rem; color: #ddd; margin-bottom: 40px; letter-spacing: 1px; }

.btn { padding: 15px 35px; font-weight: 700; border: 1px solid white; display: inline-block; font-size: 0.8rem; letter-spacing: 2px; transition: 0.4s; }
.btn-primary { background: white; color: black; }
.btn-outline { background: transparent; color: white; margin-left: 10px; }
.btn:hover { transform: translateY(-5px); background: #eee; color: #000; }

/* --- ABOUT SECTION --- */
.about-section { background-color: #000; width: 100%; }
.about-row { display: grid; grid-template-columns: 350px 1fr; width: 100%; padding: 100px 8%; gap: 60px; }
.border-top { border-top: 1px solid #1a1a1a; }
.border-bottom { border-bottom: 1px solid #1a1a1a; }

.about-label { font-size: 1rem; letter-spacing: 6px; color: #fff; font-weight: 700; display: flex; flex-direction: column; gap: 10px; }
.about-label span { color: #333; font-size: 2.5rem; }

.about-content h2 { font-size: clamp(1.8rem, 5vw, 3.5rem); margin-bottom: 25px; font-weight: 400; }
.about-content p { font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.8; color: #888; max-width: 850px; }

.software-wrapper { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.software-grid { display: flex; gap: 40px; justify-content: flex-end; padding-top: 20px; }
.software-item { display: flex; flex-direction: column; align-items: center; gap: 15px; width: 110px; flex-shrink: 0; }
.software-item img { width: 80px; height: 80px; object-fit: contain; filter: grayscale(100%); opacity: 0.5; transition: 0.5s; }
.software-item span { font-size: 0.7rem; letter-spacing: 1px; color: #555; text-transform: uppercase; text-align: center; }
.software-item:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

/* --- ПОРТФОЛИО --- */
.portfolio-section { padding: 100px 5%; background: #000; }
.section-title { text-align: center; font-size: 2rem; letter-spacing: 15px; margin-bottom: 80px; text-transform: uppercase; font-weight: 300; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 20px; max-width: 1400px; margin: 0 auto; }

.portfolio-item { position: relative; background: #0a0a0a; overflow: hidden; border: 1px solid #111; cursor: pointer; }
.portfolio-item.vertical { grid-row: span 2; }

.preview-video { 
    width: 100%; height: 100%; object-fit: cover; 
    opacity: 0.6; filter: grayscale(100%); 
    transition: 0.8s ease; 
}
.portfolio-item:hover .preview-video, 
.portfolio-item.mobile-active .preview-video { 
    opacity: 1; filter: grayscale(0%); 
}

.item-info { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    padding: 30px 20px 20px; 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    pointer-events: none;
}
.item-info h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-bottom: 5px; }
.item-info p { font-size: 0.65rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }

/* --- ЛОКАЦИЯ (АКЦЕНТ НА АЛЬМЕТЬЕВСК) --- */
.location-notice { 
    margin: 120px auto 40px; 
    text-align: center; 
    border-top: 1px solid #111; 
    padding: 60px 20px; 
    max-width: 1000px;
}
.location-notice p { 
    font-size: 1rem; 
    color: #444; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    line-height: 2;
}
.city-highlight { 
    display: inline-block;
    color: #fff; 
    font-weight: 700; 
    letter-spacing: 10px;
    margin-top: 15px; 
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* --- ФУТЕР --- */
.site-footer { padding: 80px 20px; border-top: 1px solid #111; text-align: center; background: #000; }
.f-link { display: block; margin-bottom: 10px; opacity: 0.6; font-size: 1rem; padding: 5px; }

.footer-copy { 
    margin-top: 60px;
    font-size: 0.55rem; 
    color: #0f0f0f; 
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: 0.3s;
}
.footer-copy:hover { color: #222; }

/* --- МОДАЛКИ --- */
.modal { 
    display: none; position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.98); z-index: 9999; 
    justify-content: center; align-items: center; 
}
.modal-content { width: 95%; max-width: 1100px; aspect-ratio: 16/9; position: relative; }
.close-modal { position: absolute; top: -50px; right: 0; font-size: 40px; color: #fff; cursor: pointer; }

.contact-box { 
    background: #000; padding: 60px 40px; 
    border: 1px solid #222; text-align: center; 
    width: 90%; max-width: 450px; 
    position: relative; 
    display: flex; flex-direction: column; align-items: center;
}
.close-contacts { position: absolute; top: 20px; right: 20px; font-size: 30px; color: #444; cursor: pointer; }
.contact-links { width: 100%; margin-top: 10px; }
.contact-item { display: block; margin-bottom: 25px; }
.contact-item span { display: block; font-size: 0.7rem; color: #555; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 2px; }
.contact-item strong { font-size: 1.2rem; color: #fff; font-weight: 400; }

/* --- АДАПТАЦИЯ --- */
@media (max-width: 1024px) {
    .about-row { grid-template-columns: 1fr; padding: 60px 8%; gap: 30px; }
    .software-wrapper { flex-direction: column; }
    .software-grid { justify-content: center; width: 100%; gap: 20px; }
}

@media (max-width: 600px) {
    .content h1 { font-size: 2.5rem; }
    .occupation { font-size: 0.9rem; }
    .btn { padding: 12px 20px; font-size: 0.7rem; width: 140px; margin: 5px; }
    
    .software-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .software-item img { width: 50px; height: 50px; filter: grayscale(0%); opacity: 1; }
    
    .portfolio-grid { display: flex; flex-direction: column; }
    .portfolio-item { height: 280px; }
    .portfolio-item.vertical { height: 500px; }
    
    /* Исправленная локация на мобилках */
    .location-notice { margin-top: 60px; padding: 40px 15px; }
    .location-notice p { 
        font-size: 0.85rem; 
        letter-spacing: 2px; 
        line-height: 2; 
        display: flex; 
        flex-direction: column; 
    }
    .city-highlight { 
        font-size: 1.3rem; 
        letter-spacing: 4px; 
        margin-top: 10px; 
    }
}