/* Футер - компактный */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e70000 0%, #ff3333 50%, #e70000 100%);
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Контакты */
.footer-contacts h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-contacts h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e70000;
    border-radius: 1px;
}

.footer-contacts p {
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.footer-contacts a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 5px;
    font-weight: 500;
}

.footer-contacts a:hover {
    color: #e70000;
    text-decoration: underline;
}

/* Соцсети */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-social h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e70000;
    border-radius: 1px;
}

/* Категории соцсетей */
.social-category h4 {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 2px solid #e70000;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

/* Иконки соцсетей - компактные */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 40px;
}

.social-icon:hover {
    background: rgba(231, 0, 0, 0.15);
    border-color: rgba(231, 0, 0, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(231, 0, 0, 0.2);
}

.social-icon-text {
    flex: 1;
    font-size: 12px;
}

.social-icon-emoji {
    font-size: 14px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Цветовые акценты для разных категорий */
.social-icon.youtube {
    border-left: 2px solid #ff0000;
}

.social-icon.rutube {
    border-left: 2px solid #ff3333;
}

.social-icon.vk {
    border-left: 2px solid #4a76a8;
}

.social-icon.vk-group {
    border-left: 2px solid #4a76a8;
}

.social-icon.tg-channel {
    border-left: 2px solid #2aabee;
}

.social-icon.vk-page {
    border-left: 2px solid #4a76a8;
}

.social-icon.whatsapp {
    border-left: 2px solid #25d366;
}

.social-icon.telegram {
    border-left: 2px solid #2aabee;
}

.social-icon.tel {
    border-left: 2px solid #34c759;
}

/* Нижняя часть футера */
.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #999;
}

/* Адаптивность */
@media (max-width: 992px) {
    .footer {
        padding: 35px 0 18px;
        margin-top: 50px;
    }

    .footer-container {
        gap: 35px;
    }

    .footer-contacts h3,
    .footer-social h3 {
        font-size: 18px;
    }

    .social-icons {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .footer-social {
        gap: 20px;
    }

    .footer-contacts h3,
    .footer-social h3 {
        font-size: 17px;
        margin-bottom: 15px;
    }

    .footer-contacts p {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .social-icons {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .social-icon {
        padding: 8px 10px;
        font-size: 12px;
        min-height: 36px;
    }

    .social-icon-text {
        font-size: 11px;
    }

    .social-category h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 25px 0 12px;
        margin-top: 30px;
    }

    .footer-container {
        gap: 25px;
        padding: 0 12px;
    }

    .footer-social {
        gap: 18px;
    }

    .social-icons {
        grid-template-columns: 1fr;
    }

    .social-icon {
        padding: 9px 12px;
        font-size: 12px;
        min-height: 38px;
    }

    .social-icon-text {
        font-size: 12px;
    }

    .footer-contacts h3,
    .footer-social h3 {
        font-size: 16px;
    }

    .footer-contacts p {
        font-size: 12px;
    }

    .footer-bottom {
        padding-top: 25px;
        margin-top: 25px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 0 10px;
    }

    .footer-container {
        gap: 20px;
        padding: 0 10px;
    }

    .social-icon {
        padding: 8px 10px;
        font-size: 11px;
        min-height: 36px;
    }

    .footer-contacts h3,
    .footer-social h3 {
        font-size: 15px;
    }

    .footer-bottom {
        font-size: 11px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 375px) {
    .footer {
        padding: 18px 0 8px;
    }

    .footer-contacts p {
        font-size: 11px;
    }

    .social-icon {
        padding: 6px 8px;
        font-size: 10px;
        min-height: 34px;
    }

    .social-icon-text {
        font-size: 10px;
    }

    .footer-contacts h3,
    .footer-social h3 {
        font-size: 14px;
    }

    .social-category h4 {
        font-size: 12px;
    }
}