/* SKT per-page CSS: tournament */

/* from tournament.html */
body {
            font-family: 'Montserrat', sans-serif;
            background-color: #f8f9fa; /* Светлый фон для нижней части страницы */
            /* Отступ сверху, чтобы контент не прятался под фиксированным навбаром */
            padding-top: 85px; 
        }

        /* --- Навигация --- */
        .navbar-custom {
            background-color: #ffffff;
            transition: all 0.3s ease-in-out;
            padding-top: 0.8rem;
            padding-bottom: 0.8rem;
        }

        /* Класс, который добавляется скриптом при прокрутке */
        .navbar-scrolled {
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            border-bottom: 3px solid #0b4c9e; /* Акцентная полоса */
        }

        /* Логотип */
        .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%);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .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;
            transition: color 0.2s ease;
        }

        .nav-link:hover {
            color: #0b4c9e !important;
        }

        /* --- Секция Героя (Синий баннер) --- */
        .tournament-hero {
            background-color: #0b4c9e;
            color: #ffffff;
            padding: 4rem 0 5rem 0;
        }

        .badge-current {
            background-color: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            font-weight: 500;
            font-size: 0.85rem;
            padding: 0.4rem 1rem;
        }

        .badge-main {
            background-color: #ffffff;
            color: #d6322b;
            font-weight: 800;
            font-size: 0.85rem;
            text-transform: uppercase;
            padding: 0.4rem 1rem;
            letter-spacing: 0.5px;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 800;
            letter-spacing: -1px;
            margin-top: 1.5rem;
            margin-bottom: 2.5rem;
        }

        /* Инфо-блок с иконками */
        .info-icon {
            font-size: 1.8rem;
            color: rgba(255, 255, 255, 0.8);
        }
        
        .info-label {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 0.1rem;
        }
        
        .info-value {
            font-weight: 700;
            font-size: 1.05rem;
        }

        /* --- Секция "Регламент турнира" --- */
        .regulations-section {
            background-color: #ffffff;
            padding: 2.5rem 0;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
            border-bottom: 1px solid #eaeaea;
        }

        .regulations-title {
            color: #0b4c9e;
            font-weight: 800;
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
        }

        .regulations-subtitle {
            color: #6c757d;
            font-size: 0.95rem;
            margin-bottom: 0;
        }

        .btn-download {
            background-color: #d6322b;
            color: white;
            font-weight: 700;
            padding: 0.6rem 1.5rem;
            border-radius: 8px;
            border: none;
            transition: all 0.2s;
            box-shadow: 0 4px 12px rgba(214, 50, 43, 0.3);
        }

        .btn-download:hover {
            background-color: #bd2a24;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(214, 50, 43, 0.4);
        }

        /* Адаптив */
        @media (max-width: 768px) {
            .hero-title { font-size: 2.2rem; }
            .info-item { margin-bottom: 1.5rem; }
            .regulations-section { text-align: center; }
            .btn-download { margin-top: 1.5rem; width: 100%; }
        }

        /* --- Секции "Судейская коллегия" и "Состав участников" --- */
.judges-section,
.participants-section {
    background-color: #f8f9fc; /* Очень светлый серый фон для контраста с белыми карточками */
    padding: 4rem 0;
}

.judges-title {
    color: #0b4c9e;
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
}

.judges-section .profile-card,
.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;
}

.judges-section .profile-card:hover,
.participants-section .profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.judges-section .profile-img,
.participants-section .profile-img {
    width: 100%;
    height: 240px; /* Фиксированная высота для единообразия */
    object-fit: cover;
    object-position: center top;
}

.judges-section .profile-info,
.participants-section .profile-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.judges-section .profile-name,
.participants-section .profile-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.3rem;
}

.judges-section .profile-country,
.participants-section .profile-country {
    color: #0b4c9e;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.judges-section .profile-city,
.participants-section .profile-city {
    color: #4a5568;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.judges-section .profile-role,
.participants-section .profile-role {
    color: #718096;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .judges-title { font-size: 1.8rem; margin-bottom: 2rem; }
    .judges-section .profile-img,
    .participants-section .profile-img { height: 280px; }
}

/* --- Секция "Результаты соревнований" --- */
.results-section {
    background-color: #ffffff;
    padding: 4rem 0;
    font-family: 'Montserrat', sans-serif;
}

.results-title {
    color: #0b4c9e;
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.results-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

/* Обертка для таблицы */
.results-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.results-table {
    margin-bottom: 0;
    white-space: nowrap;
}

/* Стили шапки таблицы (!important для переопределения Bootstrap) */
.results-table thead th {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 1.2rem 1rem;
    color: #ffffff !important;
    border: none;
}

.th-main { background-color: #0b4c9e !important; }
.th-lifts { background-color: #536b9f !important; }
.th-total { background-color: #d6322b !important; }

/* Стили ячеек */
.results-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #2d3748;
    font-size: 0.95rem;
}

/* Выделение строк (!important для защиты от Bootstrap) */
.results-table tbody tr.row-1st td { background-color: #f2f7fd !important; }
.results-table tbody tr.row-2nd-3rd td { background-color: #fef8e7 !important; }
.results-table tbody tr.row-other td { background-color: #ffffff !important; }

/* Колонка "Сумма" */
.results-table tbody tr.row-1st td.td-total, 
.results-table tbody tr.row-other td.td-total {
    background-color: #faeaea !important; 
}
.results-table tbody tr.row-2nd-3rd td.td-total {
    background-color: #fcefdc !important; 
}

/* Элементы внутри ячеек */
.place-badge {
    width: 32px;
    height: 32px;
    background-color: #0b4c9e;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.results-table .profile-img {
    width: 48px;
    height: 48px;
    min-width: 48px; /* Защита от растягивания, если фото не загрузилось */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0b4c9e;
    padding: 2px;
    background-color: #fff;
    display: inline-block;
    color: transparent; /* Скрываем alt-текст, чтобы он не портил верстку */
}

.results-table .profile-name {
    font-weight: 800;
    color: #1a202c;
}

/* Цвета текста результатов */
.lift-val {
    color: #0b4c9e !important;
    font-weight: 800;
    font-size: 1.05rem;
}

.td-total {
    color: #d6322b !important;
    font-weight: 800;
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .results-title { font-size: 1.8rem; }
}
