/* =================================================================
   Footer Styles
   ================================================================= */

/* Main footer container */
.site-footer {
    background-color: #111827;
    color: #9ca3af;
}

.footer-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 1.5rem;
}

/* Grid layout for footer content */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    /* ИЗМЕНЕНИЕ: Центрируем текст для всех колонок по умолчанию (для мобильных) */
    text-align: center;
}

/* Titles and subtitles */
.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffffd5;
}

.footer-link-subtle {
    color: #9ca3af;
    transition: color 0.2s ease-in-out;
}

.footer-link-subtle:hover {
    color: #ffffffc5;
}

.footer-subtitle {
    font-weight: 600;
    color: #ffffffd5;
}

.footer-description {
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Links list */
.footer-links {
    margin-top: 1rem;
    font-size: 0.875rem;
    padding: 0; /* Убираем отступы по умолчанию у списка */
    list-style: none; /* Убираем маркеры списка */
}

.footer-links li + li {
    margin-top: 0.5rem;
}

.footer-links a {
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
    color: #ffffffc5;
}

/* Bottom section of the footer */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1f2937;
    
    /* Стили для МОБИЛЬНОЙ ВЕРСИИ (по умолчанию) */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    
    position: relative; 
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    order: 2; /* Текст копирайта внизу на мобильных */
    color: #6b7280;
}

/* Social media icons */
.footer-socials {
    display: flex;
    order: 1; /* Иконки вверху на мобильных */
    gap: 1rem;
}

.footer-socials a {
    transition: color 0.2s ease-in-out;
}

.footer-socials a:hover {
    color: #ffffffc5;
}

/* Стили для ДЕСКТОПНОЙ ВЕРСИИ (экраны шире 768px) */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        /* ИЗМЕНЕНИЕ: Возвращаем выравнивание по левому краю на десктопе */
        text-align: left;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
    }

    .footer-copyright {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: initial;
    }

    .footer-socials {
        order: initial;
    }
}
