/* Зменшуємо висоту заголовка автомобіля */
.moving-tariff-card h3,
.moving-tariff-card .fw-bold,
.moving-card-body h3 {
    font-size: 24px !important;     /* було ≈31px */
    line-height: 1.15 !important;
    margin-bottom: 0.5rem !important; /* зменшили відступ знизу */
}
/* Зменшуємо висоту ціни */
.moving-price {
    font-size: 1.75rem !important;        /* було ~2.75rem — тепер значно менший */
    font-weight: 600 !important;          /* було 900 — тепер середньо-жирний */
    line-height: 1 !important;
    margin-bottom: 0.4rem !important;
}
/* Зменшуємо відступи всередині картки */
.moving-card-body {
    padding: 1.25rem 1.25rem 1rem !important; /* замість стандартних 1.5rem */
}

/* Якщо є великий відступ після заголовка */
.moving-card-body .mb-3,
.moving-card-body .mb-1 {
    margin-bottom: 0.75rem !important;
}
/* === ТЕЛЕФОННІ НОМЕРИ — БІЛІ === */
.location span.text-900.ps-1.fs-7,
.location + a[href^="tel:"],
.location + a[href^="tel:"] + a[href^="tel:"],
.location + a[href^="tel:"] + a[href^="tel:"] + a[href^="tel:"],
.location + a[href^="tel:"] span,
.location + a[href^="tel:"] + a[href^="tel:"] span,
.location + a[href^="tel:"] + a[href^="tel:"] + a[href^="tel:"] span {
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1.25 !important;
}

/* Відступи між телефонами на ПК */
.location {
    margin-right: 15px !important;
}

.location + a[href^="tel:"],
.location + a[href^="tel:"] + a[href^="tel:"] {
    margin-right: 30px !important;
}

.location + a[href^="tel:"] + a[href^="tel:"] + a[href^="tel:"] {
    margin-right: 0 !important;
}

/* Hover телефонів */
.location + a[href^="tel:"]:hover,
.location + a[href^="tel:"] + a[href^="tel:"]:hover,
.location + a[href^="tel:"] + a[href^="tel:"] + a[href^="tel:"]:hover {
    color: #e0f0e0 !important;
}

/* ====================== МОБІЛЬНА ВЕРСІЯ ====================== */
@media (max-width: 992px) {

    /* Батьківський блок телефонів */
    .flex-wrap.align-items-center.justify-content-center.justify-content-lg-start {
        display: grid !important;
        grid-template-columns: auto auto !important;
        column-gap: 52px !important;
        row-gap: 4px !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Скидаємо зайві bootstrap-відступи */
    .location,
    .location.pe-4,
    .location + a[href^="tel:"],
    .location + a[href^="tel:"].pe-4,
    .location + a[href^="tel:"] + a[href^="tel:"],
    .location + a[href^="tel:"] + a[href^="tel:"].pe-4,
    .location + a[href^="tel:"] + a[href^="tel:"] + a[href^="tel:"] {
        margin: 0 !important;
        padding: 0 !important;
    }

    .location span.text-900.ps-1.fs-7,
    .location + a[href^="tel:"],
    .location + a[href^="tel:"] + a[href^="tel:"],
    .location + a[href^="tel:"] + a[href^="tel:"] + a[href^="tel:"],
    .location + a[href^="tel:"] span,
    .location + a[href^="tel:"] + a[href^="tel:"] span,
    .location + a[href^="tel:"] + a[href^="tel:"] + a[href^="tel:"] span {
        font-size: 17px !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        text-align: left !important;
    }

    /* Ряд 1, колонка 1 */
    .location {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
    }

    /* Ряд 1, колонка 2 */
    .location + a[href^="tel:"] {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: start !important;
    }

    /* Ряд 2, колонка 1 */
    .location + a[href^="tel:"] + a[href^="tel:"] {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-self: start !important;
    }

    /* Ряд 2, колонка 2 */
    .location + a[href^="tel:"] + a[href^="tel:"] + a[href^="tel:"] {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: start !important;
    }

    a[href*="viber"],
    a[href^="viber:"] {
        font-size: 15px !important;
        padding: 10px 22px !important;
        border-width: 1.5px !important;
    }
}

/* Дуже маленькі екрани */
@media (max-width: 480px) {

    .flex-wrap.align-items-center.justify-content-center.justify-content-lg-start {
        column-gap: 62px !important;
        row-gap: 4px !important;
    }

    .location span.text-900.ps-1.fs-7,
    .location + a[href^="tel:"],
    .location + a[href^="tel:"] + a[href^="tel:"],
    .location + a[href^="tel:"] + a[href^="tel:"] + a[href^="tel:"],
    .location + a[href^="tel:"] span,
    .location + a[href^="tel:"] + a[href^="tel:"] span,
    .location + a[href^="tel:"] + a[href^="tel:"] + a[href^="tel:"] span {
        font-size: 16px !important;
    }
}

/* Якщо хочеш ще трохи підчистити — прибираємо зайвий padding знизу */
.moving-hero-tariffs .moving-card-media {
    padding-bottom: 0 !important;
}
/* Піднімаємо заголовки ближче до авто */
.moving-hero-tariffs .moving-card-body {
    padding-top: 8px !important;     /* можна змінити на 0px або 12px */
    margin-top: 0 !important;
}

/* Додатково прибираємо зайвий верхній відступ у самого заголовка */
.moving-hero-tariffs .moving-card-title {
    margin-top: 0 !important;
}
/* === VIBER КНОПКА ТІЛЬКИ В ШАПЦІ, НЕ У ФУТЕРІ === */
a[href^="viber://chat?number=%2B380635036060"]:not(.hover-effect) {
    background-color: #ffffff !important;
    color: #2f7d1f !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    padding: 10px 24px !important;
    border-radius: 12px !important;
    border: 2px solid #ffffff !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
    transition: all 0.3s ease !important;
  /* відступ справа */
    margin-right: 11px !important;
}

a[href^="viber://chat?number=%2B380635036060"]:not(.hover-effect) span,
a[href^="viber://chat?number=%2B380635036060"]:not(.hover-effect) svg {
    color: #2f7d1f !important;
    stroke: #2f7d1f !important;
}

a[href^="viber://chat?number=%2B380635036060"]:not(.hover-effect):hover {
    background-color: #6f5de7 !important;
    color: #ffffff !important;
    border-color: #6f5de7 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(111, 93, 231, 0.35) !important;
}

a[href^="viber://chat?number=%2B380635036060"]:not(.hover-effect):hover span,
a[href^="viber://chat?number=%2B380635036060"]:not(.hover-effect):hover svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}
@media (max-width: 767.98px) {
    #moving-hero-tariffs h2 {
        font-size: 34px !important;
        line-height: 1.12 !important;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
        text-wrap: balance;
    }
}