/* ========================================
   PREMIUM FOOTER STYLES
   БЦ Академический
   ======================================== */

/* CSS переменные для футера */
:root {
    --footer-bg: #1a1b26;
    --footer-bg-light: #242536;
    --footer-text: rgba(255, 255, 255, 0.9);
    --footer-text-muted: rgba(255, 255, 255, 0.6);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-accent: #7EB6E3;
    --footer-accent-light: #65A9DD;
}

body.night-mode {
    --footer-bg: #0a0b0f;
    --footer-bg-light: #12131a;
}

/* ========================================
   ОСНОВНОЙ КОНТЕЙНЕР ФУТЕРА
   ======================================== */
.premium-footer {
    background: linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-light) 100%);
    color: var(--footer-text);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    width: 100%;
}

/* Декоративная линия сверху */
.premium-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--footer-accent), 
        var(--footer-accent-light), 
        var(--footer-accent), 
        transparent);
    opacity: 0.5;
}

/* Фоновый паттерн */
.premium-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(126, 182, 227, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(101, 169, 221, 0.05) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.5;
}

/* ========================================
   КОНТЕЙНЕР С КОНТЕНТОМ
   ======================================== */
.footer-container {
    position: relative;
    z-index: 1;
}

/* ========================================
   ВЕРХНЯЯ ЧАСТЬ ФУТЕРА
   ======================================== */
.footer-top {
    padding: 80px 60px 60px;
    border-bottom: 1px solid var(--footer-border);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

/* ========================================
   КОЛОНКИ ФУТЕРА
   ======================================== */
.footer-column {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.footer-column:hover {
    transform: translateY(-2px);
}

/* Заголовки колонок */
.footer-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--footer-text);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--footer-accent), transparent);
    border-radius: 1px;
}

/* ========================================
   ССЫЛКИ В ФУТЕРЕ
   ======================================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    position: relative;
    padding-left: 0;
}

.footer-links a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--footer-accent);
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-accent);
    transform: translateX(4px);
}

.footer-links a:hover::before {
    width: 12px;
}

/* ========================================
   КОНТАКТЫ В ФУТЕРЕ
   ======================================== */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--footer-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    stroke: var(--footer-accent);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-contact-item:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.footer-contact-item a {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--footer-accent);
}

/* ========================================
   БРЕНД КОЛОНКА
   ======================================== */
.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-logo svg {
    width: 60px;
    height: 30px;
    opacity: 0.9;
}

.footer-logo-text {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--footer-text);
}

.footer-logo-text strong {
    font-weight: 600;
    color: var(--footer-accent);
}

.footer-description {
    font-size: 13px;
    line-height: 1.7;
    color: var(--footer-text-muted);
    margin-top: 8px;
}

/* ========================================
   НИЖНЯЯ ЧАСТЬ ФУТЕРА (ИСПРАВЛЕНО)
   ======================================== */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
    width: 100%;
    position: relative;
    /* Убираем margin и делаем фон на всю ширину */
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 13px;
    color: var(--footer-text-muted);
    font-weight: 300;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-legal a:hover {
    color: var(--footer-accent);
    background: rgba(126, 182, 227, 0.1);
}

.footer-legal .separator {
    color: var(--footer-border);
    font-size: 10px;
}

/* ========================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ======================================== */
.premium-footer {
    opacity: 0;
    transform: translateY(20px);
    animation: footerFadeIn 0.8s ease forwards;
}

@keyframes footerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
        order: -1;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 60px 20px 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 0 20px;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-title {
        font-size: 13px;
    }
    
    .footer-links a,
    .footer-contact-item,
    .footer-description {
        font-size: 12px;
    }
    
    /* Адаптивность виджета рейтинга */
    .footer-rating {
        display: flex;
        justify-content: center;
        margin-top: 16px;
    }
}