﻿.site-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-bottom {
    background-color: #e6e6e6;
    height: 150px;
    width: 100%;
}

.site-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-top {
    background-color: #003b7f;
    height: 250px;
    width: 100%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.footer-content {
    margin-top: 70px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 1154px;
    gap: 120px;
    position: relative; /* для абсолютного позиционирования контактов */
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 6px;
}

.footer-column a {
    color: white;
    text-decoration: underline;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-contacts {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
    margin-right: 130px;
}

.footer-container {
    width: 1150px;
    margin: 0 auto;
}

.blue-line-top {
    width: 100%;
    height: 1px;
    background-color: #003b7f;
    margin: 30px 0 30px;
}

.blue-line-bottom {
    width: 100%;
    height: 1px;
    background-color: #003b7f;
    margin: 30px 0;
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Клонированные слайды должны быть внутри track */


.footer-text-container {
    width: 1150px;       /* фиксированная ширина блока */
    margin: 42px auto 0; /* центрирование по горизонтали, отступ сверху 20px */
}

.footer-text {
    display: flex;
    gap: 35px;          /* расстояние между колонками */
    font-size: 9.33px;     /* мелкий шрифт */
    color: #6e6e6e;        /* цвет текста */
    font-weight: 700;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    flex-wrap: wrap;     /* чтобы колонки переносились на узких экранах */
    line-height: 1.9;
}

.footer-text .footer-column a {
    color: #003b7f;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 9.33px;
    font-weight: 700;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.footer-text .footer-column a:hover {
    text-decoration: underline; /* подчеркивание при наведении */
}

.footer-column {
    flex: 1;             /* равная ширина колонок */
    min-width: 200px;    /* минимальная ширина каждой колонки */
    text-align: left;    /* текст прижат к левому краю */
}

.footer-column:first-child {
    font-size: 10.66px;    /* увеличенный шрифт */
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .footer-content,
    .footer-container,
    .footer-text-container {
        width: 95%;
        max-width: 1150px;
    }

    .footer-content {
        gap: 60px;
    }

    .footer-contacts {
        margin-right: 30px;
    }
}

@media (max-width: 992px) {
    .footer-top {
        height: auto;
        padding: 40px 0;
    }

    .footer-content {
        margin-top: 40px;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        flex-wrap: nowrap;
        width: 95%;
        gap: 40px;
    }

    .footer-column {
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: 0;
    }

    .footer-column ul {
        white-space: nowrap;
    }

    .footer-contacts {
        position: static;
        margin-right: 0;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .footer-bottom {
        height: auto;
        padding-bottom: 30px;
    }

    /* Исправляем footer-bottom */
    .footer-text {
        flex-direction: column;
        gap: 25px;
        text-align: left; /* Выравнивание по левой стороне */
    }

    .footer-text .footer-column {
        width: 100%;
        white-space: normal;
        text-align: left; /* Выравнивание по левой стороне */
        font-size: 8.5px; /* Уменьшаем размер текста */
    }

    .footer-column:first-child {
        font-size: 9.5px; /* Уменьшаем увеличенный шрифт */
    }

    .blue-line-top,
    .blue-line-bottom {
        margin: 20px 0;
    }

    .footer-text-container {
        margin-top: 30px;
        width: 95%; /* Добавляем адаптивную ширину */
    }
}

@media (max-width: 850px) {
    .footer-content {
        gap: 30px;
    }

    .footer-text .footer-column {
        font-size: 8px;
    }

    .footer-column:first-child {
        font-size: 9px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        height: 88px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-content {
        margin-top: 0;
        gap: 0;
        width: auto;
    }

    .footer-top .footer-column {
        display: none;
    }

    .footer-contacts {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    .footer-contacts .social-white {
        width: 32px;
        height: 32px;
    }

    .footer-contacts .social-white img {
        width: 20px;
        height: 20px;
    }

    /* Footer-bottom адаптируем для мобилок */
    .footer-text .footer-column {
        font-size: 9px;
        text-align: left; /* На мобилках центрируем */
    }

    .footer-column:first-child {
        font-size: 8.5px;
    }
}

@media (max-width: 480px) {

    .footer-text .footer-column {
        font-size: 9px;
    }

    .footer-column:first-child {
        font-size: 8px;
    }
}

.footer-contacts .social-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-contacts {
    position: relative;
    top: -10px;
    display: flex;
    gap: 0px;
}

.footer-contacts .social-white img {
    width: 37px;
    height: 37px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border: 2px solid #fff;
    border-radius: 10px;
}

.footer-contacts .social-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.footer-contacts .social-white:hover img {
    transform: scale(1.1);
}
