/* css/footer.css */

/* Footer */
.site-footer {
    background: #2c3142;
    color: #fff;
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding: 60px 20px 40px;
}

/* О сайте */
.footer-about {
    max-width: 400px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 15px;
}

/* Блоки с заголовками */
.footer-nav h4,
.footer-for-who h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Nunito', sans-serif;
}

.footer-nav ul,
.footer-for-who ul {
    list-style: none;
}

.footer-nav ul li,
.footer-for-who ul li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-for-who ul li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.8;
}

/* Копирайт */
.footer-bottom {
    border-top: none;
    padding: 25px 0;
}

.footer-bottom p {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* Адаптив */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-about {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px 30px;
    }

    .footer-logo img {
        height: 40px;
    }

.site-footer {
    background: #2c3142;
    color: #fff;
    padding: 60px 0 0 0;
}
}

/* ========================================
   Контакты в footer
   ======================================== */
.footer-contacts {
    min-width: 200px;
}

.footer-contacts h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #333;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-icon {
    font-size: 24px;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.support-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* ========================================
   Предупреждение о использовании
   ======================================== */
.footer-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-top: 3px solid #ffc107;
    border-bottom: 3px solid #ffc107;
    padding: 20px 0;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.warning-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.warning-content p {
    margin: 0;
    color: #856404;
    line-height: 1.6;
}

.warning-content strong {
    color: #856404;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .warning-content {
        flex-direction: column;
        text-align: center;
    }
    
    .warning-icon {
        font-size: 40px;
    }
}

/* ========================================
   Контакты в footer (встроенные)
   ======================================== */
.footer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.footer-contact .contact-icon {
    font-size: 18px;
}

.footer-contact a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ========================================
   Копирайт и предупреждение (компактно)
   ======================================== */
.footer-bottom {
    background: #1a1d29;
    padding: 20px 0;
    border-top: none;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-bottom .copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom .usage-warning {
    color: #ffc107;
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .footer-bottom .container {
        text-align: center;
    }
}

/* ========================================
   Footer-bottom (единый тон с основным footer)
   ======================================== */
.footer-bottom {
    background: #2c3142;
    padding: 25px 0;
    border-top: 2px solid rgba(102, 126, 234, 0.3);
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom .usage-warning {
    color: #ffd93d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 217, 61, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 217, 61, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-bottom {
        padding: 20px 15px;
    }
    
    .footer-bottom .usage-warning {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* ========================================
   Site Footer — основной блок
   ======================================== */
.site-footer {
    background: #2c3142;
    color: #fff;
    padding: 60px 0 0 0;
}

/* ========================================
   Footer-bottom — копирайт (БЕЗ фона, наследует цвет)
   ======================================== */
.footer-bottom {
    background: transparent;
    padding: 25px 0;
    border-top: none;
    margin-top: 10px;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom .usage-warning {
    color: #ffd93d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 217, 61, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 217, 61, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0 0;
    }
    
    .footer-bottom {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .footer-bottom .usage-warning {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
