/* FOOTER MODULE - Подвал сайта */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-column h3 {
    color: white;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-text {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
    font-size: var(--font-size-sm);
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.contact-text {
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.phone-link, .email-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.phone-link:hover, .email-link:hover {
    color: white;
    text-decoration: underline;
}

/* Стили для иконки Telegram в подвале - ИСПРАВЛЕНО: убраны фильтры */
.telegram-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.9;
    transition: opacity 0.2s;
    vertical-align: middle;
}

.footer .telegram-link:hover .telegram-icon img {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
}

/* Бренд в подвале */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-top: 4px; /* Опускаем логотип на 4px */
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-title-main {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.footer-title-sub {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

/* Иконки в контактах */
.contact-icon-svg {
    width: 20px;
    height: 20px;
    opacity: 0.85;
    flex-shrink: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

/* Кликабельный адрес */
.address-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.address-link:hover {
    color: white;
    text-decoration: underline;
}

.address-note {
    margin-left: 2.75rem; /* Выравнивание под иконкой */
    margin-top: 0.25rem;
}

/* ======================================== */
/* ТЁМНАЯ ТЕМА ДЛЯ ПОДВАЛА                 */
/* ======================================== */
[data-theme="dark"] .footer {
    background: #0f172a !important;
}

[data-theme="dark"] .footer-column h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #374151 !important;
}