.site-footer {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #021834;
}

.site-footer .footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;  /* Растягиваем блок на всю ширину футера */
    height: 100%; /* Растягиваем на всю высоту футера */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 4%; 
    box-sizing: border-box;
}

.site-footer .footer-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.footer-content a {
    pointer-events: auto;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 20px;
}

.footer-grid .footer-column {
    flex: 1;
    color: #fff;
}

.column-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-pages, .footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Одинаковый ровный шаг между строками */
}

/* Стили для ссылок страниц */
.footer-pages a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-pages a:hover {
    color: #ffffff;
}

.footer-contacts a {
    display: flex;
    align-items: flex-start; /* Выравнивание по верхней линии текста (критично для длинного адреса) */
    gap: 12px;               /* Расстояние от иконки до текста */
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.footer-contacts a:hover {
    color: #ffffff;
}

/* Размер иконок в контактах */
.footer-contacts img {
    width: 30px;
    height: 30px;
    flex-shrink: 0; /* Чтобы иконка не сжималась, если текст адреса переносится */
    object-fit: contain;
}

.site-footer .footer-bg #glowing-header {
    font-size: clamp(60px, 18vw, 260px);
    font-weight: 900;

    letter-spacing: 0.03em; /* Сбрасываем трекинг, распределение сделаем через flex */
    
    width: auto;
    text-transform: uppercase;
    cursor: default;
    position: relative;
    
    display: flex;
    justify-content: center; /* МАГИЯ ТУТ: первая буква прижмется к левому краю, последняя — к правому */
    align-items: center;

    margin: 0; /* Убираем все внешние маргины */
    white-space: nowrap;
    
    /* ... (все ваши свойства с вендорными префиксами и бэкграундом остаются без изменений) ... */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: linear-gradient(rgba(1, 14, 31, 1) 70%, rgba(4, 60, 133, 1) 95%);
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent; 
    transition: background-image 0.05s linear;
}

.glowing-text span {
    flex: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    /* position: relative; */
    display: inline-block;
    text-align: center;
    background-image: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.25) 20%,
        transparent 50%
    );

    pointer-events: all;
    background-repeat: no-repeat;

    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.glowing-text span.active {
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(100, 200, 255, 0.3);
}

.glowing-text span.neighbor {
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Мобильная версия футера — скрыта по умолчанию */
.footer-mobile {
    display: none;
}

/* Контактная секция — скрыта на десктопе */
.contacts-section {
    display: none !important;
}

/* ==========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================== */
@media (max-width: 768px) {
    .footer-desktop {
        display: none;
    }

    .footer-bg {
        display: none;
    }

    .site-footer {
        background-color: transparent;
    }

    .footer-mobile {
        display: block;
        padding: 2rem 1.5rem;
        background-color: #021834;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-mobile-inner {
        max-width: 400px;
    }

    .footer-mobile-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 1.5rem;
    }

    .footer-mobile .footer-contacts {
        gap: 1.25rem;
    }

    .footer-mobile .footer-contacts img {
        width: 24px;
        height: 24px;
    }

    .footer-mobile .footer-contacts a {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* Показываем контактную секцию после карты */
    .contacts-section {
        display: block !important;
        padding: 2rem 0;
        background-color: #021834;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .contacts-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 1.5rem;
    }

    .contacts-list {
        gap: 1.25rem;
    }

    .contacts-list img {
        width: 24px;
        height: 24px;
    }

    .contacts-list a {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}