:root { 
    --primary: #004aad; --text: #1a1e26; --bg: #ffffff; --bg-alt: #f8f9fa; 
    --border: #e0e0e0; --gray-solid: #6c757d; --white: #ffffff;
}
[data-theme="dark"] { --bg: #0d0d0f; --bg-alt: #161618; --text: #f0f0f2; --border: #252525; }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

.navbar { position: fixed; top: 0; width: 100%; height: 90px; background: var(--bg); border-bottom: 1px solid var(--border); z-index: 2000; }
.navbar-content { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo-box { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 85px; width: auto; transition: 0.3s}
[data-theme="dark"] .logo-img, [data-theme="dark"] .footer-logo-img { filter: invert(0) brightness(1); }
[data-theme="light"] .logo-img, [data-theme="light"] .footer-logo-img { filter: invert(1) brightness(1); }
.logo-text { font-family: 'Montserrat'; font-weight: 800; font-size: 1.6rem; color: var(--primary); }
.logo-text span { color: var(--text); }

.nav-container { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; transition: 0.3s; }

.header-actions { display: flex; align-items: center; gap: 15px; z-index: 3001; }
.lang-switcher { background: transparent; border: 1px solid var(--border); color: var(--text); padding: 5px 8px; border-radius: 6px; cursor: pointer; font-family: inherit; font-weight: 600; }
.theme-btn-minimal { background: none; border: none; color: var(--text); cursor: pointer; display: flex; padding: 5px; }

.burger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.burger span { width: 28px; height: 3px; background: var(--text); border-radius: 2px; transition: 0.4s; }

.hero { position: relative; height: 60vh; min-height: 450px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: 85px; }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background: #000; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; filter: brightness(0.7); }
.hero-overlay-dark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%); z-index: -1; }
.hero-content { text-align: center; color: #fff; padding: 0 20px; z-index: 10; }
.hero-content h1 { font-family: 'Montserrat'; font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 800; text-shadow: 2px 4px 10px rgba(0,0,0,0.8); line-height: 1.1; }
.hero-btn { display: inline-block; padding: 16px 40px; background: var(--primary); color: #fff; text-decoration: none; border-radius: 50px; font-weight: 700; margin-top: 25px; transition: 0.3s; }

.section { padding: 90px 0; }
.bg-alt { background: var(--bg-alt); }
.section-title { font-family: 'Montserrat'; font-size: 2.2rem; margin-bottom: 45px; }
.centered { text-align: center; }

.about-flex { display: flex; align-items: center; gap: 60px; }
.about-text-block { flex: 1.2; }
.about-image-side { flex: 0.8; height: 400px; border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.about-image-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-grid-simple { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }

.service-row { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
.service-row.reverse { flex-direction: row-reverse; }
.service-text, .service-img { flex: 1; }
.service-img { height: 380px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-text h3 { font-family: 'Montserrat'; font-size: 1.8rem; color: var(--primary); margin-bottom: 15px; }

.portfolio-grid-large { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.portfolio-card { height: 320px; border-radius: 15px; overflow: hidden; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0); transition: 0.5s; }
.portfolio-card:hover img { filter: grayscale(0); transform: scale(1.05); }

.footer { padding: 70px 0 30px; border-top: 1px solid var(--border); }
.footer-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; }
.footer-contacts { text-align: right; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 25px; text-align: center; opacity: 0.7; font-size: 0.9rem; }

.btn-up { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--gray-solid); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 1000; font-size: 1.2rem; }

@media (max-width: 992px) {
    .logo-img { height: 85px; }
    .logo-text { font-size: 1.2rem; }
    .header-actions { gap: 8px; }
    .burger { display: flex; }
    .nav-container {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--bg); z-index: 2500; transition: 0.5s ease;
        flex-direction: column; justify-content: center; align-items: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-container.active { right: 0; }
    .nav-links { flex-direction: column; gap: 35px; }
    .nav-links a { font-size: 1.2rem; }
    
    .about-flex, .service-row, .service-row.reverse, .footer-main { flex-direction: column; text-align: center; gap: 35px; }
    .about-image-side, .service-img { width: 100%; height: 300px; }
    .footer-contacts { text-align: center; }
    .portfolio-grid-large { grid-template-columns: 1fr; }
    
    .burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}