/* === COMMUNITY SECTION (Присоединяйтесь к нам) === */
.community-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
    background: rgba(15, 17, 21, 0.3); /* Полупрозрачный светлый фон */
}

.community-section .container-fluid-custom {
    position: relative;
    z-index: 1;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Карточки социальных сетей (структура как в features) */
.community-card {
    background: linear-gradient(135deg, #1a1c22 0%, #0f1115 100%);
    border: 1px solid rgba(152, 158, 161, 0.18);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

.community-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    border-radius: 16px;
    opacity: 0;
    filter: blur(10px);
    transition: all 0.4s ease;
    z-index: -1;
}

.community-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.community-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.6);
}

.community-card:hover::before {
    opacity: 1;
    filter: blur(20px);
}

.community-card:hover::after {
    opacity: 1;
}

.community-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.community-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d6940d, #faa608);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 22px rgba(214, 148, 13, 0.35);
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.community-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.community-card:hover .community-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 35px rgba(214, 148, 13, 0.5), 0 0 60px rgba(214, 148, 13, 0.3);
    filter: brightness(1.3);
    animation: communityIconFloat 2s ease-in-out infinite;
}

@keyframes communityIconFloat {
    0%, 100% {
        transform: scale(1.15) rotate(10deg) translateY(0);
    }
    50% {
        transform: scale(1.15) rotate(10deg) translateY(-5px);
    }
}

.community-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    transition: color 0.3s ease;
    margin: 0;
}

.community-card:hover .community-name {
    color: #d6940d;
}

.community-description {
    color: #c1c9d2;
    line-height: 1.6;
    position: relative;
    transition: color 0.3s ease;
    margin: 0;
}

.community-card:hover .community-description {
    color: #c0c5ce;
}

/* === Responsive === */
@media (max-width: 1365px) {
    .community-section {
        min-height: auto;
        height: auto;
        padding: 4rem 0;
    }
    
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .community-section {
        padding: 3rem 0;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .community-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .community-section {
        padding: 2rem 0;
    }
    
    .community-card {
        padding: 1.5rem;
    }
    
    .community-name {
        font-size: 1.1rem;
    }
    
    .community-description {
        font-size: 0.95rem;
    }
}


