:root {
    --dark-bg: #0a0c10;
    --neon-cyan: #00e5ff;
    --accent-red: #b91c1c;
    --text-gray: #9ca3af;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    padding-top: 90px; /* Відступ, щоб контент не ховався під шапку */
}

/* ШАПКА */
.navbar {
    background-color: rgba(10, 12, 16, 0.95);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 20000;
    height: 90px; /* Фіксуємо висоту для ідеального центрування */
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    width: 100%;
}
.navbar .container {
    max-width: 95%; /* Дозволяємо шапці розтягуватися майже на весь екран */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* ЛОГОТИП */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px; /* Відступ між іконкою та текстом */
}

.logo-img {
    height: 60px; /* Фіксуємо висоту іконки */
    width: auto;
    display: block;
    /* Якщо в SVG є зайві поля, цей фільтр допоможе виділити іконку */
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1; /* Прибираємо зайвий простір між рядками */
}

.logo-main {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 17px;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-top: 2px;
}

.logo-services {
    display: flex;
    gap: 4px;
    font-size: 8px;
    font-weight: 600;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.separator { color: var(--accent-red); }

/* МЕНЮ */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--neon-cyan);
}

/* CTA ТА ТЕЛЕФОН */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(185, 28, 28, 0.5);
    transform: translateY(-2px);
}

/* =========================================
   📍 АДАПТИВНІСТЬ ШАПКИ (HEADER)
   ========================================= */

/* Стилізація самої кнопки бургера */
.burger {
    display: none; /* Показуємо тільки на мобільних */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20002;
    padding: 0;
}

.burger span {
    width: 30px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    position: relative;
}

/* Анімація іконки в "X" */
.burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
.burger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Адаптивне меню */





/* Змінюємо з 992px на 1200px */
@media (max-width: 1200px) {
    .burger {
        display: flex; /* Показуємо бургер раніше */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* Меню на весь екран планшета */
        height: 100vh;
        background: rgba(10, 12, 16, 0.98); 
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.5s ease;
        z-index: 20001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Плавна поява пунктів по черзі */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

    .nav-links a {
        font-size: 28px; /* Великий шрифт для зручності */
        font-weight: 800;
        letter-spacing: 2px;
        color: #fff;
    }

    /* CTA (кнопки), які ми раніше ховали, можна додати в кінець списку в JS */
    .nav-cta {
        display: none; /* Залишаємо прихованим у хедері */
    }
}


@media (max-width: 480px) {
    /* 1. Зменшуємо загальні відступи контейнера, щоб дати більше простору */
    .navbar .container {
        padding: 0 15px; /* Менші бокові відступи */
    }

    /* 2. Зменшуємо логотип ще трохи */
    .logo-img {
        height: 40px; /* Було 45px */
    }

    .logo-main {
        font-size: 14px; /* Було 16px */
    }

    .logo-sub {
        font-size: 11px; /* Було 13px */
    }

    /* 3. Зменшуємо відступ між іконкою та текстом лого */
    .logo-link {
        gap: 6px; 
    }

    /* 4. Налаштовуємо бургер, щоб він не займав зайвого місця */
    .burger {
        width: 25px; /* Було 30px */
        height: 20px;
    }
    
    .burger span {
        width: 25px;
    }
}






/* --- HERO CENNIK --- */
.hero-cennik {
    position: relative;
    height: 850px; /* Можеш спробувати збільшити до 650px, якщо голова все одно буде близько до краю */
    display: flex;
    align-items: center;
    background-color: #070b14;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; 

    opacity: 0.9; 
    filter: brightness(0.95); 
}

/* М'якший градієнт, щоб не затемнювати обличчя справа */
.hero-cennik::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Текст зліва буде чітким, а справа фотографія буде чистішою */
    background: linear-gradient(to right, 
        rgba(7, 11, 20, 1) 0%, 
        rgba(7, 11, 20, 0.8) 25%, 
        rgba(7, 11, 20, 0) 65%); /* Раніше було 60% */
    z-index: 2;
}

.hero-cennik .container {
    position: relative;
    z-index: 10;
}

.hero-content-cennik {
    max-width: 700px;
}

.hero-content-cennik h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-content-cennik p {
    font-size: 1.2rem;
    color: #e5e7eb;
    line-height: 1.5;
    max-width: 550px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Сильніша тінь для кращого читання */
}

/* --- АДАПТИВНІСТЬ --- */

@media (max-width: 1024px) {
    .hero-cennik {
        height: 550px;
    }
    /* Повертаємо фокус на сервісанта, якщо він обрізається */
    .hero-bg-wrapper img {
        object-position: 70% center; 
    }
}

@media (max-width: 768px) {
    .hero-cennik {
        height: auto;
        min-height: 500px;
        padding: 140px 0 60px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* На мобільних градієнт робимо тільки знизу, щоб обличчя було чистим */
    .hero-cennik::after {
        background: linear-gradient(to top, 
            rgba(7, 11, 20, 1) 0%, 
            rgba(7, 11, 20, 0.7) 30%, 
            rgba(7, 11, 20, 0.2) 100%);
    }

    .hero-bg-wrapper img {
        opacity: 0.9; /* Ще яскравіше на мобілці */
        object-position: center;
    }

    .hero-content-cennik {
        margin: 0 auto;
        padding: 0 15px;
    }

    .hero-content-cennik h1 {
        margin-bottom: 15px;
    }
}





/* =========================================
   📍 СТИЛЬ КАЛЬКУЛЯТОРА ВІДСТАНІ
   ========================================= */

.section-title-center {
    margin: 40px 0;
    color: #00e5ff;
    text-align: center;
    font-size: 32px;
    font-weight: 800;
}   

.calculator-section {
    margin-top: 120px;
    padding-bottom: 60px;
}

.calc-main-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* --- ПОШУК ТА АВТОКОМПЛІТ --- */
.search-top-bar {
    width: 100%;
    margin-bottom: 25px;
    position: relative;
    z-index: 1000; /* Щоб пошук був вище карти */
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

#address-search {
    width: 100%;
    padding: 20px 25px;
    background: #0f172a;
    border: 2px solid rgba(0, 229, 255, 0.2);
    border-radius: 15px;
    color: #fff;
    font-size: 17px;
    outline: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: 0.3s;
}

#address-search:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.autocomplete-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #111827;
    border: 1px solid #00e5ff;
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 99999 !important; /* Гарантовано над картою */
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.autocomplete-item {
    padding: 15px 20px;
    color: #cbd5e1;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}

.autocomplete-item:hover {
    background: #00e5ff;
    color: #000;
}

/* --- КАРТКА РЕЗУЛЬТАТІВ --- */
.result-card-premium {
    background: linear-gradient(145deg, #111827, #1f2937);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    height: fit-content;
}

.res-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.res-header h3 {
    font-size: 20px;
    color: #00e5ff;
    margin: 0;
}

.res-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.res-item .label { color: #9ca3af; font-size: 15px; }
.res-item .value { font-size: 18px; font-weight: 600; }
.res-item .price { color: #00e5ff; font-weight: 800; font-size: 26px; }

.order-btn-small {
    width: 100%;
    padding: 16px;
    background: #ff4b2b;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.order-btn-small:hover { 
    background: #ff3612; 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3);
}

.pricing-info-mini {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
}

.pricing-info-mini h4 { 
    color: #fff; 
    margin-bottom: 12px; 
    font-size: 13px; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-info-mini ul { list-style: none; padding: 0; margin: 0; }
.pricing-info-mini li { 
    display: flex; 
    justify-content: space-between; 
    font-size: 13px; 
    color: #9ca3af; 
    margin-bottom: 8px; 
}

/* --- КАРТА --- */
#map {
    height: 600px;
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1; /* Карта завжди внизу */
}

/* =========================================
   📍 АДАПТИВНІСТЬ
   ========================================= */

@media (max-width: 1024px) {
    .calc-main-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .calc-sidebar { order: 2; }
    .map-area { order: 1; }
    #map { height: 450px !important; }
}

@media (max-width: 768px) {
    .calculator-section { padding: 40px 0; }
    #address-search { padding: 16px 20px; font-size: 15px; }
    .autocomplete-list { z-index: 100001 !important; }
    .result-card-premium { padding: 20px; }
    .res-item .price { font-size: 22px; }
    #map { height: 350px !important; }
}

@media (max-width: 480px) {
    .res-header h3 { font-size: 18px; }
    .pricing-info-mini li { font-size: 12px; }
}


/*===========================
      КАРТКИ ПОСЛУГ
=============================*/

/* Контейнер для карток послуг */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на десктопі */
    gap: 20px;
    margin-top: 40px;
}

/* Стиль кожної окремої картки */
.price-box {
    background: #111827;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Рівномірно розподіляє заголовок зверху та ціну знизу */
    min-height: 400px; /* Однаковий розмір для всіх карток */
}

/* Заголовки в картках */
.price-box h3 {
    color: #00e5ff;
    font-size: 22px;
    margin-bottom: 20px;
}

/* Тексти описів */
.price-box .description, 
.price-box .price-list, 
.price-box .small-info {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Колір цін */
.price-tag {
    font-size: 20px;
    font-weight: 700;
    color: #ffb800; /* Жовтий колір для ціни */
    margin-top: auto; /* Притискає ціну до низу картки */
}

/* Спеціальний інфо-блок у першій картці */
.info-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    color: #6b7280;
    margin-top: 15px;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобільних */
    }
    .price-box {
        min-height: auto;
    }
}



/* --- FOOTER SECTION --- */

.main-footer {
    padding: 120px 0 60px;
    background: radial-gradient(circle at 20% 20%, #0f1a22, #05090d 70%);
    position: relative;
}

.footer-card {
    background: linear-gradient(145deg, #1a1a1a, #111111);
    border-radius: 40px;
    padding: 90px 80px 50px;
    border: 1px solid rgba(0, 229, 255, 0.08);
    box-shadow: 
        0 0 60px rgba(0, 229, 255, 0.05),
        inset 0 0 30px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-label {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 35px;
    color: #ffffff;
    letter-spacing: 3px;
    position: relative;
}

.footer-label::after {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--neon-cyan);
    position: absolute;
    left: 0;
    bottom: -10px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Логотип */
.footer-logo-img {
    height: 90px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4));
    transition: 0.4s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

/* Текст */
.footer-col p {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 15px;
    max-width: 320px;
}

/* Меню */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #9ca3af;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: 0.3s ease;
}

.footer-col ul li a::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 10px;
}

.footer-col ul li a:hover::before {
    opacity: 1;
}

/* Контакти */
.contact-item {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: 0.3s ease;
}

.contact-item a:hover {
    color: var(--neon-cyan);
}

/* Соцмережі */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.social-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: 0.4s ease;
}

.social-icon:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: translateY(-5px);
}

.social-icon img {
    width: 22px;
    filter: brightness(0) invert(1);
}

/* Нижній текст */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #6b7280;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.floating-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #b91c1c, #ff1a1a);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    z-index: 9999;
    transition: all 0.4s ease;
    animation: pulseGlow 1.8s infinite;
}

/* Прибираємо старий box-shadow */
.floating-phone:hover {
    transform: scale(1.08) translateY(-6px);
}

/* Більш помітна пульсація */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 25px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}
.phone-icon {
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(6deg); }
    50% { transform: rotate(0deg); }
}

@media (max-width: 768px) {

    .phone-text {
        display: none;
    }

    .floating-phone {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        align-items: center;

        right: 8px;
        bottom: 15px;

        animation: none; /* вимикаємо пульс */
        box-shadow: 0 6px 15px rgba(185, 28, 28, 0.4);
    }

    .phone-icon {
        font-size: 20px;
    }

}

/* =========================================
   📍 АДАПТИВНІСТЬ ФУТЕРА ТА CTA КНОПКИ
   ========================================= */

@media (max-width: 1024px) {
    .footer-card {
        padding: 60px 40px 40px; /* Трохи менші внутрішні відступи */
    }
    
    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 60px 0 40px;
    }

    .footer-card {
        padding: 40px 20px;
        border-radius: 20px;
        text-align: center; /* Центруємо вміст для мобільних */
    }

    /* Колонки в один ряд */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-label::after {
        left: 50%; /* Центруємо декоративну лінію під заголовком */
        transform: translateX(-50%);
    }

    .footer-col p {
        margin: 0 auto; /* Центруємо опис фірми */
    }

    /* Контакти */
    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 25px;
    }

    /* Плаваюча кнопка дзвінка */
    .floating-phone {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    .footer-logo-img {
        height: 60px; /* Зменшуємо логотип у футері */
    }

    .footer-label {
        font-size: 18px;
    }

    .floating-phone .phone-text {
        display: none; /* На зовсім маленьких екранах залишаємо тільки іконку трубку */
    }

    .floating-phone {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .floating-phone .phone-icon {
        margin: 0;
        font-size: 24px;
    }
}


