.site-footer {
    background-color: var(--footer-bg, #111827);
    color: var(--footer-text, #9ca3af);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main {
    padding: var(--footer-padding-top, 80px) 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand .footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand .footer-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-brand .footer-site-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--footer-heading, #f9fafb);
}

.footer-brand .footer-site-name a:hover {
    color: var(--footer-accent, #2563eb);
}

.footer-brand .footer-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--footer-text, #9ca3af);
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    background: var(--footer-accent, #2563eb);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--footer-heading, #f9fafb);
    margin: 0 0 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav li a {
    font-size: 0.9375rem;
    color: var(--footer-text, #9ca3af);
    display: inline-block;
    transition: all 0.2s ease;
}

.footer-nav li a:hover {
    color: var(--footer-accent, #2563eb);
    transform: translateX(4px);
}

.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget:last-child {
    margin-bottom: 0;
}

.footer-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-post-item {
    line-height: 1.5;
}

.footer-post-link {
    font-size: 0.9375rem;
    color: var(--footer-text, #9ca3af);
    display: block;
    transition: color 0.2s ease;
}

.footer-post-link:hover {
    color: var(--footer-accent, #2563eb);
}

.footer-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--footer-text, #9ca3af);
    transition: all 0.2s ease;
}

.footer-tag:hover {
    background: var(--footer-accent, #2563eb);
    color: #ffffff;
}

.footer-categories-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.categories-bar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.categories-bar-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--footer-heading, #f9fafb);
    opacity: 0.9;
    white-space: nowrap;
}

.categories-bar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--footer-text, #9ca3af);
    transition: all 0.2s ease;
}

.category-pill:hover {
    background: var(--footer-accent, #2563eb);
    color: #ffffff;
    transform: translateY(-2px);
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--footer-text, #9ca3af);
    transition: all 0.2s ease;
}

.category-chip:hover {
    background: var(--footer-accent, #2563eb);
    border-color: transparent;
    color: #ffffff;
}

.category-link {
    font-size: 0.9375rem;
    color: var(--footer-text, #9ca3af);
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.category-link:hover {
    color: var(--footer-accent, #2563eb);
}

.category-count {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
}

.category-pill:hover .category-count,
.category-chip:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    opacity: 1;
}

.footer-contacts-bar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.03);
}

.contacts-bar-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contacts-bar-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--footer-heading, #f9fafb);
    opacity: 0.9;
    white-space: nowrap;
}

.contacts-bar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    color: var(--footer-text, #9ca3af);
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: var(--footer-accent, #2563eb);
}

.contact-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--footer-text, #9ca3af);
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal-link {
    font-size: 0.875rem;
    color: var(--footer-text, #9ca3af);
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: var(--footer-accent, #2563eb);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 60px 0 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand .footer-logo,
    .footer-brand .footer-site-name,
    .footer-brand .footer-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-nav ul {
        align-items: center;
    }
    
    .categories-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .categories-bar-label {
        margin-bottom: 0.25rem;
    }
    
    .categories-bar-list {
        width: 100%;
        justify-content: center;
    }
    
    .contacts-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .contacts-bar-label {
        margin-bottom: 0.25rem;
    }
    
    .contacts-bar-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-social-link {
        width: 36px;
        height: 36px;
    }
    
    .footer-tag {
        padding: 0.25rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .category-pill,
    .category-chip {
        font-size: 0.8125rem;
        padding: 0.25rem 0.625rem;
    }
    
    .footer-legal {
        gap: 1rem;
    }
}