:root {
--primary: #0a192f;      /* Глубокий синий (дорогой) */
    --primary-light: #112240;
    --accent: #facc15;       /* Солнечный желтый */
            --accent-hover: #eab308;
            --text-main: #334155;
            --text-light: #94a3b8;
            --bg-color: #f8fafc;
            --white: #ffffff;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body { 
            font-family: 'Inter', sans-serif; 
            color: var(--text-main);
            background-color: var(--bg-color);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* --- Header & Nav --- */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--primary);
            color: var(--white);
            padding: 1rem 5%;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            transition: var(--transition);
        }

        .navbar.scrolled {
            padding: 0.7rem 5%;
            box-shadow: var(--shadow-md);
            background: rgba(10, 25, 47, 0.95);
            backdrop-filter: blur(10px);
        }

        .logo { 
            font-size: 1.5rem; 
            font-weight: 800; 
            color: var(--white); 
            cursor: pointer; 
            display: flex; 
            align-items: center; 
            gap: 10px; 
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .logo i { color: var(--accent); font-size: 1.8rem;}

        .logo { align-items: baseline; } /* Додаємо для рівного вирівнювання */

        .logo-sub {
            font-size: 0.6em;
            color: var(--accent);
            text-transform: lowercase;
            font-weight: 500;
            margin-left: 5px;
            letter-spacing: 0.5px;
            opacity: 0.9;
        }

        .city-badge {
            font-size: 0.75rem;
            color: var(--text-light);
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            gap: 5px;
            justify-content: flex-end;
        }
        .city-badge i { color: var(--accent); }

        .nav-links { list-style: none; display: flex; gap: 2rem; }
        .nav-links a { 
            color: var(--white); 
            text-decoration: none; 
            font-weight: 500; 
            font-size: 0.95rem;
            transition: var(--transition); 
            cursor: pointer;
            position: relative;
        }
        
        .nav-links a::after {
            content: ''; position: absolute; width: 0; height: 2px;
            bottom: -5px; left: 0; background-color: var(--accent);
            transition: var(--transition);
        }
        .nav-links a:hover::after { width: 100%; }
        .nav-links a:hover { color: var(--accent); }

        .header-contacts { display: flex; flex-direction: column; text-align: right; }
        .header-contacts a {
            color: var(--white);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: var(--transition);
        }
        .header-contacts a:hover { color: var(--accent); }

        .menu-toggle { display: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

        /* --- Hero Section (Fade Slider) --- */
        .hero {
            position: relative;
            height: 100vh;
            width: 100%;
            background-color: var(--primary);
            overflow: hidden;
        }

        .hero-slide {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            display: flex;
            align-items: center;
            padding: 0 5%;
        }

        .hero-slide.active { opacity: 1; z-index: 2; }
        
        .hero-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(90deg, rgba(10,25,47,0.9) 0%, rgba(10,25,47,0.6) 50%, rgba(0,0,0,0.2) 100%);
            z-index: 1; pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 3;
            max-width: 800px;
            color: var(--white);
            margin-top: 80px;
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.8s ease forwards;
        }

        .hero-slide.active .hero-content {
            transform: translateY(0);
            opacity: 1;
            transition-delay: 0.3s;
        }

        .hero-tag {
            display: inline-block;
            background: rgba(250, 204, 21, 0.2);
            color: var(--accent);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 15px;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
        .hero-subtitle { font-size: 1.2rem; font-weight: 300; margin-bottom: 40px; color: #cbd5e1; max-width: 600px; }

        .btn {
            display: inline-block;
            padding: 15px 35px;
            border-radius: 8px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            transition: var(--transition);
            font-size: 1rem;
            border: none;
        }

        .btn-primary { background: var(--accent); color: var(--primary); box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4); }
        .btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(250, 204, 21, 0.6); }
        
        .btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); margin-left: 15px; }
        .btn-outline:hover { background: var(--white); color: var(--primary); }

        /* --- Sections General --- */
        section { padding: 100px 5%; }
        .section-header { text-align: center; margin-bottom: 60px; }
        .section-title { font-size: 2.5rem; color: var(--primary); font-weight: 800; margin-bottom: 15px; }
        .section-subtitle { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

        /* --- Services --- */
        .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
        
        .service-card { 
            background: var(--white); 
            border-radius: 16px; 
            overflow: hidden; 
            box-shadow: var(--shadow-sm); 
            transition: var(--transition); 
            border: 1px solid #e2e8f0;
            position: relative;
            z-index: 1;
        }
        .service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
        
        .service-img { width: 100%; height: 240px; object-fit: cover; border-bottom: 3px solid var(--accent); }
        .service-content { padding: 30px; }
        
        .service-icon {
            width: 50px; height: 50px; background: var(--primary); color: var(--accent);
            border-radius: 12px; display: flex; align-items: center; justify-content: center;
            font-size: 1.5rem; margin-top: -55px; margin-bottom: 20px; position: relative; z-index: 2;
            box-shadow: var(--shadow-md);
        }

        .service-card h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 15px; font-weight: 700; }
        .service-list { list-style: none; margin: 0; padding: 0; }
        .service-list li { margin-bottom: 10px; color: var(--text-main); display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem;}
        .service-list li i { color: var(--accent); margin-top: 4px; font-size: 0.8rem; }

        /* --- Gallery / Portfolio --- */
        .bg-light { background-color: var(--white); }
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }
        .gallery-item {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            aspect-ratio: 4/3;
            cursor: zoom-in;
        }
        .gallery-item img {
            width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
        }
        .gallery-item::after {
            content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
            opacity: 0; transition: var(--transition);
        }
        .gallery-item:hover img { transform: scale(1.05); }
        .gallery-item:hover::after { opacity: 1; }
        
        /* В галерее можно сделать некоторые блоки шире */
        @media (min-width: 768px) {
            .gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 2; aspect-ratio: 21/9; }
        }

        /* --- Floating Action Button --- */
        .fab-container { position: fixed; bottom: 30px; right: 30px; z-index: 900; }
        .fab-btn {
            background: var(--accent); color: var(--primary); border: none; cursor: pointer;
            font-weight: 700; font-size: 1rem; padding: 16px 28px; border-radius: 50px;
            box-shadow: 0 10px 25px rgba(250, 204, 21, 0.4); transition: var(--transition);
            display: flex; align-items: center; gap: 10px;
        }
        .fab-btn i { font-size: 1.2rem; }
        .fab-btn:hover { transform: translateY(-5px) scale(1.02); background: var(--accent-hover); }

        /* --- Footer --- */
        footer { background: var(--primary); color: #94a3b8; padding: 60px 5% 30px; }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
        .footer-col h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 20px; }
        .footer-col p { margin-bottom: 10px; display: flex; gap: 10px; align-items: center;}
        .footer-col i { color: var(--accent); width: 20px;}
        .social-links { display: flex; gap: 15px; margin-top: 20px; }
        .social-links a { 
            width: 40px; height: 40px; background: var(--primary-light); border-radius: 50%;
            display: flex; align-items: center; justify-content: center; color: var(--white);
            transition: var(--transition); text-decoration: none;
        }
        .social-links a:hover { background: var(--accent); color: var(--primary); transform: translateY(-3px);}
        .footer-bottom { border-top: 1px solid var(--primary-light); padding-top: 20px; text-align: center; font-size: 0.9rem; }

        /* --- Modal --- */
        .modal-overlay {
            position: fixed; inset: 0; background: rgba(10, 25, 47, 0.8); backdrop-filter: blur(5px);
            display: flex; justify-content: center; align-items: center;
            z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition);
        }
        .modal-overlay.active { opacity: 1; visibility: visible; }
        
        .modal-box {
            background: var(--white); padding: 40px; border-radius: 20px;
            max-width: 500px; width: 90%; position: relative;
            transform: translateY(20px) scale(0.95); opacity: 0; transition: var(--transition);
            box-shadow: var(--shadow-lg);
        }
        .modal-overlay.active .modal-box { transform: translateY(0) scale(1); opacity: 1; }
        
        .close-btn {
            position: absolute; top: 20px; right: 25px; background: none; border: none;
            font-size: 1.5rem; cursor: pointer; color: var(--text-light); transition: var(--transition);
        }
        .close-btn:hover { color: var(--primary); transform: rotate(90deg); }
        
        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--primary); }
        .form-control {
            width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: 8px;
            font-size: 1rem; font-family: inherit; transition: var(--transition);
            background: #f8fafc;
        }
        .form-control:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2); }
        .btn-submit { width: 100%; margin-top: 10px; }

        /* --- Responsive --- */
        @media (max-width: 992px) {
            .hero-title { font-size: 2.8rem; }
            .nav-links { display: none; }
            .menu-toggle { display: block; }
            /* Mobile menu active state */
            .nav-links.active {
                display: flex; flex-direction: column; position: absolute; top: 100%; left: 0;
                width: 100%; background: var(--primary); padding: 20px 5%; box-shadow: var(--shadow-md);
            }
            .header-contacts { display: none; }
        }

        @media (max-width: 768px) {
            .hero-title { font-size: 2.2rem; }
            .hero-content { margin-top: 0; text-align: center; }
            .hero-slide { justify-content: center; }
            .btn-outline { margin-left: 0; margin-top: 15px; display: block; }
            .btn { width: 100%; text-align: center; }
            .fab-btn span { display: none; }
            .fab-btn { padding: 18px; border-radius: 50%; }
            .fab-btn i { font-size: 1.5rem; margin: 0; }
            section { padding: 70px 5%; }
        }
        
        .hero-quick-contacts {
            margin-top: 35px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: fit-content;
        }

        .hero-city {
            color: #cbd5e1;
            font-size: 1.05rem;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
        }

        .hero-city i { color: var(--accent); }

        .hero-phone {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--white);
            font-size: 1.5rem;
            font-weight: 800;
            text-decoration: none;
            transition: var(--transition);
            background: rgba(10, 25, 47, 0.6);
            padding: 10px 20px;
            border-radius: 8px;
            border-left: 4px solid var(--accent);
            backdrop-filter: blur(5px);
        }

        .hero-phone i {
            color: var(--accent);
            animation: pulse 2s infinite;
        }
        
        .hero-phone:hover { 
            transform: translateX(5px); 
            background: rgba(10, 25, 47, 0.9); 
            color: var(--accent);
        }

        @media (max-width: 768px) {
            .hero-quick-contacts { margin: 25px auto 0; align-items: center; }
            .hero-phone { font-size: 1.25rem; padding: 10px 15px; }
        }

        .hero-phone-direct {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 30px;
            color: var(--white);
            font-size: 1.3rem;
            font-weight: 700;
            text-decoration: none;
            transition: var(--transition);
            width: fit-content;
        }
        .hero-phone-direct i {
            color: var(--accent);
            font-size: 1.5rem;
            animation: pulse 2s infinite;
        }
        .hero-phone-direct:hover { color: var(--accent); }

        /* Анімація щоб привернути увагу */
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        @media (max-width: 768px) {
            .hero-phone-direct { margin: 25px auto 0; font-size: 1.2rem; }
        }

        /* Lightbox Styles */
        .lightbox {
            display: none; /* Приховано за замовчуванням */
            position: fixed;
            z-index: 3000;
            inset: 0;
            background: rgba(10, 25, 47, 0.95);
            backdrop-filter: blur(5px);
            justify-content: center;
            align-items: center;
            cursor: zoom-out;
        }
        .lightbox img {
            max-width: 90%;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            animation: zoomIn 0.3s ease;
        }
        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: var(--white);
            font-size: 2rem;
            cursor: pointer;
        }
        @keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        

