* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* для страницы списка судей */
.judges-table img.judge-photo {
    max-width:stretch;
    max-height:150px;
    object-fit:cover;
    border-radius:32px;
}
/* для страницы списка судей */

.judges {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.container {
    max-width: 1720px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
}
.judges-title {
    max-width: 1720px;
    width: 100%;
    position: relative;
    margin-top: 40px;
}
.judges-title h2 {
    font-family: "Oswald";
    font-size: 80px;
    line-height: 96px;
    font-weight: 700;
    color: #F5F5F7;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    left: 0;
}
.judges-title h1 {
    font-family: "Oswald";
    font-weight: 700;
    font-size: 56px;
    line-height: 64px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #262626;
    position: absolute;
    top: 48px;
    left: 0;
}

@media (max-width: 1720px) {
    .judges {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 1720px) {
    .judges .judges-title h1,
    .judges .judges-title h2 {
        left: 60px;
    }
    .judges .judges-title {
        width: 100%;
    }
}
@media (max-width: 1200px) {
    .judges .judges-title {
        margin-top: 24px;
    }
    .judges .judges-title h1, .judges .judges-title h2 {
        left: 40px;
    }
    .judges .judges-title h2 {
        font-size: 60px;
        line-height: 72px;
    }
    .judges .judges-title h1 {
        font-size: 42px;
        line-height: 50px;
        top: 36px;
    }
}
@media (max-width: 1024px) {
    .judges .judges-title h1, .judges .judges-title h2 {
        left: 16px;
    }
}
@media (max-width: 768px) {
    .judges .judges-title {
        margin-top: 16px;
    }
    .judges .judges-title h2 {
        font-size: 40px;
        line-height: 48px;
    }
    .judges .judges-title h1 {
        font-size: 28px;
        line-height: 32px;
        top: 24px;
    }
}
@media (max-width: 480px) {
    .judges .judges-title h2 {
        font-size: 32px;
        line-height: 40px;
    }
    .judges .judges-title h1 {
        font-size: 24px;
        line-height: 28px;
        top: 20px;
    }
}

.main-judges_name {
    width: 100%;
    max-width: 1720px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    margin-top: 160px;
}
.main-judges_name .main-judges_name-left {
    width: 100%;
    max-width: 545px;
    font-family: "Inter";
    font-weight: 600;
    color: #262626;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0.2px;
}
.main-judges_name .main-judges_name-right {
    width: 100%;
    max-width: 462px;
    margin-left: auto;
}
.main-judges_name .main-judges_name-right a {
    text-decoration: none;
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #ED1C24;
    border-bottom: 1px solid #ED1C24;
    position: relative;
    overflow: hidden;
    transition: all 0.9s ease;
}

.main-judges_name .main-judges_name-right a + a {
    border-top: 0;
}

.judges-document-editor-placeholder,
.judges-document-editor-add {
    padding: 10px 12px;
    margin-top: 8px;
    border: 1px dashed #bdbdbd;
    color: #8C8C8C;
    font-family: "Inter";
    font-size: 13px;
    text-align: center;
}

.main-judges_name .main-judges_name-right a:hover p {
    color: #ED1C24;
}
.main-judges_name .main-judges_name-right a p {
    font-family: "Inter";
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    color: #262626;
    transition: all 0.3s ease;
    position: relative;
}
.main-judges_name .main-judges_name-right a img {
    width: 36px;
    height: auto;
    display: block;
    object-fit: cover;
    transition: all 0.4s ease;
    opacity: 1;
}

@media (max-width: 1720px) {
    .main-judges_name {
        padding: 0 60px;
        width: 100%;
        height: auto;
        margin-top: 150px;
    }
}
@media (max-width: 1440px) {
    .main-judges_name {
        margin-top: 140px;
    }
}
@media (max-width: 1200px) {
    .main-judges_name {
        padding: 0 40px;
        margin-top: 120px;
    }
    .main-judges_name .main-judges_name-left {
        width: 100%;
        height: auto;
        font-size: 16px;
        line-height: 24px;
    }
    .main-judges_name .main-judges_name-right {
        width: 100%;
    }
    .main-judges_name .main-judges_name-right a {
        padding: 14px 0;
        justify-content: flex-start;
    }
    .main-judges_name .main-judges_name-right a p {
        font-size: 15px;
        line-height: 22px;
    }
    .main-judges_name .main-judges_name-right a img {
        width: 32px;
    }
}
@media (max-width: 1028px) {
    .main-judges_name {
        padding: 0 16px;
    }
    .main-judges_name .main-judges_name-left {
        font-size: 13px;
        line-height: 21px;
    }
    .main-judges_name .main-judges_name-right a {
        padding: 12px 0;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 12px;
    }
    .main-judges_name .main-judges_name-right a p {
        font-size: 12px;
        line-height: 18px;
    }
    .main-judges_name .main-judges_name-right a img {
        width: 28px;
    }
}
@media (max-width: 838px) {
    .main-judges_name {
        margin-top: 130px;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .main-judges_name .main-judges_name-left {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        line-height: 24px;
    }
    .main-judges_name .main-judges_name-right {
        width: 100%;
        max-width: 100%;
    }
    .main-judges_name .main-judges_name-right a {
        padding: 12px 0;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 12px;
    }
    .main-judges_name .main-judges_name-right a p {
        font-size: 14px;
        line-height: 20px;
    }
    .main-judges_name .main-judges_name-right a img {
        width: 28px;
    }
}
@media (max-width: 768px) {
    .main-judges_name {
        margin-top: 90px;
    }
}
@media (max-width: 480px) {
    .main-judges_name {
        margin-top: 70px;
        gap: 20px;
    }
    .main-judges_name .main-judges_name-left {
        font-size: 14px;
        line-height: 20px;
    }
    .main-judges_name .main-judges_name-right a {
        padding: 10px 0;
        gap: 8px;
    }
    .main-judges_name .main-judges_name-right a p {
        font-size: 12px;
        line-height: 16px;
    }
    .main-judges_name .main-judges_name-right a img {
        width: 24px;
    }
}
@media (max-width: 400px) {
    .main-judges_name .main-judges_name-left {
        font-size: 12px;
        line-height: 18px;
    }
}

:root {
    --table-width: 1720px;
    --header-bg: #F5F5F7;
    --header-text: #8C8C8C;
    --row-odd: #ffffff;
    --row-hover: #E1E8F0;
    --border-color: #dee2e6;
    --text-color: #262626;
    --category-1: #4caf50;
    --category-2: #2196f3;
    --category-3: #ff9800;
    --category-4: #9c27b0;
    --category-5: #f44336;
}

.main-judges_table * {
    box-sizing: border-box;
}

.main-judges_table {
    width: 100%;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    font-family: "Inter";
    font-weight: 400;
    line-height: 24px;
    font-size: 16px;
}

.main-judges_table .container {
    max-width: calc(var(--table-width) + 40px);
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.main-judges_table header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.main-judges_table h1 {
    color: var(--header-bg);
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.main-judges_table h1 i {
    color: var(--category-2);
}

.main-judges_table .description {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.main-judges_table .table-container {
    width: var(--table-width);
    overflow: auto;
    border-radius: 10px;
    background-color: white;
    margin: 0 auto;
}

.main-judges_table .judges-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.main-judges_table .judges-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #F5F5F7;
}

.main-judges_table .judges-table th {
    background-color: var(--header-bg);
    color: var(--header-text);
    font-weight: 600;
    font-family: "Inter";
    text-align: center;
    padding: 20px 15px;
    font-size: 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 68px;
}

.main-judges_table .judges-table th:last-child {
    border-right: none;
}

.main-judges_table .judges-table th i {
    margin-right: 10px;
    font-size: 1rem;
}

.main-judges_table .judges-table td {
    padding: 16px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    text-align: center;
    height: 62px;
}

.main-judges_table .judges-table th:nth-child(1),
.main-judges_table .judges-table td:nth-child(1) {
    width: auto;
    text-align: left;
    padding-left: 8px;
}

.main-judges_table .judges-table th:nth-child(2),
.main-judges_table .judges-table td:nth-child(2) {
    width: auto;
}

.main-judges_table .judges-table th:nth-child(3),
.main-judges_table .judges-table td:nth-child(3) {
    width: 25%;
}

.main-judges_table .judges-table th:nth-child(4),
.main-judges_table .judges-table td:nth-child(4) {
    width: 20%;
}

.main-judges_table .judges-table tbody tr:hover {
    background-color: var(--row-hover);
    transition: background-color 0.2s ease;
}

.main-judges_table .category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    min-width: 120px;
}

.main-judges_table .table-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    width: var(--table-width);
    margin-left: auto;
    margin-right: auto;
}

.main-judges_table .stats {
    display: flex;
    gap: 20px;
}

.main-judges_table .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.main-judges_table .legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.main-judges_table .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.main-judges_table .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.main-judges_table .controls {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.main-judges_table button {
    padding: 10px 20px;
    background-color: #386286;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.main-judges_table button:hover {
    background-color: #1a252f;
}

.main-judges_table .judges-table tbody tr {
    transition: all 0.45s ease;
}
.main-judges_table .judges-table tbody tr:hover {
    background-color: #F5F5F7;
    cursor: pointer;
}
.main-judges_table .judges-table tbody tr:active {
    background-color: #F5F5F7;
    cursor: pointer;
    transform: scale(0.98);
}

@media (max-width: 1720px) and (min-width: 1440px) {
    .main-judges_table {
        padding: 0 60px;
        width: 100%;
        max-width: 100%;
        margin-top: 80px;
    }
    .main-judges_table .table-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: auto;
    }
    .main-judges_table .judges-table {
        width: 100%;
        min-width: 1200px; /* Минимальная ширина для горизонтального скролла */
    }
    .main-judges_table .judges-table thead th {
        height: 64px;
        padding: 18px 14px;
        font-size: 16px;
        line-height: 24px;
    }
    .main-judges_table .judges-table thead th i {
        margin-right: 8px;
        font-size: 14px;
    }
    .main-judges_table .judges-table td {
        height: 58px;
        padding: 16px 14px;
        font-size: 15px;
        line-height: 22px;
    }
    .main-judges_table .judges-table {
        /* Перераспределение ширины колонок */
    }
    .main-judges_table .judges-table th:nth-child(1),
    .main-judges_table .judges-table td:nth-child(1) {
        width: auto;
    }
    .main-judges_table .judges-table th:nth-child(2),
    .main-judges_table .judges-table td:nth-child(2) {
        width: auto;
    }
    .main-judges_table .judges-table th:nth-child(3),
    .main-judges_table .judges-table td:nth-child(3) {
        width: 23%;
    }
    .main-judges_table .judges-table th:nth-child(4),
    .main-judges_table .judges-table td:nth-child(4) {
        width: 22%;
    }
    .main-judges_table .category-badge {
        min-width: 110px;
        padding: 6px 14px;
        font-size: 14px;
        border-radius: 18px;
    }
}
@media (max-width: 1440px) and (min-width: 1200px) {
    .main-judges_table {
        padding: 0 60px;
        margin-top: 60px;
    }
    .main-judges_table .table-container {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 600px;
        border-radius: 9px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    }
    .main-judges_table .judges-table {
        min-width: 1000px;
    }
    .main-judges_table .judges-table thead th {
        height: 60px;
        padding: 16px 12px;
        font-size: 15px;
        line-height: 22px;
    }
    .main-judges_table .judges-table thead th i {
        margin-right: 6px;
        font-size: 13px;
    }
    .main-judges_table .judges-table td {
        height: 54px;
        padding: 14px 12px;
        font-size: 14px;
        line-height: 20px;
    }
    .main-judges_table .judges-table th:nth-child(1),
    .main-judges_table .judges-table td:nth-child(1) {
        width: auto;
    }
    .main-judges_table .judges-table th:nth-child(2),
    .main-judges_table .judges-table td:nth-child(2) {
        width: auto;
    }
    .main-judges_table .judges-table th:nth-child(3),
    .main-judges_table .judges-table td:nth-child(3) {
        width: 22%;
    }
    .main-judges_table .judges-table th:nth-child(4),
    .main-judges_table .judges-table td:nth-child(4) {
        width: 22%;
    }
    .main-judges_table .category-badge {
        min-width: 100px;
        padding: 5px 12px;
        font-size: 13px;
        border-radius: 16px;
    }
}
@media (max-width: 1200px) {
    .main-judges_table {
        padding: 0 40px;
        margin-top: 60px;
    }
    .main-judges_table .table-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 500px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    .main-judges_table .judges-table {
        width: 100%;
        min-width: 800px;
    }
    .main-judges_table .judges-table thead th {
        height: 56px;
        padding: 16px 12px;
        font-size: 14px;
        line-height: 20px;
    }
    .main-judges_table .judges-table thead th i {
        margin-right: 6px;
    }
    .main-judges_table .judges-table td {
        height: 52px;
        padding: 14px 12px;
        font-size: 14px;
        line-height: 20px;
    }
    .main-judges_table .judges-table th:nth-child(1),
    .main-judges_table .judges-table td:nth-child(1) {
        width: auto;
    }
    .main-judges_table .judges-table th:nth-child(2),
    .main-judges_table .judges-table td:nth-child(2) {
        width: auto;
    }
    .main-judges_table .judges-table th:nth-child(3),
    .main-judges_table .judges-table td:nth-child(3) {
        width: 20%;
    }
    .main-judges_table .judges-table th:nth-child(4),
    .main-judges_table .judges-table td:nth-child(4) {
        width: 25%;
    }
    .main-judges_table .category-badge {
        min-width: 90px;
        padding: 5px 10px;
        font-size: 12px;
    }
}
@media (max-width: 1024px) {
    .main-judges_table {
        padding: 0 16px;
    }
}
@media (max-width: 992px) {
    .main-judges_table .judges-table th:nth-child(1),
    .main-judges_table .judges-table td:nth-child(1) {
        width: auto;
    }
    .main-judges_table .judges-table th:nth-child(2),
    .main-judges_table .judges-table td:nth-child(2) {
        width: auto;
    }
    .main-judges_table .judges-table th:nth-child(3),
    .main-judges_table .judges-table td:nth-child(3) {
        width: 20%;
    }
    .main-judges_table .judges-table th:nth-child(4),
    .main-judges_table .judges-table td:nth-child(4) {
        width: 20%;
    }
}
@media (max-width: 768px) {
    .main-judges_table {
        margin-top: 50px;
    }
    .main-judges_table .table-container {
        max-height: 500px;
        border-radius: 6px;
    }
    .main-judges_table .judges-table thead th {
        height: 48px;
        padding: 12px 8px;
        font-size: 12px;
        line-height: 18px;
    }
    .main-judges_table .judges-table thead th i {
        margin-right: 4px;
        font-size: 10px;
    }
    .main-judges_table .judges-table td {
        height: 44px;
        padding: 10px 8px;
        font-size: 12px;
        line-height: 18px;
    }
    .main-judges_table .judges-table th:nth-child(1),
    .main-judges_table .judges-table td:nth-child(1) {
        width: auto;
    }
    .main-judges_table .judges-table th:nth-child(2),
    .main-judges_table .judges-table td:nth-child(2) {
        width: auto;
    }
    .main-judges_table .judges-table th:nth-child(3),
    .main-judges_table .judges-table td:nth-child(3) {
        width: 15%;
    }
    .main-judges_table .judges-table th:nth-child(4),
    .main-judges_table .judges-table td:nth-child(4) {
        width: 25%;
    }
    .main-judges_table .category-badge {
        min-width: 80px;
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 12px;
    }
    .main-judges_table .table-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: 16px;
        width: 100% !important;
        padding: 0;
    }
    .main-judges_table .stats {
        width: 100%;
        justify-content: space-between;
    }
    .main-judges_table .legend {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }
}
/* Исправление таблицы судей на маленьких экранах */
@media (max-width: 480px) {
    .main-judges_table .judges-table {
        min-width: 640px;
    }

    .main-judges_table .judges-table th:nth-child(1),
    .main-judges_table .judges-table td:nth-child(1) {
        width: auto;
        padding-left: 8px;
        padding-right: 8px;
    }

    .main-judges_table .judges-table th:nth-child(2),
    .main-judges_table .judges-table td:nth-child(2) {
        width: auto;
        padding-left: 8px;
        padding-right: 8px;
    }

    .main-judges_table .judges-table th:nth-child(3),
    .main-judges_table .judges-table td:nth-child(3) {
        width: 22%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .main-judges_table .judges-table th:nth-child(4),
    .main-judges_table .judges-table td:nth-child(4) {
        width: 21%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .main-judges_table .judges-table td {
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
        vertical-align: middle;
    }

    .main-judges_table .judges-table th {
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .main-judges_table .category-badge {
        min-width: 64px;
        padding: 3px 6px;
        font-size: 10px;
    }
}

@media (max-width: 375px) {
    .main-judges_table .judges-table {
        min-width: 620px;
    }

    .main-judges_table .judges-table th:nth-child(1),
    .main-judges_table .judges-table td:nth-child(1) {
        width: auto;
    }

    .main-judges_table .judges-table th:nth-child(2),
    .main-judges_table .judges-table td:nth-child(2) {
        width: auto;
    }

    .main-judges_table .judges-table th:nth-child(3),
    .main-judges_table .judges-table td:nth-child(3) {
        width: 22%;
    }

    .main-judges_table .judges-table th:nth-child(4),
    .main-judges_table .judges-table td:nth-child(4) {
        width: 21%;
    }
}

@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-Regular.ttf);
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-Medium.ttf);
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-SemiBold.ttf);
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-Bold.ttf);
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-Bold.ttf);
    font-weight: 700;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-SemiBold.ttf);
    font-weight: 600;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-Medium.ttf);
    font-weight: 500;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-Regular.ttf);
    font-weight: 400;
}
@font-face {
    font-family: "Oswald";
    src: url(../fonts/Oswald/Oswald-Medium.ttf);
    font-weight: 500;
}
@font-face {
    font-family: "Oswald";
    src: url(../fonts/Oswald/Oswald-SemiBold.ttf);
    font-weight: 600;
}
@font-face {
    font-family: "Oswald";
    src: url(../fonts/Oswald/Oswald-Bold.ttf);
    font-weight: 700;
}