.contact-page {
    position: relative;
    overflow: hidden;
    direction: rtl;
    padding: 90px 20px;
    background: linear-gradient(135deg, #0f0c29, #1a1040, #0f0c29);
    color: #f1f5f9;
}

.contact-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.16), transparent 35%),
        radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.12), transparent 30%);
    pointer-events: none;
}

.contact-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(99, 102, 241, 0.18));
    border: 1px solid rgba(167, 139, 250, 0.25);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.08);
}

.contact-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 14px;
    background: linear-gradient(90deg, #f1f5f9, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-text {
    max-width: 720px;
    margin: 0 auto 34px;
    color: #94a3b8;
    line-height: 1.9;
    font-size: 0.95rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.social-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.social-card:hover::before {
    opacity: 1;
}

.social-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(167, 139, 250, 0.22);
    color: #a78bfa;
    font-size: 1.4rem;
}

.social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.social-info span {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.telegram .social-icon {
    color: #38bdf8;
}

.instagram .social-icon {
    color: #f472b6;
}

.bale .social-icon {
    color: #34d399;
}

.eitaa .social-icon {
    color: #fb923c;
}

@media (max-width: 900px) {
    .social-grid {
        grid-template-columns: 1fr;
    }

    .contact-page {
        padding: 70px 16px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.6rem;
    }

    .contact-text {
        font-size: 0.9rem;
    }

    .social-card {
        padding: 18px 14px;
    }

    .social-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 12px;
    }
}
