---
const features = [
    {
        title: "Гражданское право",
        stat: "85%",
        desc: "дел — договорные споры и защита прав",
        icon: "M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3"
    },
    {
        title: "Семейное право",
        stat: "60%",
        desc: "дел — раздел имущества и алименты",
        icon: "M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"
    }
];
---

<section id="civil-family" class="py-24 bg-white relative overflow-hidden">
    <div class="absolute top-0 left-0 w-full h-2 bg-gradient-to-r from-[var(--color-gold)] via-[var(--color-blue-primary)] to-[var(--color-gold)]"></div>

    <div class="container mx-auto px-4 md:px-8 lg:px-16">
        <div class="text-center max-w-3xl mx-auto mb-16">
            <span class="inline-block px-4 py-2 bg-[var(--color-gold)]/10 text-[var(--color-gold)] text-xs font-bold uppercase tracking-wider rounded-full mb-4">
                Специализация 2024
            </span>
            <h2 class="text-4xl md:text-5xl font-bold text-gray-900 mb-6">
                Актуальный фокус: <span class="text-[var(--color-blue-primary)]">Гражданское и Семейное право</span>
            </h2>
            <p class="text-gray-600 text-lg leading-relaxed">
                В настоящее время основная практика сосредоточена на защите интересов в сфере гражданско-правовых отношений и семейных спорах. Это позволяет обеспечивать максимально качественный результат по этим направлениям.
            </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto">
            {features.map((feature) => (
                    <div class="relative group">
                        <div class="absolute -inset-0.5 bg-gradient-to-r from-[var(--color-gold)] to-[var(--color-blue-primary)] rounded-2xl opacity-30 group-hover:opacity-100 transition duration-500 blur"></div>
                        <div class="relative bg-white rounded-2xl p-8 shadow-xl h-full border border-gray-100">
                            <div class="flex items-start justify-between mb-6">
                                <div class="w-16 h-16 bg-gray-50 rounded-2xl flex items-center justify-center group-hover:bg-[var(--color-blue-primary)] transition-colors duration-300">
                                    <svg class="w-8 h-8 text-[var(--color-blue-primary)] group-hover:text-white transition-colors" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="1.5">
                                        <path stroke-linecap="round" stroke-linejoin="round" d={feature.icon}/>
                                    </svg>
                                </div>
                                <div class="text-right">
                                    <span class="block text-4xl font-black text-[var(--color-gold)]">{feature.stat}</span>
                                    <span class="text-xs text-gray-500 uppercase tracking-wider">дел в работе</span>
                                </div>
                            </div>

                            <h3 class="text-2xl font-bold text-gray-900 mb-3 group-hover:text-[var(--color-blue-primary)] transition-colors">
                                {feature.title}
                            </h3>
                            <p class="text-gray-600 leading-relaxed mb-6">
                                {feature.desc}
                            </p>

                            <div class="space-y-3">
                                <div class="flex items-center gap-3 text-sm text-gray-700">
                                    <div class="w-6 h-6 rounded-full bg-green-100 flex items-center justify-center flex-shrink-0">
                                        <svg class="w-3 h-3 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M5 13l4 4L19 7"/></svg>
                                    </div>
                                    <span>Высокая квалификация по данной отрасли</span>
                                </div>
                                <div class="flex items-center gap-3 text-sm text-gray-700">
                                    <div class="w-6 h-6 rounded-full bg-green-100 flex items-center justify-center flex-shrink-0">
                                        <svg class="w-3 h-3 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M5 13l4 4L19 7"/></svg>
                                    </div>
                                    <span>Современная судебная практика</span>
                                </div>
                            </div>
                        </div>
                    </div>
            ))}
        </div>
    </div>
</section>
