/* FOOTER */
footer {
    padding: .625rem 0;
    margin-top: auto;
    /* Это обеспечит, что футер будет оставаться внизу, даже если контента немного */
}

.footer-container {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-top: 6px solid #006699ff;
}

.footer-inner {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-row {
    align-items: flex-start;
    /* Обеспечивает выравнивание колонок по верхней части */
}

.footer-heading {
    margin-bottom: 0.9375rem;
    font-weight: 600;
}

.footer-col-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    /* Убедиться, что колонка занимает всю доступную высоту */
    min-height: 100%;
}

.footer-col-logo img {
    height: 100px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}


/* Ссылки и кнопка настроек cookie в колонках футера */
.footer-col ul.nav .nav-link {
    display: inline;
    width: fit-content;
    padding: 0;

    color: #595c5f;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: .2em;
    text-decoration-skip-ink: auto;

    transition:
        color .3s ease-in-out,
        text-decoration-color .3s ease-in-out;
}

.footer-col ul.nav .nav-link:hover,
.footer-col ul.nav .nav-link:focus-visible {
    color: #84aa32ff;
    text-decoration-color: #84aa32ff;
}

.footer-col .nav {
    width: 100%;
}

.footer-col h5 {
    min-height: 3.125rem;
    /* Задаёт минимальную высоту для всех заголовков, чтобы они были на одной линии */
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col ul li {
    margin-bottom: .75rem;
    /* Одинаковое расстояние между элементами списка */
    line-height: 1.4;
}

.footer-col ul.nav button.nav-link {
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.call-now {
    display: none;
    justify-content: center;
    color: #84aa32ff !important;
}

.call-now .row {
    margin-top: .5rem;
    text-align: center;
}

.footer-phones {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: .5rem;
}

.footer-phones a {
    display: block;
    padding: .15rem .5rem;
    line-height: 1.35;
}

.footer-copyrights {
    border-top: 1px solid gray;
}

@media (max-width: 991.8px) {
    .call-now {
        display: flex;
    }
}

@media (max-width: 414px) {
    .footer-container {
        padding-top: 0.9375rem;
        padding-bottom: 0.9375rem;
    }

    .footer-inner {
        margin-top: 0;
        margin-bottom: 0;
    }

    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col,
    .footer-col-logo {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0.9375rem;
    }

    .footer-col-content {
        align-items: center;
    }

    .footer-col-logo img {
        height: 80px;
        /* Можно уменьшить изображение логотипа для узких экранов */
    }

    .footer-col h5 {
        min-height: auto;
        /* Задаёт минимальную высоту для всех заголовков, чтобы они были на одной линии */
    }

    .footer-heading {
        text-align: center;
        margin-bottom: 0.625rem;
    }

    .footer-col ul.nav {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .footer-col ul li {
        margin-bottom: .625rem;
    }

}

@media (max-width: 320px) {
    .footer-copyrights .legal {
        font-size: 0.9rem;
    }
}