:root {
    --bg-color: #05080f;
    --card-bg: #111827; 
    --accent-color: #DC2626; 
    --accent-hover: #B91C1C;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
}

/* Очищення стандартних відступів браузера */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    text-decoration: none; /* Прибираємо всі сині підкреслення */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- ШАПКА --- */
header {
    background-color: rgba(5, 8, 15, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Три рівні колонки: ліва, центр, права */
    align-items: center;
    width: 100%;
}

/* 1. Блок Лого (Зліва) */
.logo-block {
    display: flex;
    justify-content: flex-start;
}
.logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

/* 2. Блок Назви (Центр) */
.brand-block {
    display: flex;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
}
.brand-block span {
    color: var(--accent-color);
    margin-left: 8px;
}

/* 3. Блок Телефонів (Справа) */
.phones-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}
.phones-block a {
    color: var(--text-main); /* Жодних синіх посилань! */
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.phones-block a:hover {
    color: var(--accent-color);
}

/* --- ГОЛОВНИЙ ЕКРАН --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center top, #1E293B 0%, var(--bg-color) 60%);
    padding-top: 100px;
}
.hero h1 { font-size: 4rem; margin-bottom: 25px; text-transform: uppercase; line-height: 1.2; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero h1 span { color: var(--accent-color); }
.hero p { font-size: 1.3rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 50px; }
.btn { display: inline-block; background: linear-gradient(135deg, #DC2626, #991b1b); color: white; padding: 18px 45px; font-size: 1.1rem; font-weight: 800; border-radius: 8px; text-transform: uppercase; box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3); border: none; cursor: pointer; }
.features { display: flex; justify-content: center; gap: 50px; margin-top: 80px; flex-wrap: wrap; }
.feature-item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.2rem; background: rgba(255,255,255,0.03); padding: 15px 25px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.05); }
.feature-item i { color: var(--accent-color); font-size: 1.4rem; }

/* --- ПОСЛУГИ --- */
.services { padding: 120px 0; background-color: var(--bg-color); }
.section-title { text-align: center; font-size: 2.8rem; margin-bottom: 70px; text-transform: uppercase; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; perspective: 1000px; }
.service-card { background: linear-gradient(145deg, #111827, #0d121d); border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.03); cursor: pointer; }
.card-content { padding: 50px 30px; text-align: center; }
.service-card i { font-size: 3.5rem; color: var(--accent-color); margin-bottom: 25px; }
.service-card h3 { font-size: 1.3rem; font-weight: 600; }
.special-card { border: 1px solid rgba(220, 38, 38, 0.4); box-shadow: inset 0 0 20px rgba(220, 38, 38, 0.1); }

/* --- КАРТА --- */
.map-section { padding: 100px 0; background-color: var(--card-bg); }
.map-title { margin-bottom: 50px; }
.map-container { width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7); }
.map-container iframe { width: 100%; height: 450px; display: block; filter: invert(90%) hue-rotate(180deg) brightness(105%) contrast(105%); }

/* --- ФУТЕР --- */
footer { background-color: #03050a; padding: 80px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-section h3 { font-size: 1.6rem; margin-bottom: 25px; color: var(--accent-color); }
.footer-section p { color: var(--text-muted); margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.footer-section a { color: var(--text-muted); transition: color 0.3s; }
.footer-section a:hover { color: var(--accent-color); }
.footer-section i { width: 25px; color: var(--text-main); font-size: 1.2rem; }
.copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-muted); font-size: 0.9rem; }

/* --- АНІМАЦІЇ --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- СОЦМЕРЕЖІ ТА КНОПКА МАРШРУТУ --- */

/* Шапка */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.social-header {
    display: flex;
    gap: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.social-header a {
    color: var(--text-main);
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-header a:hover { transform: scale(1.15); }
.social-header a .fa-telegram:hover { color: #229ED9; }
.social-header a .fa-whatsapp:hover { color: #25D366; }

/* Карта - Заголовок та кнопка */
.map-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.map-header-wrap .map-title {
    margin-bottom: 0;
    text-align: left;
}

.btn-route {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-main);
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-route i { font-size: 1.2rem; }

.btn-route:hover {
    background: var(--accent-color);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
    color: #fff;
}

/* Футер */
.social-footer {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-footer a {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-footer a:hover { transform: scale(1.15); }
.social-footer a .fa-telegram:hover { color: #229ED9; }
.social-footer a .fa-whatsapp:hover { color: #25D366; }


/* --- ДОДАТКОВА АДАПТИВНІСТЬ (встав у свій @media max-width: 768px) --- */
@media (max-width: 768px) {
    .header-right {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-header {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 15px;
        justify-content: center;
        width: 100%;
    }

    .map-header-wrap {
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        text-align: center;
    }

    .map-header-wrap .map-title {
        text-align: center;
    }
}

/* --- АДАПТИВНІСТЬ --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .section-title { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    /* Шапка */
    header { background-color: #05080f; }
    .header-content { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; }
    .phones-block { align-items: center; flex-direction: row; gap: 20px; }
    .header-right { flex-direction: column; gap: 15px; }
    .social-header { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-left: 0; padding-top: 15px; justify-content: center; width: 100%; }
    
    /* Головний екран */
    .hero { padding-top: 260px; padding-bottom: 60px; min-height: auto; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .features { flex-direction: column; align-items: center; gap: 15px; margin-top: 40px; }
    
    /* Послуги */
    .section-title { font-size: 2rem; margin-bottom: 40px; }
    .services { padding: 80px 0; }
    
    /* Карта */
    .map-section { padding: 60px 0; }
    .map-header-wrap { flex-direction: column; justify-content: center; gap: 25px; text-align: center; }
    .map-header-wrap .map-title { text-align: center; }
    .map-container iframe { height: 350px; }
    
    /* Футер */
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-section p { justify-content: center; }
    .social-footer { justify-content: center; width: 100%; }
}