/* Основной стиль футера */
footer {
    background: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif;
    color: #1a3c5e;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Верхняя часть футера */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* "ООО ББТР" прижато к верху */
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

/* Логотип футера */
.footer-logo a {
    font-size: 1rem;
    font-weight: 800;
    color: #1a3c5e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo a:hover {
    color: #f25c05;
}

/* Основной блок навигации в футере */
.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: baseline; /* <-- ключевой момент */
}

/* Пункты меню (только верхний уровень ссылок) */
.footer-nav > a {
    text-decoration: none;
    color: #1a3c5e;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    line-height: 1.2;    /* <-- чтобы псевдоэлемент шел сразу под текстом */
    padding-bottom: 2px; /* небольшой отступ под текст */
    transition: color 0.3s ease;
}

.footer-nav > a:hover {
    color: #f25c05;
}

/* Подчёркивание прямо под пунктами меню */
.footer-nav > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;  /* линия внизу самого текста */
    width: 0;
    height: 2px;
    background-color: #f25c05;
    transition: width 0.3s ease;
}

.footer-nav > a:hover::after {
    width: 100%;
}

/* Блок "Модельный ряд" */
.footer-models {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* При желании можно выровнять по центру, если нужно:
       align-self: center; 
    */
}

/* Заголовок "Модельный ряд" — без эффекта hover */
.footer-models > span {
    font-size: 1rem;
    font-weight: 500;
    color: #1a3c5e;
}

/* Список моделей — убираем маркеры */
.footer-models ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ссылки внутри списка моделей */
.footer-models ul li a {
    display: inline-block;
    position: relative;
    text-decoration: none;
    color: #1a3c5e;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

/* Hover для ссылок моделей */
.footer-models ul li a:hover {
    color: #f25c05;
}

.footer-models ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #f25c05;
    transition: width 0.3s ease;
}

.footer-models ul li a:hover::after {
    width: 100%;
}

/* Соц. сети */
.footer-social a {
    color: #1a3c5e;
    margin-left: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none !important;
}

.footer-social a:hover {
    color: #f25c05;
    transform: scale(1.2);
}

.footer-social i {
    margin: 0;
    padding: 0;
    display: inline-block;
}

/* Нижняя часть футера */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    color: #1a3c5e;
}

/* Юридические ссылки */
.footer-legal a {
    margin-left: 20px;
    text-decoration: none;
    color: #1a3c5e;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #f25c05;
}

/* Адаптив */
@media screen and (max-width: 1024px) {
    .footer-top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .footer-social {
        display: flex;
        justify-content: flex-start;
        gap: 15px;
        margin-top: 10px;
    }

    .footer-social a {
        margin-left: 0;
    }
}

@media screen and (max-width: 768px) {
    footer {
        padding: 30px 15px;
    }

    .footer-logo a {
        font-size: 1.5rem;
    }

    .footer-nav {
        gap: 10px;
    }

    .footer-nav > a {
        font-size: 0.9rem;
    }

    .footer-models ul li a {
        font-size: 0.9rem;
    }

    .footer-social a {
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-legal a {
        margin-left: 10px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}
