/* SKT per-page CSS: participants */

/* from participants.html */
body {
            font-family: 'Montserrat', sans-serif;
            background-color: #f8f9fa;
            padding-top: 85px; /* Под фиксированный навбар */
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* --- НАВИГАЦИЯ --- */
        .navbar-custom {
            background-color: #ffffff;
            transition: all 0.3s ease-in-out;
            padding-top: 0.8rem;
            padding-bottom: 0.8rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        }
        .logo-icon {
            width: 46px; height: 46px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-weight: 800; font-size: 1rem; color: white;
            background: linear-gradient(135deg, #4b6fb8 0%, #c14545 100%);
        }
        .logo-title { font-size: 1.1rem; font-weight: 800; line-height: 1.1; color: #0b4c9e; }
        .logo-subtitle { font-size: 0.7rem; font-weight: 500; color: #6c757d; }
        .nav-link { font-size: 0.95rem; font-weight: 600; color: #343a40 !important; }
        .nav-link:hover { color: #0b4c9e !important; }

        /* --- ХЕДЕР СТРАНИЦЫ --- */
        .page-hero {
            background: linear-gradient(135deg, #0b4c9e 0%, #1a365d 100%);
            color: #ffffff;
            padding: 4rem 0;
            border-bottom: 4px solid #d6322b;
            text-align: center;
        }
        .breadcrumb-custom {
            font-size: 0.85rem;
            margin-bottom: 1rem;
            justify-content: center;
            display: flex;
        }
        .breadcrumb-custom a { color: rgba(255,255,255,0.8); text-decoration: none; }
        .breadcrumb-custom a:hover { color: #fff; }
        .page-hero-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            letter-spacing: -0.5px;
        }
        .page-hero-subtitle {
            font-size: 1.1rem;
            color: rgba(255,255,255,0.8);
            font-weight: 500;
        }

        /* --- ФИЛЬТРЫ (ВЕСОВЫЕ КАТЕГОРИИ) --- */
        .filter-section {
            padding: 2rem 0;
            background-color: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            position: sticky;
            top: 85px; /* Прилипает под навбаром */
            z-index: 1020;
        }
        .category-pills .nav-link {
            color: #475569 !important;
            font-weight: 600;
            border-radius: 30px;
            padding: 0.5rem 1.5rem;
            margin: 0 0.25rem;
            background-color: #f1f5f9;
            transition: all 0.2s;
        }
        .category-pills .nav-link:hover {
            background-color: #e2e8f0;
            color: #0f172a !important;
        }
        .category-pills .nav-link.active {
            background-color: #0b4c9e !important;
            color: #ffffff !important;
            box-shadow: 0 4px 10px rgba(11, 76, 158, 0.2);
        }

        /* --- КАРТОЧКИ УЧАСТНИКОВ --- */
        .participants-section {
            padding: 4rem 0;
            flex-grow: 1;
        }

        .participants-section .profile-card {
            background: #ffffff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
            height: 100%;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            border: 1px solid #eef2f7;
        }
        .participants-section .profile-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
        }
        .participants-section .profile-img {
            width: 100%;
            height: 240px;
            object-fit: cover;
            object-position: center top;
        }
        .participants-section .profile-info {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        .participants-section .profile-name {
            font-size: 1.1rem;
            font-weight: 800;
            color: #1a202c;
            margin-bottom: 0.3rem;
        }
        .participants-section .profile-country {
            position: static;
            left: auto;
            bottom: auto;
            z-index: auto;
            display: block;
            color: #0b4c9e;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 0.35rem;
        }
        .participants-section .profile-city {
            color: #4a5568;
            font-size: 0.82rem;
            font-weight: 500;
            margin-bottom: 0.75rem;
        }
        .participants-section .profile-role {
            color: #718096;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 0;
        }
        
        .profile-card {
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
            border: 1px solid #f1f5f9;
            position: relative;
        }
        .profile-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
            border-color: #e2e8f0;
        }

        /* Верхняя часть карточки (фото) */
        .profile-header {
            position: relative;
            height: 220px;
            background-color: #f8fafc;
        }
        .profile-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top; /* Чтобы лица были в кадре */
        }
        
        /* Градиент для читаемости текста на фото */
        .profile-header::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 50%;
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
        }

        /* Флаг и страна поверх фото */
        .profile-country {
            position: absolute;
            bottom: 15px;
            left: 15px;
            z-index: 2;
            color: #ffffff;
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .country-flag { font-size: 1.2rem; line-height: 1; }

        /* Белая плашка с весом поверх фото */
        .profile-weight-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 2;
            background: rgba(255, 255, 255, 0.95);
            color: #0b4c9e;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: 800;
            font-size: 0.8rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        /* Информационная часть карточки */
        .profile-body {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
        }
        .profile-name {
            font-size: 1.25rem;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 0.25rem;
        }
        .profile-club {
            color: #64748b;
            font-size: 0.85rem;
            font-weight: 500;
            margin-bottom: 1.25rem;
        }

        /* Сетка результатов (Лучшая сумма и тд) */
        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: auto;
            border-top: 1px solid #f1f5f9;
            padding-top: 1rem;
        }
        .stat-item {
            display: flex;
            flex-direction: column;
        }
        .stat-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            color: #94a3b8;
            font-weight: 700;
            letter-spacing: 0.5px;
            margin-bottom: 0.2rem;
        }
        .stat-value {
            font-size: 1.1rem;
            font-weight: 800;
            color: #d6322b;
        }

        @media (max-width: 768px) {
            .page-hero-title { font-size: 2rem; }
            .category-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; justify-content: flex-start !important; }
            .category-pills .nav-link { white-space: nowrap; }
            .filter-section { top: 70px; } /* Корректировка для мобильного навбара */
            .participants-section .profile-img { height: 280px; }
        }
