/* Стили футеров для всех страниц */

footer {
    background: var(--p-text-700);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Базовый простой футер */
.simple-footer {
    background: var(--p-text-700);
    color: white;
    padding: 1rem 0;
    margin-top: 3rem;
}

/* Контент футера с двумя колонками */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-info h3 {
    margin-bottom: 0.5rem;
    color: var(--p-brand);
    font-size: 1.2rem;
}

.footer-info p {
    color: #ccc;
    line-height: 1.5;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-contact a {
    color: var(--p-brand);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #8fa4ea;
    text-decoration: underline;
}

.footer-contact a:focus, .footer-social a:focus {
    outline: 2px solid var(--p-brand);
    outline-offset: 2px;
}

/* Нижняя часть футера с копирайтом */
.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

.simple-footer .footer-bottom {
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

/* Компактная версия футера (для контактов и о лед экранах) */
.simple-footer.compact {
    padding: 0.75rem 0;
    margin-top: 0;
}

.simple-footer.compact .footer-bottom {
    border-top: none;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

/* Статистический футер (для портфолио) */
.stats-section {
    background: linear-gradient(135deg, var(--p-brand) 0%, var(--p-brand-2) 100%);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Анимация для статистики */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ховер эффекты для статистики */
.stat-item:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.stat-item:hover h3 {
    color: #fff;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}


/* Дополнительные утилиты для футеров */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #555, transparent);
    margin: 1rem 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--p-brand);
    transform: scale(1.12);
}
