/* Основні змінні */
:root {
    --dark-blue: #1a2a3a;
    --accent-orange: #f39c12;
    --light-grey: #f4f7f6;
    --text-color: #333;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6; 
    color: var(--text-color); 
    padding-top: 60px; /* Відступ для фіксованого меню */
}

/* Навігація */
nav {
    background: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { 
    font-weight: bold; 
    font-size: 1.5rem; 
    color: var(--dark-blue); 
}

.nav-links { 
    display: flex; 
    list-style: none; 
}

.nav-links li { 
    margin-left: 20px; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-color); 
    font-weight: 500; 
    transition: 0.3s; 
}

.nav-links a:hover { 
    color: var(--accent-orange); 
}

/* Hero блок */
.hero {
    height: calc(100vh - 60px);
    background: linear-gradient(rgba(26, 42, 58, 0.7), rgba(26, 42, 58, 0.7)), 
                url('/image/Gemini_Generated_Image_qmxg57qmxg57qmxg.webp') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
    text-transform: uppercase; 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
    max-width: 800px; 
}

/* Кнопки */
.btn {
    background: var(--accent-orange);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.btn:hover { 
    background: #e67e22; 
    transform: translateY(-2px); 
}

/* Блок послуг */
.services { 
    padding: 80px 5%; 
    background: var(--light-grey); 
    text-align: center; 
}

.section-title { 
    margin-bottom: 40px; 
    font-size: 2.5rem; 
    color: var(--dark-blue); 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.service-card:hover { 
    transform: translateY(-10px); 
}

.service-card i { 
    font-size: 3rem; 
    color: var(--accent-orange); 
    margin-bottom: 20px; 
}

/* Технічний блок — ВИПРАВЛЕНО */
.tech-service { 
    padding: 80px 5%; 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    gap: 50px; 
}

.tech-image { 
    flex: 1; 
    min-width: 300px; 
    max-height: 450px; 
    overflow: hidden; 
    border-radius: 10px; 
}

.tech-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Масштабує фото, щоб заповнити блок без спотворення */
    display: block;
}

.tech-text { 
    flex: 1; 
    min-width: 300px; 
}

.tech-text h2 {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

/* Футер */
footer { 
    background: var(--dark-blue); 
    color: #fff; 
    padding: 60px 5% 20px; 
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info { flex: 1; min-width: 280px; }
.footer-info h3 { margin-bottom: 20px; color: var(--accent-orange); }
.footer-info p { margin-bottom: 10px; }
.footer-info a { color: #fff; text-decoration: none; }

.footer-form { flex: 1; min-width: 280px; }
.footer-form h3 { margin-bottom: 20px; }
.footer-form input, .footer-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
    outline: none;
}

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 20px; 
    text-align: center; 
    font-size: 0.9rem; 
    opacity: 0.7;
}

/* Адаптивність */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .tech-service { flex-direction: column; text-align: center; }
}